/* ==========================================================================
   Coder4Nix Cart - Order Form Overrides v2.1
   Professional Store & Cart Styling (Dark Mode First)
   Inherits CSS vars from main c4n template
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base Cart Layout
   -------------------------------------------------------------------------- */
#order-standard_cart {
    color: var(--c4n-text, #e6edf3);
    padding-top: 0.5rem;
}

#order-standard_cart .cart-sidebar {
    background: var(--c4n-sidebar-bg, rgba(22, 27, 34, 0.8));
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: var(--c4n-radius, 10px);
    overflow: hidden;
    align-self: flex-start;
    padding: 15px !important;
}

/* Disable hover lift on sidebar panels — looks unprofessional */
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .cart-sidebar .card,
#order-standard_cart .cart-sidebar .panel:hover,
#order-standard_cart .cart-sidebar .card:hover {
    transform: none !important;
    box-shadow: none !important;
}

#order-standard_cart .cart-sidebar .card::before,
#order-standard_cart .cart-sidebar .panel::before {
    display: none !important;
}

#order-standard_cart .cart-body {
    color: var(--c4n-text, #e6edf3);
}

/* Page Header: hide the default WHMCS "Shopping Cart" H1 on product listing */
.c4n-store ~ .header-lined,
#order-standard_cart .header-lined {
    display: none;
}

/* Also style the h1 if it appears */
#order-standard_cart .header-lined h1 {
    color: var(--c4n-text, #e6edf3);
    font-weight: 700;
    border-bottom-color: var(--c4n-border, rgba(48, 54, 61, 0.6));
}

/* --------------------------------------------------------------------------
   2. Store Header (Products Page)
   -------------------------------------------------------------------------- */
.c4n-store-header {
    text-align: center;
    padding: 2.5rem 0 2rem;
    position: relative;
}

.c4n-store-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--c4n-text, #e6edf3);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    border: none !important;
    padding-bottom: 0 !important;
}

.c4n-store-tagline {
    font-size: 1.05rem;
    color: var(--c4n-text-muted, #8b949e);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Products Grid
   -------------------------------------------------------------------------- */
.c4n-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Single product: center it */
.c4n-products-grid:has(.c4n-product-card:only-child) {
    max-width: 520px;
}

/* --------------------------------------------------------------------------
   4. Product Card
   -------------------------------------------------------------------------- */
.c4n-product-card {
    position: relative;
    background: var(--c4n-card-bg, rgba(22, 27, 34, 0.92));
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.c4n-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 200, 83, 0.06);
    border-color: rgba(0, 200, 83, 0.3);
}

/* Gradient top border */
.c4n-product-border-top {
    height: 3px;
    background: linear-gradient(90deg, #00c853, #00b0ff, #7c4dff);
    flex-shrink: 0;
}

/* Card Header */
.c4n-product-header {
    padding: 2rem 2rem 0;
    text-align: center;
}

.c4n-product-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.c4n-product-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c4n-text, #e6edf3);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.c4n-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c4n-text-muted, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Description */
.c4n-product-desc {
    padding: 0.75rem 2rem 0;
    font-size: 0.92rem;
    color: var(--c4n-text-muted, #8b949e);
    line-height: 1.6;
    text-align: center;
}
.c4n-product-desc br {
    display: none;
}
.c4n-product-desc > p {
    margin-bottom: 0;
}

/* Feature list from featuresdesc HTML */
.c4n-product-desc ul {
    list-style: none;
    padding: 1rem 0 0;
    margin: 0;
    text-align: left;
}

.c4n-product-desc ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--c4n-text-secondary, #b1bac4);
    border-bottom: 1px solid var(--c4n-border-light, rgba(48, 54, 61, 0.3));
}

.c4n-product-desc ul li:last-child {
    border-bottom: none;
}

.c4n-product-desc ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    color: #00c853;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Features List */
.c4n-product-features {
    list-style: none;
    padding: 1.25rem 2rem 0;
    margin: 0;
    flex-grow: 1;
}

.c4n-product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--c4n-text-secondary, #b1bac4);
    border-bottom: 1px solid var(--c4n-border-light, rgba(48, 54, 61, 0.3));
}

.c4n-product-features li:last-child {
    border-bottom: none;
}

.c4n-product-features li i {
    color: #00c853;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.c4n-product-features li strong {
    color: var(--c4n-text, #e6edf3);
    font-weight: 600;
}

/* Footer: Pricing + CTA */
.c4n-product-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--c4n-border-light, rgba(48, 54, 61, 0.3));
    margin-top: 0.5rem;
}

.c4n-product-pricing {
    margin-bottom: 1.25rem;
}

.c4n-price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--c4n-text-muted, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.c4n-price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #00c853;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 30px rgba(0, 200, 83, 0.15);
}

.c4n-price-cycle {
    display: block;
    font-size: 0.85rem;
    color: var(--c4n-text-muted, #8b949e);
    margin-top: 0.25rem;
}

.c4n-price-setup {
    display: block;
    font-size: 0.78rem;
    color: var(--c4n-text-muted, #6e7681);
    margin-top: 0.25rem;
}

/* Order Button */
.c4n-btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #00c853, #00b347);
    border: none;
    border-radius: 50px;
    color: #000;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.c4n-btn-order:hover {
    background: linear-gradient(135deg, #00e676, #00c853);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
    color: #000;
    text-decoration: none;
}

.c4n-btn-order:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. Configure Product Page
   -------------------------------------------------------------------------- */
#order-standard_cart .product-info {
    background: var(--c4n-card-bg, rgba(22, 27, 34, 0.92));
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: var(--c4n-radius, 10px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

#order-standard_cart .product-info .product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c4n-text, #e6edf3);
    margin-bottom: 0.5rem;
}

#order-standard_cart .product-info p {
    color: var(--c4n-text-muted, #8b949e);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Sub-headings */
#order-standard_cart .sub-heading {
    border-bottom-color: var(--c4n-border, rgba(48, 54, 61, 0.6));
    color: var(--c4n-text, #e6edf3);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#order-standard_cart .sub-heading span {
    background: var(--c4n-bg, #0d1117) !important;
    font-weight: 600;
    color: var(--c4n-text, #e6edf3);
}

/* Form Controls */
#order-standard_cart .form-control,
#order-standard_cart select.form-control,
#order-standard_cart input.form-control,
#order-standard_cart textarea.form-control {
    background-color: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    color: #e6edf3;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#order-standard_cart .form-control:focus {
    border-color: #00c853;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
    outline: none;
}

#order-standard_cart .form-control::placeholder {
    color: #8b949e;
}

#order-standard_cart label {
    color: var(--c4n-text-secondary, #b1bac4);
    font-weight: 500;
}

#order-standard_cart select option {
    background-color: #161b22;
    color: #e6edf3;
}

/* Field icon */
#order-standard_cart .field-icon {
    color: #8b949e;
}

#order-standard_cart .field-help-text {
    color: var(--c4n-text-muted, #8b949e);
    font-size: 0.82rem;
}

/* Addon panels */
#order-standard_cart .panel-addon {
    background: var(--c4n-card-bg, rgba(22, 27, 34, 0.92));
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: var(--c4n-radius, 10px);
    transition: border-color 0.3s ease;
}

#order-standard_cart .panel-addon:hover {
    border-color: rgba(0, 200, 83, 0.3);
}

#order-standard_cart .panel-addon-selected {
    border-color: #00c853;
}

#order-standard_cart .panel-addon .panel-body,
#order-standard_cart .panel-addon .card-body {
    color: var(--c4n-text-secondary, #b1bac4);
}

#order-standard_cart .panel-addon label {
    color: var(--c4n-text, #e6edf3);
    font-weight: 600;
}

#order-standard_cart .panel-price {
    color: #00c853;
    font-weight: 700;
    background: rgba(0, 200, 83, 0.05);
}

#order-standard_cart .panel-add {
    color: var(--c4n-text-muted, #8b949e);
}

/* Alert styling */
#order-standard_cart .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

#order-standard_cart .alert-warning a,
#order-standard_cart .alert-warning .alert-link {
    color: #fbbf24;
}

#order-standard_cart .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

#order-standard_cart .alert-success {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.3);
    color: #00c853;
}

#order-standard_cart .alert-info {
    background: rgba(0, 176, 255, 0.1);
    border-color: rgba(0, 176, 255, 0.3);
    color: #00b0ff;
}

/* Continue button (configureproduct) */
#order-standard_cart #btnCompleteProductConfig {
    background: linear-gradient(135deg, #00c853, #00b347);
    border: none;
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
}

#order-standard_cart #btnCompleteProductConfig:hover {
    background: linear-gradient(135deg, #00e676, #00c853);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
}

/* Configurable options */
#order-standard_cart .product-configurable-options {
    background: var(--c4n-surface, rgba(13, 17, 23, 0.5));
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: var(--c4n-radius, 10px);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   6. View Cart Items
   -------------------------------------------------------------------------- */
#order-standard_cart .view-cart-items-header {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(0, 176, 255, 0.1)) !important;
    background-color: transparent !important;
    border: 1px solid rgba(0, 200, 83, 0.25);
    border-radius: 0;
    color: var(--c4n-text-secondary, #b1bac4);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Empty Cart bar */
#order-standard_cart .empty-cart {
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    border-top: none;
    padding: 8px 10px;
}
#order-standard_cart .empty-cart .btn,
#order-standard_cart .empty-cart .btn-link,
#order-standard_cart .empty-cart .btn-link span,
#order-standard_cart .empty-cart .btn-link i,
#order-standard_cart #btnEmptyCart {
    background: transparent !important;
    background-color: transparent !important;
    color: #ef4444 !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 0 !important;
}
#order-standard_cart .empty-cart .btn-link:hover,
#order-standard_cart .empty-cart .btn-link:hover span,
#order-standard_cart .empty-cart .btn-link:hover i,
#order-standard_cart #btnEmptyCart:hover {
    color: #ef4444 !important;
}

#order-standard_cart .view-cart-items .item {
    background: var(--c4n-card-bg, rgba(22, 27, 34, 0.92)) !important;
    background-color: var(--c4n-card-bg, rgba(22, 27, 34, 0.92)) !important;
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
    border-top: none !important;
    color: var(--c4n-text, #e6edf3);
}

#order-standard_cart .view-cart-items {
    border-bottom: 2px solid #00c853 !important;
}

#order-standard_cart .view-cart-items .item:last-child {
    border-radius: 0;
}

#order-standard_cart .view-cart-items .item .item-title {
    color: var(--c4n-text, #e6edf3);
    font-weight: 600;
}

#order-standard_cart .view-cart-items .item .item-group {
    color: var(--c4n-text-muted, #8b949e);
}

#order-standard_cart .view-cart-items .item .item-domain {
    color: #00c853;
}

#order-standard_cart .view-cart-items .item .item-price span:first-child {
    color: var(--c4n-text, #e6edf3);
    font-weight: 600;
}

#order-standard_cart .view-cart-items .item .item-price .cycle {
    color: var(--c4n-text-muted, #8b949e);
}

#order-standard_cart .view-cart-items td {
    color: #b1bac4;
    border-color: rgba(48, 54, 61, 0.4);
}

#order-standard_cart .view-cart-items th {
    background: rgba(22, 27, 34, 0.95);
    color: #e6edf3;
    border-color: rgba(48, 54, 61, 0.6);
}

/* View Cart Empty */
#order-standard_cart .view-cart-empty {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: 0;
    color: var(--c4n-text-muted, #8b949e);
    padding: 3rem;
    text-align: center;
}

/* View Cart Tabs */
#order-standard_cart .view-cart-tabs {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: var(--c4n-radius, 10px);
    overflow: hidden;
    margin-top: 25px !important;
}

/* Tab content area (Promo Code, etc.) - override WHMCS white default */
#order-standard_cart .view-cart-tabs .tab-content,
#order-standard_cart .tab-content {
    background: rgba(22, 27, 34, 0.9);
    color: var(--c4n-text, #e6edf3);
    border: none;
}

/* Tab nav links */
#order-standard_cart .view-cart-tabs .nav-tabs {
    border-bottom-color: rgba(48, 54, 61, 0.6);
    background: rgba(22, 27, 34, 0.6);
}

#order-standard_cart .view-cart-tabs .nav-tabs .nav-link,
#order-standard_cart .nav-tabs .nav-link {
    color: var(--c4n-text-muted, #8b949e);
    border: none;
    background: transparent;
    transition: color 0.2s ease;
}

#order-standard_cart .view-cart-tabs .nav-tabs .nav-link:hover,
#order-standard_cart .nav-tabs .nav-link:hover {
    color: var(--c4n-text, #e6edf3);
    background: rgba(255, 255, 255, 0.04);
    border: none;
}

#order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active,
#order-standard_cart .nav-tabs .nav-link.active {
    background: rgba(22, 27, 34, 0.9) !important;
    color: #00c853 !important;
    border: none;
    border-bottom: 2px solid #00c853;
    font-weight: 600;
}

/* Promo code input and button */
#order-standard_cart .promo input.form-control,
#order-standard_cart .tab-pane input.form-control {
    background: rgba(13, 17, 23, 0.8) !important;
    border: 1px solid rgba(48, 54, 61, 0.8) !important;
    color: #e6edf3 !important;
}

#order-standard_cart .promo .input-group-prepend,
#order-standard_cart .promo .input-group-text,
#order-standard_cart .tab-pane .input-group-prepend,
#order-standard_cart .tab-pane .input-group-text {
    background: rgba(22, 27, 34, 0.8) !important;
    border-color: rgba(48, 54, 61, 0.8) !important;
    color: #8b949e !important;
}

#order-standard_cart .promo button,
#order-standard_cart .tab-pane button[name="validatepromo"],
#order-standard_cart button[name="validatepromo"] {
    background: rgba(22, 27, 34, 0.9) !important;
    border: 1px solid rgba(48, 54, 61, 0.8) !important;
    color: #e6edf3 !important;
    transition: all 0.2s ease;
}

#order-standard_cart .promo button:hover,
#order-standard_cart button[name="validatepromo"]:hover {
    background: rgba(0, 200, 83, 0.1) !important;
    border-color: rgba(0, 200, 83, 0.3) !important;
    color: #00c853 !important;
}

/* --------------------------------------------------------------------------
   7. Order Summary
   -------------------------------------------------------------------------- */
#order-standard_cart .order-summary {
    background: rgba(22, 27, 34, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: var(--c4n-text, #e6edf3);
    position: relative;
    overflow: hidden;
}

/* Secondary cart sidebar (order summary wrapper) */
#order-standard_cart .secondary-cart-sidebar .order-summary {
    background: rgba(22, 27, 34, 0.92);
}

/* Summary container — override WHMCS default white bg */
#order-standard_cart .summary-container,
#order-standard_cart .order-summary .summary-container,
#order-standard_cart .secondary-cart-sidebar .summary-container {
    background: transparent;
    color: var(--c4n-text, #e6edf3);
    border: none;
}

/* Express checkout area inside order summary */
#order-standard_cart .order-summary .express-checkout,
.order-summary .express-checkout {
    background: transparent !important;
    border-color: rgba(48, 54, 61, 0.6) !important;
}

#order-standard_cart .order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c853, #00b0ff);
}

#order-standard_cart .order-summary h2 {
    color: #e6edf3;
}

#order-standard_cart .order-summary .subtotal,
#order-standard_cart .order-summary .subtotal span,
#order-standard_cart .order-summary .bordered-totals,
#order-standard_cart .order-summary .bordered-totals span,
#order-standard_cart .order-summary .recurring-totals,
#order-standard_cart .order-summary .recurring-totals span {
    color: #b1bac4;
    border-color: rgba(48, 54, 61, 0.6);
}

#order-standard_cart .order-summary .total-due-today,
#order-standard_cart .order-summary .total-due-today span {
    color: #e6edf3;
    font-weight: 700;
}

#order-standard_cart .order-summary .total-due-today .amt {
    color: #00c853 !important;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

#order-standard_cart .order-summary .pull-right,
#order-standard_cart .order-summary .float-right,
#order-standard_cart .order-summary span,
#order-standard_cart .order-summary p,
#order-standard_cart .order-summary td {
    color: #b1bac4;
}

/* Continue Shopping */
#order-standard_cart .order-summary a,
#order-standard_cart #continueShopping,
#order-standard_cart .btn-continue-shopping {
    color: #b1bac4;
}

#order-standard_cart .order-summary a:hover,
#order-standard_cart #continueShopping:hover {
    color: #00c853;
}

/* Checkout Button */
#order-standard_cart .order-summary .btn-checkout,
#order-standard_cart .order-summary .btn-primary,
#order-standard_cart .order-summary .btn-success {
    background: linear-gradient(135deg, #00c853, #00b347);
    border: none;
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
}

#order-standard_cart .order-summary .btn-checkout:hover,
#order-standard_cart .order-summary .btn-primary:hover,
#order-standard_cart .order-summary .btn-success:hover {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
}

/* Continue Shopping — no outline/border on click */
#order-standard_cart .order-summary a:focus,
#order-standard_cart .order-summary a:active,
#order-standard_cart #continueShopping:focus,
#order-standard_cart #continueShopping:active,
#order-standard_cart .btn-continue-shopping:focus,
#order-standard_cart .btn-continue-shopping:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* --------------------------------------------------------------------------
   7b. Product Info Box (fix white background)
   -------------------------------------------------------------------------- */
#order-standard_cart .product-info {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.05) 0%, rgba(0, 176, 255, 0.05) 50%, rgba(124, 77, 255, 0.05) 100%) !important;
    background-color: transparent !important;
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
    border-top: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
    border-bottom: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
    border-radius: var(--c4n-radius, 10px);
    padding: 1.5rem;
    color: var(--c4n-text-muted, #8b949e);
}
#order-standard_cart .product-info .product-title {
    color: var(--c4n-text, #e6edf3);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
#order-standard_cart .product-info ul,
#order-standard_cart .product-info li {
    color: var(--c4n-text-muted, #8b949e);
}

/* --------------------------------------------------------------------------
   7c. Billing Cycle Buttons
   -------------------------------------------------------------------------- */
.c4n-cycle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.c4n-cycle-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    border-radius: var(--c4n-radius, 10px);
    background: var(--c4n-card-bg, rgba(22, 27, 34, 0.8));
    color: var(--c4n-text-muted, #8b949e);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.c4n-cycle-btn:hover {
    border-color: var(--c4n-primary, #00c853);
    color: var(--c4n-primary, #00c853);
    background: rgba(0, 200, 83, 0.05);
}
.c4n-cycle-btn.active {
    border-color: var(--c4n-primary, #00c853);
    background: rgba(0, 200, 83, 0.1);
    color: var(--c4n-primary, #00c853);
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.2);
}
.c4n-cycle-btn:focus,
.c4n-cycle-btn:focus-visible,
.c4n-cycle-btn:active {
    outline: none !important;
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.2) !important;
    border-color: var(--c4n-primary, #00c853) !important;
}

/* --------------------------------------------------------------------------
   8. Sidebar Categories
   -------------------------------------------------------------------------- */
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .cart-sidebar .card {
    background: rgba(22, 27, 34, 0.8);
    border-color: rgba(48, 54, 61, 0.6);
}

#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .cart-sidebar .card-header {
    background: transparent;
    border-color: rgba(48, 54, 61, 0.4);
    color: var(--c4n-text, #e6edf3);
}

#order-standard_cart .cart-sidebar .panel-heading h3,
#order-standard_cart .cart-sidebar .card-header h3 {
    color: var(--c4n-text, #e6edf3);
    font-weight: 600;
}

#order-standard_cart .sidebar-categories .list-group-item,
#order-standard_cart .cart-sidebar .list-group-item {
    background: transparent;
    border-color: rgba(48, 54, 61, 0.4);
    color: #b1bac4;
    transition: all 0.2s ease;
}

#order-standard_cart .sidebar-categories .list-group-item:hover,
#order-standard_cart .cart-sidebar .list-group-item:hover {
    background: rgba(0, 200, 83, 0.05);
    color: #00c853;
}

#order-standard_cart .sidebar-categories .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border-color: rgba(48, 54, 61, 0.4);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. Generic Buttons
   -------------------------------------------------------------------------- */
#order-standard_cart .btn-default,
#order-standard_cart .btn-light,
#order-standard_cart button[name="validatepromo"] {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(48, 54, 61, 0.8);
    color: #e6edf3;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#order-standard_cart .btn-default:hover,
#order-standard_cart .btn-light:hover,
#order-standard_cart button[name="validatepromo"]:hover {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.3);
    color: #00c853;
}

/* --------------------------------------------------------------------------
   9a. Checkout Layout Spacing
   -------------------------------------------------------------------------- */
#order-standard_cart #containerExistingUserSignin {
    margin-bottom: 15px !important;
}

#order-standard_cart #containerNewUserSignup {
    margin-top: 15px !important;
}

#order-standard_cart .already-registered {
    margin-bottom: 15px !important;
}

#order-standard_cart #btnAlreadyRegistered,
#order-standard_cart .btn-info#btnAlreadyRegistered,
#order-standard_cart .btn.btn-info#btnAlreadyRegistered {
    background: linear-gradient(135deg, #00c853, #00b347) !important;
    background-color: transparent !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
}

#order-standard_cart #btnAlreadyRegistered:hover,
#order-standard_cart .btn-info#btnAlreadyRegistered:hover {
    background: linear-gradient(135deg, #00e676, #00c853) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.5);
}

/* --------------------------------------------------------------------------
   9b. Checkout Cards (same style as register.php)
   -------------------------------------------------------------------------- */
#order-standard_cart .c4n-checkout-card {
    background: rgba(15, 20, 28, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(48, 54, 61, 0.6) !important;
    border-radius: var(--c4n-radius, 10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: visible;
    position: relative;
}

/* Descending z-index so dropdowns in earlier cards overlay later cards */
#order-standard_cart .c4n-checkout-card:nth-of-type(1) { z-index: 12; }
#order-standard_cart .c4n-checkout-card:nth-of-type(2) { z-index: 11; }
#order-standard_cart .c4n-checkout-card:nth-of-type(3) { z-index: 10; }
#order-standard_cart .c4n-checkout-card:nth-of-type(4) { z-index: 9; }
#order-standard_cart .c4n-checkout-card:nth-of-type(5) { z-index: 8; }
#order-standard_cart .c4n-checkout-card:nth-of-type(6) { z-index: 7; }
#order-standard_cart .c4n-checkout-card:nth-of-type(7) { z-index: 6; }
#order-standard_cart .c4n-checkout-card:nth-of-type(8) { z-index: 5; }
#order-standard_cart .c4n-checkout-card:nth-of-type(9) { z-index: 4; }
#order-standard_cart .c4n-checkout-card:nth-of-type(10) { z-index: 3; }
#order-standard_cart .c4n-checkout-card:nth-of-type(11) { z-index: 2; }
#order-standard_cart .c4n-checkout-card:nth-of-type(12) { z-index: 1; }

#order-standard_cart .c4n-checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c4n-primary), var(--c4n-secondary), transparent) !important;
    border-radius: 0 0 2px 2px;
    opacity: 1 !important;
    z-index: 1;
}

#order-standard_cart .c4n-checkout-card .card-title {
    color: #f0f6fc !important;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

#order-standard_cart .c4n-checkout-card .card-body {
    background: transparent !important;
}

#order-standard_cart .c4n-checkout-card label {
    color: #c9d1d9 !important;
    font-weight: 500;
}

#order-standard_cart .c4n-checkout-card .field-icon i {
    color: #8b949e !important;
}

#order-standard_cart .c4n-checkout-card .form-control,
#order-standard_cart .c4n-checkout-card select.form-control,
#order-standard_cart .c4n-checkout-card .field {
    background: rgba(13, 17, 23, 0.6) !important;
    border: 1px solid rgba(48, 54, 61, 0.8) !important;
    color: #e6edf3 !important;
    height: auto !important;
}

/* prepend-icon: icon positioning + field padding (mirroring #registration from theme.min.css) */
#order-standard_cart .c4n-checkout-card .prepend-icon {
    position: relative;
}

#order-standard_cart .c4n-checkout-card .prepend-icon .field-icon {
    position: absolute;
    top: 0;
    z-index: 4;
    width: 42px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    pointer-events: none;
}

#order-standard_cart .c4n-checkout-card .prepend-icon .field:not([type="tel"]),
#order-standard_cart .c4n-checkout-card .prepend-icon .form-control:not([type="tel"]),
#order-standard_cart .c4n-checkout-card .prepend-icon select.field {
    padding-left: 36px;
}

/* intl-tel-input: restore correct padding-left (overridden by #order-standard_cart .form-control padding shorthand) */
#order-standard_cart .intl-tel-input.allow-dropdown input { padding-left: 52px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.iti-sdc-2 input { padding-left: 66px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-2 input { padding-left: 76px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.iti-sdc-3 input { padding-left: 74px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 input { padding-left: 84px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.iti-sdc-4 input { padding-left: 82px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input { padding-left: 92px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.iti-sdc-5 input { padding-left: 90px !important; }
#order-standard_cart .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-5 input { padding-left: 100px !important; }

/* intl-tel-input: dark theme dropdown */
#order-standard_cart .c4n-checkout-card .intl-tel-input .country-list,
#order-standard_cart .c4n-checkout-card .intl-tel-input .selected-flag,
#order-standard_cart .intl-tel-input .country-list {
    background: #161b22 !important;
    border-color: rgba(48, 54, 61, 0.8) !important;
    color: #e6edf3 !important;
}

#order-standard_cart .c4n-checkout-card .intl-tel-input .country-list .country:hover,
#order-standard_cart .c4n-checkout-card .intl-tel-input .country-list .country.highlight {
    background: rgba(0, 200, 83, 0.1) !important;
}

#order-standard_cart .c4n-checkout-card .intl-tel-input .country-list .country .dial-code {
    color: #8b949e !important;
}

/* intl-tel-input: must overflow outside card */
#order-standard_cart .c4n-checkout-card .card-body {
    overflow: visible !important;
}

.iti--container {
    z-index: 99999 !important;
}

#order-standard_cart .c4n-checkout-card .form-control:focus,
#order-standard_cart .c4n-checkout-card .field:focus {
    border-color: var(--c4n-primary, #00c853) !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2), 0 0 20px rgba(0, 200, 83, 0.1) !important;
}

#order-standard_cart .c4n-checkout-card .form-control::placeholder,
#order-standard_cart .c4n-checkout-card .field::placeholder {
    color: #484f58 !important;
}

#order-standard_cart .c4n-checkout-card select option {
    background: #161b22;
    color: #e6edf3;
}

#order-standard_cart .c4n-checkout-card .text-muted,
#order-standard_cart .c4n-checkout-card p {
    color: #8b949e !important;
}

#order-standard_cart .c4n-checkout-card .radio-inline,
#order-standard_cart .c4n-checkout-card .checkbox-inline {
    color: #c9d1d9 !important;
}

/* Bootstrap Switch: Mailing list toggle (dark mode) */
#order-standard_cart .c4n-checkout-card .bootstrap-switch {
    background: rgba(13, 17, 23, 0.6);
    border-color: rgba(48, 54, 61, 0.8);
    border-radius: 6px;
    min-width: 100px;
}

#order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-handle-on,
#order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-handle-off {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
}

#order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-label {
    background: rgba(22, 27, 34, 0.8);
    color: #8b949e;
}

/* "No" state (off) */
#order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-handle-off {
    background: rgba(48, 54, 61, 0.8);
    color: #8b949e;
}

/* "Yes" state (on) — green */
#order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
    background: var(--c4n-primary, #00c853);
    color: #000;
}

/* Light mode */
[data-theme="light"] #order-standard_cart .c4n-checkout-card .bootstrap-switch {
    background: #f3f4f6;
    border-color: #d1d5db;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-label {
    background: #e5e7eb;
    color: #6b7280;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-handle-off {
    background: #d1d5db;
    color: #6b7280;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
    background: var(--c4n-primary, #00c853);
    color: #000;
}

/* No hover lift on checkout cards */
#order-standard_cart .c4n-checkout-card:hover {
    transform: none !important;
}

/* Complete Order button */
#order-standard_cart #btnCompleteOrder {
    background: linear-gradient(135deg, #00c853, #00b347) !important;
    border: none !important;
    color: #000 !important;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.85rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
}

#order-standard_cart #btnCompleteOrder:hover {
    background: linear-gradient(135deg, #00e676, #00c853) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
}

/* TOS link */
#order-standard_cart .checkbox-inline a {
    color: #00c853 !important;
}

#order-standard_cart .checkbox-inline a:hover {
    color: #00e676 !important;
}

/* Alert inside checkout cards */
#order-standard_cart .c4n-checkout-card .alert-success {
    background: rgba(0, 200, 83, 0.1) !important;
    border-color: rgba(0, 200, 83, 0.3) !important;
    color: #00c853 !important;
}

/* Light mode checkout cards */
[data-theme="light"] #order-standard_cart .c4n-checkout-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .card-title {
    color: #1f2937 !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card label {
    color: #374151 !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .form-control,
[data-theme="light"] #order-standard_cart .c4n-checkout-card .field {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
    height: auto !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .field-icon i {
    color: #6b7280 !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .intl-tel-input .country-list,
[data-theme="light"] #order-standard_cart .c4n-checkout-card .intl-tel-input .selected-flag {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .intl-tel-input .country-list .country:hover,
[data-theme="light"] #order-standard_cart .c4n-checkout-card .intl-tel-input .country-list .country.highlight {
    background: rgba(0, 200, 83, 0.08) !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card .form-control::placeholder,
[data-theme="light"] #order-standard_cart .c4n-checkout-card .field::placeholder {
    color: #9ca3af !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card p,
[data-theme="light"] #order-standard_cart .c4n-checkout-card .text-muted {
    color: #6b7280 !important;
}

[data-theme="light"] #order-standard_cart .c4n-checkout-card select option {
    background: #ffffff;
    color: #1f2937;
}

/* --------------------------------------------------------------------------
   10. Promotion Code
   -------------------------------------------------------------------------- */
#order-standard_cart .view-cart-promotion-code {
    color: #10b981;
    font-weight: 500;
}

#order-standard_cart .promo-container,
#order-standard_cart .promo-code {
    background: rgba(22, 27, 34, 0.92);
}

#order-standard_cart a[href="#"] {
    color: #00c853;
}

/* --------------------------------------------------------------------------
   10b. Override all.css white backgrounds/borders for dark theme
   -------------------------------------------------------------------------- */
#order-standard_cart .sub-heading {
    border-top-color: var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
}
#order-standard_cart .order-summary {
    background-color: transparent;
    border-bottom-color: var(--c4n-border, rgba(48, 54, 61, 0.6));
}
#order-standard_cart .summary-container {
    background-color: var(--c4n-card-bg, rgba(22, 27, 34, 0.8));
    border: 1px solid var(--c4n-border, rgba(48, 54, 61, 0.6));
    color: var(--c4n-text, #e6edf3);
}
#order-standard_cart .order-summary .summary-totals {
    border-top-color: var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
    border-bottom-color: var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
}
#order-standard_cart .panel-taxes {
    background: var(--c4n-card-bg, rgba(22, 27, 34, 0.8)) !important;
    border-color: var(--c4n-border, rgba(48, 54, 61, 0.6)) !important;
    color: var(--c4n-text, #e6edf3);
}

/* --------------------------------------------------------------------------
   11. Legacy Product Card Styling (fallback for non-c4n pages)
   -------------------------------------------------------------------------- */
#order-standard_cart .product {
    background: var(--c4n-card-bg, rgba(22, 27, 34, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

#order-standard_cart .product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c853, #00b0ff, #7c4dff);
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

#order-standard_cart .product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 200, 83, 0.08);
}

#order-standard_cart .product header {
    background: rgba(22, 27, 34, 0.6);
    color: var(--c4n-text, #e6edf3);
    border-bottom: 1px solid rgba(48, 54, 61, 0.4);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

#order-standard_cart .product .product-desc {
    color: var(--c4n-text-secondary, #b1bac4);
    padding: 1rem 1.25rem;
}

#order-standard_cart .product .product-desc ul {
    padding-left: 0;
    list-style: none;
}

#order-standard_cart .product .product-desc ul li {
    padding: 0.25rem 0;
    color: var(--c4n-text-secondary, #b1bac4);
}

#order-standard_cart .product .product-desc ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    color: #00c853;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

#order-standard_cart .product .product-desc ul li .feature-value {
    font-weight: 600;
    color: var(--c4n-text, #e6edf3);
}

#order-standard_cart .product footer {
    background: rgba(22, 27, 34, 0.6);
    border-top: 1px solid rgba(48, 54, 61, 0.4);
    padding: 1rem 1.25rem;
}

#order-standard_cart .product .product-pricing {
    color: var(--c4n-text, #e6edf3);
}

#order-standard_cart .product .product-pricing .price {
    color: #00c853;
    font-weight: 700;
    font-size: 1.5rem;
}

#order-standard_cart .product .btn-order-now {
    background: linear-gradient(135deg, #00c853, #00b347);
    border: none;
    color: #000;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
}

#order-standard_cart .product .btn-order-now:hover {
    background: linear-gradient(135deg, #00e676, #00c853);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 200, 83, 0.5);
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .c4n-products-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .c4n-store-header h1 {
        font-size: 1.85rem;
    }
}

@media (max-width: 767px) {
    .c4n-product-header {
        padding: 1.5rem 1.5rem 0;
    }

    .c4n-product-desc {
        padding: 0.75rem 1.5rem 0;
    }

    .c4n-product-features {
        padding: 1rem 1.5rem 0;
    }

    .c4n-product-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .c4n-price-amount {
        font-size: 2rem;
    }

    .c4n-store-header h1 {
        font-size: 1.65rem;
    }
}

/* --------------------------------------------------------------------------
   13. Light Mode Overrides — COMPREHENSIVE
   -------------------------------------------------------------------------- */

/* --- 13a. Base Layout --- */
[data-theme="light"] #order-standard_cart {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .cart-body {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .cart-sidebar {
    background: #fff;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .header-lined h1 {
    color: #1f2937;
    border-bottom-color: #e5e7eb;
}

/* --- 13b. Store Header --- */
[data-theme="light"] .c4n-store-header h1 {
    color: #1f2937;
}
[data-theme="light"] .c4n-store-tagline {
    color: #6b7280;
}

/* --- 13c. Product Cards --- */
[data-theme="light"] .c4n-product-card {
    background: #fff;
    border-color: #e5e7eb;
}
[data-theme="light"] .c4n-product-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 200, 83, 0.06);
}
[data-theme="light"] .c4n-product-header h3 {
    color: #1f2937;
}
[data-theme="light"] .c4n-product-stock {
    color: #6b7280;
}
[data-theme="light"] .c4n-product-desc {
    color: #6b7280;
}
[data-theme="light"] .c4n-product-features li,
[data-theme="light"] .c4n-product-desc ul li {
    color: #4b5563;
    border-color: #f3f4f6;
}
[data-theme="light"] .c4n-product-features li strong {
    color: #1f2937;
}
[data-theme="light"] .c4n-product-footer {
    border-color: #f3f4f6;
}
[data-theme="light"] .c4n-price-amount {
    text-shadow: none;
}
[data-theme="light"] .c4n-price-label,
[data-theme="light"] .c4n-price-cycle,
[data-theme="light"] .c4n-price-setup {
    color: #6b7280;
}

/* --- 13d. Configure Product Page --- */
[data-theme="light"] #order-standard_cart .product-info {
    background: rgba(0, 200, 83, 0.03) !important;
    border-color: #e5e7eb !important;
    color: #6b7280;
}
[data-theme="light"] #order-standard_cart .product-info .product-title {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .product-info ul,
[data-theme="light"] #order-standard_cart .product-info li,
[data-theme="light"] #order-standard_cart .product-info p {
    color: #6b7280;
}
[data-theme="light"] #order-standard_cart .sub-heading {
    border-bottom-color: #e5e7eb;
    border-top-color: #e5e7eb;
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .sub-heading span {
    background: #f8f9fa !important;
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .product-configurable-options {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* --- 13e. Form Controls --- */
[data-theme="light"] #order-standard_cart .form-control,
[data-theme="light"] #order-standard_cart select.form-control,
[data-theme="light"] #order-standard_cart input.form-control,
[data-theme="light"] #order-standard_cart textarea.form-control {
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
}
[data-theme="light"] #order-standard_cart .form-control:focus {
    border-color: #00c853 !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15) !important;
}
[data-theme="light"] #order-standard_cart .form-control::placeholder {
    color: #9ca3af !important;
}
[data-theme="light"] #order-standard_cart label {
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart select option {
    background-color: #fff;
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .field-icon {
    color: #6b7280;
}
[data-theme="light"] #order-standard_cart .field-help-text {
    color: #6b7280;
}

/* --- 13f. Addon Panels --- */
[data-theme="light"] #order-standard_cart .panel-addon {
    background: #fff;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .panel-addon .panel-body,
[data-theme="light"] #order-standard_cart .panel-addon .card-body {
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart .panel-addon label {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .panel-price {
    background: rgba(0, 200, 83, 0.03);
}
[data-theme="light"] #order-standard_cart .panel-add {
    color: #6b7280;
}

/* --- 13g. View Cart Items --- */
[data-theme="light"] #order-standard_cart .view-cart-items-header {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08), rgba(0, 176, 255, 0.05)) !important;
    border-color: #e5e7eb !important;
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart .view-cart-items .item {
    background: #fff !important;
    border-color: #e5e7eb !important;
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .view-cart-items .item .item-title {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .view-cart-items .item .item-group {
    color: #6b7280;
}
[data-theme="light"] #order-standard_cart .view-cart-items .item .item-price span:first-child {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .view-cart-items .item .item-price .cycle {
    color: #6b7280;
}
[data-theme="light"] #order-standard_cart .view-cart-items td {
    color: #4b5563;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .view-cart-items th {
    background: #f9fafb;
    color: #1f2937;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .view-cart-empty {
    background: #fff;
    border-color: #e5e7eb;
    color: #6b7280;
}

/* --- 13h. View Cart Tabs (Promo Code / Estimate Taxes) --- */
/* Dark mode explicit (override WHMCS all.min.css defaults) */
[data-theme="dark"] #order-standard_cart .view-cart-tabs {
    background: rgba(22, 27, 34, 0.9) !important;
    border-color: rgba(48, 54, 61, 0.6) !important;
}
[data-theme="dark"] #order-standard_cart .view-cart-tabs .tab-content,
[data-theme="dark"] #order-standard_cart .tab-content {
    background: rgba(22, 27, 34, 0.9) !important;
    background-color: rgba(22, 27, 34, 0.9) !important;
    color: #e6edf3 !important;
    border: none !important;
}
[data-theme="dark"] #order-standard_cart .promo input.form-control,
[data-theme="dark"] #order-standard_cart .tab-pane input.form-control {
    background: rgba(13, 17, 23, 0.8) !important;
    border: 1px solid rgba(48, 54, 61, 0.8) !important;
    color: #e6edf3 !important;
}
[data-theme="dark"] #order-standard_cart .promo .input-group-prepend,
[data-theme="dark"] #order-standard_cart .promo .input-group-text,
[data-theme="dark"] #order-standard_cart .tab-pane .input-group-prepend,
[data-theme="dark"] #order-standard_cart .tab-pane .input-group-text {
    background: rgba(22, 27, 34, 0.8) !important;
    border-color: rgba(48, 54, 61, 0.8) !important;
    color: #8b949e !important;
}
[data-theme="dark"] #order-standard_cart .promo button,
[data-theme="dark"] #order-standard_cart .tab-pane button[name="validatepromo"],
[data-theme="dark"] #order-standard_cart button[name="validatepromo"] {
    background: rgba(22, 27, 34, 0.9) !important;
    border: 1px solid rgba(48, 54, 61, 0.8) !important;
    color: #e6edf3 !important;
}
/* Light mode */
[data-theme="light"] #order-standard_cart .view-cart-tabs {
    background: #fff !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] #order-standard_cart .view-cart-tabs .tab-content,
[data-theme="light"] #order-standard_cart .tab-content {
    background: #fff !important;
    background-color: #fff !important;
    color: #1f2937 !important;
    border: none !important;
}
[data-theme="light"] #order-standard_cart .view-cart-tabs .nav-tabs {
    background: #f9fafb;
    border-bottom-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .view-cart-tabs .nav-tabs .nav-link,
[data-theme="light"] #order-standard_cart .nav-tabs .nav-link {
    color: #6b7280;
    border: none;
    background: transparent;
}
[data-theme="light"] #order-standard_cart .view-cart-tabs .nav-tabs .nav-link:hover,
[data-theme="light"] #order-standard_cart .nav-tabs .nav-link:hover {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] #order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active,
[data-theme="light"] #order-standard_cart .nav-tabs .nav-link.active {
    background: #fff !important;
    color: #00c853 !important;
    border: none;
    border-bottom: 2px solid #00c853;
}
[data-theme="light"] #order-standard_cart .promo input.form-control,
[data-theme="light"] #order-standard_cart .tab-pane input.form-control {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
}
[data-theme="light"] #order-standard_cart .promo .input-group-prepend,
[data-theme="light"] #order-standard_cart .promo .input-group-text,
[data-theme="light"] #order-standard_cart .tab-pane .input-group-prepend,
[data-theme="light"] #order-standard_cart .tab-pane .input-group-text {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
}
[data-theme="light"] #order-standard_cart .tab-pane label {
    color: #4b5563;
}

/* --- 13i. Promo Buttons --- */
[data-theme="light"] #order-standard_cart .promo button,
[data-theme="light"] #order-standard_cart .tab-pane button[name="validatepromo"],
[data-theme="light"] #order-standard_cart button[name="validatepromo"] {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
}
[data-theme="light"] #order-standard_cart .promo button:hover,
[data-theme="light"] #order-standard_cart button[name="validatepromo"]:hover {
    background: rgba(0, 200, 83, 0.05) !important;
    border-color: rgba(0, 200, 83, 0.3) !important;
    color: #00c853 !important;
}
[data-theme="light"] #order-standard_cart .view-cart-promotion-code {
    color: #059669;
}
[data-theme="light"] #order-standard_cart .promo-container,
[data-theme="light"] #order-standard_cart .promo-code {
    background: #fff;
}

/* --- 13j. Order Summary (Right Sidebar Box) --- */
[data-theme="light"] #order-standard_cart .order-summary,
[data-theme="light"] #order-standard_cart .secondary-cart-sidebar .order-summary {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    color: #1f2937 !important;
}
[data-theme="light"] #order-standard_cart .order-summary h2 {
    color: #1f2937 !important;
    background: transparent !important;
    background-color: transparent !important;
}
[data-theme="light"] #order-standard_cart .summary-container {
    background: #fff !important;
    background-color: #fff !important;
    border: none !important;
    color: #1f2937 !important;
}
[data-theme="light"] #order-standard_cart .order-summary .subtotal,
[data-theme="light"] #order-standard_cart .order-summary .subtotal span {
    color: #4b5563;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .order-summary .bordered-totals,
[data-theme="light"] #order-standard_cart .order-summary .bordered-totals span {
    color: #4b5563;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .order-summary .recurring-totals,
[data-theme="light"] #order-standard_cart .order-summary .recurring-totals span {
    color: #4b5563;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .order-summary .total-due-today,
[data-theme="light"] #order-standard_cart .order-summary .total-due-today span {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .order-summary .total-due-today .amt {
    text-shadow: none;
}
[data-theme="light"] #order-standard_cart .order-summary .pull-right,
[data-theme="light"] #order-standard_cart .order-summary .float-right,
[data-theme="light"] #order-standard_cart .order-summary span,
[data-theme="light"] #order-standard_cart .order-summary p,
[data-theme="light"] #order-standard_cart .order-summary td {
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart .order-summary .summary-totals {
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .order-summary .express-checkout {
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .order-summary .btn-checkout,
[data-theme="light"] #order-standard_cart .order-summary .btn-primary,
[data-theme="light"] #order-standard_cart .order-summary .btn-success {
    color: #fff !important;
}
[data-theme="light"] #order-standard_cart .order-summary a,
[data-theme="light"] #order-standard_cart #continueShopping,
[data-theme="light"] #order-standard_cart .btn-continue-shopping {
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart .order-summary a:hover,
[data-theme="light"] #order-standard_cart #continueShopping:hover {
    color: #00c853;
}
[data-theme="light"] #order-standard_cart .panel-taxes {
    background: #fff !important;
    border-color: #e5e7eb !important;
    color: #1f2937;
}

/* --- 13k. Sidebar Categories --- */
[data-theme="light"] #order-standard_cart .cart-sidebar .panel,
[data-theme="light"] #order-standard_cart .cart-sidebar .card {
    background: #fff;
    border-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .cart-sidebar .panel-heading,
[data-theme="light"] #order-standard_cart .cart-sidebar .card-header {
    border-color: #e5e7eb;
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .cart-sidebar .panel-heading h3,
[data-theme="light"] #order-standard_cart .cart-sidebar .card-header h3 {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .sidebar-categories .list-group-item,
[data-theme="light"] #order-standard_cart .cart-sidebar .list-group-item {
    border-color: #f3f4f6;
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart .sidebar-categories .list-group-item:hover,
[data-theme="light"] #order-standard_cart .cart-sidebar .list-group-item:hover {
    background: rgba(0, 200, 83, 0.05);
    color: #00c853;
}
[data-theme="light"] #order-standard_cart .sidebar-categories .list-group-item.active,
[data-theme="light"] #order-standard_cart .cart-sidebar .list-group-item.active {
    background: rgba(0, 200, 83, 0.08);
    color: #00c853;
    border-color: #f3f4f6;
}

/* --- 13l. Generic Buttons --- */
[data-theme="light"] #order-standard_cart .btn-default,
[data-theme="light"] #order-standard_cart .btn-light {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .btn-default:hover,
[data-theme="light"] #order-standard_cart .btn-light:hover {
    background: rgba(0, 200, 83, 0.05);
    color: #00c853;
}

/* --- 13m. Legacy Product Cards --- */
[data-theme="light"] #order-standard_cart .product {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] #order-standard_cart .product:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 200, 83, 0.06);
}
[data-theme="light"] #order-standard_cart .product header {
    background: #f9fafb;
    color: #1f2937;
    border-bottom-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .product .product-desc {
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart .product .product-desc ul li {
    color: #4b5563;
}
[data-theme="light"] #order-standard_cart .product .product-desc ul li .feature-value {
    color: #1f2937;
}
[data-theme="light"] #order-standard_cart .product footer {
    background: #f9fafb;
    border-top-color: #e5e7eb;
}
[data-theme="light"] #order-standard_cart .product .product-pricing {
    color: #1f2937;
}

/* --- 13n. Billing Cycle Buttons --- */
[data-theme="light"] .c4n-cycle-btn {
    background: #fff;
    border-color: #e5e7eb;
    color: #6b7280;
}
[data-theme="light"] .c4n-cycle-btn:hover {
    border-color: #00c853;
    color: #00c853;
    background: rgba(0, 200, 83, 0.03);
}
[data-theme="light"] .c4n-cycle-btn.active {
    border-color: #00c853;
    background: rgba(0, 200, 83, 0.08);
    color: #00c853;
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.1);
}

/* --- 13o. Alerts — slightly softer in light mode --- */
[data-theme="light"] #order-standard_cart .alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #b45309;
}
[data-theme="light"] #order-standard_cart .alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}
[data-theme="light"] #order-standard_cart .alert-success {
    background: rgba(0, 200, 83, 0.08);
    border-color: rgba(0, 200, 83, 0.2);
    color: #059669;
}
[data-theme="light"] #order-standard_cart .alert-info {
    background: rgba(0, 176, 255, 0.08);
    border-color: rgba(0, 176, 255, 0.2);
    color: #0284c7;
}

/* --- 13p. Empty Cart --- */
[data-theme="light"] #order-standard_cart .empty-cart .btn-link,
[data-theme="light"] #order-standard_cart .empty-cart .btn-link span,
[data-theme="light"] #order-standard_cart .empty-cart .btn-link i,
[data-theme="light"] #order-standard_cart #btnEmptyCart {
    color: #dc2626 !important;
}

/* --------------------------------------------------------------------------
   14. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .c4n-product-card,
    .c4n-btn-order,
    #order-standard_cart .product,
    #order-standard_cart .product .btn-order-now,
    #order-standard_cart .order-summary .btn-checkout {
        transition: none;
    }
}