/* ── Tevily Currency Switcher — Frontend ────────────────────── */
.tcs-sw {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

/* Trigger button */
.tcs-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.tcs-trigger:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}
.tcs-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,0.25);
}
.tcs-t-sym  { font-weight: 700; }
.tcs-t-code { font-size: 13px; opacity: 0.9; }
.tcs-chevron {
    opacity: 0.75;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.tcs-trigger[aria-expanded="true"] .tcs-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.tcs-drop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    z-index: 9999;
    animation: tcsDropIn 0.18s ease;
}
.tcs-drop[hidden] { display: none; }

@keyframes tcsDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Options — now anchor tags */
.tcs-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    box-sizing: border-box;
}
.tcs-opt:last-child { border-bottom: none; }
.tcs-opt:hover      { background: #f0f7ff; }
.tcs-opt.is-on      { background: #e8f0fe; }
.tcs-opt.is-on .tcs-opt-code { color: #1565c0; }

.tcs-opt-sym {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}
.tcs-opt.is-on .tcs-opt-sym {
    background: #dbeafe;
    color: #1565c0;
}

.tcs-opt-info  { display: flex; flex-direction: column; flex: 1; }
.tcs-opt-code  { font-weight: 700; font-size: 13px; line-height: 1.2; }
.tcs-opt-name  { font-size: 11px; color: #888; line-height: 1.2; }
.tcs-check     { color: #1565c0; flex-shrink: 0; }

/* On dark headers */
.tcs-sw.tcs-dark .tcs-trigger {
    background: rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.2);
    color: #fff;
}
