.arda-stats-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.arda-stats-chart-block {
    flex: 1 1 280px;
    min-width: 0;
    margin-bottom: 0;
}

.arda-stats-chart-title {
    font-size: 1.1em;
    margin-bottom: 12px;
}

.arda-stats-canvas-wrap {
    position: relative;
    width: 100%;
}

.arda-stats-table-scroll {
    overflow-x: auto;
}

.arda-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.arda-stats-table th,
.arda-stats-table td {
    padding: 8px 14px;
    border: 1px solid #d0d0d0;
    text-align: left;
    white-space: nowrap;
}

.arda-stats-table thead th {
    background: #f0f2f5;
    font-weight: 600;
}

.arda-stats-table tbody tr:nth-child(even) td {
    background: #f8f9fa;
}

.arda-stats-footnote {
    margin-top: 6px;
    font-size: 0.85em;
    color: #666;
}

.arda-stats-notice {
    color: #555;
    font-style: italic;
}

/* ── Buttons ([arda_stats_buttons]) ─────────────────────────────────────────── */

.arda-stats-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.5em 0;
}

.arda-stats-btn-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}

.arda-stats-preview {
    width: 100%;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

a.elementor-button.arda-stats-btn {
    background-color: #a71930;
    color: #fff;
    fill: #fff;
    border-color: #a71930;
    transition-duration: 0.5s;
}

a.elementor-button.arda-stats-btn:hover,
a.elementor-button.arda-stats-btn:focus-visible {
    background-color: #8f1528;
    color: #fff;
    fill: #fff;
    border-color: #8f1528;
}

a.elementor-button.arda-stats-btn svg {
    stroke: currentColor;
}

/* ── Lightbox ────────────────────────────────────────────────────────────────── */

.arda-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arda-lb[hidden] {
    display: none;
}

.arda-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.arda-lb-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    width: min(720px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
}

.arda-lb-inner .arda-lb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    background-color: #f0f2f5 !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    cursor: pointer;
    color: #555 !important;
    line-height: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.arda-lb-inner .arda-lb-close:hover,
.arda-lb-inner .arda-lb-close:focus-visible {
    background-color: #a71930 !important;
    color: #fff !important;
    outline: 2px solid #a71930;
    outline-offset: 2px;
}

.arda-lb-inner .arda-lb-close svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.arda-lb-title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 16px;
    padding-right: 32px;
}

body.arda-lb-open {
    overflow: hidden;
}
