:root {
    --currency-accent: var(--theme-accent-color, #8224e3);
    --currency-bg: #ffffff;
    --currency-border: #e5e5e5;
    --currency-text-title: #111827;
    --currency-text-body: #333333;
    --currency-text-muted: #6b7280;
    --currency-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12);
}

.stuzhka-header-currency {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.stuzhka-header-currency a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    transition: opacity .15s ease;
}

.stuzhka-header-currency a:hover {
    opacity: 0.8;
}

.stuzhka-header-currency .currency-single-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stuzhka-header-currency .curr-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stuzhka-header-currency .curr-symbol {
    color: var(--currency-accent);
    font-weight: 700;
}

.stuzhka-header-currency .curr-symbol svg {
    width: 14px;
    height: 14px;
    fill: var(--currency-accent);
    vertical-align: middle;
}

.header-view-2 .stuzhka-header-currency,
.header-view-4-top .stuzhka-header-currency,
.header-view-bereza-top .stuzhka-header-currency,
.header-view-bereza-offcanvas .stuzhka-header-currency {
    color: #ffffff;
}

.header-view-2 .stuzhka-header-currency .curr-symbol,
.header-view-4-top .stuzhka-header-currency .curr-symbol,
.header-view-bereza-top .stuzhka-header-currency .curr-symbol,
.header-view-bereza-offcanvas .stuzhka-header-currency .curr-symbol {
    color: #d8b4fe !important;
}

.header-view-2 .stuzhka-header-currency .curr-symbol svg,
.header-view-4-top .stuzhka-header-currency .curr-symbol svg,
.header-view-bereza-top .stuzhka-header-currency .curr-symbol svg,
.header-view-bereza-offcanvas .stuzhka-header-currency .curr-symbol svg {
    fill: #d8b4fe !important;
}

.currency-table-wrapper {
    margin: 24px 0 32px;
    background-color: var(--currency-bg);
    border: 1px solid var(--currency-border);
    border-radius: 0;
    box-shadow: var(--currency-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.currency-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
    border-radius: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--currency-text-body);
    background: #ffffff;
    font-family: inherit;
}

.currency-table th,
.currency-table td {
    border: none;
    border-radius: 0;
}

.currency-table thead th.th-bank {
    background-color: #f7f7f7;
    color: var(--currency-text-title);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 12px 14px 12px 20px;
    vertical-align: middle;
    border-right: 1px solid var(--currency-border);
    border-bottom: 2px solid var(--currency-border);
}

.currency-table thead th.th-date {
    background-color: #f7f7f7;
    color: var(--currency-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    border-bottom: 2px solid var(--currency-border);
}

.currency-table thead tr.currency-table-head-groups th.th-curr-group {
    background-color: var(--currency-accent);
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.currency-table thead tr.currency-table-head-groups th.th-curr-group:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.currency-table thead tr.currency-table-head-groups th.th-curr-group .curr-symbol {
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    margin-right: 4px;
}

.currency-table thead tr.currency-table-head-types {
    background-color: #f7f7f7;
}

.currency-table thead tr.currency-table-head-types th {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--currency-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 2px solid var(--currency-border);
}

.currency-table thead th.th-sell:not(:last-child) {
    border-right: 1px solid var(--currency-border);
}

.currency-table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color .15s ease;
}

.currency-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.currency-table tbody tr:hover {
    background-color: rgba(130, 36, 227, 0.06);
}

.currency-table tbody td {
    padding: 12px 14px;
    color: var(--currency-text-body);
    font-size: 14px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

.currency-table tbody td.rate-sell:not(:last-child) {
    border-right: 1px solid #f0f0f0;
}

.currency-table tbody tr:last-child td {
    border-bottom: none;
}

.currency-table tbody td.bank-name {
    text-align: left;
    padding-left: 20px;
    font-weight: 700;
    color: var(--currency-text-title);
}

.currency-table tbody td.rate-val {
    font-weight: 600;
    color: #222222;
}

.currency-table tbody td.rate-date {
    font-size: 12px;
    color: var(--currency-text-muted);
}

.currency-table th:last-child,
.currency-table td:last-child {
    border-right: none;
}

.currency-top3-widget {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.currency-card {
    flex: 1;
    min-width: 220px;
    padding: 0;
    background-color: var(--currency-bg);
    border: 1px solid var(--currency-border);
    border-radius: 0;
    box-shadow: var(--currency-shadow);
    color: var(--currency-text-body);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.currency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .16);
}

.currency-card h4 {
    margin: 0;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--currency-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 0;
    border-bottom: none;
}

.currency-card > .currency-row:first-of-type {
    margin-top: 14px;
}

.currency-card .currency-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.currency-card .currency-row:last-child {
    border-bottom: none;
    padding-bottom: 16px;
}

.currency-card .currency-label {
    font-weight: 600;
    color: var(--currency-text-muted);
    font-size: 13px;
}

.currency-card .currency-val {
    color: var(--currency-accent);
    font-weight: 700;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.currency-card svg {
    width: 14px;
    height: 14px;
    fill: var(--currency-accent);
    vertical-align: middle;
}

.by-converter-widget {
    background-color: var(--currency-bg);
    border: 1px solid var(--currency-border);
    border-radius: 0;
    padding: 24px;
    max-width: 480px;
    box-shadow: var(--currency-shadow);
    margin: 24px 0 32px;
    box-sizing: border-box;
    color: var(--currency-text-body);
}

.by-converter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.by-converter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 90px;
}

.by-converter-group:first-child {
    flex: 1.4;
    min-width: 120px;
}

.by-converter-group label {
    font-size: 12px;
    color: var(--currency-text-muted);
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.by-converter-group input,
.by-converter-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--currency-text-title);
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    outline: none;
    transition: border-color .15s ease;
    box-sizing: border-box;
}

.by-converter-group select option {
    background-color: #ffffff;
    color: #111827;
}

.by-converter-group input:focus,
.by-converter-group select:focus {
    border-color: var(--currency-accent);
    box-shadow: 0 0 0 1px var(--currency-accent);
}

.by-converter-result {
    background-color: #f8f9fa;
    border: 1px solid var(--currency-border);
    border-radius: 0;
    padding: 18px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.js-converter-result-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--currency-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.js-converter-result-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--currency-text-title);
    opacity: 0.85;
}
