﻿/* Country Style serve per la drop down list della pagina di registrazione dove l'utente seleziona il paese di origine */

.country-select {
    position: relative;
    width: 480px;
    max-width: 100%;
}

.cs-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d0d7e2;
    /*border-radius: 10px;*/
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.cs-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}

.cs-label {
    flex: 1;
    text-align: left;
}

.cs-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid #d0d7e2;
    /*border-radius: 12px;*/
    background: #fff;
    max-height: 300px;
    overflow: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.country-select.open .cs-list {
    display: block;
}

.cs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
}

    .cs-item:hover {
        background: #eef2ff;
    }

.cs-iso {
    margin-left: auto;
    font-size: 11px;
    opacity: .6;
}

.search-box {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

    .search-box input {
        width: 95%;
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }
