/* *****************************************************

    TextraHost — WHMCS Standard Cart brand skin (PREMIUM)
    Re-skins the standard_cart order form to a clean,
    premium white + blue + navy palette. No loud accents.
    Goal: distraction-free, high-trust checkout.

    Pure CSS override. Auto-loaded by common.tpl AFTER
    all.min.css (which bundles the base order-form style.css),
    so these rules win. All rules scoped to #order-standard_cart.

    Palette:
      navy   #0a2540  (primary / headers / summary bar)
      navy2  #0e3460
      blue   #2563eb  (accent / CTA / price / active)
      blueDk #1d4ed8  (hover)
      green  #16a34a  (success / added states)
      bg     #f8fafc  text #1e293b  muted #64748b  border #e8edf3

***************************************************** */

#order-standard_cart {
    --tx-navy:    #0a2540;
    --tx-navy2:   #0e3460;
    --tx-blue:    #2563eb;
    --tx-blue-dk: #1d4ed8;
    --tx-blue-sf: #eff4ff;   /* soft blue tint */
    --tx-green:   #16a34a;
    --tx-bg:      #f8fafc;
    --tx-text:    #1e293b;
    --tx-muted:   #64748b;
    --tx-border:  #e8edf3;
    --tx-radius:    14px;
    --tx-radius-sm: 9px;
    --tx-shadow:    0 2px 10px rgba(10,37,64,.05), 0 8px 30px rgba(10,37,64,.05);
    --tx-shadow-lg: 0 16px 50px rgba(10,37,64,.13);

    color: var(--tx-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* roomier, calmer canvas */
#order-standard_cart .header-lined { border-bottom: 1px solid var(--tx-border); margin-bottom: 26px; }
#order-standard_cart .header-lined h1,
#order-standard_cart h1,
#order-standard_cart h2,
#order-standard_cart h3 {
    color: var(--tx-navy);
    font-weight: 800;
    letter-spacing: -.015em;
}
#order-standard_cart a { color: var(--tx-blue); transition: color .2s ease; }
#order-standard_cart a:hover,
#order-standard_cart a:focus { color: var(--tx-blue-dk); }

/* ============================================================
   Full-width, sidebar-free checkout (distraction-free)
   checkout.tpl adds class "checkout-page" on the wrapper.
   ============================================================ */
#order-standard_cart.checkout-page .cart-sidebar,
#order-standard_cart.checkout-page .sidebar-collapsed { display: none !important; }
#order-standard_cart.checkout-page .cart-body {
    width: 100%;
    float: none;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 1200px) {
    /* center & cap the form for a focused premium feel */
    #order-standard_cart.checkout-page .cart-body { max-width: 1040px; margin: 0 auto; }
}

/* ---------- Sidebar categories (product listing pages) ---------- */
#order-standard_cart .cart-sidebar h3,
#order-standard_cart .sidebar-collapsed h3 { color: var(--tx-navy); font-weight: 700; }
#order-standard_cart .cart-sidebar .list-group {
    border-radius: var(--tx-radius);
    overflow: hidden;
    box-shadow: var(--tx-shadow);
}
#order-standard_cart .cart-sidebar .list-group-item { border-color: var(--tx-border); transition: all .2s ease; }
#order-standard_cart .cart-sidebar .list-group-item:hover { background: var(--tx-blue-sf); color: var(--tx-blue); }
#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active:hover,
#order-standard_cart .cart-sidebar .list-group-item.active:focus {
    background: var(--tx-blue);
    border-color: var(--tx-blue);
    color: #fff;
}

/* ---------- Product cards ---------- */
#order-standard_cart .products .product {
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius);
    box-shadow: var(--tx-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#order-standard_cart .products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--tx-shadow-lg);
    border-color: var(--tx-blue);
}
#order-standard_cart .products .product header {
    background: linear-gradient(90deg, var(--tx-navy) 0%, var(--tx-navy2) 100%);
    border-radius: 0;
    padding: 16px 22px;
    margin: 0;
}
#order-standard_cart .products .product header span { color: #fff; font-weight: 700; }
#order-standard_cart .products .product header .qty { color: rgba(255,255,255,.7); }
#order-standard_cart .products .product span.feature-value { color: var(--tx-navy); }
#order-standard_cart .products .product div.product-pricing { color: var(--tx-muted); }
#order-standard_cart .products .product div.product-pricing span.price {
    color: var(--tx-navy);
    font-weight: 800;
}
#order-standard_cart .products .product div.product-pricing small { color: var(--tx-muted); }

/* ---------- Buttons ---------- */
#order-standard_cart .btn {
    border-radius: var(--tx-radius-sm);
    font-weight: 600;
    transition: all .2s ease;
}
/* primary CTAs: order-now, checkout, complete-order = brand blue */
#order-standard_cart .btn-primary,
#order-standard_cart .btn-order-now,
#order-standard_cart .btn-checkout,
#order-standard_cart .btn-primary:focus,
#order-standard_cart .btn-order-now:focus,
#order-standard_cart .btn-checkout:focus {
    background: var(--tx-blue);
    border-color: var(--tx-blue);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(37,99,235,.22);
}
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-order-now:hover,
#order-standard_cart .btn-checkout:hover,
#order-standard_cart .btn-primary:active,
#order-standard_cart .btn-order-now:active,
#order-standard_cart .btn-checkout:active {
    background: var(--tx-blue-dk);
    border-color: var(--tx-blue-dk);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37,99,235,.30);
}
#order-standard_cart .btn-lg { padding: 13px 30px; font-size: 1.02rem; }
#order-standard_cart .btn-info,
#order-standard_cart .btn-info:focus { background: var(--tx-navy); border-color: var(--tx-navy); color: #fff; }
#order-standard_cart .btn-info:hover { background: var(--tx-navy2); border-color: var(--tx-navy2); }
#order-standard_cart .btn-success,
#order-standard_cart .btn-success:focus { background: var(--tx-green); border-color: var(--tx-green); color: #fff; }
#order-standard_cart .btn-success:hover { background: #15803d; border-color: #15803d; }
#order-standard_cart .btn-default {
    background: #fff;
    border-color: var(--tx-border);
    color: var(--tx-text);
}
#order-standard_cart .btn-default:hover,
#order-standard_cart .btn-default:focus { border-color: var(--tx-blue); color: var(--tx-blue); background: #fff; }
#order-standard_cart .btn-link { color: var(--tx-blue); }
#order-standard_cart .btn-link:hover { color: var(--tx-blue-dk); }
#order-standard_cart .btn-remove-from-cart:hover { color: #ef4444; }

/* ---------- Addon panels ---------- */
#order-standard_cart .panel-addon {
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius);
    box-shadow: var(--tx-shadow);
    transition: all .2s ease;
}
#order-standard_cart .panel-addon:hover { box-shadow: var(--tx-shadow-lg); border-color: var(--tx-blue); }
#order-standard_cart .panel-addon .panel-add { background-color: var(--tx-green); color: #fff; }
#order-standard_cart .panel-addon-selected { border-color: var(--tx-blue); }
#order-standard_cart .panel-addon-selected .panel-add { background-color: var(--tx-green); color: #fff; }

/* ---------- Order summary ---------- */
#order-standard_cart .order-summary {
    background-color: var(--tx-navy);
    border-bottom: 3px solid var(--tx-navy);
    border-radius: var(--tx-radius) var(--tx-radius) 0 0;
}
#order-standard_cart .order-summary h2 { color: #fff; }
#order-standard_cart .summary-container {
    background-color: #fff;
    border: 1px solid var(--tx-border);
    border-top: 0;
    border-radius: 0 0 var(--tx-radius) var(--tx-radius);
    box-shadow: var(--tx-shadow);
}
#order-standard_cart .order-summary .total-due-today .amt { color: var(--tx-blue); font-weight: 800; }
#order-standard_cart .order-summary .summary-totals {
    border-top: 1px solid var(--tx-border);
    border-bottom: 1px solid var(--tx-border);
}
#order-standard_cart .order-summary .subtotal,
#order-standard_cart .order-summary .bordered-totals { border-bottom: 1px solid var(--tx-border); }

/* ---------- View-cart tabs / item rows ---------- */
#order-standard_cart .nav-tabs { border-bottom-color: var(--tx-border); }
#order-standard_cart .nav-tabs > li.active > a,
#order-standard_cart .view-cart-tab.active {
    background-color: var(--tx-navy);
    color: #fff;
    border-color: var(--tx-navy);
    border-bottom: 2px solid var(--tx-blue);
}
#order-standard_cart .nav-tabs > li > a:hover { color: var(--tx-blue); }

/* ---------- Forms ---------- */
#order-standard_cart .form-control {
    border-color: var(--tx-border);
    border-radius: var(--tx-radius-sm);
    box-shadow: none;
}
#order-standard_cart .form-control:focus {
    border-color: var(--tx-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
#order-standard_cart .input-group-addon,
#order-standard_cart .input-group-btn .btn-default { background: var(--tx-bg); border-color: var(--tx-border); }
#order-standard_cart label { color: var(--tx-text); }

/* ---------- Panels / product-info / alerts ---------- */
#order-standard_cart .panel { border-radius: var(--tx-radius); border-color: var(--tx-border); }
#order-standard_cart .panel-default > .panel-heading {
    background: var(--tx-bg);
    border-color: var(--tx-border);
    color: var(--tx-navy);
    font-weight: 700;
}
#order-standard_cart .product-info {
    background-color: var(--tx-bg);
    border-top: 1px solid var(--tx-border);
    border-bottom: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-sm);
}
#order-standard_cart .product-info .product-title { color: var(--tx-navy); font-weight: 700; }
#order-standard_cart .alert { border-radius: var(--tx-radius-sm); border-width: 1px; }
#order-standard_cart .alert-info { background: var(--tx-blue-sf); border-color: rgba(37,99,235,.2); color: var(--tx-navy2); }
#order-standard_cart .alert-success { background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.2); color: #14532d; }
#order-standard_cart .alert-warning { background: var(--tx-blue-sf); border-color: rgba(37,99,235,.2); color: var(--tx-navy2); }
/* the SSL "secure connection" notice reads as reassurance, not a warning */
#order-standard_cart .checkout-security-msg {
    background: var(--tx-blue-sf);
    border-color: rgba(37,99,235,.2);
    color: var(--tx-navy2);
    text-align: center;
    border-radius: var(--tx-radius-sm);
}
#order-standard_cart .checkout-security-msg i { color: var(--tx-green); }

/* ---------- Checkout account / payment tabs ---------- */
#order-standard_cart .account.active,
#order-standard_cart .payment-methods.active,
#order-standard_cart .payment-methods:hover { border-color: var(--tx-blue); }

/* ---------- Tables ---------- */
#order-standard_cart .table > thead > tr > th {
    color: var(--tx-navy);
    font-weight: 700;
    border-bottom: 2px solid var(--tx-border);
}
#order-standard_cart .table-striped > tbody > tr:nth-of-type(odd) { background: var(--tx-bg); }
#order-standard_cart .table-hover > tbody > tr:hover { background: var(--tx-blue-sf); }

/* ---------- Config-option range slider ---------- */
#order-standard_cart .irs-bar,
#order-standard_cart .irs-from,
#order-standard_cart .irs-to,
#order-standard_cart .irs-single { background: var(--tx-blue) !important; }
#order-standard_cart .irs-from:before,
#order-standard_cart .irs-to:before,
#order-standard_cart .irs-single:before { border-top-color: var(--tx-blue) !important; }
#order-standard_cart .irs-handle > i:first-child { background: var(--tx-navy) !important; }

/* ============================================================
   Checkout trust / reassurance row  (added in checkout.tpl)
   ============================================================ */
.tx-checkout-trust {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px auto 22px;
    max-width: 860px;
}
.tx-checkout-trust .tx-trust-item {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1 1 220px;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--tx-border, #e8edf3);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(10,37,64,.05);
}
.tx-checkout-trust .tx-trust-item i {
    font-size: 1.45rem;
    color: #2563eb;
    width: 28px;
    text-align: center;
    flex: none;
}
.tx-checkout-trust .tx-trust-item strong {
    display: block;
    color: #0a2540;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
}
.tx-checkout-trust .tx-trust-item span {
    display: block;
    color: #64748b;
    font-size: .76rem;
}
/* accepted payment methods strip */
.tx-pay-methods {
    text-align: center;
    color: #94a3b8;
    margin: 6px auto 4px;
    font-size: 1.9rem;
    line-height: 1;
}
.tx-pay-methods i { margin: 0 7px; vertical-align: middle; transition: color .2s ease; }
.tx-pay-methods i:hover { color: #2563eb; }
.tx-pay-note { text-align: center; color: #94a3b8; font-size: .76rem; margin-bottom: 4px; }
@media (max-width: 600px) {
    .tx-checkout-trust .tx-trust-item { flex: 1 1 100%; }
}

/* ============================================================
   Domain checker (order-form search + results + TLD pricing)
   Base style.css uses #5cb85c / #d9534f / #058 / #97b5d2 / #336699.
   Some checker classes are global (not under #order-standard_cart),
   so those use literal brand hex.
   ============================================================ */
/* result status colors */
#order-standard_cart .domain-checker-available,
.domain-checker-available { color: #16a34a; }
#order-standard_cart .domain-checker-unavailable,
#order-standard_cart .domain-checker-invalid,
.domain-checker-unavailable,
.domain-checker-invalid { color: #ef4444; }
#order-standard_cart .domain-checker-result-headline,
.domain-checker-result-headline { color: #0a2540; font-weight: 800; }
.domain-searching { color: #94a3b8; }
.domain-checker-container .panel,
#order-standard_cart .domain-lookup-result { border-radius: 12px; }
a.domain-tld-pricing-category { color: #2563eb; }

/* TLD pricing table (was steel-blue #97b5d2 / #336699 / #c7d7e6) */
.domain-pricing .tld-row { border-bottom: 1px solid #e8edf3; }
.domain-pricing .tld-row.highlighted { background: #eff4ff; }
.domain-pricing .tld-pricing-header .col-xs-2,
.domain-pricing .tld-pricing-header .col-sm-2,
.domain-pricing .tld-pricing-header .col-xs-4,
.domain-pricing .tld-pricing-header .col-sm-4 {
    border-bottom: 6px solid #2563eb;
    background-color: #f8fafc;
}
.domain-pricing .tld-pricing-header div:nth-child(odd) {
    border-color: #0a2540;
    background-color: #eff4ff;
}
.domain-pricing .two-row-center { border-right: 2px solid #cdd9ec; }

/* ---------- Leftover #058 cart spots ---------- */
#order-standard_cart .sub-heading span { color: var(--tx-navy); }
#order-standard_cart .view-cart-items-header {
    background-color: var(--tx-navy);
    border-radius: var(--tx-radius-sm) var(--tx-radius-sm) 0 0;
}
#order-standard_cart .view-cart-items { border-bottom: 2px solid var(--tx-border); }
#order-standard_cart .empty-cart .btn {
    background-color: var(--tx-blue);
    color: #fff;
}
#order-standard_cart .empty-cart .btn:hover { background-color: var(--tx-blue-dk); }

/* ---------- Misc ---------- */
#order-standard_cart hr { border-top-color: var(--tx-border); }
#order-standard_cart ::selection { background: rgba(37,99,235,.22); color: var(--tx-navy); }
