/*
 * Address suggestion list under the Home Address field on the booking forms
 * (FLG-531). Drawn by /static/js/addressSuggest.js. Loaded by the
 * booking page head (BookingPageView::renderHead) and, through
 * sharedCSS.php, by the vaccinator portal pages.
 *
 * @author Ramandeep Maan
 */
@import url('brandingPalette.css');

.cwh-address-suggest-anchor {
    position: relative;
}

.cwh-address-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1060;
    min-width: 100%;
    width: max-content;
    max-width: min(480px, 90vw);
    margin-top: 4px;
    background: var(--cwh-white);
    border: 1px solid var(--cwh-border);
    border-radius: 10px;
    box-shadow: var(--cwh-shadow);
    font-family: var(--cwh-font-family);
    overflow: hidden;
}

.cwh-address-suggest[hidden] {
    display: none;
}

.cwh-address-suggest__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--cwh-black);
    cursor: pointer;
}

.cwh-address-suggest__item + .cwh-address-suggest__item {
    border-top: 1px solid var(--cwh-border);
}

.cwh-address-suggest__item.is-active {
    background: var(--cwh-light-blue);
}

.cwh-address-suggest__pin {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border: 2px solid var(--cwh-mid-grey);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-sizing: border-box;
}

.cwh-address-suggest__text strong {
    font-weight: var(--cwh-font-medium);
    color: var(--cwh-dark-blue);
}

.cwh-address-suggest__secondary {
    color: var(--cwh-dark-grey);
}

.cwh-address-suggest__footer {
    padding: 4px 12px 6px;
    border-top: 1px solid var(--cwh-border);
    font-size: 11px;
    color: var(--cwh-mid-grey);
    text-align: right;
}
