/**
 * Pip Range Analyzer Styles
 * Compact dark theme matching reference design
 *
 * Colors: Green (#22c55e) = bullish, Red (#ef4444) = bearish
 * Opacity: Today 100%, Same-day avg 65%, Overall avg 35%
 */

/* ============================================
   BASE CONTAINER
   ============================================ */

.currenlyzer-pip-range-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(180deg, #1E1E1E 0%, #141414 100%) !important;
    border-radius: 16px;
    border: 1px solid #1F1F1F;
    padding: 15px 20px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #CCCCCC !important;
    position: relative;
}

.currenlyzer-pip-range-container * {
    box-sizing: border-box;
}

/* ============================================
   DAILY CONTROLS SECTION (Compact)
   ============================================ */

.daily-controls-section {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(45, 104, 254, 0.05);
    border: 1px solid rgba(45, 104, 254, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

/* Row 1: Symbols row - centered */
.daily-controls-row.symbols-row {
    justify-content: center;
    gap: 12px;
}

/* Row 2: Options row - centered */
.daily-controls-row.options-row {
    justify-content: center;
    gap: 20px;
}

.daily-setting-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.daily-setting-item label {
    color: #B4BCD0;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.daily-symbol-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daily-symbol-search,
input#symbolSearch {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: 1px solid rgba(45, 104, 254, 0.3) !important;
    border-radius: 4px;
    padding: 4px 8px;
    color: #e0e0e0 !important;
    font-size: 11px;
    font-family: inherit;
    min-width: 100px;
    box-sizing: border-box;
}

.daily-symbol-search:focus,
input#symbolSearch:focus {
    outline: none;
    border-color: #2D68FE !important;
    background: #1a1a1a !important;
}

.daily-symbol-search::placeholder,
input#symbolSearch::placeholder {
    color: #838FA0 !important;
}

.daily-select,
#symbolSelector,
#periodSelect {
    background: #1a1a1a !important;
    border: 1px solid rgba(45, 104, 254, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    color: #C7DDFF;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    min-width: 100px;
}

.daily-select:focus,
#symbolSelector:focus,
#periodSelect:focus {
    outline: none;
    border-color: #2D68FE;
}

.daily-select option,
#symbolSelector option,
#periodSelect option {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    padding: 6px 8px;
}

.daily-select option:checked,
#symbolSelector option:checked,
#periodSelect option:checked {
    background: #2D68FE linear-gradient(0deg, #2D68FE 0%, #2D68FE 100%) !important;
    background-color: #2D68FE !important;
    color: #ffffff !important;
    font-weight: 600;
}

.daily-select optgroup,
#symbolSelector optgroup,
#periodSelect optgroup {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #6b9fff;
    font-weight: 600;
}

/* Symbol picker with tags */
.symbol-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selected-symbols-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    /* No flex: 1 - let content size naturally for centering */
}

.symbol-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(45, 104, 254, 0.2);
    border: 1px solid rgba(45, 104, 254, 0.4);
    border-radius: 4px;
    padding: 3px 6px 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #C7DDFF;
}

.symbol-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(239, 68, 68, 0.3);
    border: none;
    border-radius: 50%;
    color: #ef4444;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
}

.symbol-tag-remove:hover {
    background: rgba(239, 68, 68, 0.6);
    color: #ffffff;
}

/* Hourly Controls Section (day nav + comparison settings centered) */
.hourly-controls-section {
    margin: 12px 0;
    padding: 10px 12px;
    background: rgba(45, 104, 254, 0.05);
    border: 1px solid rgba(45, 104, 254, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hourly-controls-section .day-navigation {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    justify-content: center;
}

.hourly-controls-section .comparison-settings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
}

/* Options Row */
.options-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.controls-right .options-row {
    margin-bottom: 0;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-group label {
    color: #C7DDFF;
    font-size: 14px;
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2D68FE;
}

.radio-item label {
    color: #B4BCD0;
    font-size: 14px;
    cursor: pointer;
    font-weight: normal;
}

/* Checkbox Items */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2D68FE;
}

.checkbox-item label {
    color: #B4BCD0;
    font-size: 14px;
    cursor: pointer;
    font-weight: normal;
}

select {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid rgba(45, 104, 254, 0.3);
    border-radius: 6px;
    color: #C7DDFF;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #2D68FE;
}

select option {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 8px;
}

select option:hover {
    background: #2D68FE !important;
    color: #ffffff !important;
}

select option:checked,
select option:selected {
    background: #2D68FE linear-gradient(0deg, #2D68FE 0%, #2D68FE 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
}

select optgroup {
    background: #1a1a1a;
    color: #6b9fff;
    font-weight: 600;
}

.reset-btn {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.refresh-btn {
    padding: 6px 12px;
    background: rgba(45, 104, 254, 0.1);
    border: 1px solid rgba(45, 104, 254, 0.3);
    border-radius: 6px;
    color: #2D68FE;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.refresh-btn:hover {
    background: rgba(45, 104, 254, 0.2);
    border-color: rgba(45, 104, 254, 0.5);
}

.info-text {
    color: #838FA0;
    font-size: 12px;
    margin: 0;
    line-height: 1.3;
}

/* ============================================
   TIMEZONE SECTION
   ============================================ */

.timezone-section {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(45, 104, 254, 0.05);
    border: 1px solid rgba(45, 104, 254, 0.2);
    border-radius: 6px;
}

.timezone-row {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.timezone-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timezone-selector label {
    font-size: 14px;
    font-weight: 600;
    color: #C7DDFF;
}

.timezone-selector select {
    min-width: 220px;
}

.timezone-info {
    color: #B4BCD0;
    font-size: 14px;
    font-weight: 500;
}

#currentTimeDisplay {
    background: rgba(45, 104, 254, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    color: #2D68FE;
    font-weight: 600;
}

/* ============================================
   DAY NAVIGATION
   ============================================ */

.day-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(13, 13, 13, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(45, 104, 254, 0.2);
    flex-wrap: wrap;
}

.day-nav-btn {
    background: rgba(45, 104, 254, 0.1);
    border: 1px solid rgba(45, 104, 254, 0.3);
    border-radius: 5px;
    padding: 5px 12px;
    color: #C7DDFF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.day-nav-btn:hover:not(:disabled) {
    background: rgba(45, 104, 254, 0.2);
    border-color: #2D68FE;
}

.day-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.day-nav-btn.today-btn {
    background: #2D68FE;
    border-color: #2D68FE;
    color: white;
}

.day-nav-btn.today-btn:hover {
    background: #1E4FD8;
}

.current-date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 140px;
}

.date-label {
    color: #838FA0;
    font-size: 10px;
    font-weight: 500;
}

.date-value {
    color: #C7DDFF;
    font-size: 13px;
    font-weight: 600;
}

.date-picker {
    padding: 5px 10px;
    background: #222222;
    border: 1px solid rgba(45, 104, 254, 0.3);
    border-radius: 5px;
    color: #C7DDFF;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}

.date-picker::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* ============================================
   CHART SECTIONS
   ============================================ */

.chart-section {
    background: rgba(13, 13, 13, 0.8);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(180, 188, 208, 0.1);
}

.chart-header {
    margin-bottom: 5px;
}

.chart-header h3 {
    color: #C7DDFF;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Current symbol badge in chart headers */
.current-symbol-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(45, 104, 254, 0.25);
    border: 1px solid rgba(45, 104, 254, 0.5);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #6b9fff;
    letter-spacing: 0.5px;
}

.chart-description {
    color: #888;
    font-size: 11px;
    margin: 0;
}

.chart-wrapper {
    position: relative;
    height: 220px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 5px;
}

.chart-wrapper-tall {
    height: 260px;
}

/* Chart highlight overlay (synced with slider) */
.chart-highlight {
    position: absolute;
    width: 30px;
    background: rgba(45, 104, 254, 0.12);
    border-left: 2px solid rgba(45, 104, 254, 0.6);
    border-right: 2px solid rgba(45, 104, 254, 0.6);
    pointer-events: none;
    z-index: 5;
    display: none;
    transition: left 0.15s ease;
}

.chart-highlight.active {
    display: block;
}

/* ============================================
   COMPARISON SETTINGS
   ============================================ */

.comparison-section .comparison-settings {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comparison-setting-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comparison-setting-item label {
    color: #B4BCD0;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.comparison-symbol-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-symbol-search,
input#percentSymbolSearch {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: 1px solid rgba(45, 104, 254, 0.3) !important;
    border-radius: 4px;
    padding: 4px 8px;
    color: #e0e0e0 !important;
    font-size: 11px;
    font-family: inherit;
    min-width: 100px;
    box-sizing: border-box;
}

.comparison-symbol-search:focus,
input#percentSymbolSearch:focus {
    outline: none;
    border-color: #2D68FE !important;
    background: #1a1a1a !important;
}

.comparison-symbol-search::placeholder,
input#percentSymbolSearch::placeholder {
    color: #838FA0 !important;
}

.comparison-select {
    background: #1a1a1a !important;
    border: 1px solid rgba(45, 104, 254, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    color: #C7DDFF;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    min-width: 100px;
}

.comparison-input {
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(45, 104, 254, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    color: #C7DDFF;
    font-size: 11px;
    font-family: inherit;
    width: 45px;
    text-align: center;
}

.comparison-input:focus,
.comparison-select:focus {
    outline: none;
    border-color: #2D68FE;
}

.comparison-select option,
#percentSymbol option,
select#percentSymbol option {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    padding: 6px 8px;
}

.comparison-select option:checked,
.comparison-select option:selected,
#percentSymbol option:checked,
#percentSymbol option:selected,
select#percentSymbol option:checked,
select#percentSymbol option:selected {
    background: #2D68FE linear-gradient(0deg, #2D68FE 0%, #2D68FE 100%) !important;
    background-color: #2D68FE !important;
    color: #ffffff !important;
    font-weight: 600;
}

.comparison-select optgroup,
#percentSymbol optgroup,
select#percentSymbol optgroup {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #6b9fff;
    font-weight: 600;
}

/* Timezone in hourly section */
.timezone-setting .timezone-select {
    min-width: 150px;
}

.timezone-display {
    margin-left: 5px;
}

.timezone-display #currentTimeDisplay {
    background: rgba(45, 104, 254, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    color: #2D68FE;
    font-weight: 600;
    font-size: 11px;
}

/* Date Range Inputs */
.date-range-input,
input#dateFrom,
input#dateTo {
    padding: 8px 12px;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: 1px solid rgba(45, 104, 254, 0.3) !important;
    border-radius: 6px;
    color: #C7DDFF !important;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    min-width: 130px;
}

.date-range-input:focus,
input#dateFrom:focus,
input#dateTo:focus {
    outline: none;
    border-color: #2D68FE !important;
}

.date-range-input::-webkit-calendar-picker-indicator,
input#dateFrom::-webkit-calendar-picker-indicator,
input#dateTo::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* ============================================
   TRADING SESSIONS
   ============================================ */

.sessions-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.sessions-header {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sessions-title {
    color: #C7DDFF;
    font-size: 12px;
    font-weight: 600;
}

.sessions-hint {
    color: #838FA0;
    font-size: 10px;
}

.sessions-wrapper {
    position: relative;
    /* margin-left set dynamically by JS to align with chart */
}

.session-row {
    position: relative;
    margin-bottom: 4px;
    height: 22px;
}

.session-name-label {
    position: absolute;
    left: -65px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    color: #B4BCD0;
    font-size: 10px;
    font-weight: 600;
    text-align: right;
    padding-right: 5px;
}

.session-timeline {
    width: 100%;
    position: relative;
    height: 100%;
    background: rgba(45, 104, 254, 0.03);
    border-radius: 3px;
}

.session-bar {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s;
}

.session-bar:hover {
    opacity: 0.8;
}

/* Session Colors */
.sydney-session {
    background: rgba(114, 253, 0, 0.25);
    border: 1px solid rgba(114, 253, 0, 0.4);
}

.tokyo-session {
    background: rgba(229, 99, 255, 0.25);
    border: 1px solid rgba(229, 99, 255, 0.4);
}

.london-session {
    background: rgba(0, 131, 255, 0.25);
    border: 1px solid rgba(0, 131, 255, 0.4);
}

.newyork-session {
    background: rgba(255, 41, 114, 0.3);
    border: 1px solid rgba(255, 41, 114, 0.5);
}

/* Current Time Slider */
.current-time-slider {
    position: absolute;
    top: 0;
    bottom: 22px;
    width: 2px;
    background: #2D68FE;
    z-index: 100;
    cursor: ew-resize;
    transition: left 0.15s ease;
    left: 0;
}

.current-time-slider.dragging {
    transition: none;
}

.current-time-slider:hover {
    width: 3px;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #2D68FE;
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(45, 104, 254, 0.6);
    transition: transform 0.15s ease;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.slider-handle:active,
.current-time-slider.dragging .slider-handle {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.25);
}

.time-indicator {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.time-bubble {
    background: #2D68FE;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(45, 104, 254, 0.5);
}

/* Hour Markers */
.hour-markers-row {
    margin-top: 3px;
    height: 20px;
}

.hour-ticks {
    position: relative;
    width: 100%;
    height: 100%;
}

.hour-tick {
    position: absolute;
    top: 0;
    width: 1px;
    height: 5px;
    background: rgba(131, 143, 160, 0.4);
    transform: translateX(-50%);
}

.hour-tick.major {
    height: 6px;
    background: rgba(131, 143, 160, 0.5);
}

.hour-tick .hour-label {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    color: #838FA0;
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
    width: 12px;
    text-align: center;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.97) !important;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    border-radius: 16px;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex !important;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(45, 104, 254, 0.2);
    border-top-color: #2D68FE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #C7DDFF;
    font-size: 12px;
    font-weight: 500;
}

.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.error-message.active {
    display: block;
}

.error-text {
    color: #ef4444;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet / Narrow Desktop */
@media (max-width: 1024px) {
    .controls-section {
        flex-direction: column;
    }

    .controls-left {
        width: 100%;
        min-width: unset;
    }

    .controls-right {
        width: 100%;
    }

    .hourly-controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .hourly-controls-section .day-navigation,
    .hourly-controls-section .comparison-settings {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .currenlyzer-pip-range-container {
        padding: 10px 12px;
        border-radius: 12px;
        overflow-x: hidden;
    }

    .controls-section {
        flex-direction: column;
    }

    .controls-left {
        width: 100%;
        min-width: unset;
    }

    .controls-right {
        width: 100%;
    }

    .controls-right .options-row {
        justify-content: flex-start;
    }

    .options-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .option-group {
        width: 100%;
        flex-wrap: wrap;
    }

    /* Fix select overflow on mobile */
    select,
    #timezoneSelect,
    #periodSelect {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .timezone-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .day-navigation {
        flex-direction: column;
        gap: 6px;
    }

    .chart-wrapper {
        height: 180px;
    }

    .chart-wrapper-tall {
        height: 200px;
    }

    .session-name-label {
        font-size: 9px;
        left: -55px;
        width: 50px;
    }

    .comparison-section .comparison-settings {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   AUTO-REFRESH CONTROLS
   ============================================ */

.pip-range-auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(45, 104, 254, 0.2);
}

.pip-range-auto-refresh-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

.pip-range-auto-refresh-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pip-range-auto-refresh-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(131, 143, 160, 0.3);
    border-radius: 20px;
    transition: 0.3s;
}

.pip-range-auto-refresh-slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: #838FA0;
    border-radius: 50%;
    transition: 0.3s;
}

.pip-range-auto-refresh-toggle input:checked + .pip-range-auto-refresh-slider {
    background: rgba(45, 104, 254, 0.4);
}

.pip-range-auto-refresh-toggle input:checked + .pip-range-auto-refresh-slider::before {
    transform: translateX(16px);
    background: #2D68FE;
}

.pip-range-auto-refresh-label {
    color: #838FA0;
    font-size: 11px;
    font-weight: 600;
}

.pip-range-auto-refresh-countdown {
    color: #C7DDFF;
    font-size: 11px;
    font-weight: 600;
    font-family: 'DM Mono', monospace;
    min-width: 30px;
}
