/* ===== Review & Checkout — CloudHive (refined SaaS, accent #F5A623). Fonts inherit from theme. ===== */
:root{ --ch-accent:#F5A623; --ch-accent-soft:rgba(245,166,35,.08); --ch-ink:#1b1c1d; --ch-muted:#6b6f7a; --ch-line:rgba(115,119,132,.28); --ch-soft:#fafbfc; --ch-success:#10b981; }

.chk-wrap{max-width:1440px;margin:0 auto;padding:0 24px;width:100%;}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .chk-wrap {
        padding: 0 16px;
    }
    
    .row {
        display: flex;
        flex-direction: column;
    }
    
    .col-lg-8 {
        order: 1;
    }
    
    .col-lg-4 {
        order: 2;
        margin-top: 32px;
        width: 100%;
    }
    
    .sidebar-card-custom {
        position: static !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
}

@media (max-width: 767px) {
    .chk-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chk-item-right {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 12px;
    }
    
    .chk-item-price {
        align-items: flex-start;
    }
    
    .chk-item-actions {
        justify-content: flex-start;
    }
    
    .chk-qty {
        width: 100%;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 2000px) {
    .chk-wrap {
        max-width: 1600px; /* Slight increase for 2K/4K while maintaining focus */
    }
}

/* header — compact, not oversized */
.chk-head{margin-bottom:28px;}
.chk-head h1{font-size:22px;font-weight:600;letter-spacing:-0.01em;color:var(--ch-ink);margin:0 0 4px;}
.chk-head p{font-size:13px;color:var(--ch-muted);margin:0;}

/* section labels */
.chk-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;color:var(--ch-muted);margin:0 0 14px;}
.chk-sublabel{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--ch-ink);margin:18px 0 12px;}

/* generic dashed surfaces */
.chk-box{border:1px dashed var(--ch-line);background:#fff;border-radius:12px;}
.chk-section{position:relative;}
.chk-form-card{border:1px dashed var(--ch-line);background:#fff;border-radius:12px;padding:22px 22px 6px;margin-bottom:18px;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;}
.chk-form-card:hover{border-color:rgba(245,166,35,.42);box-shadow:0 10px 28px rgba(27,28,29,.035);background:linear-gradient(180deg,#fff 0%,#fffdf9 100%);}
.chk-form-card .chk-label,.chk-form-card .chk-sublabel{margin-top:0;}

/* cart item ("Your Selection") */
.chk-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:16px 18px;}
.chk-item-left{display:flex;align-items:center;gap:14px;min-width:0;}
.chk-item-ico{width:40px;height:40px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(245,166,35,.45);background:rgba(245,166,35,.04);border-radius:9px;color:var(--ch-accent);}
.chk-item-ico svg{width:20px;height:20px;}
.chk-item-name{font-size:14px;font-weight:600;color:var(--ch-ink);margin:0;}
.chk-item-sub{font-size:12px;color:var(--ch-muted);margin:2px 0 0;}
.chk-item-right{display:grid;grid-template-columns:auto minmax(118px,auto) auto;align-items:center;justify-content:end;gap:14px;min-width:0;}
.chk-item-price{font-size:14px;font-weight:600;color:var(--ch-ink);white-space:nowrap;}
.chk-item-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;}
.chk-icon-btn{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px dashed var(--ch-line);background:#fff;border-radius:8px;color:var(--ch-muted);cursor:pointer;transition:border-color .2s ease,color .2s ease,background .2s ease,transform .2s ease;}
.chk-icon-btn:hover{border-color:var(--ch-accent);color:var(--ch-accent);background:var(--ch-accent-soft);transform:translateY(-1px);}
.chk-icon-btn.danger:hover{border-color:#ba1a1a;color:#ba1a1a;}
.chk-icon-btn svg{width:15px;height:15px;}

/* auth tabs — compact pills, outline, no heavy fill */
.chk-authtabs{display:inline-flex;gap:8px;margin-bottom:20px;}
.chk-authtab{appearance:none;background:#fff;border:1px dashed var(--ch-line);border-radius:8px;padding:8px 16px;font-size:12px;font-weight:500;color:var(--ch-muted);cursor:pointer;outline:none !important;transition:border-color .2s ease,color .2s ease,background .2s ease,box-shadow .2s ease;}
.chk-authtab:hover{border-color:var(--ch-accent);color:var(--ch-ink);}
.chk-authtab:focus,.chk-authtab:active{outline:none !important;box-shadow:0 0 0 3px rgba(245,166,35,.1) !important;}
.chk-authtab.active{border-style:dashed;border-color:var(--ch-accent);color:var(--ch-accent);font-weight:600;background:rgba(245,166,35,.035);}

/* selectable cards (accounts + payment) */
.chk-grid{display:grid;gap:14px;}
.chk-grid-2{grid-template-columns:repeat(2,1fr);}
.chk-grid-4{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}
.chk-sel{position:relative;padding:18px;border:1px dashed var(--ch-line);background:#fff;border-radius:12px;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease,transform .2s ease;overflow:hidden;}
.chk-sel:hover{border-color:rgba(245,166,35,.55);background:#fffdf9;box-shadow:0 10px 26px rgba(27,28,29,.035);transform:translateY(-1px);}
.chk-sel.active{border-style:dashed;border-color:var(--ch-accent);background:rgba(245,166,35,.035);}
.chk-sel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px;position:relative;z-index:1;}
.chk-sel-head svg{width:20px;height:20px;color:var(--ch-muted);}
.chk-sel.active .chk-sel-head svg{color:var(--ch-accent);}
.chk-badge{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;background:var(--ch-accent);color:#fff;padding:2px 8px;border-radius:4px;}
.chk-sel-name{font-size:14px;font-weight:600;color:var(--ch-ink);margin:0;position:relative;z-index:1;}
.chk-sel-meta{font-size:12px;color:var(--ch-muted);margin:3px 0 0;position:relative;z-index:1;}

/* payment cards (centered icon + label) */
.chk-pay{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 12px;text-align:center;}
.chk-pay svg{width:22px;height:22px;color:var(--ch-muted);position:relative;z-index:1;}
.chk-pay.active svg{color:var(--ch-accent);}
.chk-pay-name{font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--ch-ink);position:relative;z-index:1;}

/* iCheck skins are kept (WHMCS needs ifChecked) but made invisible and stretched
   to cover the whole card so a click anywhere selects the option. */
.chk-pay .iradio_square-blue,.chk-pay .icheckbox_square-blue,
.chk-sel .iradio_square-blue,.chk-sel .icheckbox_square-blue{
  position:absolute !important;top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;
  width:100% !important;height:100% !important;margin:0 !important;padding:0 !important;
  background:transparent !important;border:0 !important;opacity:0 !important;z-index:2;}
.chk-pay .iradio_square-blue .iCheck-helper,.chk-pay .icheckbox_square-blue .iCheck-helper,
.chk-sel .iradio_square-blue .iCheck-helper,.chk-sel .icheckbox_square-blue .iCheck-helper{
  width:100% !important;height:100% !important;top:0 !important;left:0 !important;}
.chk-pay input,.chk-sel input{position:absolute !important;opacity:0 !important;}

/* form fields */
.chk-field{margin-bottom:16px;}
.chk-field label{display:block;font-size:11px;font-weight:500;letter-spacing:.02em;color:var(--ch-muted);margin-bottom:6px;}
.chk-input{display:block;width:100%;height:42px;border:1px dashed var(--ch-line);border-radius:9px;background:#fff;padding:0 13px;font-size:13px;color:var(--ch-ink);outline:none;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;}
textarea.chk-input{min-height:104px;height:auto;padding:12px 13px;resize:vertical;line-height:1.5;}
.chk-input:focus{border-style:dashed;border-color:var(--ch-accent);box-shadow:0 0 0 3px rgba(245,166,35,.1);}
/* native select -> themed dropdown with chevron */
select.chk-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:38px;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6f7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center;background-size:15px;}

/* outline buttons — stay outline, no bold fill */
.chk-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 20px;border:1px dashed var(--ch-accent);background:#fff;color:var(--ch-accent);border-radius:9px;font-size:12px;font-weight:600;letter-spacing:.02em;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease;}
.chk-btn:hover{background:rgba(245,166,35,.07);transform:translateY(-1px);}

/* credit-card capture — distinct dashed block (override order-form's .cc-input-container) */
#order-standard_cart #creditCardInputFields.chk-cc{margin-top:24px !important;padding:24px !important;border:1.5px dashed var(--ch-accent) !important;border-radius:14px !important;background:rgba(245,166,35,.03) !important;}
#order-standard_cart .w-hidden,
#order-standard_cart #creditCardInputFields.w-hidden{display:none !important;}
#order-standard_cart #creditCardInputFields:not(.ch-show-cc){display:none !important;}
.chk-cc .row{margin-bottom:0;}
.chk-ccinfo-compat{display:none !important;height:0 !important;margin:0 !important;padding:0 !important;border:0 !important;overflow:hidden !important;list-style:none !important;}
.chk-radioline{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ch-muted);}
.existing-cc-grid{margin-bottom:14px;}
.field-error-msg{display:none;font-size:11px;color:#ba1a1a;margin-top:4px;}
.has-error .field-error-msg,.field-error-msg.show{display:block;}
.gateway-errors:not(.w-hidden){display:block;border:1px dashed #ba1a1a;background:#ffdad6;color:#93000a;border-radius:9px;padding:12px 16px;font-size:13px;}

/* TOS — custom checkbox driven by iCheck state (.checked) */
.chk-tos{display:flex;align-items:flex-start;gap:14px;cursor:pointer;position:relative;}
.chk-tos .icheckbox_square-blue{position:absolute !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important;margin:0 !important;background:transparent !important;opacity:0 !important;z-index:2;}
.chk-tos .icheckbox_square-blue .iCheck-helper{width:100% !important;height:100% !important;top:0 !important;left:0 !important;}
.chk-tos input{position:absolute !important;opacity:0 !important;}
.chk-tos-box{width:20px;height:20px;flex:0 0 auto;border:1px dashed rgba(115,119,132,.5);border-radius:5px;display:flex;align-items:center;justify-content:center;background:#fff;transition:all .15s ease;position:relative;z-index:1;}
.chk-tos-box svg{width:13px;height:13px;color:#fff;opacity:0;}
.chk-tos-box.checked{background:var(--ch-accent);border-style:dashed;border-color:var(--ch-accent);}
.chk-tos-box.checked svg{opacity:1;}
.chk-tos-text{font-size:13px;color:var(--ch-muted);line-height:1.55;position:relative;z-index:1;}
.chk-tos-text a{color:var(--ch-accent);font-weight:600;text-decoration:underline;text-underline-offset:2px;}
/* TOS in sidebar (under Need Assistance) */
.chk-tos-aside{margin-top:16px;padding:18px;border:1px dashed var(--ch-line);background:#fafafa;border-radius:12px;align-items:center;}

/* sidebar summary */
.chk-summary{border:1px dashed var(--ch-accent);background:#fff;border-radius:12px;padding:24px;box-shadow:0 14px 36px rgba(27,28,29,.04);}
.chk-summary h2{font-size:15px;font-weight:600;color:var(--ch-ink);margin:0 0 18px;}
.chk-sum-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:11px;}
.chk-sum-row:last-of-type{margin-bottom:0;}
.chk-sum-row span:first-child{color:var(--ch-muted);}
.chk-sum-row span:last-child{color:var(--ch-ink);font-weight:500;}
.chk-total{background:rgba(245,166,35,.04);border:1px dashed rgba(245,166,35,.4);border-radius:10px;padding:16px;text-align:center;margin:18px 0;}
.chk-total-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;color:var(--ch-accent);margin:0 0 6px;}
.chk-total-amt{font-size:22px;font-weight:700;color:var(--ch-ink);margin:0;letter-spacing:-0.01em;}
.chk-complete{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px;border:1px dashed var(--ch-accent);background:#fff;color:var(--ch-accent);border-radius:9px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;transition:background .2s ease,transform .2s ease,border-color .2s ease;}
.chk-complete:hover{background:rgba(245,166,35,.08);}
.chk-complete svg{width:15px;height:15px;transition:transform .15s ease;}
.chk-complete:hover{transform:translateY(-1px);}
.chk-complete:hover svg{transform:translateX(3px);}
.chk-ssl{font-size:10px;text-align:center;color:var(--ch-muted);margin:16px 0 0;letter-spacing:.04em;}
.chk-assist{display:flex;gap:12px;align-items:center;margin-top:16px;padding:18px;border:1px dashed var(--ch-line);background:#fafafa;border-radius:12px;}
.chk-assist svg{width:22px;height:22px;color:var(--ch-muted);flex:0 0 auto;}
.chk-assist-t{font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--ch-ink);margin:0;}
.chk-assist-s{font-size:12px;color:var(--ch-muted);margin:2px 0 0;}

@media (max-width:991px){.chk-grid-4{grid-template-columns:repeat(2,1fr);}.chk-grid-2{grid-template-columns:1fr;}}
@media (max-width:576px){.chk-head h1{font-size:20px;}.chk-item{grid-template-columns:1fr;align-items:flex-start;}.chk-item-right{width:100%;grid-template-columns:1fr;justify-content:stretch;align-items:stretch;}.chk-item-price{align-items:flex-start;}.chk-item-actions{justify-content:flex-start;}}

/* --- Restore Bootstrap grid for inner form rows. NOTE: display is intentionally NOT
   !important so WHMCS's native .hide()/slideUp (inline display:none) still wins — e.g.
   #newCardInfo hidden for remote gateways (PayPal button-only). Col widths stay !important. --- */
#order-standard_cart #frmCheckout .row,
#order-standard_cart #frmUpdateCart .row{display:flex;flex-wrap:wrap;margin-left:-7px !important;margin-right:-7px !important;}
#order-standard_cart #frmCheckout [class*="col-"]{padding-left:7px !important;padding-right:7px !important;float:none !important;}
#order-standard_cart #frmCheckout .col-sm-6{flex:0 0 50% !important;max-width:50% !important;}
#order-standard_cart #frmCheckout .col-sm-4{flex:0 0 33.333% !important;max-width:33.333% !important;}
#order-standard_cart #frmCheckout .col-sm-3{flex:0 0 25% !important;max-width:25% !important;}
#order-standard_cart #frmCheckout .col-md-6{flex:0 0 50% !important;max-width:50% !important;}
#order-standard_cart #frmCheckout .col-md-5{flex:0 0 41.666% !important;max-width:41.666% !important;}
#order-standard_cart #frmCheckout .col-md-2{flex:0 0 16.666% !important;max-width:16.666% !important;}
@media (max-width:767px){
  #order-standard_cart #frmCheckout .col-sm-6,
  #order-standard_cart #frmCheckout .col-sm-4,
  #order-standard_cart #frmCheckout .col-sm-3,
  #order-standard_cart #frmCheckout .col-md-6,
  #order-standard_cart #frmCheckout .col-md-5,
  #order-standard_cart #frmCheckout .col-md-2{flex:0 0 100% !important;max-width:100% !important;}
}

/* cart qty (WHMCS native: number input + Update submit) */
.chk-qty{display:inline-grid;grid-template-columns:32px 46px 32px 32px;align-items:center;gap:6px;height:42px;padding:4px;border:1px dashed var(--ch-line);border-radius:10px;background:#fff;}
.chk-qty-input{width:46px;height:32px;text-align:center;border:0;border-left:1px dashed var(--ch-line);border-right:1px dashed var(--ch-line);border-radius:0;background:#fff;font-size:13px;font-weight:600;color:var(--ch-ink);outline:none;}
.chk-qty-input:focus{border-style:dashed;border-color:var(--ch-accent);}
.chk-qty-step,.chk-qty-submit{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px dashed transparent;background:#fff;color:var(--ch-muted);border-radius:8px;cursor:pointer;outline:none !important;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;}
.chk-qty-step:hover,.chk-qty-submit:hover{border-color:var(--ch-accent);background:rgba(245,166,35,.08);color:var(--ch-accent);transform:translateY(-1px);}
.chk-qty-step svg,.chk-qty-submit svg{width:14px;height:14px;}
.chk-qty-submit{color:var(--ch-accent);}

/* force outline on our buttons — beat theme/global filled-button styles */
#order-standard_cart .chk-complete,
#order-standard_cart .chk-btn,
#order-standard_cart .chk-authtab{
  background:#fff !important;color:var(--ch-accent) !important;border:1px dashed var(--ch-accent) !important;
  box-shadow:none !important;text-shadow:none !important;background-image:none !important;font-weight:600 !important;}
#order-standard_cart .chk-complete:hover,
#order-standard_cart .chk-btn:hover{background:rgba(245,166,35,.08) !important;color:var(--ch-accent) !important;}
#order-standard_cart .chk-authtab{color:var(--ch-muted) !important;border-color:var(--ch-line) !important;font-weight:500 !important;}
#order-standard_cart .chk-authtab.active{border-style:dashed !important;border-color:var(--ch-accent) !important;color:var(--ch-accent) !important;font-weight:600 !important;}

/* New Sidebar Card Styling */
.sidebar-card-custom {
    background: #fff;
    border: 1px dashed var(--ch-accent);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: sticky;
    top: 24px;
    transition: all 0.3s ease;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ch-ink);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed var(--ch-line);
    padding-bottom: 12px;
}

.chx-sum-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chx-sum-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ch-accent);
    margin: 0;
}

.chx-sum-price {
    font-weight: 700;
    color: var(--ch-ink);
}

.chx-sum-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--ch-line);
}

.chx-sum-h {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ch-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.chx-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.chx-row-key {
    color: var(--ch-muted);
}

.chx-row-val {
    color: var(--ch-ink);
    font-weight: 500;
}

.chx-tot-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.chx-total-due {
    background: var(--ch-accent-soft);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
}

.chx-total-due-label {
    font-weight: 600;
    color: var(--ch-ink);
}

.chx-total-due-amt {
    font-size: 18px;
    font-weight: 800;
    color: var(--ch-accent);
}

.btn-main-custom {
    width: 100%;
    height: 48px;
    background: #fff !important;
    border: 1px dashed var(--ch-accent) !important;
    color: var(--ch-accent) !important;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-main-custom:hover {
    background: var(--ch-accent) !important;
    color: #fff !important;
    border-style: solid !important;
}

.ssl-badge-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    color: var(--ch-muted);
    margin-top: 12px;
}

/* cart item price: amount + cycle + setup/prorata */
.chk-item-price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.3;}
.chk-item-cycle{font-size:11px;font-weight:500;color:var(--ch-muted);}
.chk-item-setup{font-size:11px;font-weight:400;color:var(--ch-muted);}

/* confirm modal (chk styling on top of bootstrap .modal mechanism) */
.chk-modal .modal-dialog{max-width:380px;margin:1.75rem auto;}
.chk-modal-content{background:#fff;border:1.5px dashed var(--ch-accent);border-radius:16px;padding:32px 28px;text-align:center;}
.chk-modal-ico{width:54px;height:54px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;border:1px dashed #ba1a1a;background:#ffdad6;border-radius:50%;color:#ba1a1a;}
.chk-modal-ico svg{width:24px;height:24px;}
.chk-modal-title{font-size:17px;font-weight:700;color:var(--ch-ink);margin:0 0 6px;}
.chk-modal-text{font-size:13px;color:var(--ch-muted);margin:0 0 22px;}
.chk-modal-actions{display:flex;gap:10px;justify-content:center;}
.chk-btn-ghost{border-color:var(--ch-line) !important;color:var(--ch-muted) !important;}
.chk-btn-ghost:hover{background:#f5f3f4 !important;}
.chk-btn-danger{border-color:#ba1a1a !important;color:#ba1a1a !important;}
.chk-btn-danger:hover{background:#ffdad6 !important;}

/* Pro-rata note on cart item price — plain text */
.chk-item-prorata{display:block;margin-top:4px;font-size:11px;font-weight:500;color:#d35400;}

/* country/security selects use theme custom-select but match chk-field sizing */
#order-standard_cart #frmCheckout .chk-field .custom-select{height:42px !important;border:1px dashed var(--ch-line) !important;border-radius:9px !important;font-size:13px !important;color:var(--ch-ink) !important;box-shadow:none !important;background-color:#fff !important;}
#order-standard_cart #frmCheckout .chk-field .custom-select:focus{border-style:dashed !important;border-color:var(--ch-accent) !important;box-shadow:0 0 0 3px rgba(245,166,35,.12) !important;}

/* Figma-style custom dropdown wrapper. Native select remains in the form for WHMCS. */
#order-standard_cart .ch-select{position:relative;width:100%;z-index:20;}
#order-standard_cart .ch-native-select{position:absolute !important;inset:0 !important;width:100% !important;height:42px !important;opacity:0 !important;pointer-events:none !important;}
#order-standard_cart .ch-select-btn{width:100%;height:42px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 13px;border:1px dashed var(--ch-line);border-radius:10px;background:#fff;color:var(--ch-ink);font-size:13px;font-weight:400;text-align:left;cursor:pointer;outline:none !important;box-shadow:5px 5px 10px rgba(245,166,35,.06);transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;}
#order-standard_cart .ch-select-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#order-standard_cart .ch-select-btn svg{width:16px;height:16px;color:var(--ch-muted);flex:0 0 auto;transition:transform .2s ease,color .2s ease;}
#order-standard_cart .ch-select.open .ch-select-btn{border-color:var(--ch-accent);box-shadow:0 0 0 3px rgba(245,166,35,.1),5px 5px 10px rgba(245,166,35,.08);}
#order-standard_cart .ch-select.open .ch-select-btn svg{transform:rotate(180deg);color:var(--ch-accent);}
#order-standard_cart .ch-select-menu{display:none;position:absolute;left:0;right:0;top:46px;z-index:1090;max-height:280px;overflow-y:auto;padding:4px;background:#fff;border:0;border-radius:10px;box-shadow:0 18px 42px rgba(27,28,29,.14),5px 5px 10px rgba(245,166,35,.08);}
#order-standard_cart .ch-select.open .ch-select-menu{display:block;}
#order-standard_cart .ch-select-item{width:100%;min-height:39px;display:block;padding:10px;border:0;border-radius:10px;background:#fff;color:var(--ch-ink);font-size:13px;font-weight:400;line-height:1.2;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;outline:none !important;transition:background .15s ease,color .15s ease;}
#order-standard_cart .ch-select-item:hover,
#order-standard_cart .ch-select-item:focus,
#order-standard_cart .ch-select-item.active{background:rgba(245,166,35,.14);color:var(--ch-ink);}
#order-standard_cart .ch-select-menu::-webkit-scrollbar{width:6px;}
#order-standard_cart .ch-select-menu::-webkit-scrollbar-thumb{background:rgba(245,166,35,.35);border-radius:999px;}
#order-standard_cart #paymentGatewayInput:empty{display:none !important;}
#order-standard_cart #paymentGatewayInput:not(:empty){display:block !important;margin-top:18px;}

/* order notes */
.chk-order-notes .chk-form-card{padding-bottom:22px;}
.chk-order-notes label{line-height:1.45;}

@media (max-width:991px){
  #order-standard_cart .col-lg-4 aside{position:static !important;margin-top:8px;}
  .chk-summary{margin-top:6px;}
}

/* ===== Checkout review sidebar — desktop sticky (scoped) ===== */
@media (min-width: 992px) {
  #order-standard_cart .row {
    align-items: flex-start;
  }
  #order-standard_cart .col-lg-4 {
    align-self: stretch;
  }
  #order-standard_cart .col-lg-4 .sidebar-card-custom {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: flex-start;
  }
}
