/* ============================================================
   SpectraHost Checkout — Premium Conversion-Focused Overrides

   Loaded via {assetExists file="custom.css"} in common.tpl.
   All selectors use #order-standard_cart for specificity over
   the base WHMCS css/style.css rules.
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --sh-primary: #2563EB;
    --sh-primary-light: #3B82F6;
    --sh-primary-dark: #1D4ED8;
    --sh-dark: #0F172A;
    --sh-dark-mid: #1E293B;
    --sh-accent: #10B981;
    --sh-accent-dark: #059669;
    --sh-success: #22C55E;
    --sh-warning: #F59E0B;
    --sh-danger: #EF4444;
    --sh-slate-50: #F8FAFC;
    --sh-slate-100: #F1F5F9;
    --sh-slate-200: #E2E8F0;
    --sh-slate-300: #CBD5E1;
    --sh-slate-400: #94A3B8;
    --sh-slate-500: #64748B;
    --sh-slate-600: #475569;
    --sh-slate-700: #334155;
    --sh-slate-900: #0F172A;
    --sh-radius: 10px;
    --sh-radius-lg: 14px;
    --sh-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --sh-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --sh-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --sh-transition: 0.2s ease;
}

/* ============================================================
   GLOBAL FORM ENHANCEMENTS (Stripe-style inputs)
   ============================================================ */

#order-standard_cart .form-control {
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--sh-slate-300);
    font-size: 15px;
    color: var(--sh-slate-900);
    transition: border-color var(--sh-transition), box-shadow var(--sh-transition);
    background: #fff;
}

#order-standard_cart .form-control:focus {
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

#order-standard_cart .form-control::placeholder {
    color: var(--sh-slate-400);
}

#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='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

#order-standard_cart textarea.form-control {
    height: auto;
    min-height: 80px;
}

#order-standard_cart label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sh-slate-600);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

/* ============================================================
   HEADER / PAGE TITLE
   ============================================================ */

#order-standard_cart .header-lined h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sh-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sh-slate-200);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

#order-standard_cart .header-lined p {
    color: var(--sh-slate-500);
    font-size: 15px;
    margin-bottom: 1.5rem;
}

/* ============================================================
   DOMAIN CONFIG CARDS
   ============================================================ */

#order-standard_cart .domain-config-card {
    background: #fff;
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--sh-shadow-sm);
}

#order-standard_cart .domain-config-header {
    background: linear-gradient(135deg, var(--sh-dark), var(--sh-dark-mid));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
}

#order-standard_cart .domain-config-header .domain-icon {
    width: 38px;
    height: 38px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#order-standard_cart .domain-config-header .domain-icon i {
    color: #60A5FA;
    font-size: 15px;
}

#order-standard_cart .domain-config-header .domain-name {
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    letter-spacing: -0.01em;
}

#order-standard_cart .domain-config-header .domain-meta {
    font-size: 13px;
    opacity: 0.8;
    flex-shrink: 0;
    white-space: nowrap;
}

#order-standard_cart .domain-config-header .domain-meta a {
    color: var(--sh-warning);
    text-decoration: none;
}

#order-standard_cart .domain-config-body {
    padding: 20px 24px;
}

/* ============================================================
   ADDON CARDS (Domain addons + Product addons)
   ============================================================ */

#order-standard_cart .addon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 20px;
}

#order-standard_cart .addon-card {
    flex: 1 1 220px;
    max-width: 100%;
    background: #fff;
    border: 2px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 16px;
    cursor: pointer;
    transition: all var(--sh-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

#order-standard_cart .addon-card:hover {
    border-color: #93C5FD;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

#order-standard_cart .addon-card.selected {
    border-color: var(--sh-primary);
    background: #EFF6FF;
    box-shadow: 0 0 0 1px var(--sh-primary);
}

#order-standard_cart .addon-card .addon-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--sh-slate-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--sh-transition);
    background: #fff;
}

#order-standard_cart .addon-card.selected .addon-check {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: #fff;
}

#order-standard_cart .addon-card .addon-icon {
    width: 40px;
    height: 40px;
    background: #EFF6FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#order-standard_cart .addon-card .addon-icon i {
    color: var(--sh-primary);
    font-size: 16px;
}

#order-standard_cart .addon-card.selected .addon-icon {
    background: #DBEAFE;
}

#order-standard_cart .addon-card .addon-name {
    font-weight: 700;
    color: var(--sh-dark);
    font-size: 14px;
    margin-bottom: 4px;
    padding-right: 28px;
    line-height: 1.3;
}

#order-standard_cart .addon-card .addon-desc {
    font-size: 13px;
    color: var(--sh-slate-500);
    line-height: 1.5;
    flex: 1;
}

#order-standard_cart .addon-card .addon-price {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--sh-slate-200);
    font-weight: 700;
    font-size: 14px;
    color: var(--sh-dark);
}

#order-standard_cart .addon-card.selected .addon-price {
    color: var(--sh-primary);
}

#order-standard_cart .addon-card .addon-badge {
    position: absolute;
    top: -9px;
    left: 16px;
    background: var(--sh-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* ============================================================
   NAMESERVERS SECTION
   ============================================================ */

#order-standard_cart .nameservers-section {
    background: var(--sh-slate-50);
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 16px 20px;
    margin-top: 1.5rem;
}

#order-standard_cart .nameservers-section .ns-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
}

#order-standard_cart .nameservers-section .ns-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--sh-dark);
    margin: 0;
}

#order-standard_cart .nameservers-section .ns-toggle {
    color: var(--sh-slate-400);
    font-size: 14px;
    transition: transform var(--sh-transition);
}

#order-standard_cart .nameservers-section .ns-hint {
    font-size: 13px;
    color: var(--sh-slate-500);
    margin-bottom: 12px;
    line-height: 1.5;
}

#order-standard_cart .ns-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#order-standard_cart .ns-grid .form-group {
    flex: 1 1 calc(50% - 5px);
    min-width: 200px;
    margin-bottom: 0;
}

#order-standard_cart .ns-grid .form-control {
    height: 38px;
    font-size: 13px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */

#order-standard_cart .trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 16px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--sh-radius);
    margin: 16px 0;
    flex-wrap: wrap;
}

#order-standard_cart .trust-strip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}

#order-standard_cart .trust-strip-item i {
    font-size: 14px;
    color: var(--sh-success);
}

/* ============================================================
   CHECKOUT FORM SECTIONS (Card-based)
   ============================================================ */

#order-standard_cart .checkout-section {
    background: #fff;
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--sh-shadow-sm);
    animation: shFadeInUp 0.3s ease-out;
}

#order-standard_cart .checkout-section-header {
    background: var(--sh-slate-50);
    padding: 14px 20px;
    border-bottom: 1px solid var(--sh-slate-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

#order-standard_cart .checkout-section-header .section-icon {
    width: 32px;
    height: 32px;
    background: #EFF6FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#order-standard_cart .checkout-section-header .section-icon i {
    color: var(--sh-primary);
    font-size: 14px;
}

#order-standard_cart .checkout-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sh-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

#order-standard_cart .checkout-section-header .section-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 3px 10px;
    background: #D1FAE5;
    color: #065F46;
    border-radius: 100px;
    font-weight: 700;
    white-space: nowrap;
}

#order-standard_cart .checkout-section-body {
    padding: 20px 24px;
}

/* ============================================================
   SUB-HEADING OVERRIDE (used in checkout/configure)
   ============================================================ */

#order-standard_cart .sub-heading {
    height: auto;
    border-top: none;
    border-bottom: 2px solid var(--sh-slate-200);
    text-align: left;
    margin: 24px 0 16px;
    padding-bottom: 8px;
}

#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading-borderless span {
    display: inline-block;
    position: static;
    padding: 0;
    top: auto;
    font-size: 15px;
    font-weight: 700;
    color: var(--sh-dark);
    background: none;
}

#order-standard_cart .sub-heading span.primary-bg-color {
    color: var(--sh-dark);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   ORDER SUMMARY SIDEBAR
   ============================================================ */

#order-standard_cart .order-summary {
    background: #fff;
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius-lg);
    padding: 20px;
    box-shadow: var(--sh-shadow-sm);
    border-bottom: 3px solid var(--sh-primary);
}

#order-standard_cart .order-summary h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sh-dark);
    text-align: left;
    padding: 0;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
    background: none;
}

#order-standard_cart .summary-container {
    background: none;
    padding: 0;
    min-height: auto;
    font-size: 14px;
    border-radius: 0;
}

#order-standard_cart .order-summary .subtotal {
    padding: 8px 0;
    font-size: 14px;
    color: var(--sh-slate-600);
    border-bottom: 1px solid var(--sh-slate-200);
}

#order-standard_cart .order-summary .bordered-totals {
    border-color: var(--sh-slate-200);
    padding: 8px 0;
    margin: 0;
    font-size: 13px;
    color: var(--sh-slate-500);
}

#order-standard_cart .order-summary .recurring-totals {
    padding: 8px 0;
    font-size: 13px;
    color: var(--sh-slate-500);
}

#order-standard_cart .order-summary .recurring-charges .cost {
    font-weight: 700;
    color: var(--sh-dark);
}

#order-standard_cart .total-due-today {
    background: linear-gradient(135deg, var(--sh-dark), var(--sh-dark-mid));
    color: #fff;
    border-radius: var(--sh-radius);
    padding: 16px;
    text-align: center;
    margin: 16px 0;
}

#order-standard_cart .total-due-today .amt {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#order-standard_cart .total-due-today span:not(.amt) {
    font-size: 13px;
    opacity: 0.8;
}

#order-standard_cart .order-summary .loader {
    position: relative;
    top: auto;
    height: auto;
    padding: 8px;
    text-align: center;
    color: var(--sh-slate-400);
}

/* Summary secure badge */
#order-standard_cart .summary-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: var(--sh-slate-50);
    border-radius: 6px;
    font-size: 11px;
    color: var(--sh-slate-500);
    margin-top: 10px;
    line-height: 1.4;
    text-align: center;
}

#order-standard_cart .summary-secure-badge i {
    color: var(--sh-success);
    font-size: 12px;
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */

#order-standard_cart .btn-complete-order,
#order-standard_cart .btn-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--sh-radius);
    background: linear-gradient(135deg, var(--sh-primary), var(--sh-primary-dark));
    border: none;
    color: #fff;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all var(--sh-transition);
    text-decoration: none;
    width: 100%;
}

#order-standard_cart .btn-complete-order:hover,
#order-standard_cart .btn-checkout:hover {
    background: linear-gradient(135deg, var(--sh-primary-dark), #1E40AF);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

#order-standard_cart .btn-complete-order:active,
#order-standard_cart .btn-checkout:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

#order-standard_cart .btn-continue-shopping {
    font-size: 13px;
    color: var(--sh-slate-500);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

#order-standard_cart .btn-continue-shopping:hover {
    color: var(--sh-primary);
    text-decoration: none;
}

/* ============================================================
   CHECKOUT PAGE — TOTAL & PAYMENT
   ============================================================ */

#order-standard_cart #totalDueToday.alert-success {
    background: var(--sh-slate-50);
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    color: var(--sh-dark);
    padding: 20px;
    text-align: center;
    font-size: 15px;
}

#order-standard_cart #totalDueToday #totalCartPrice {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sh-dark);
    letter-spacing: -0.02em;
}

#order-standard_cart .already-registered {
    background: var(--sh-slate-50);
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}

#order-standard_cart .already-registered p {
    margin: 0;
    color: var(--sh-slate-600);
    font-size: 14px;
}

/* Account selector */
#order-standard_cart .account-select-container .account {
    background: #fff;
    border: 2px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 14px;
    margin-bottom: 8px;
    transition: all var(--sh-transition);
    cursor: pointer;
}

#order-standard_cart .account-select-container .account:hover {
    border-color: #93C5FD;
}

#order-standard_cart .account-select-container .account.active {
    border-color: var(--sh-primary);
    background: #EFF6FF;
}

/* CC input area */
#order-standard_cart .cc-input-container {
    background: var(--sh-slate-50);
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 20px;
    margin: 12px 0;
}

/* Apply credit */
#order-standard_cart .apply-credit-container {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--sh-radius);
    padding: 16px;
    margin: 12px 0;
}

/* Marketing opt-in */
#order-standard_cart .marketing-email-optin {
    background: var(--sh-slate-50);
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 16px;
    margin: 16px 0;
}

/* Checkout security message */
#order-standard_cart .checkout-security-msg {
    background: var(--sh-slate-50);
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--sh-slate-500);
    text-align: center;
    margin: 16px 0;
}

#order-standard_cart .checkout-security-msg i {
    color: var(--sh-success);
    float: none;
    margin: 0 6px 0 0;
    font-size: 14px;
}

/* ============================================================
   CART VIEW ENHANCEMENTS
   ============================================================ */

#order-standard_cart .view-cart-items-header {
    background: var(--sh-slate-100);
    padding: 10px 16px;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0;
    font-weight: 600;
    font-size: 12px;
    color: var(--sh-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1.5px solid var(--sh-slate-200);
    border-bottom: none;
}

#order-standard_cart .view-cart-items {
    background: #fff;
    border: 1.5px solid var(--sh-slate-200);
    border-top: none;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius);
    margin-bottom: 16px;
}

#order-standard_cart .view-cart-items .item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sh-slate-100);
    font-size: 14px;
    background: #fff;
}

#order-standard_cart .view-cart-items .item:nth-child(even) {
    background: var(--sh-slate-50);
}

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

#order-standard_cart .view-cart-items .item-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--sh-dark);
}

#order-standard_cart .view-cart-items .item-group {
    font-size: 13px;
    color: var(--sh-slate-500);
}

#order-standard_cart .view-cart-items .item-domain {
    color: var(--sh-primary);
    font-size: 13px;
    font-weight: 600;
}

#order-standard_cart .view-cart-items .item-price {
    text-align: right;
    font-weight: 700;
    color: var(--sh-dark);
}

#order-standard_cart .view-cart-items .item-price span:first-child {
    font-size: 16px;
}

#order-standard_cart .view-cart-items .item-price .cycle {
    font-size: 12px;
    color: var(--sh-slate-500);
    font-weight: 400;
}

#order-standard_cart .btn-remove-from-cart {
    color: var(--sh-slate-400) !important;
    transition: color var(--sh-transition);
}

#order-standard_cart .btn-remove-from-cart:hover {
    color: var(--sh-danger) !important;
}

#order-standard_cart .empty-cart .btn {
    background: none;
    border: 1px solid var(--sh-slate-200);
    color: var(--sh-slate-500);
    border-radius: 6px;
    font-size: 12px;
    padding: 4px 12px;
}

#order-standard_cart .view-cart-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--sh-slate-400);
    font-size: 15px;
}

/* Promo code */
#order-standard_cart .promo-code-card {
    background: #fff;
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

#order-standard_cart .view-cart-promotion-code {
    padding: 10px 16px;
    background: #F0FDF4;
    border-radius: 6px;
    color: #166534;
    font-weight: 600;
    text-align: center;
    border: 1px dashed #86EFAC;
}

/* ============================================================
   PRODUCT CARDS (products.tpl listing)
   ============================================================ */

#order-standard_cart .products .product {
    background: #fff;
    border: 2px solid var(--sh-slate-200);
    border-radius: var(--sh-radius-lg);
    padding: 0;
    margin-bottom: 16px;
    transition: all var(--sh-transition);
    overflow: hidden;
    box-shadow: var(--sh-shadow-sm);
}

#order-standard_cart .products .product:hover {
    border-color: var(--sh-primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

#order-standard_cart .products .product header {
    background: linear-gradient(135deg, var(--sh-dark), var(--sh-dark-mid));
    color: #fff;
    padding: 14px 20px;
    margin: 0;
    border-radius: 0;
}

#order-standard_cart .products .product header span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* Product info box on configure page */
#order-standard_cart .product-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--sh-radius);
    padding: 14px 20px;
    margin-bottom: 20px;
    border-top: none;
}

#order-standard_cart .product-info .product-title {
    font-weight: 700;
    color: var(--sh-dark);
    font-size: 16px;
    margin: 0;
}

/* Addon cards in configure product */
#order-standard_cart .card-addon {
    border: 2px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    cursor: pointer;
    transition: all var(--sh-transition);
    overflow: hidden;
}

#order-standard_cart .card-addon:hover {
    border-color: #93C5FD;
    box-shadow: var(--sh-shadow-md);
}

#order-standard_cart .card-addon-selected {
    border-color: var(--sh-primary);
    background: #EFF6FF;
}

#order-standard_cart .card-addon .card-body label {
    font-weight: 700;
    color: var(--sh-dark);
    font-size: 14px;
}

#order-standard_cart .card-price {
    background: var(--sh-slate-100);
    padding: 8px 14px;
    font-weight: 700;
    color: var(--sh-dark);
    font-size: 14px;
    text-align: center;
}

#order-standard_cart .card-add {
    background: var(--sh-primary);
    color: #fff;
    padding: 8px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    transition: background var(--sh-transition);
}

#order-standard_cart .card-add:hover {
    background: var(--sh-primary-dark);
}

#order-standard_cart .card-addon-selected .card-add {
    background: var(--sh-accent);
}

/* ============================================================
   ORDER COMPLETE
   ============================================================ */

#order-standard_cart .order-complete-hero {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
    border: 1.5px solid #BBF7D0;
    border-radius: var(--sh-radius-lg);
    margin-bottom: 24px;
}

#order-standard_cart .order-complete-hero .success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--sh-accent), var(--sh-accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: shScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#order-standard_cart .order-complete-hero .success-icon i {
    font-size: 32px;
    color: #fff;
}

#order-standard_cart .order-complete-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sh-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

#order-standard_cart .order-complete-hero .order-number {
    font-size: 16px;
    color: var(--sh-primary);
    font-weight: 700;
}

#order-standard_cart .order-complete-hero p {
    color: var(--sh-slate-500);
    font-size: 15px;
    margin-top: 8px;
}

#order-standard_cart .order-confirmation {
    text-align: center;
    padding: 16px;
    border-radius: var(--sh-radius);
}

#order-standard_cart .order-confirmation span {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sh-primary);
}

/* Next steps */
#order-standard_cart .next-steps-section {
    margin: 24px 0;
    padding: 28px 24px;
    background: var(--sh-slate-50);
    border-radius: var(--sh-radius-lg);
    border: 1.5px solid var(--sh-slate-200);
}

#order-standard_cart .next-steps-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sh-dark);
    margin-bottom: 24px;
}

#order-standard_cart .next-step {
    text-align: center;
    padding: 16px 12px;
}

#order-standard_cart .next-step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sh-primary), #0EA5E9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

#order-standard_cart .next-step-icon i {
    font-size: 22px;
    color: #fff;
}

#order-standard_cart .next-step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--sh-dark);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    margin-bottom: 8px;
}

#order-standard_cart .next-step h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sh-dark);
    margin-bottom: 6px;
}

#order-standard_cart .next-step p {
    font-size: 13px;
    color: var(--sh-slate-500);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ============================================================
   STEP BAR
   ============================================================ */

#order-standard_cart .order-steps-bar,
.order-steps-bar {
    background: #fff;
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: var(--sh-shadow-sm);
}

.order-steps {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity var(--sh-transition);
}

.step.active { opacity: 1; }
.step.completed { opacity: 1; }

.step-number {
    width: 32px;
    height: 32px;
    background: var(--sh-slate-200);
    color: var(--sh-slate-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: all var(--sh-transition);
}

.step.active .step-number {
    background: var(--sh-dark);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.step.completed .step-number {
    background: var(--sh-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.step-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--sh-slate-600);
}

.step.completed .step-label {
    color: var(--sh-accent);
}

.step-connector {
    flex: 0 0 32px;
    height: 2px;
    background: var(--sh-slate-200);
    margin-bottom: 0;
    transition: background var(--sh-transition);
}

.step-connector.completed {
    background: var(--sh-accent);
}

/* ============================================================
   DOMAIN SELECTION OPTIONS
   ============================================================ */

#order-standard_cart .domain-selection-options .option {
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #fff;
    border: 1.5px solid var(--sh-slate-200);
    border-radius: var(--sh-radius);
    transition: border-color var(--sh-transition);
}

#order-standard_cart .domain-selection-options .option:hover {
    border-color: #93C5FD;
}

#order-standard_cart .domain-selection-options .option label {
    font-weight: 600;
    color: var(--sh-dark);
    cursor: pointer;
    font-size: 14px;
}

#order-standard_cart .domain-selection-options .option-selected {
    border-color: var(--sh-primary);
    background: #EFF6FF;
}

/* ============================================================
   STICKY SIDEBAR (Desktop)
   ============================================================ */

@media (min-width: 992px) {
    #scrollingPanelContainer {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* ============================================================
   MOBILE CHECKOUT BAR (Cart page)
   ============================================================ */

.mobile-checkout-bar {
    display: none;
}

@media (max-width: 991px) {
    .mobile-checkout-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--sh-slate-200);
        padding: 12px 16px;
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    }

    .mobile-checkout-bar .mobile-total {
        font-weight: 800;
        font-size: 18px;
        color: var(--sh-dark);
    }

    .mobile-checkout-bar .btn {
        min-width: 160px;
        padding: 10px 20px;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes shFadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shScaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    #order-standard_cart .trust-strip {
        flex-direction: column;
        gap: 6px;
        padding: 12px;
    }

    #order-standard_cart .addon-grid {
        flex-direction: column;
    }

    #order-standard_cart .addon-card {
        flex: 1 1 100%;
    }

    #order-standard_cart .domain-config-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    #order-standard_cart .domain-config-header .domain-meta {
        flex-basis: 100%;
        font-size: 12px;
    }

    #order-standard_cart .ns-grid .form-group {
        flex: 1 1 100%;
    }

    #order-standard_cart .checkout-section-body {
        padding: 16px;
    }

    #order-standard_cart .order-complete-hero {
        padding: 28px 16px;
    }

    #order-standard_cart .order-complete-hero h1 {
        font-size: 1.4rem;
    }

    .order-steps {
        gap: 12px;
    }

    .step-label {
        display: none;
    }

    .step-connector {
        flex: 0 0 20px;
    }
}

@media (max-width: 576px) {
    #order-standard_cart .domain-config-body {
        padding: 16px;
    }

    #order-standard_cart .checkout-section-header {
        padding: 12px 16px;
    }
}

/* ============================================================
   MISC OVERRIDES
   ============================================================ */

#order-standard_cart .w-hidden {
    display: none;
}

/* Password strength */
#order-standard_cart .password-strength-meter .progress {
    height: 6px;
    border-radius: 100px;
    margin-bottom: 4px;
}

/* Field help text */
#order-standard_cart .field-help-text {
    display: block;
    font-size: 12px;
    color: var(--sh-slate-400);
    margin-top: 4px;
}

/* Alert overrides */
#order-standard_cart .alert {
    border-radius: var(--sh-radius);
}

/* Prepend icon compat — remove the old icon-inside-input pattern */
#order-standard_cart .prepend-icon .field-icon {
    display: none;
}

#order-standard_cart .prepend-icon .field,
#order-standard_cart .prepend-icon .form-control {
    padding-left: 12px;
}

/* Express checkout separator */
#order-standard_cart .express-checkout-buttons .separator {
    text-align: center;
    color: var(--sh-slate-400);
    font-size: 12px;
    padding: 6px 0;
    font-weight: 600;
}

/* ============================================================
   OPTIONAL FIELD TOGGLES (Checkout)
   ============================================================ */

#order-standard_cart .optional-fields-toggle {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

#order-standard_cart .add-field-link {
    font-size: 13px;
    color: var(--sh-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--sh-transition);
}

#order-standard_cart .add-field-link:hover {
    color: var(--sh-primary-dark);
    text-decoration: none;
}

#order-standard_cart .add-field-link i {
    font-size: 11px;
}

/* ============================================================
   CHECKOUT MICROCOPY
   ============================================================ */

#order-standard_cart .checkout-microcopy {
    font-size: 13px;
    color: var(--sh-slate-500);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

#order-standard_cart .checkout-microcopy i {
    color: var(--sh-success);
}

/* ============================================================
   MOBILE CHECKOUT BAR LABEL
   ============================================================ */

.mobile-checkout-bar .mobile-total-label {
    font-size: 11px;
    color: var(--sh-slate-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Add bottom padding on cart page body so mobile bar doesn't overlap */
@media (max-width: 991px) {
    #order-standard_cart {
        padding-bottom: 80px;
    }
}
