/**
 * Searchable phone country dialer — flag image + dial code.
 * Fonts: Inter (site default); Poppins inside .acme-register.
 * Flags: PNG images (emoji flags render as "US" letters on Windows).
 */
.acme-phone-dial {
    position: relative;
    flex: 0 0 auto;
    min-width: 6.75rem;
    max-width: 8.5rem;
    align-self: stretch;
    border-right: 1px solid #d7dee8;
    background: #fff;
}

.acme-phone-dial__btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    height: 100%;
    min-height: 2.85rem;
    margin: 0;
    padding: 0 1.55rem 0 0.65rem;
    border: 0;
    background:
        #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 0.45rem center / 0.75rem;
    color: #0f2d52;
    cursor: pointer;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
}

.acme-phone-dial__flag-img {
    display: block;
    width: 1.25rem;
    height: 0.9375rem;
    object-fit: cover;
    border-radius: 0.125rem;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(15, 45, 82, 0.12);
    background: #e8edf3;
}

.acme-phone-dial__code {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.acme-phone-dial__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    width: min(18rem, 78vw);
    padding: 0.5rem;
    border: 1px solid rgba(15, 45, 82, 0.12);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 45, 82, 0.14);
}

.acme-phone-dial__search {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.35rem;
    margin: 0 0 0.4rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d7dee8;
    border-radius: 0.5rem;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.8125rem;
    color: #0f2d52;
}

.acme-phone-dial__search:focus {
    outline: none;
    border-color: #1a3d66;
    box-shadow: 0 0 0 3px rgba(15, 45, 82, 0.12);
}

.acme-phone-dial__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 14rem;
    overflow: auto;
}

.acme-phone-dial__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.55rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #0f2d52;
    cursor: pointer;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.8125rem;
    text-align: left;
}

.acme-phone-dial__option:hover,
.acme-phone-dial__option.is-active {
    background: rgba(15, 45, 82, 0.06);
}

.acme-phone-dial__option-dial {
    min-width: 2.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.acme-phone-dial__option-label {
    color: #5b6b7c;
}

.acme-phone-dial__empty {
    margin: 0;
    padding: 0.65rem 0.4rem;
    color: #5b6b7c;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.8125rem;
}

/* Register page — match create-account Poppins */
.acme-register .acme-phone-dial__btn,
.acme-register .acme-phone-dial__code,
.acme-register .acme-phone-dial__search,
.acme-register .acme-phone-dial__option,
.acme-register .acme-phone-dial__empty {
    font-family: var(--acme-reg-sans, Inter, ui-sans-serif, system-ui, sans-serif);
}

.acme-register__phone {
    display: flex;
    align-items: stretch;
    overflow: visible !important;
}

.acme-register__phone .acme-phone-dial {
    border-right: 1px solid var(--acme-reg-border, #d7dee8);
}

.acme-register__phone-input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Checkout phone row */
.acme-checkout__phone {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    border: 1px solid #d7dee8;
    border-radius: 0.625rem;
    overflow: visible;
    background: #fff;
}

.acme-checkout__phone .acme-phone-dial {
    border-right: 1px solid #d7dee8;
    border-radius: 0.625rem 0 0 0.625rem;
}

.acme-checkout__phone .acme-checkout__input {
    border: 0 !important;
    border-radius: 0 0.625rem 0.625rem 0 !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.acme-checkout__phone:focus-within {
    border-color: #1a3d66;
    box-shadow: 0 0 0 3px rgba(15, 45, 82, 0.12);
}
