.phone-field {
    display: flex;
    align-items: stretch;
    position: relative;
    width: 100%;
}

.phone-field-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 0.45rem;
    border: 1px solid rgba(12, 79, 62, 0.18);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: #1c2430;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
}

.phone-flag-emoji {
    display: inline-flex;
    line-height: 1;
}

.phone-flag-img {
    display: block;
    width: 1.35rem;
    height: 0.95rem;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(28, 36, 48, 0.14);
}

.phone-dial {
    font-weight: 600;
}

.phone-field .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.phone-menu {
    position: absolute;
    z-index: 80;
    left: 0;
    top: calc(100% + 6px);
    display: flex;
    flex-direction: column;
    width: min(300px, calc(100vw - 16px));
    max-height: min(320px, calc(100vh - 16px));
    padding: 0.45rem;
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid rgba(12, 79, 62, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(12, 79, 62, 0.18);
}

.phone-menu-search {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 0.35rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(12, 79, 62, 0.16);
    border-radius: 9px;
    background: #fff;
    color: #1c2430;
    font-size: 0.84rem;
}

.phone-menu-search:focus {
    outline: 0;
    border-color: #0c4f3e;
    box-shadow: 0 0 0 3px rgba(12, 79, 62, 0.12);
}

.phone-menu-list {
    min-height: 0;
    max-height: 240px;
    overflow-y: auto;
}

.phone-menu-item {
    display: grid;
    grid-template-columns: 1.45rem 1fr auto;
    gap: 0.45rem;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.42rem 0.45rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1c2430;
    text-align: start;
    font-size: 0.84rem;
    cursor: pointer;
}

.phone-menu-item span:last-child {
    color: #0c4f3e;
    font-weight: 700;
}

.phone-menu-item:hover,
.phone-menu-item:focus,
.phone-menu-item.is-selected {
    background: #f6f1e6;
    outline: 0;
}
