/* Smart currency picker — compact trigger + searchable panel */
.currency-smart-view {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.currency-smart-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
}

.currency-smart-bar-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.currency-smart-trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.currency-smart-trigger:hover,
.currency-smart-trigger[aria-expanded="true"] {
    border-color: var(--primary-color, #73b843);
    box-shadow: 0 0 0 3px rgba(115, 184, 67, 0.12);
}

.currency-smart-trigger-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(115, 184, 67, 0.1);
    color: var(--primary-color, #73b843);
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
}

.currency-smart-trigger-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.currency-smart-trigger-text strong {
    font-size: 0.92rem;
    line-height: 1.2;
}

.currency-smart-trigger-text span {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-smart-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    white-space: nowrap;
}

.currency-smart-chevron {
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.currency-smart-trigger[aria-expanded="true"] .currency-smart-chevron {
    transform: rotate(180deg);
}

.currency-smart-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.currency-smart-panel[hidden] {
    display: none !important;
}

.currency-smart-search-wrap {
    position: relative;
}

.currency-smart-search-wrap .fa-search {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 0.82rem;
    pointer-events: none;
}

.currency-smart-search {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.15rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 0.88rem;
}

.currency-smart-search:focus {
    outline: none;
    border-color: var(--primary-color, #73b843);
    box-shadow: 0 0 0 3px rgba(115, 184, 67, 0.12);
}

.currency-smart-popular-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.35rem;
}

.currency-smart-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.currency-smart-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    min-width: 2.6rem;
    padding: 0.3rem 0.45rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.currency-smart-chip:hover {
    border-color: var(--primary-color, #73b843);
}

.currency-smart-chip.is-active {
    background: var(--primary-color, #73b843);
    border-color: var(--primary-color, #73b843);
    color: #fff;
}

.currency-smart-chip-symbol {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.currency-smart-chip-code {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.85;
}

.currency-smart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
}

.currency-smart-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.currency-smart-option:last-child {
    border-bottom: none;
}

.currency-smart-option:hover,
.currency-smart-option.is-focused {
    background: rgba(115, 184, 67, 0.06);
}

.currency-smart-option.is-selected {
    background: rgba(115, 184, 67, 0.1);
}

.currency-smart-option[hidden] {
    display: none !important;
}

.currency-smart-option-symbol {
    width: 1.75rem;
    text-align: center;
    font-weight: 700;
    flex-shrink: 0;
}

.currency-smart-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    flex: 1;
}

.currency-smart-option-body strong {
    font-size: 0.82rem;
}

.currency-smart-option-body span {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-smart-option-tag {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: rgba(115, 184, 67, 0.12);
    color: var(--primary-color, #5a9a35);
}

.currency-smart-option-check {
    color: var(--primary-color, #73b843);
    opacity: 0;
    font-size: 0.75rem;
}

.currency-smart-option.is-selected .currency-smart-option-check {
    opacity: 1;
}

.currency-smart-footnote {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-muted, #64748b);
    text-align: center;
}

.currency-smart-empty {
    padding: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
}

/* Pricing page theming */
.landing-body.pricing-page .currency-smart-view {
    max-width: 440px;
}

.landing-body.pricing-page .currency-smart-trigger {
    border-color: var(--mkt-border, #e2e8f0);
}

.landing-body.pricing-page .currency-smart-trigger:hover,
.landing-body.pricing-page .currency-smart-trigger[aria-expanded="true"] {
    border-color: var(--mkt-green, #73b843);
    box-shadow: 0 0 0 3px rgba(115, 184, 67, 0.12);
}

.landing-body.pricing-page .currency-smart-trigger-symbol {
    background: rgba(115, 184, 67, 0.12);
    color: var(--mkt-green, #73b843);
}

.landing-body.pricing-page .currency-smart-chip.is-active {
    background: var(--mkt-green, #73b843);
    border-color: var(--mkt-green, #73b843);
}

.landing-body.pricing-page .pricing-currency-picker {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
