/* ── Currency Converter ──────────────────────────────────────────────────────── */

/* ── Amount input ────────────────────────────────────────────────────────────── */

.cc-amount-input {
    font-size: var(--text-lg);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Currency pair row ────────────────────────────────────────────────────────── */

.cc-pair-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.cc-pair-row .form-group {
    margin-bottom: 0;
}

/* ── Swap button ──────────────────────────────────────────────────────────────── */

.cc-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;             /* matches .form-input height */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-surface-2);
    color: var(--color-text-2);
    font-size: var(--text-lg);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    /* Align with the bottom of the label+select block */
    margin-bottom: 1px;
}

.cc-swap-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(240, 160, 48, 0.08);
}

/* ── Result area ──────────────────────────────────────────────────────────────── */

.cc-result {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.cc-output {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.cc-output__eq {
    font-size: var(--text-2xl);
    color: var(--color-text-3);
    font-weight: 300;
}

.cc-output__value {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    font-weight: 700;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.cc-output__code {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-2);
    align-self: flex-end;
    padding-bottom: 0.1em;
}

/* ── Rate line ────────────────────────────────────────────────────────────────── */

.cc-rate-line {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-2);
    font-variant-numeric: tabular-nums;
}

/* ── ECB source banner ────────────────────────────────────────────────────────── */

.cc-banner {
    margin-top: var(--space-5);
    font-size: var(--text-xs);
    color: var(--color-text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.cc-banner::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-success);
    flex-shrink: 0;
}

/* ── Error state ──────────────────────────────────────────────────────────────── */

.cc-error {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: rgba(248, 81, 73, 0.06);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
    color: var(--color-error);
    font-size: var(--text-sm);
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────────────────────── */

/* The 1fr auto 1fr grid works on all screen sizes — no override needed. */
