.ew360-currencies {
    --ew360-currencies-brand: #004f80;
    --ew360-currencies-brand-dark: #003b60;
    --ew360-currencies-brand-soft: rgba(0, 79, 128, 0.10);
    --ew360-currencies-bg: #ffffff;
    --ew360-currencies-card-bg: rgba(255, 255, 255, 0.92);
    --ew360-currencies-border: rgba(0, 79, 128, 0.14);
    --ew360-currencies-text: #0f172a;
    --ew360-currencies-muted: #64748b;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    font-family: inherit;
    color: var(--ew360-currencies-text);
}

.ew360-currencies *,
.ew360-currencies *::before,
.ew360-currencies *::after {
    box-sizing: border-box;
}

.ew360-currencies__title {
    margin: 0 0 16px;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ew360-currencies-brand);
}

.ew360-currencies__panel {
    padding: 12px;
    border: 1px solid var(--ew360-currencies-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, var(--ew360-currencies-brand-soft), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.96));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ew360-currencies__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ew360-currencies__card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 79, 128, 0.10);
    border-radius: 18px;
    background: var(--ew360-currencies-card-bg);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.ew360-currencies__card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 79, 128, 0.26);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 79, 128, 0.13);
}

.ew360-currencies__card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ew360-currencies-brand), var(--ew360-currencies-brand-dark));
}


.ew360-currencies__identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.ew360-currencies__symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--ew360-currencies-brand), var(--ew360-currencies-brand-dark));
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 79, 128, 0.24);
}

.ew360-currencies__code {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    color: var(--ew360-currencies-text);
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ew360-currencies__rate {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ew360-currencies-brand);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-align: right;
    white-space: nowrap;
}

.ew360-currencies__date {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--ew360-currencies-brand), var(--ew360-currencies-brand-dark));
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 79, 128, 0.22);
}

.ew360-currencies__error {
    padding: 14px 16px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.9);
    color: #991b1b;
}

@media (max-width: 420px) {
    .ew360-currencies__panel {
        padding: 10px;
        border-radius: 20px;
    }

    .ew360-currencies__card {
        min-height: 68px;
        padding: 12px 14px;
        gap: 12px;
    }

    .ew360-currencies__symbol {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
        font-size: 18px;
    }

    .ew360-currencies__code {
        font-size: 14px;
    }

    .ew360-currencies__rate {
        font-size: 24px;
    }
}
