.phone-field {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #d9dde3;
    border-radius: 8px;
}

.phone-field.is-invalid {
    border-color: #dc3545;
}

.phone-field-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 12px;
    border: 0;
    border-right: 1px solid #e6e8ec;
    background: transparent;
    cursor: pointer;
}

.phone-field-emoji {
    width: 20px;
    font-size: 16px;
    line-height: 15px;
}

.phone-field-flag,
.phone-field-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-field-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7280;
}

.phone-field-number {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.75rem;
    font: inherit;
    color: inherit;
    outline: none;
}

.phone-field-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    width: min(340px, 100%);
    background: #fff;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(28, 43, 36, 0.12);
}

.phone-field-search {
    display: block;
    width: calc(100% - 16px);
    margin: 8px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #d9dde3;
    border-radius: 6px;
}

.phone-field-menu ul {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
    max-height: 240px;
    overflow: auto;
}

.phone-field-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.phone-field-option:hover,
.phone-field-option:focus {
    background: #f4efe6;
}

.phone-field-name {
    flex: 1;
    min-width: 0;
}

.phone-field-dial {
    color: #6b7280;
    font-size: 0.85rem;
}
