/* ==========================================================================
   Chart Overlays
   Range bar, crosshair + axis labels,
   range selector, live price label/line
   Chart Navigation Controls → css/chart/chart-navigation.css
   ========================================================================== */

/* Crosshairs */
.crosshair-x {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    pointer-events: none;
    display: none;
    border-right: 1px dashed var(--chart-crosshair);
    opacity: 0.75;
}

.crosshair-y {
    position: absolute;
    left: 0;
    right: var(--y-axis-width, 65px);
    top: 0;
    height: 0;
    pointer-events: none;
    display: none;
    border-bottom: 1px dashed var(--chart-crosshair);
    opacity: 0.75;
}

.axis-label-x,
.axis-label-y {
    position: absolute;
    background: var(--chart-axis-bg);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    box-shadow: 0 1px 6px rgba(33,150,243,0.35);
    letter-spacing: 0.01em;
}

.axis-label-x {
    padding: 3px 7px;
    z-index: 5;
}

.axis-label-y {
    padding: 3px 4px;
    z-index: 7; /* higher than live-price-label */
    width: var(--y-axis-width, 65px);
    box-sizing: border-box;
    text-align: center;
    right: 0;
    font-variant-numeric: tabular-nums;
}

.live-price-label {
    position: absolute;
    right: 0;
    background: #26a69a;
    color: #fff;
    padding: 4px 4px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
    width: var(--y-axis-width, 65px);
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.live-price-label.down {
    background: #ef5350;
}

.live-price-timer {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.04em;
}

.live-line {
    position: absolute;
    left: 0;
    right: var(--y-axis-width, 65px);
    height: 1px;
    pointer-events: none;
    z-index: 5;
    border-bottom: 1px dashed #26a69a;
}

.live-line.down {
    border-bottom-color: #ef5350;
}
