/* =====================================================================
   Nerd Staff Cart - base styles for the order form (standalone, no Lagom).
   The VPSNerds checkout design (nerd-order.css, loaded by the theme hook)
   sits on top of this file.
   ===================================================================== */

/* ---------- Layout ---------- */
#order-standard_cart { width: 100%; }
#order-standard_cart .main-grid { display: flex; gap: 28px; align-items: flex-start; }
#order-standard_cart .main-content { flex: 1 1 auto; min-width: 0; }
#order-standard_cart .main-sidebar { flex: 0 0 270px; width: 270px; }
#order-standard_cart .main-sidebar-lg { flex: 0 0 352px; width: 352px; }
#order-standard_cart .sidebar-sticky { position: sticky; top: 24px; }
@media (max-width: 1100px) {
    #order-standard_cart .main-grid { flex-direction: column; }
    #order-standard_cart .main-sidebar, #order-standard_cart .main-sidebar-lg { flex: 0 0 auto; width: 100%; }
    #order-standard_cart .sidebar-sticky { position: static; }
}
#order-standard_cart .section { margin: 0 0 32px; }
#order-standard_cart .section-header { margin: 0 0 16px; }
#order-standard_cart .section-title { font-family: Outfit, "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 600; color: #0f172a; margin: 0; }
#order-standard_cart .section-desc { color: #64748b; margin: 6px 0 0; }
#order-standard_cart .hidden, #order-standard_cart .w-hidden { display: none !important; }
#order-standard_cart .d-flex { display: flex; }
#order-standard_cart .space-between { justify-content: space-between; }
#order-standard_cart .w-100 { width: 100%; }
#order-standard_cart .m-b-0 { margin-bottom: 0 !important; }

/* ---------- Panels ---------- */
#order-standard_cart .panel { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .04); }
#order-standard_cart .panel-heading { padding: 16px 20px; border-bottom: 1px solid #eef1f6; }
#order-standard_cart .panel-title { font-family: Outfit, "Plus Jakarta Sans", sans-serif; font-size: 18px; font-weight: 700; color: #0f172a; margin: 0; }
#order-standard_cart .panel-body { padding: 20px; }
#order-standard_cart .panel-footer { padding: 16px 20px; border-top: 1px solid #eef1f6; background: #f8fafc; border-radius: 0 0 16px 16px; }
#order-standard_cart .product-config-info h2 { font-family: Outfit, sans-serif; font-size: 24px; font-weight: 700; color: #0f172a; margin: 0 0 6px; }

/* ---------- Selection cards (billing cycle, options, add-ons, payment) ---------- */
#order-standard_cart .panel-check-group { display: flex; flex-wrap: wrap; margin: 0 -8px; }
#order-standard_cart .panel-check-group > [class*="col-"] { padding: 0 8px; margin-bottom: 16px; }
#order-standard_cart .panel-check { position: relative; height: 100%; margin: 0; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
#order-standard_cart .panel-check:hover { border-color: #c9bffb; }
#order-standard_cart .panel-check.checked { border-color: #5b3df5; box-shadow: 0 0 0 3px rgba(91, 61, 245, .14); }
#order-standard_cart .panel-check .check { height: 100%; }
#order-standard_cart .panel-check label { display: flex; align-items: flex-start; gap: 12px; height: 100%; margin: 0; padding: 16px 18px; cursor: pointer; font-weight: 400; }
#order-standard_cart .panel-check .iradio_square-blue, #order-standard_cart .panel-check .icheckbox_square-blue,
#order-standard_cart .panel-check input[type=radio], #order-standard_cart .panel-check input[type=checkbox] { flex: 0 0 auto; margin-top: 3px; }
#order-standard_cart .check-content { flex: 1; min-width: 0; }
#order-standard_cart .check-title { font-family: Outfit, "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 600; color: #0f172a; margin: 0; line-height: 1.35; }
#order-standard_cart .check-subtitle { font-size: 13px; color: #64748b; margin: 4px 0 0; }
#order-standard_cart .check-desc { font-size: 13px; color: #64748b; margin-top: 6px; }

/* iCheck (WHMCS's radio/checkbox plugin): simple native-looking boxes */
#order-standard_cart .iradio_square-blue, #order-standard_cart .icheckbox_square-blue { position: relative; display: inline-block; width: 18px; height: 18px; border: 2px solid #c4c8d0; background: #fff; vertical-align: middle; cursor: pointer; }
#order-standard_cart .iradio_square-blue { border-radius: 50%; }
#order-standard_cart .icheckbox_square-blue { border-radius: 5px; }
#order-standard_cart .iradio_square-blue.checked { border-color: #5b3df5; box-shadow: inset 0 0 0 3px #fff; background: #5b3df5; }
#order-standard_cart .icheckbox_square-blue.checked { border-color: #5b3df5; background: #5b3df5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E") no-repeat center / 10px; }
#order-standard_cart .iradio_square-blue.disabled, #order-standard_cart .icheckbox_square-blue.disabled { opacity: .5; cursor: default; }

/* ---------- Forms (standard checkout field markup) ---------- */
#order-standard_cart .form-group { margin-bottom: 14px; }
#order-standard_cart .form-control { height: 44px; padding: 8px 14px; font-size: 14px; color: #17191c; background: #fff; border: 1px solid #e6eaf1; border-radius: 11px; box-shadow: none; }
#order-standard_cart textarea.form-control { height: auto; }
#order-standard_cart .form-control:focus { border-color: #5b3df5; box-shadow: 0 0 0 4px rgba(91, 61, 245, .18); outline: 0; }
#order-standard_cart .prepend-icon { position: relative; }
#order-standard_cart .prepend-icon .field-icon { position: absolute; left: 0; top: 0; width: 42px; height: 44px; display: flex; align-items: center; justify-content: center; margin: 0; color: #a3a7b0; z-index: 2; pointer-events: none; }
#order-standard_cart .prepend-icon .field { padding-left: 40px; }
#order-standard_cart .field-container { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; padding: 20px; margin-bottom: 24px; }
#order-standard_cart #frmCheckout > .row, #order-standard_cart #containerNewUserSignup > .row, #order-standard_cart #domainRegistrantInputFields { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; padding: 20px 8px 6px; margin: 0 0 24px; }
#order-standard_cart .already-registered { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: #64748b; }
#order-standard_cart .already-registered p { margin: 0; }
#order-standard_cart .account-select-container .account { border: 1px solid #e6eaf1; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
#order-standard_cart .account-select-container .account.active { border-color: #5b3df5; }
#order-standard_cart #totalDueToday.alert { display: none; }
#order-standard_cart .gateway-errors { margin-top: 12px; }
#order-standard_cart .cc-input-container { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; padding: 20px; margin-top: 16px; }
#order-standard_cart .marketing-email-optin { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; padding: 20px; margin-bottom: 24px; }
#order-standard_cart .checkout-security-msg { display: flex; gap: 10px; align-items: flex-start; }

/* ---------- Cart items ---------- */
#order-standard_cart .panel-cart .cart-heading { display: flex; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #64748b; background: #f8fafc; border-radius: 16px 16px 0 0; }
#order-standard_cart .panel-cart .title-col { flex: 1; }
#order-standard_cart .panel-cart .price-col { width: 220px; }
#order-standard_cart .panel-cart .actions-col { width: 80px; }
#order-standard_cart .cart-item { display: flex; flex-wrap: wrap; align-items: center; padding: 16px 0; border-top: 1px solid #eef1f6; }
#order-standard_cart .cart-item:first-child { border-top: 0; padding-top: 0; }
#order-standard_cart .cart-item-title { flex: 1; min-width: 0; }
#order-standard_cart .cart-item-title-main { display: block; font-weight: 700; color: #0f172a; font-size: 15px; }
#order-standard_cart .cart-item-title-small { display: block; font-size: 12.5px; color: #64748b; }
#order-standard_cart .cart-item-pricing { width: 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#order-standard_cart .cart-item-pricing .cycle, #order-standard_cart .cart-item-setup, #order-standard_cart .cart-item-renewal, #order-standard_cart .cart-item-prorata { font-size: 12px; color: #64748b; }
#order-standard_cart .cart-item-actions { width: 80px; display: flex; gap: 4px; justify-content: flex-end; }
#order-standard_cart .btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #64748b; }
#order-standard_cart .btn-hover-danger:hover { color: #dc2626; }
#order-standard_cart .cart-item-config { flex: 0 0 100%; margin-top: 12px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 12px; padding: 6px 16px; }
#order-standard_cart .config-option { display: flex; align-items: center; padding: 6px 0; border-top: 1px solid #eef1f6; font-size: 13px; }
#order-standard_cart .config-option:first-child { border-top: 0; }
#order-standard_cart .config-option-title { flex: 1; color: #64748b; }
#order-standard_cart .config-option-title .item-value { color: #0f172a; font-weight: 600; }
#order-standard_cart .config-option-price { width: 200px; color: #334155; }
#order-standard_cart .cart-item-qty { display: flex; gap: 6px; }
#order-standard_cart .cart-item-qty .form-control { width: 70px; height: 32px; }
@media (max-width: 767px) {
    #order-standard_cart .panel-cart .price-col, #order-standard_cart .panel-cart .actions-col { display: none; }
    #order-standard_cart .cart-item-pricing { width: auto; flex: 1 1 auto; margin-top: 10px; }
    #order-standard_cart .cart-item-actions { margin-top: 10px; }
}

/* ---------- Promo ---------- */
#order-standard_cart .search-group { display: flex; gap: 10px; }
#order-standard_cart .search-field { flex: 1; }
#order-standard_cart .panel-promo-code .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; }
#order-standard_cart .label-savings { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #e8f7ee; color: #15803d; font-weight: 700; }

/* ---------- Summary ---------- */
#order-standard_cart .panel-summary { overflow: hidden; }
#order-standard_cart .summary-list { list-style: none; margin: 0; padding: 0; }
#order-standard_cart .summary-list + .summary-list { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; }
#order-standard_cart .summary-list .list-item { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: #334155; }
#order-standard_cart .summary-list .list-item.faded { color: #8a8f99; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
#order-standard_cart .summary-product .product-name { display: block; font-weight: 700; color: #0f172a; }
#order-standard_cart .summary-product .product-group { display: block; font-size: 12.5px; color: #64748b; margin-bottom: 10px; }
#order-standard_cart .price { display: flex; flex-direction: column; }
#order-standard_cart .price-total, #order-standard_cart .price-starting-from { font-size: 13px; color: #64748b; }
#order-standard_cart .price-amount { font-family: Outfit, sans-serif; font-size: 24px; font-weight: 700; color: #0f172a; }
#order-standard_cart .price-cycle { font-size: 13px; color: #64748b; }
#order-standard_cart .summary-actions { margin-top: 14px; }
#order-standard_cart .btn-checkout { width: 100%; }
#order-standard_cart .order-checkbox { margin-top: 14px; }
#order-standard_cart .order-checkbox label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0; }
#order-standard_cart #orderSummaryLoader { display: none; }

/* ---------- Store (product cards) ---------- */
#order-standard_cart .products .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
#order-standard_cart .products .col { flex: 1 1 300px; max-width: 100%; padding: 0 10px; margin-bottom: 20px; }
#order-standard_cart .package { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .04); }
#order-standard_cart .package-side-left { flex: 1; padding: 24px; }
#order-standard_cart .package-title { font-family: Outfit, sans-serif; font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 10px; }
#order-standard_cart .package-side-left .package-price { display: none; }
#order-standard_cart .package-content { color: #4b4f58; font-size: 14px; }
#order-standard_cart .package-content ul { list-style: none; padding: 0; margin: 0; }
#order-standard_cart .package-content li { padding: 4px 0; }
#order-standard_cart .package-footer { padding: 20px 24px; border-top: 1px solid #eef1f6; }
#order-standard_cart .package-footer .btn-order-now { width: 100%; margin-top: 12px; }

/* ---------- Empty cart / loading / complete ---------- */
#order-standard_cart .message-no-data { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; padding: 24px; background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; text-align: center; }
#order-standard_cart .message-no-data .message-image { font-size: 40px; color: #c4c8d0; }
#order-standard_cart .message-no-data .message-title { font-size: 18px; font-weight: 400; color: #17191c; margin: 20px 0; }
#order-standard_cart .nsc-complete { text-align: center; background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; padding: 40px 24px; margin-bottom: 24px; }
#order-standard_cart .nsc-complete-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: #e8f7ee; color: #15803d; font-size: 28px; margin-bottom: 12px; }
#order-standard_cart .nsc-order-number span { font-weight: 700; color: #0f172a; }
#order-standard_cart .nsc-complete-actions { margin-top: 16px; }
