/**
 * Standard Cart - Dark Theme Override
 * DP Nexus · 2026 Edition
 * 
 * Overrides the default white styles to match the dark theme.
 * Load this file after the standard cart CSS.
 */

/* ══════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart {
    background: #0d1117 !important;
    color: #e2e8f0 !important;
}

#order-standard_cart::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(0,155,222,0.04) 0%, transparent 40%),
        linear-gradient(135deg, #0d1117 0%, #0f172a 50%, #0d1117 100%);
    z-index: -1;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   HEADER / PAGE TITLE
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .header-lined {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,155,222,0.15) !important;
    padding-bottom: 20px !important;
    margin-bottom: 30px !important;
}

#order-standard_cart .header-lined h1 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #c8dff0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT LIST / CART ITEMS
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .view-cart-items-header {
    background: #141d2e !important;
    border: 1px solid rgba(0,155,222,0.15) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 14px 16px !important;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

#order-standard_cart .view-cart-items {
    background: #141d2e !important;
    border: 1px solid rgba(0,155,222,0.15) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 0 !important;
}

#order-standard_cart .view-cart-items .item {
    background: #141d2e !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 16px !important;
    transition: background 0.2s ease !important;
}

#order-standard_cart .view-cart-items .item:hover {
    background: rgba(0,155,222,0.05) !important;
}

#order-standard_cart .view-cart-items .item:last-child {
    border-bottom: none !important;
    border-radius: 0 0 12px 12px !important;
}

/* Item title and info */
#order-standard_cart .item-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

#order-standard_cart .item-group {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.78rem !important;
    margin-top: 4px !important;
    display: block !important;
}

#order-standard_cart .item-domain {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.8rem !important;
    display: block !important;
    margin-top: 2px !important;
}

#order-standard_cart .item small {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.75rem !important;
    display: block !important;
    margin-top: 6px !important;
}

/* Item price */
#order-standard_cart .item-price {
    text-align: right !important;
}

#order-standard_cart .item-price span:first-child {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: block !important;
}

#order-standard_cart .item-price .cycle {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.78rem !important;
}

/* ══════════════════════════════════════════════════════════════
   ORDER SUMMARY SIDEBAR
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .order-summary {
    background: #141d2e !important;
    border: 1px solid rgba(0,155,222,0.2) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 40px rgba(0,155,222,0.05) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Blue accent line at top */
#order-standard_cart .order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #009bde, #00d4ff, transparent);
    opacity: 0.6;
}

#order-standard_cart .order-summary h2 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(0,155,222,0.15) !important;
}

#order-standard_cart .summary-container {
    background: transparent !important;
}

#order-standard_cart .subtotal,
#order-standard_cart .recurring-totals,
#order-standard_cart .bordered-totals > div {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem !important;
    padding: 8px 0 !important;
}

#order-standard_cart .subtotal .pull-left,
#order-standard_cart .recurring-totals .pull-left,
#order-standard_cart .bordered-totals .pull-left {
    color: rgba(255,255,255,0.6) !important;
}

#order-standard_cart .subtotal .pull-right,
#order-standard_cart .recurring-totals .pull-right,
#order-standard_cart .bordered-totals .pull-right {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Recurring costs */
#order-standard_cart .recurring-charges {
    font-size: 0.8rem !important;
}

#order-standard_cart .recurring-charges .cost {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Total Due Today */
#order-standard_cart .total-due-today {
    background: linear-gradient(135deg, rgba(0,155,222,0.1) 0%, rgba(0,155,222,0.05) 100%) !important;
    border: 1px solid rgba(0,155,222,0.2) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 16px !important;
    text-align: center !important;
}

#order-standard_cart .total-due-today .amt {
    display: block !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

#order-standard_cart .total-due-today span:last-child {
    display: block !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-top: 4px !important;
}

/* ══════════════════════════════════════════════════════════════
   CHECKOUT BUTTON - 强制覆盖绿色按钮
   ══════════════════════════════════════════════════════════════ */

/* 最高优先级覆盖所有可能的绿色按钮 */
html body #order-standard_cart .btn-checkout,
html body #order-standard_cart .btn-checkout.btn,
html body #order-standard_cart a.btn-checkout,
html body #order-standard_cart .btn-primary,
html body #order-standard_cart button.btn-checkout {
    background: linear-gradient(135deg, #009bde 0%, #007ab8 100%) !important;
    background-color: #009bde !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 14px 28px !important;
    box-shadow: 0 4px 20px rgba(0,155,222,0.4), 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

/* Shimmer 光泽效果 */
html body #order-standard_cart .btn-checkout::after,
html body #order-standard_cart a.btn-checkout::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent) !important;
    transition: left 0.5s ease !important;
    pointer-events: none !important;
}

/* 悬停状态 */
html body #order-standard_cart .btn-checkout:hover,
html body #order-standard_cart .btn-checkout.btn:hover,
html body #order-standard_cart a.btn-checkout:hover {
    background: linear-gradient(135deg, #00b0f0 0%, #009bde 100%) !important;
    background-color: #009bde !important;
    box-shadow: 0 8px 30px rgba(0,155,222,0.5), 0 4px 12px rgba(0,0,0,0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

html body #order-standard_cart .btn-checkout:hover::after {
    left: 100% !important;
}

#order-standard_cart .btn-checkout .fas {
    margin-left: 8px !important;
}

#order-standard_cart .btn-continue-shopping {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-top: 12px !important;
    padding: 8px !important;
    text-decoration: none !important;
}

#order-standard_cart .btn-continue-shopping:hover {
    color: #009bde !important;
}

/* ══════════════════════════════════════════════════════════════
   PROMO CODE SECTION
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .view-cart-tabs {
    background: transparent !important;
    margin-top: 24px !important;
}

#order-standard_cart .view-cart-tabs .nav-tabs {
    border-bottom: 1px solid rgba(0,155,222,0.15) !important;
    background: transparent !important;
}

#order-standard_cart .view-cart-tabs .nav-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: rgba(255,255,255,0.5) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
}

#order-standard_cart .view-cart-tabs .nav-tabs .nav-link:hover {
    color: #ffffff !important;
    border-bottom-color: rgba(0,155,222,0.4) !important;
}

#order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #009bde !important;
    color: #009bde !important;
    font-weight: 600 !important;
}

#order-standard_cart .tab-content {
    background: #141d2e !important;
    border: 1px solid rgba(0,155,222,0.15) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 20px !important;
}

#order-standard_cart .tab-pane {
    background: transparent !important;
}

/* Promo form */
#order-standard_cart .promo .form-group {
    margin-bottom: 12px !important;
}

#order-standard_cart .promo .form-control {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

#order-standard_cart .promo .form-control:focus {
    border-color: #009bde !important;
    box-shadow: 0 0 0 3px rgba(0,155,222,0.15) !important;
    background: #141d2e !important;
}

#order-standard_cart .promo .form-control::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

#order-standard_cart .promo .btn-block {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.8) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

#order-standard_cart .promo .btn-block:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}

/* Tax estimate form */
#order-standard_cart .tab-pane#calcTaxes .form-control {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

#order-standard_cart .tab-pane#calcTaxes .form-control:focus {
    border-color: #009bde !important;
    box-shadow: 0 0 0 3px rgba(0,155,222,0.15) !important;
}

#order-standard_cart .tab-pane#calcTaxes label {
    color: rgba(255,255,255,0.6) !important;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .btn-primary {
    background: linear-gradient(135deg, #009bde 0%, #007ab8 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

#order-standard_cart .btn-primary:hover {
    background: linear-gradient(135deg, #00b0f0 0%, #009bde 100%) !important;
    box-shadow: 0 4px 16px rgba(0,155,222,0.4) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

#order-standard_cart .btn-default {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.8) !important;
}

#order-standard_cart .btn-default:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}

#order-standard_cart .btn-link {
    color: #009bde !important;
    text-decoration: none !important;
}

#order-standard_cart .btn-link:hover {
    color: #33b5e8 !important;
}

#order-standard_cart .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

#order-standard_cart .btn-success:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
    box-shadow: 0 4px 16px rgba(34,197,94,0.4) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════
   ALERTS / MESSAGES
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .alert {
    background: #141d2e !important;
    border: 1px solid rgba(0,155,222,0.2) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
}

#order-standard_cart .alert-warning {
    border-color: rgba(251,191,36,0.3) !important;
    background: rgba(251,191,36,0.1) !important;
    color: #fbbf24 !important;
}

#order-standard_cart .alert-danger {
    border-color: rgba(248,113,113,0.3) !important;
    background: rgba(248,113,113,0.1) !important;
    color: #f87171 !important;
}

#order-standard_cart .alert-success {
    border-color: rgba(74,222,128,0.3) !important;
    background: rgba(74,222,128,0.1) !important;
    color: #4ade80 !important;
}

#order-standard_cart .alert-info {
    border-color: rgba(59,130,246,0.3) !important;
    background: rgba(59,130,246,0.1) !important;
    color: #60a5fa !important;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY CART
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .view-cart-empty {
    background: transparent !important;
    color: rgba(255,255,255,0.4) !important;
    padding: 40px !important;
    text-align: center !important;
    font-size: 1rem !important;
}

/* ══════════════════════════════════════════════════════════════
   QUANTITY INPUT
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .item-qty input[type="number"] {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    width: 70px !important;
    text-align: center !important;
    padding: 6px !important;
}

#order-standard_cart .item-qty input[type="number"]:focus {
    border-color: #009bde !important;
    box-shadow: 0 0 0 2px rgba(0,155,222,0.15) !important;
}

/* ══════════════════════════════════════════════════════════════
   DROPDOWN MENUS
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .dropdown-menu {
    background: #141d2e !important;
    border: 1px solid rgba(0,155,222,0.2) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    padding: 8px !important;
}

#order-standard_cart .dropdown-menu .dropdown-item {
    color: #e2e8f0 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
}

#order-standard_cart .dropdown-menu .dropdown-item:hover {
    background: rgba(0,155,222,0.1) !important;
    color: #ffffff !important;
}

#order-standard_cart .dropdown-toggle {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.8) !important;
}

#order-standard_cart .dropdown-toggle:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* ══════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .modal-content {
    background: #141d2e !important;
    border: 1px solid rgba(0,155,222,0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5) !important;
}

#order-standard_cart .modal-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,155,222,0.15) !important;
    padding: 20px 24px !important;
}

#order-standard_cart .modal-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

#order-standard_cart .modal-body {
    background: transparent !important;
    color: #e2e8f0 !important;
    padding: 24px !important;
}

#order-standard_cart .modal-footer {
    background: transparent !important;
    border-top: 1px solid rgba(0,155,222,0.15) !important;
    padding: 16px 24px !important;
}

#order-standard_cart .modal .close {
    color: rgba(255,255,255,0.5) !important;
}

#order-standard_cart .modal .close:hover {
    color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════
   SEPARATOR / DIVIDER
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .separator {
    color: rgba(255,255,255,0.3) !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    margin: 12px 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   EXPRESS CHECKOUT BUTTONS
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .express-checkout-buttons {
    margin: 16px 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM SELECT
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart select.form-control {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
}

#order-standard_cart select.form-control option {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════
   RENEWAL / UPGRADE CREDITS
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart .row-upgrade-credit {
    background: rgba(0,155,222,0.05) !important;
    padding: 12px 16px !important;
    margin: 8px -16px -16px !important;
    border-top: 1px solid rgba(0,155,222,0.1) !important;
}

#order-standard_cart .upgrade-calc-msg {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.75rem !important;
}

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════════ */
#order-standard_cart ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#order-standard_cart ::-webkit-scrollbar-track {
    background: #0d1117;
}

#order-standard_cart ::-webkit-scrollbar-thumb {
    background: rgba(0,155,222,0.3);
    border-radius: 4px;
}

#order-standard_cart ::-webkit-scrollbar-thumb:hover {
    background: rgba(0,155,222,0.5);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    #order-standard_cart .order-summary {
        margin-top: 24px !important;
    }
    
    #order-standard_cart .item-price {
        text-align: left !important;
        margin-top: 8px !important;
    }
}

@media (max-width: 575px) {
    #order-standard_cart .header-lined h1 {
        font-size: 1.4rem !important;
    }
    
    #order-standard_cart .order-summary {
        border-radius: 12px !important;
    }
    
    #order-standard_cart .total-due-today .amt {
        font-size: 1.5rem !important;
    }
}
