/* Search address label */
.address-search-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.google-address-search-group {
    width: 100%;
    flex: 1 1 100%;
}

/* Survey-only spacing/emphasis — kept off the shared classes so checkout/
   absentia/DPS, which reuse the same classes, are unaffected. */
#survey_address_search_section .google-address-search-group {
    margin-top: 16px;
}

/* Reference note shown between the label and the input (e.g. the survey's
   on-file address prompt) — hidden automatically once a suggestion is
   selected, shown again if the selection is cleared (see initAddressAutocomplete). */
.address-search-hint {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 8px;
}
.address-search-hint strong {
    color: #444;
}

/* Input wrapper with icon */
.address-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.address-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}
.address-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 40px !important;
    border: 1.5px solid var(--theme-color, #d0d0d0) !important;
    border-radius: 6px !important;
    height: 46px !important;
    font-size: 15px !important;
    box-shadow: none !important;
}
.address-search-input:focus {
    border-color: var(--theme-color, #d0d0d0) !important;
    outline: none !important;
}
.address-search-input.has-clear {
    padding-right: 36px !important;
}
.address-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
}
.address-search-clear:hover { color: #333; }

/* Return-to-search link */
.address-return-search-row {
    width: 100%;
    flex: 1 1 100%;
    margin-bottom: 14px;
}
.address-return-link {
    font-size: 13px;
    color: #555;
    text-decoration: underline;
    cursor: pointer;
}
.address-return-link:hover { color: #222; }

#survey_manual_fields_toggle .address-return-search-row {
    margin-top: 14px;
}
#survey_manual_fields_toggle .address-return-link {
    font-size: 15px;
    font-weight: 700;
}

/* Suggestions dropdown */
#billing_address_suggestions,
#delivery_address_suggestions,
#dps_address_suggestions,
#absentia_address_suggestions,
#survey_address_suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1.5px solid #c8a44a;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    display: none;
}
.address-search-input.dropdown-open {
    border-radius: 6px 6px 0 0 !important;
}
.suggestion-header {
    padding: 8px 14px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
    border-bottom: 1px solid #efefef;
    background: #fff;
}
.address-suggestion-item {
    padding: 11px 14px;
    cursor: pointer;
    line-height: 1.3;
    border-bottom: 1px solid #f2f2f2;
}
.address-suggestion-item:last-child { border-bottom: none; }
.address-suggestion-item:hover { background-color: #fdf8ee; }
.suggestion-main-text {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}
.suggestion-secondary-text {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.address-suggestion-loading {
    font-size: 13px;
    color: #999;
    font-style: italic;
    cursor: default;
    padding: 11px 14px;
}
.address-suggestion-msg {
    font-size: 13px;
    color: #888;
    cursor: default;
    font-style: italic;
    padding: 11px 14px;
}
#billing_address_search_msg,
#delivery_address_search_msg,
#dps_address_search_msg,
#absentia_address_search_msg,
#survey_address_search_msg {
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

/* Survey popup's own stored template CSS can be aggressive about resetting
   input borders, so this is scoped to the survey search input specifically. */
#survey_address_search {
    border: 1.5px solid var(--theme-color, #d0d0d0) !important;
}

/* "Can't find your address?" manual entry item in dropdown */
.address-manual-entry-item {
    font-size: 13px !important;
    color: #666 !important;
    font-style: italic;
    border-top: 1px solid #efefef;
    background: #fafafa;
    cursor: pointer;
}
.address-manual-entry-item:hover {
    background: #f5f0e8 !important;
    color: #333 !important;
}
