/* ================================================================
   SPORTSBOOK PROFESSIONAL BETSLIP PANEL - PHASE 4
   BetConstruct/Bet365-Level Premium Betting Panel
   ================================================================
   Target: Transform BetSlip panel into compact professional UI
   - Desktop: 350px sidebar panel
   - Mobile: Full-width drawer
   - Compact selection cards (70-100px)
   - Professional CTA buttons
   - Premium visual hierarchy
   ================================================================ */

/* ================================================================
   DESKTOP BETSLIP PANEL
   ================================================================ */

.bc-sb-betslip {
    width: 350px !important;
    background: #0f1115 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* ================================================================
   BETSLIP HEADER
   ================================================================ */

.bc-sb-betslip__header {
    padding: 16px 16px 0 16px !important;
    background: #0f1115 !important;
    border-bottom: none !important;
    flex-shrink: 0 !important;
}

.bc-sb-betslip__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #f5f7fa !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* ================================================================
   BET HUB TABS (BETSLIP | MY BETS | HISTORY)
   ================================================================ */

.bc-sb-hub-tabs {
    display: flex !important;
    gap: 0 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0 -16px 0 -16px !important;
    padding: 0 16px !important;
}

.bc-sb-hub-tab {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: color 0.15s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-height: 40px !important;
}

.bc-sb-hub-tab:hover {
    color: #9ca3af !important;
}

.bc-sb-hub-tab--active {
    color: #FFD700 !important;
}

.bc-sb-hub-tab--active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: #FFD700 !important;
}

.bc-sb-hub-tab__badge {
    background: #FFD700 !important;
    color: #14100A !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 10px !important;
    margin-left: 4px !important;
}

/* Old tab system compatibility */
.bc-sb-betslip__tabs {
    display: none !important;
}

/* ================================================================
   BETSLIP CONTENT AREA
   ================================================================ */

.bc-sb-betslip__content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    background: #0f1115 !important;
}

/* ================================================================
   WALLET BAR
   ================================================================ */

.bc-sb-wallet-bar {
    padding: 12px 16px !important;
    background: rgba(255, 215, 0, 0.08) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}

.bc-sb-wallet-bar--guest {
    background: rgba(239, 68, 68, 0.08) !important;
    border-bottom: 1px solid rgba(239, 68, 68, 0.12) !important;
}

.bc-sb-wallet-bar__label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.bc-sb-wallet-bar__value {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #FFD700 !important;
}

/* ================================================================
   SELECTIONS CONTAINER
   ================================================================ */

.bc-sb-selections {
    padding: 12px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* ================================================================
   SELECTION CARD - COMPACT PROFESSIONAL
   ================================================================ */

.bc-sb-selection {
    background: #13161b !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
    padding: 12px !important;
    position: relative !important;
    min-height: 70px !important;
    transition: all 0.15s ease !important;
}

.bc-sb-selection:hover {
    background: #16191f !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.bc-sb-selection--suspended {
    opacity: 0.5 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

/* ================================================================
   SELECTION CARD LAYOUT
   ================================================================ */

.bc-sb-selection__remove {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: none !important;
    color: #9ca3af !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.bc-sb-selection__remove:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

.bc-sb-selection__live {
    position: absolute !important;
    top: 8px !important;
    right: 40px !important;
    padding: 3px 6px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    border-radius: 3px !important;
}

.bc-sb-selection__match {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #f5f7fa !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    padding-right: 32px !important;
}

.bc-sb-selection__league {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
}

.bc-sb-selection__market {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.bc-sb-selection__market-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.bc-sb-selection__outcome {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #e5e7eb !important;
}

.bc-sb-selection__odds {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #FFD700 !important;
}

/* ================================================================
   SELECTION NOTICES (SUSPENDED / ODDS CHANGED)
   ================================================================ */

.bc-sb-selection__notice {
    margin-top: 8px !important;
    padding: 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

.bc-sb-selection__notice--error {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

.bc-sb-selection__notice--warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    color: #fcd34d !important;
}

.bc-sb-selection__notice-text {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
}

.bc-sb-selection__odds-diff {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
    font-weight: 700 !important;
}

.bc-sb-selection__odds-old {
    text-decoration: line-through !important;
    opacity: 0.6 !important;
}

.bc-sb-selection__odds-new {
    color: #fcd34d !important;
}

.bc-sb-selection__accept {
    background: #f59e0b !important;
    color: #14100A !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    margin-top: 6px !important;
}

.bc-sb-selection__accept:hover {
    background: #fbbf24 !important;
}

/* ================================================================
   STATE BANNERS
   ================================================================ */

.bc-sb-state-banner {
    margin: 12px 16px !important;
    padding: 12px !important;
    border-radius: 6px !important;
    border-left: 3px solid !important;
}

.bc-sb-state-banner--warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left-color: #f59e0b !important;
}

.bc-sb-state-banner--error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left-color: #ef4444 !important;
}

.bc-sb-state-banner__title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f5f7fa !important;
    margin: 0 0 4px 0 !important;
}

.bc-sb-state-banner__text {
    font-size: 12px !important;
    color: #d1d5db !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.bc-sb-state-banner__actions {
    margin-top: 10px !important;
    display: flex !important;
    gap: 8px !important;
}

.bc-sb-state-banner__btn {
    padding: 8px 16px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.15s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f5f7fa !important;
}

.bc-sb-state-banner__btn--primary {
    background: #FFD700 !important;
    color: #14100A !important;
}

.bc-sb-state-banner__btn:hover {
    transform: translateY(-1px) !important;
}

/* ================================================================
   BETSLIP FOOTER
   ================================================================ */

.bc-sb-betslip__footer {
    padding: 16px !important;
    background: #0a0c0f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    flex-shrink: 0 !important;
}

/* ================================================================
   STAKE INPUT
   ================================================================ */

.bc-sb-stake {
    margin-bottom: 12px !important;
}

.bc-sb-stake__label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
}

.bc-sb-stake__input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    background: #13161b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    color: #f5f7fa !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.bc-sb-stake__input:focus {
    outline: none !important;
    border-color: #FFD700 !important;
    background: #16191f !important;
}

.bc-sb-stake__input[aria-invalid="true"] {
    border-color: #ef4444 !important;
}

.bc-sb-stake__error {
    margin-top: 4px !important;
    font-size: 11px !important;
    color: #fca5a5 !important;
    font-weight: 600 !important;
}

/* ================================================================
   POTENTIAL RETURNS
   ================================================================ */

.bc-sb-returns {
    margin-bottom: 14px !important;
    padding: 12px !important;
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    border-radius: 6px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.bc-sb-returns__label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.bc-sb-returns__value {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #FFD700 !important;
}

/* ================================================================
   BOOKING ACTIONS
   ================================================================ */

.bc-sb-booking-actions {
    display: flex !important;
    gap: 8px !important;
}

.bc-sb-booking-btn {
    flex: 0 0 auto !important;
    padding: 0 16px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    color: #f5f7fa !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.bc-sb-booking-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.bc-sb-booking-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.bc-sb-place-btn {
    flex: 1 !important;
    height: 46px !important;
    background: #FFD700 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #14100A !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.bc-sb-place-btn:hover:not(:disabled) {
    background: #fbbf24 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

.bc-sb-place-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */

.bc-sb-empty {
    padding: 40px 20px !important;
    text-align: center !important;
    display: flex; /* not !important — must not fight #bcSbEmptyState's JS-driven inline display:none toggle */
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

.bc-sb-empty__icon {
    width: 48px !important;
    height: 48px !important;
    color: #4b5563 !important;
    margin-bottom: 8px !important;
}

.bc-sb-empty__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #9ca3af !important;
    margin: 0 !important;
}

.bc-sb-empty__text {
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.bc-sb-booking-btn--load {
    margin-top: 12px !important;
    padding: 10px 20px !important;
    height: auto !important;
}

/* ================================================================
   SUCCESS STATE
   ================================================================ */

.bc-sb-success {
    padding: 24px 16px !important;
    text-align: center !important;
}

.bc-sb-success__icon {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 16px auto !important;
    color: #10b981 !important;
}

.bc-sb-success__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #f5f7fa !important;
    margin: 0 0 8px 0 !important;
}

.bc-sb-success__text {
    font-size: 14px !important;
    color: #9ca3af !important;
    line-height: 1.5 !important;
    margin: 0 0 20px 0 !important;
}

.bc-sb-success__details {
    background: #13161b !important;
    border-radius: 6px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
}

.bc-sb-success__row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.bc-sb-success__row:last-child {
    margin-bottom: 0 !important;
}

.bc-sb-success__label {
    font-size: 12px !important;
    color: #9ca3af !important;
}

.bc-sb-success__value {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #f5f7fa !important;
}

.bc-sb-success__actions {
    display: flex !important;
    gap: 8px !important;
}

.bc-sb-success__btn {
    flex: 1 !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.15s ease !important;
}

.bc-sb-success__btn--primary {
    background: #FFD700 !important;
    color: #14100A !important;
}

.bc-sb-success__btn--secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f5f7fa !important;
}

.bc-sb-success__btn:hover {
    transform: translateY(-1px) !important;
}

/* ================================================================
   MOBILE BETSLIP DRAWER
   ================================================================ */

.bc-sb-mobile-betslip {
    background: #0f1115 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.bc-sb-mobile-betslip__header {
    padding: 16px !important;
    background: #0f1115 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.bc-sb-mobile-betslip__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #f5f7fa !important;
}

.bc-sb-mobile-betslip__close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: none !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
}

.bc-sb-mobile-betslip__close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f5f7fa !important;
}

.bc-sb-mobile-betslip__content {
    padding: 0 !important;
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
}

/* ================================================================
   MOBILE RESPONSIVE
   ================================================================ */

@media (max-width: 1023px) {
    .bc-sb-betslip {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .bc-sb-selection {
        padding: 10px !important;
    }
    
    .bc-sb-selection__match {
        font-size: 13px !important;
    }
    
    .bc-sb-selection__market-name {
        font-size: 10px !important;
    }
    
    .bc-sb-selection__outcome {
        font-size: 11px !important;
    }
    
    .bc-sb-selection__odds {
        font-size: 14px !important;
    }
    
    .bc-sb-betslip__footer {
        padding: 14px !important;
    }
    
    .bc-sb-place-btn {
        height: 48px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 374px) {
    .bc-sb-selection {
        min-height: 65px !important;
        padding: 8px !important;
    }
    
    .bc-sb-selection__match {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .bc-sb-selection__league {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }
    
    .bc-sb-booking-actions {
        flex-direction: column !important;
    }
    
    .bc-sb-booking-btn {
        width: 100% !important;
    }
}

/* ================================================================
   DESKTOP WIDE SCREENS
   ================================================================ */

@media (min-width: 1600px) {
    .bc-sb-betslip {
        width: 370px !important;
    }
}

@media (min-width: 1920px) {
    .bc-sb-betslip {
        width: 380px !important;
    }
}

/* ================================================================
   SCROLLBAR STYLING
   ================================================================ */

.bc-sb-betslip__content::-webkit-scrollbar {
    width: 6px;
}

.bc-sb-betslip__content::-webkit-scrollbar-track {
    background: transparent;
}

.bc-sb-betslip__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.bc-sb-betslip__content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ================================================================
   ACCESSIBILITY & FOCUS STATES
   ================================================================ */

.bc-sb-selection__remove:focus-visible,
.bc-sb-stake__input:focus-visible,
.bc-sb-booking-btn:focus-visible,
.bc-sb-place-btn:focus-visible,
.bc-sb-hub-tab:focus-visible {
    outline: 2px solid #FFD700 !important;
    outline-offset: 2px !important;
}

/* ================================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================================ */

.bc-sb-selection,
.bc-sb-booking-btn,
.bc-sb-place-btn {
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .bc-sb-selection,
    .bc-sb-booking-btn,
    .bc-sb-place-btn,
    .bc-sb-hub-tab {
        transition: none !important;
    }
}
