.phone-field { position: relative; }
/* The hidden attribute does not remove SVG from layout, so the globe stayed beside the flag. */
.phone-field [hidden] { display: none !important; }
.phone-field__row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}
.phone-field__flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    max-width: 46%;
    border: 1px solid #e5e0d6;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    font: inherit;
    color: #1c1915;
    text-align: left;
}
.phone-field__flag img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    flex: 0 0 auto;
}
.phone-field__flag-name {
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.phone-field__globe { width: 22px; height: 16px; flex: 0 0 auto; color: #6f685f; }
.phone-field__chevron { display: none; width: 10px; height: 10px; flex: 0 0 auto; }
.phone-field--flag .phone-field__flag {
    position: relative;
    max-width: none;
    gap: 4px;
    justify-content: center;
    padding: 0 8px;
}
.phone-field--flag .phone-field__flag-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.phone-field--flag .phone-field__chevron { display: block; }
.phone-field input[type="tel"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #e5e0d6;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    background: #fff;
    font-size: 0.95rem;
}
.phone-field__picker {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    background: #fff;
    border: 1px solid #e5e0d6;
    border-radius: 0.85rem;
    box-shadow: 0 12px 32px rgba(28, 25, 21, 0.12);
    padding: 0.55rem;
}
.phone-field__picker[hidden] { display: none; }
.phone-field__search {
    width: 100%;
    border: 1px solid #e5e0d6;
    border-radius: 0.65rem;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.4rem;
    font: inherit;
}
.phone-field__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow: auto;
}
.phone-field__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.phone-field__option:hover,
.phone-field__option:focus { background: #f6f1ea; }
.phone-field__option img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.phone-field__option small { margin-left: auto; color: #6f685f; }
.phone-field .checkout-pro__error,
.phone-field__error { color: #b42318; font-size: 13px; margin: 0.4rem 0 0; }
@media (max-width: 520px) {
    .phone-field__flag { max-width: 42%; }
    .phone-field__flag-name { font-size: 0.75rem; }
}
