/* Simple Chart – Base Styles */

.sc-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ── Canvas wrap ─────────────────────────────────────────────────────────── */
.sc-canvas-wrap {
    position: relative;
    width: 500px;
    height: 500px;
    overflow: hidden;
}

.sc-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
.sc-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.12s ease;

    /* Default styles — all overridable via Elementor */
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 9px 13px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.sc-tooltip--visible {
    opacity: 1;
}

.sc-tooltip-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;

    /* Default — overridable */
    font-size: 11px;
    font-weight: 500;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sc-tooltip-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sc-tooltip-value {
    /* Default — overridable */
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
}

.sc-tooltip-axis {
    margin-top: 1px;

    /* Default — overridable */
    font-size: 11px;
    color: #aaaaaa;
}

/* ── Legend ──────────────────────────────────────────────────────────────── */
.sc-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.sc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sc-legend-label {
    font-size: 13px;
    color: #333333;
}
