/* Language Switcher */
.gms-language-switcher {
    display: inline-block;
    max-width: 100%;
}

/* Language Dropdown */
.gms-language-switcher select {
    max-width: 100%;
    padding: 7px 28px 7px 10px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
}


/* Goodwill Language Flag Dropdown */

.gms-language-switcher {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.gms-flag-dropdown {
    position: relative;
    min-width: 145px;
    font-family: inherit;
}

.gms-flag-dropdown summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    cursor: pointer;
    list-style: none;
    border: 1px solid #E5E0D5;
    border-radius: 5px;
    background: #F8F6F1;
    color: #263D32;
    font-size: 14px;
}

.gms-flag-dropdown summary::-webkit-details-marker {
    display: none;
}

.gms-flag-dropdown summary img,
.gms-flag-options a img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.gms-dropdown-arrow {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 1.5px solid #263D32;
    border-bottom: 1.5px solid #263D32;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.gms-flag-dropdown[open] .gms-dropdown-arrow {
    transform: rotate(225deg);
}

.gms-flag-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-height: 280px;
    overflow-y: auto;
    background: #F8F6F1;
    border: 1px solid #E5E0D5;
    border-radius: 5px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    padding: 5px;
}

.gms-flag-options a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: #263D32;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.gms-flag-options a:hover,
.gms-flag-options a.active {
    background: #E5E0D5;
    color: #263D32;
}
.gms-flag-options a.active {
    font-weight: 600;
}