.language-select {
    position: relative;
    font-size: 12px;
}

.selected-country{
   margin-right:15px;
   .arrow{
    width: 20px;
    text-align: center;
   }
   .language-options{
        width: 100%;
   }
}

.language{
       /* height: 35px; */
            display: flex;
        align-items: center;
        justify-content: end;
}

.language_lng{
    padding-top: .5%;
    right: 1%;
    position: absolute;
    width: 30%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .language1{
    display: flex;
    align-items: center;
    p{
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: .5px;
        margin: 0;
        margin-right: 3px;
        
    }
  }

.language-selected {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    /* border-radius: 4px; */
    background: #fff;
    cursor: pointer;
     font-size: 13px;
}

.language-selected img {
    width: 25px;
    height: 16px;
    object-fit: cover;
        border: 1px solid rgb(197, 197, 197);
}

.language-selected .arrow {
    margin-left: auto;
    font-size: 10px;
}

.language-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 9999;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px;
    cursor: pointer;
}

.language-option img {
    width: 25px;
    height: 20px;
    object-fit: cover;
        border: 1px solid rgb(197, 197, 197);
}

.language-option:hover {
    background: #f2f2f2;
}

.language-select.active .language-options {
    display: block;
}


.language {
    position: relative;
}

.language1 {
    display: flex;
    align-items: center;
    position: relative;
}

.country-select {
    position: relative;
    margin-right: 20px;
}

.country-selected {
    /* height: 28px; */
    padding: 2px 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
}

.country-selected img {
   width: 25px;
    height: 16px;
    object-fit: cover;
    border: 1px solid rgb(197, 197, 197);
}

.country-arrow {
    margin-left: 10px;
    font-size: 11px;
}


/* Dropdown */

.country-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;

    width: min(320px, calc(100vw - 20px));

    min-height: 500px;
    max-height: 500px;

    
    overflow: auto;

    background: #fff;
    border: 1px solid #ddd;

    z-index: 99999;

    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  padding: 10px;
    input{
        width: 100%;
    height: 39px;
    padding: 0 12px;
    border: 1px solid #d7dee8;
    border-radius: 4px;
    outline: none;
    color: #2d3748;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
    transition: #d7dee8 0.2s ease, box-shadow 0.2s ease;
    }
}


/* Show dropdown */

.country-select.active .country-dropdown {
    display: block;
}


/* Country area */

.country-list {
    width: calc(100% - 10px);

    display: grid;
    grid-template-columns: repeat(1, 1fr);
  
}


/* Column */

.country-column {
    padding-right: 20px;
}


/* Country item */

.country-item {
    height: 39px;

    display: flex;
    align-items: center;

    cursor: pointer;

    color: black;
    font-size: 16px;
}

.country-item:hover {
    background: #f1f1f1;
}

.country-item img {
    width: 28px;
    height: 20px;

    object-fit: cover;

    margin-right: 10px;
}

.country-item span {
    white-space: nowrap;
}
.country-arrow {
    margin-left: 2px;
    display: flex;
    align-items: center;
}

.country-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.country-select.active .country-arrow svg,.language-select.active .country-arrow svg  {
    transform: rotate(180deg);
}
@media (max-width: 1280px) {
     .country-dropdown {
        position: fixed;
        top: 35px;
        left: 0;
        right: 0;
        width: 90vw;
        max-width: 100vw;
        min-height: 500px;
        max-height: 500px;
        margin: 0 auto;

        box-sizing: border-box;
    }
}
@media (max-width: 980px) {
    .country-dropdown {
        width: 100vw;
    }

    .country-list {
        grid-template-columns: repeat(1, 1fr);
    }
}


@media (max-width: 768px) {
    .country-dropdown {
        width: calc(100vw - 20px);
        max-height: 450px;
    }

    .country-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px) {
    .country-dropdown {
        max-height: 400px;
    }

    .country-list {
        grid-template-columns: 1fr;
    }

    .country-item {
        font-size: 14px;
    }

    .country-item img {
        width: 30px;
        height: 20px;
    }
}