.place-search {
    display: grid;
    gap: 0.75rem;
}

.place-search-input-wrap {
    position: relative;
}

.place-search-results {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.place-search-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.place-search-result:last-child {
    border-bottom: 0;
}

.place-search-result:hover,
.place-search-result:focus {
    background: rgba(15, 23, 42, 0.04);
}

.place-search-result strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.place-search-result span {
    font-size: 0.8rem;
    color: #64748b;
}

.place-search-selected {
    margin: 0.15rem 0 0;
}

.place-search-status.is-error {
    color: #b42318;
}

.place-search-delivery-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.geography-cascade {
    display: grid;
    gap: 0.75rem;
}

.geography-ac {
    position: relative;
}

.geography-ac-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.geography-ac-icon {
    position: absolute;
    left: 0.75rem;
    display: inline-flex;
    color: #64748b;
    pointer-events: none;
}

.geography-ac-input {
    padding-left: 2.35rem !important;
    padding-right: 2.2rem !important;
}

.geography-ac-clear {
    position: absolute;
    right: 0.45rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    cursor: pointer;
}

.geography-ac-clear:hover,
.geography-ac-clear:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.geography-ac-results {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.geography-ac-result {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    font: inherit;
    color: #0f172a;
}

.geography-ac-result:last-child {
    border-bottom: 0;
}

.geography-ac-result:hover,
.geography-ac-result:focus-visible {
    background: rgba(15, 23, 42, 0.04);
}

.geography-ac-empty {
    margin: 0;
    padding: 0.7rem 0.85rem;
    color: #64748b;
}

.geography-ac-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Dark theme: dropdowns are absolutely positioned white cards, so they need
   their own surfaces rather than inheriting the panel they float over. */
html[data-storefront-theme="dark"] .place-search-results,
html[data-storefront-theme="dark"] .geography-ac-results {
    background: #252528;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

html[data-storefront-theme="dark"] .place-search-result {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-storefront-theme="dark"] .place-search-result strong,
html[data-storefront-theme="dark"] .geography-ac-result {
    color: #f8fafc;
}

html[data-storefront-theme="dark"] .place-search-result span,
html[data-storefront-theme="dark"] .geography-ac-empty,
html[data-storefront-theme="dark"] .geography-ac-icon,
html[data-storefront-theme="dark"] .geography-ac-clear {
    color: #a8b3c4;
}

html[data-storefront-theme="dark"] .geography-ac-result {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-storefront-theme="dark"] .place-search-result:hover,
html[data-storefront-theme="dark"] .place-search-result:focus,
html[data-storefront-theme="dark"] .geography-ac-result:hover,
html[data-storefront-theme="dark"] .geography-ac-result:focus-visible,
html[data-storefront-theme="dark"] .geography-ac-clear:hover,
html[data-storefront-theme="dark"] .geography-ac-clear:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

html[data-storefront-theme="dark"] .place-search-status.is-error {
    color: #fca5a5;
}
