/* =====================================================
   WC Currency Switcher – Stylesheet
   Dùng UIkit classes có sẵn; không load CDN ngoài.
   ===================================================== */

/* ── Wrapper ── */
.wccs-switcher {
    display: inline-block;
    position: relative;
}

/* ── Trigger button ── */
.wccs-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 160px;
    text-align: left;
    padding: 0 12px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.wccs-wrap
{
    font-size: 16px;
}
.wccs-trigger .wccs-label {
    flex: 1;
}

/* ── Dropdown panel ── */
.wccs-dropdown {
    min-width: 280px;
    padding: 8px 0 !important;
}

/* ── Search box ── */
.wccs-search-wrap {
    padding: 8px 12px 6px;
}

.wccs-search {
    width: 100%;
    height: 36px;
    font-size: 13px;
}

/* ── List ── */
.wccs-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    scrollbar-width: none;
}

.wccs-list::-webkit-scrollbar       { width: 4px; }
.wccs-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* ── Item ── */
.wccs-list li {
    padding: 0;
}

.wccs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    line-height: 1.3;
    color: inherit;
    text-decoration: none;
}

.wccs-item:hover,
.wccs-item:focus {
    background: rgba(0,0,0,.04);
    outline: none;
}

.wccs-item.wccs-active {
    background: rgba(0,112,240,.08);
    color: #0070f0;
    font-weight: 600;
}

/* ── Symbol badge ── */
.wccs-sym {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 4px;
    background: rgba(0,0,0,.06);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
}

/* ── Currency name ── */
.wccs-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Code label ── */
.wccs-code {
    font-size: 12px;
    opacity: .55;
    flex-shrink: 0;
}

/* ── Loading / empty state ── */
.wccs-state {
    padding: 14px;
    font-size: 13px;
    opacity: .6;
    text-align: center;
}

/* ── Spinner ── */
.wccs-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wccs-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes wccs-spin { to { transform: rotate(360deg); } }
