/* Custom WPML Language Switcher — Styles
   Edit warna, radius, atau spacing di sini. Aman diubah bebas,
   nggak akan ketimpa saat plugin update selama bukan lewat auto-update. */

.cwls-wrapper {
    position: relative;
    display: inline-block;
    font-family: inherit;
    z-index: 999;
}

.cwls-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
	margin-top: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cwls-trigger:hover, .cwls-trigger:focus {
/*     border-color: #999; */
    background-color: #b8995a;
    color: var(--fl-global-white);
}

.cwls-wrapper.is-open .cwls-trigger {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.cwls-arrow {
    font-size: 10px;
    transition: transform .2s ease;
    opacity: .6;
}

.cwls-wrapper.is-open .cwls-arrow {
    transform: rotate(180deg);
}

.cwls-dropdown {
    list-style: none;
    margin: 8px 0 0;
    padding: 6px;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--fl-global-white);
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.cwls-wrapper.is-open .cwls-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cwls-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    transition: background .15s ease;
}

.cwls-item:hover {
    background: #f5f5f5;
}

.cwls-item.is-active {
    font-weight: 700;
    background: #f0f4ff;
}

.cwls-check {
    margin-left: auto;
    font-size: 12px;
}

@media (max-width: 768px) {
	.cwls-trigger>.cwls-flag {
		display: none;
	}
}