/* ============================================================
   standard_cart_v3 — Sales-Optimized UI
   ============================================================ */
#order-standard_cart {
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Page Titles --- */
#order-standard_cart .header-lined { border: none; margin-bottom: 24px; padding: 0; }
#order-standard_cart .header-lined h1 {
    font-size: 24px; font-weight: 800; color: #0f1d36; border: none; padding: 0; margin: 0 0 4px;
}

/* --- Section Dividers --- */
#order-standard_cart .sub-heading { border-top: 2px solid #f0f2f6; margin: 28px 0; }
#order-standard_cart .sub-heading span {
    font-size: 14px; font-weight: 800; color: #0f1d36;
    background: #f5f6f8; padding: 0 14px; border-radius: 6px;
}

/* --- Product Info Banner --- */
#order-standard_cart .product-info {
    background: linear-gradient(135deg, #f8faff, #eef3fb);
    border: 1px solid #dce6f5; border-radius: 14px;
    padding: 22px 26px; margin-bottom: 28px;
}
#order-standard_cart .product-info .product-title {
    font-size: 20px; font-weight: 800; color: #0f1d36; margin: 0 0 6px;
}
#order-standard_cart .product-info p { font-size: 14px; color: #5a6d8a; line-height: 1.6; margin: 0; }

/* --- Form Fields --- */
#order-standard_cart .field, #order-standard_cart .form-control {
    border: 1.5px solid #dee3e8; border-radius: 10px;
    padding: 11px 16px; font-size: 14px; color: #2e3442;
    transition: border-color .2s ease, box-shadow .2s ease;
    height: auto; background: #fff;
}
#order-standard_cart .form-control:focus, #order-standard_cart .field:focus {
    border-color: #004fac; box-shadow: 0 0 0 4px rgba(0,79,172,.08); outline: none;
}
#order-standard_cart label {
    font-size: 13px; font-weight: 700; color: #2e3442; margin-bottom: 6px;
}
#order-standard_cart select.form-control {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6d8a' d='M6 8.825L.587 3.412l.825-.825L6 7.175l4.587-4.588.826.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
    padding-right: 36px;
}

/* --- Billing Cycle Selector --- */
#order-standard_cart .select-inline { max-width: 380px; }

/* --- Server Config (hostname/password) --- */
#order-standard_cart .btn-outline-secondary {
    background: #f5f6f8; color: #5a6d8a; border: 1px solid #dee3e8;
    border-radius: 8px; font-weight: 600; font-size: 13px; padding: 7px 14px;
    transition: all .2s ease;
}
#order-standard_cart .btn-outline-secondary:hover {
    background: #e8f0fe; color: #004fac; border-color: #004fac;
}

/* --- Configurable Options Grid --- */
#order-standard_cart .product-configurable-options .form-group {
    background: #fff; border: 1px solid #edf0f5; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 14px;
    transition: border-color .2s ease;
}
#order-standard_cart .product-configurable-options .form-group:hover {
    border-color: #d0ddef;
}

/* --- Addon Panels --- */
#order-standard_cart .panel-addon {
    background: #fff; border: 1px solid #edf0f5; border-radius: 14px;
    overflow: hidden; transition: all .25s ease; margin-bottom: 16px;
    text-align: center; font-size: 14px;
}
#order-standard_cart .panel-addon:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.06); border-color: #d0ddef; cursor: pointer;
    transform: translateY(-2px);
}
#order-standard_cart .panel-addon .panel-body { padding: 20px; border-radius: 14px 14px 0 0; }
#order-standard_cart .panel-addon .panel-body label { font-size: 15px; font-weight: 700; color: #0f1d36; }
#order-standard_cart .panel-addon .panel-price {
    padding: 12px 20px; background: #f8faff; font-weight: 700; color: #0f1d36; font-size: 14px;
}
#order-standard_cart .panel-addon .panel-add {
    display: block; padding: 12px 20px;
    background: linear-gradient(135deg, #1bc577, #15a865);
    color: #fff; font-weight: 700; font-size: 14px;
    border-radius: 0 0 14px 14px; transition: opacity .2s ease;
}
#order-standard_cart .panel-addon .panel-add:hover { opacity: .9; text-decoration: none; }
#order-standard_cart .panel-addon-selected { border-color: #004fac; box-shadow: 0 0 0 2px #004fac; }
#order-standard_cart .panel-addon-selected .panel-price { background: #004fac; color: #fff; }
#order-standard_cart .panel-addon-selected .panel-add { background: #ffeef0; color: #e74c3c; }

/* --- Help Bar --- */
.cp20-help-bar {
    display: flex; align-items: center; gap: 10px;
    background: #f8faff; border: 1px solid #edf0f5; border-radius: 12px;
    padding: 16px 22px; font-size: 14px; font-weight: 600; color: #5a6d8a;
    margin-top: 24px;
}
.cp20-help-bar i { font-size: 20px; color: #004fac; flex-shrink: 0; }
.cp20-help-bar a { color: #004fac; font-weight: 700; text-decoration: none; }
.cp20-help-bar a:hover { text-decoration: underline; }

/* =============================================
   ORDER SUMMARY SIDEBAR (Sales-Optimized)
   ============================================= */
#order-standard_cart .order-summary {
    background: #fff; border: 1px solid #edf0f5;
    border-radius: 16px; padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.05); overflow: hidden;
    border-bottom: none;
}
#order-standard_cart .order-summary h2 {
    margin: 0; padding: 18px 24px;
    background: #0f1d36; color: #fff;
    text-align: left; font-size: 15px; font-weight: 700;
    letter-spacing: .3px;
    border-bottom: none;
}
#order-standard_cart .summary-container {
    background: #fff; padding: 0; border-radius: 0; min-height: auto; font-size: 14px;
}

/* Order Summary Line Items */
.os20-product {
    padding: 20px 24px 14px; border-bottom: 1px solid #f0f2f6;
}
.os20-product-name {
    font-size: 16px; font-weight: 800; color: #0f1d36;
}
.os20-product-group {
    font-size: 12px; color: #8a94a6; font-weight: 500;
    margin-top: 3px;
}
.os20-breakdown { padding: 0 24px; }
.os20-line {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid #f8f9fb;
    font-size: 13px; color: #5a6d8a; font-weight: 500; gap: 12px;
}
.os20-line:last-child { border-bottom: none; }
.os20-price { font-weight: 700; color: #2e3442; white-space: nowrap; text-align: right; }
.os20-line-sub { padding-left: 8px; font-size: 12px; color: #8a94a6; }
.os20-sub-icon { color: #b0b9c8; margin-right: 4px; font-size: 10px; }
.os20-line-addon .os20-addon-icon { color: #01aa5d; margin-right: 4px; font-size: 11px; }
.os20-line-tax { color: #8a94a6; font-size: 12px; }
.os20-domain { color: #004fac; font-weight: 600; }
.os20-cycle { display: block; color: #8a94a6; font-weight: 400; font-size: 11px; }
.os20-remove {
    color: #e74c3c; opacity: .4; font-size: 12px;
    margin-left: 8px; transition: opacity .2s ease; text-decoration: none;
}
.os20-remove:hover { opacity: 1; }

/* Totals Section */
.os20-totals {
    padding: 12px 24px; border-top: 1px solid #f0f2f6; border-bottom: 1px solid #f0f2f6;
    margin-top: 4px;
}
.os20-totals .os20-line { border-bottom: none; padding: 6px 0; }
.os20-totals .os20-price { font-weight: 700; }

/* Total Due Box */
.os20-total-box {
    background: linear-gradient(135deg, #004fac, #0066d6);
    padding: 22px 24px; text-align: center;
}
.os20-total-label {
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,.7);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.os20-total-amount {
    font-size: 30px; font-weight: 800; color: #fff;
}

/* Trust Signals — conversion driver */
.os20-trust {
    padding: 16px 24px; display: flex; flex-direction: column; gap: 8px;
}
.os20-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; color: #5a6d8a;
}
.os20-trust-item i { color: #01aa5d; font-size: 13px; width: 16px; text-align: center; }

/* Continue Button */
.cp20-continue-btn {
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 16px;
    background: linear-gradient(135deg, #004fac, #0066d6) !important;
    color: #fff !important; border: none !important; border-radius: 12px !important;
    padding: 14px 24px !important; font-size: 16px !important; font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0,79,172,.2) !important;
    transition: all .25s ease !important; cursor: pointer;
}
.cp20-continue-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,79,172,.3) !important;
}

/* Secure Note */
.cp20-secure-note {
    text-align: center; margin-top: 12px;
    font-size: 12px; font-weight: 600; color: #8a94a6;
}
.cp20-secure-note i { color: #01aa5d; margin-right: 4px; }

/* Sticky Summary */
#order-standard_cart #scrollingPanelContainer { position: sticky; top: 20px; }

/* --- Buttons --- */
#order-standard_cart .btn-primary, #order-standard_cart .btn-success {
    background: linear-gradient(135deg, #004fac, #0066d6);
    color: #fff; border: none; border-radius: 10px;
    font-weight: 700; padding: 10px 24px;
    box-shadow: 0 2px 8px rgba(0,79,172,.15); transition: all .2s ease;
}
#order-standard_cart .btn-primary:hover, #order-standard_cart .btn-success:hover {
    transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,79,172,.25); color: #fff;
}
#order-standard_cart .btn-default {
    background: #fff; color: #5a6d8a; border: 1px solid #dee3e8;
    border-radius: 10px; font-weight: 600; padding: 10px 24px; transition: all .2s ease;
}
#order-standard_cart .btn-default:hover { background: #f0f4fa; border-color: #004fac; color: #004fac; }
#order-standard_cart .btn-info {
    background: #e8f0fe; color: #004fac; border: 1px solid #d0ddef;
    border-radius: 10px; font-weight: 700; padding: 10px 24px; transition: all .2s ease;
}
#order-standard_cart .btn-info:hover { background: #004fac; color: #fff; border-color: #004fac; }
#order-standard_cart .btn-warning {
    background: #fff4de; color: #c98600; border: 1px solid #ffe0b2;
    border-radius: 10px; font-weight: 700; padding: 10px 24px; transition: all .2s ease;
}
#order-standard_cart .btn-warning:hover { background: #ffa800; color: #fff; }
#order-standard_cart .btn.disabled, #order-standard_cart .btn:disabled {
    opacity: .5; pointer-events: none; transform: none; box-shadow: none;
}
#order-standard_cart .btn-lg { padding: 13px 32px; font-size: 16px; border-radius: 12px; }
#order-standard_cart .btn-link { color: #004fac; text-decoration: none; font-weight: 600; }
#order-standard_cart .btn-link:hover { color: #003380; }

/* --- Alerts --- */
#order-standard_cart .alert {
    border-radius: 12px; border: none; font-size: 14px; font-weight: 600; padding: 14px 20px;
}
#order-standard_cart .alert-success { background: #e3f9f2; color: #01aa5d; }
#order-standard_cart .alert-danger { background: #ffeef0; color: #e74c3c; }
#order-standard_cart .alert-warning { background: #fff4de; color: #c98600; }
#order-standard_cart .alert-info { background: #e8f0fe; color: #004fac; }

/* --- Sidebar --- */
#order-standard_cart .cart-sidebar .panel, #order-standard_cart .cart-sidebar .card-sidebar {
    border: none; border-radius: 12px; background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.04); margin-bottom: 16px; overflow: hidden; padding: 0;
}
#order-standard_cart .cart-sidebar .panel-heading, #order-standard_cart .cart-sidebar .card-header {
    background: #fff; border-bottom: 1px solid #f0f2f6; padding: 16px 20px; border-top: none;
}
#order-standard_cart .cart-sidebar .panel-heading h3, #order-standard_cart .cart-sidebar .card-header h3 {
    font-size: 14px; font-weight: 700; color: #0f1d36; margin: 0;
}
#order-standard_cart .cart-sidebar .list-group-item {
    border: none; border-bottom: 1px solid #f5f6f8;
    padding: 11px 20px; font-size: 14px; font-weight: 500; color: #5a6d8a;
    transition: all .15s ease;
}
#order-standard_cart .cart-sidebar .list-group-item:last-child { border-bottom: none; }
#order-standard_cart .cart-sidebar .list-group-item:hover { background: #f5f8ff; color: #004fac; }
#order-standard_cart .cart-sidebar .list-group-item.active {
    background: linear-gradient(135deg, #e8f0fe, #f0f5ff);
    color: #004fac; font-weight: 600; border-left: 3px solid #004fac;
}

/* --- Products — base styles (overrides.css handles conflict resolution) --- */
#order-standard_cart .products .product {
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    transition: all .25s ease;
    margin-bottom: 20px;
}
#order-standard_cart .products .product:hover {
    transform: translateY(-4px);
}
#order-standard_cart .products .product span.feature-value {
    font-weight: 700; color: #0f1d36;
}

/* --- Modals --- */
#order-standard_cart .modal-content {
    border-radius: 14px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.15); overflow: hidden;
}
#order-standard_cart .modal-body { padding: 28px; }
#order-standard_cart .modal-footer { border-top: 1px solid #f0f2f6; padding: 16px 28px; }

/* =============================================
   ORDER SUMMARY & BUTTON OVERRIDES
   (Product card styles handled by twenty-x/css/overrides.css)
   ============================================= */

/* Order summary sidebar */
#order-standard_cart #scrollingPanelContainer .order-summary {
    background: #fff !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.05) !important;
    border-bottom: none !important;
}
#order-standard_cart #scrollingPanelContainer .order-summary h2,
body #order-standard_cart .order-summary h2 {
    background: #0f1d36 !important;
    color: #fff !important;
    text-align: left !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 18px 24px !important;
    margin: 0 !important;
    border-bottom: none !important;
    letter-spacing: .3px !important;
}
#order-standard_cart #scrollingPanelContainer .summary-container,
body #order-standard_cart .summary-container {
    background: #fff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-height: auto !important;
    font-size: 14px !important;
}
#order-standard_cart #scrollingPanelContainer .order-summary .product-name {
    padding: 0 !important;
}

/* Config/checkout button overrides */
body #order-standard_cart #frmConfigureProduct #scrollingPanelContainer #orderSummary button#btnCompleteProductConfig,
#order-standard_cart #scrollingPanelContainer .order-summary .btn-checkout {
    background: linear-gradient(135deg, #004fac, #0066d6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
}
body #order-standard_cart #frmConfigureProduct #scrollingPanelContainer #orderSummary button#btnCompleteProductConfig:hover,
#order-standard_cart #scrollingPanelContainer .order-summary .btn-checkout:hover {
    background: linear-gradient(135deg, #003d87, #004fac) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #order-standard_cart .products .product footer { flex-direction: column; text-align: center; }
    #order-standard_cart .products .product footer .btn-order-now { width: 100%; justify-content: center; }
    #order-standard_cart .order-summary { position: static; }
    #order-standard_cart #scrollingPanelContainer { position: static; }
    .os20-trust { flex-direction: row; flex-wrap: wrap; gap: 12px; justify-content: center; }
    .cp20-continue-btn { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
        border-radius: 0 !important; margin: 0 !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,.1) !important;
    }
    .cp20-secure-note { margin-bottom: 60px; }
}
