.fml-country-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fml-country-flag {
    width: 20px;
    height: auto;
    margin-right: 6px;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
}

.fml-country-flag-wrapper {
    display: inline-flex;
    align-items: center;
    background: transparent;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    z-index: 1;
    width: auto;
}

.fml-country-flag-wrapper:hover {
    background-color: rgba(0,0,0,0.02);
}

.fml-country-code {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 6px;
}

.fml-change-country {
    pointer-events: none;
    background: none;
    border: none;
    padding: 0;
    color: #666;
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.fml-change-country i {
    font-size: 16px;
    color: #2271b1;
}

.fml-country-list {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 9999;
}

.fml-country-flag-wrapper {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.fml-country-list.active {
    display: block;
}

.fml-country-list-header {
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.fml-country-list-header h3 {
    font-size: 14px;
    margin: 0;
    color: #333;
}

.fml-close-list {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

.fml-country-option {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    font-size: 13px;
}

.fml-country-option:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.fml-country-option:last-child {
    border-bottom: none;
}

.fml-country-option span {
    margin-left: 8px;
}

.fml-country-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.fml-country-flag-wrapper {
    display: inline-flex;
    align-items: center;
    background: transparent;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    
}