/* ============================
   Bar Replay — toolbar + overlay
   ============================ */

/* Toolbar cluster embedded in the TV toolbar row (the element is moved into
   that row at runtime by TradingViewChart.positionReplayToolbarNative). */
.tv-replay-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    margin: 0;
}

.tv-replay-sep {
    flex: none;
    width: 1px;
    height: 16px;
    background: #363a45;
    margin: 0 3px;
}

.tv-replay-bar button {
    box-sizing: border-box;
    height: 24px;
    border: 1px solid #363a45;
    border-radius: 3px;
    background: #2a2e39;
    color: #d1d4dc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 2px 8px;
    cursor: pointer;
}

.tv-replay-bar button:hover:not([disabled]) {
    background: #363a45;
}

.tv-replay-speed {
    box-sizing: border-box;
    height: 24px;
    background: #2a2e39;
    color: #d1d4dc;
    border: 1px solid #363a45;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    padding: 1px 2px;
}

/* ============================
   Replay selection overlay
   ============================ */

.replay-overlay-root {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 50;
    pointer-events: none;
}

.replay-future-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.68);
    border-left: 1px solid rgba(25, 118, 210, 0.2);
    /* Purely visual "future data" dimming. This overlay root lives in the HOST
       document (above the TV iframe, z-index:50), so an interactive mask would
       swallow clicks meant for the in-iframe replay bottom bar / speed menu
       that open above the chip. Keep it non-interactive; the marker below
       keeps pointer-events:auto so it stays draggable. */
    pointer-events: none;
}

.replay-selection-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1976d2;
    box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.12);
    cursor: ew-resize;
    pointer-events: auto;
    touch-action: none;
}

.replay-selection-marker::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #1976d2;
}
