.ffwa-phone {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    position: relative;
}

.ffwa-phone .ffwa-country {
    position: relative;
    flex: 0 0 auto;
}

.ffwa-phone .ffwa-toggle.ff-el-form-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-width: 104px;
    height: 100%;
    padding: 0 10px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.ffwa-phone .ffwa-flag {
    display: block;
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
}

.ffwa-phone .ffwa-caret {
    margin-left: auto;
    padding: 3px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    opacity: 0.6;
    transform: rotate(45deg) translateY(-2px);
}

.ffwa-phone .ffwa-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 9999;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.ffwa-phone .ffwa-dropdown[hidden] {
    display: none;
}

.ffwa-phone .ffwa-search {
    display: block;
    box-sizing: border-box;
    width: calc(100% - 16px);
    margin: 8px;
    padding: 8px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.ffwa-phone .ffwa-list {
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
}

.ffwa-phone .ffwa-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.ffwa-phone .ffwa-option:hover,
.ffwa-phone .ffwa-option.is-selected {
    background: #f1f5f9;
}

.ffwa-phone .ffwa-option-name {
    flex: 1 1 auto;
}

.ffwa-phone .ffwa-option-dial {
    opacity: 0.65;
}

.ffwa-phone .ffwa-number.ff-el-form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

@media (max-width: 480px) {
    .ffwa-phone .ffwa-toggle.ff-el-form-control {
        min-width: 92px;
    }
}
