/* AIO-STYLING-START - managed by All in One Styling Manager, do not edit this block */
@import url("aio-styling.css?v=20261110184329");
/* AIO-STYLING-END */

/* ==========================================================
   J2Store Cart – Band Engine Room
   Paste into templates/shaper_helixultimate/css/custom.css
   (or Helix Ultimate > Custom Code > CSS)
   Items + Qty + Total on the LEFT, Totals + Checkout on the RIGHT
   ========================================================== */

body.view-carts {
  --cart-accent: #0345bf;          /* matches template link colour */
  --cart-accent-dark: #022f86;
  --cart-ink: #1d2433;
  --cart-muted: #6b7385;
  --cart-line: #eceff4;
  --cart-card: #ffffff;
  --cart-radius: 18px;
  --cart-shadow: 0 12px 40px rgba(17, 24, 39, .08);
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 60%);
}

/* ---------- Page title ---------- */
body.view-carts .page-header { border: 0; margin-bottom: 1.5rem; text-align: center; }
body.view-carts .page-header h1 {
  font-weight: 600; letter-spacing: -.02em; color: var(--cart-ink);
}
body.view-carts .page-header h1::after {
  content: ""; display: block; width: 56px; height: 4px; margin: .6rem auto 0;
  border-radius: 4px; background: var(--cart-accent);
}

/* ---------- Two-column layout ---------- */
body.view-carts .j2store-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 3rem;
}
/* 1st row is an empty spacer in J2Store – drop it */
body.view-carts .j2store-cart > .row:first-child { display: none; }

/* neutralise bootstrap row/col inside the grid */
body.view-carts .j2store-cart > .row { margin: 0; display: block; }
body.view-carts .j2store-cart > .row > [class*="col-"] { padding: 0; width: 100%; max-width: 100%; }

/* LEFT: items form */
body.view-carts .j2store-cart > .row:nth-child(2) {
  grid-column: 1; grid-row: 1;
  background: var(--cart-card);
  border-radius: var(--cart-radius);
  box-shadow: var(--cart-shadow);
  padding: 8px 28px 24px;
}

/* RIGHT: totals + estimator row */
body.view-carts .j2store-cart > .row:nth-child(3) {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
body.view-carts .j2store-cart > .row:nth-child(3) > .col-md-6 { width: 100%; }
/* totals first, coupon/shipping estimator (when enabled) underneath */
body.view-carts .j2store-cart > .row:nth-child(3) > .col-md-6:last-child { order: -1;
  background: var(--cart-card);
  border-radius: var(--cart-radius);
  box-shadow: var(--cart-shadow);
  padding: 26px 28px 28px;
}
body.view-carts #j2store-cart-modules:not(:empty) {
  background: var(--cart-card); border-radius: var(--cart-radius);
  box-shadow: var(--cart-shadow); padding: 20px 24px;
}

/* ---------- Items table ---------- */
body.view-carts .j2store-cart-table,
body.view-carts .j2store-cart-table th,
body.view-carts .j2store-cart-table td {
  border: 0 !important; background: transparent !important; box-shadow: none;
}
body.view-carts .j2store-cart-table { margin: 0; }
body.view-carts .j2store-cart-table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--cart-muted); font-weight: 500;
  padding: 20px 10px 14px; border-bottom: 1px solid var(--cart-line) !important;
}
body.view-carts .j2store-cart-table tbody td {
  padding: 22px 10px; vertical-align: middle;
  border-bottom: 1px solid var(--cart-line) !important;
}
body.view-carts .j2store-cart-table tbody tr:last-child td { border-bottom: 0 !important; }

body.view-carts .cart-thumb-image { float: left; margin-right: 18px; }
body.view-carts .cart-thumb-image img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
body.view-carts .cart-product-name {
  display: block; font-weight: 600; font-size: 1.05rem; color: var(--cart-ink);
  padding-top: 6px;
}
body.view-carts .cart-product-unit-price { color: var(--cart-muted); font-size: .88rem; }
body.view-carts .cart-product-unit-price .cart-item-title { margin-right: 6px; }
body.view-carts .cart-product-unit-price .cart-item-title::after { content: ":"; }
body.view-carts .cart-line-subtotal { font-weight: 600; font-size: 1.1rem; color: var(--cart-ink); white-space: nowrap; }

/* Quantity + remove */
body.view-carts .product-qty { display: inline-block; }
body.view-carts .product-qty input {
  width: 76px; height: 44px; text-align: center;
  border: 1px solid #d9dee8; border-radius: 12px; font-weight: 500;
  background: #f8f9fc; transition: .15s;
}
body.view-carts .product-qty input:focus {
  outline: 0; border-color: var(--cart-accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(3, 69, 191, .14);
}
body.view-carts a.j2store-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 8px; padding: 0;
  border-radius: 50%; border: 0; background: #fdecec; color: #c62828;
  transition: .15s;
}
body.view-carts a.j2store-remove:hover { background: #c62828; color: #fff; transform: scale(1.06); }

/* ---------- Buttons ---------- */
body.view-carts .j2store-cart-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
body.view-carts .j2store-cart .btn {
  border-radius: 999px; padding: 12px 26px; font-weight: 500; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s;
}
body.view-carts .j2store-cart .btn:hover { transform: translateY(-1px); }
body.view-carts .j2store-cart .btn-primary {            /* Continue shopping */
  background: transparent; color: var(--cart-accent);
  box-shadow: inset 0 0 0 2px var(--cart-accent);
}
body.view-carts .j2store-cart .btn-primary:hover { background: var(--cart-accent); color: #fff; }
body.view-carts .j2store-cart .btn-warning {            /* Update */
  background: #eef1f7; color: var(--cart-ink);
}
body.view-carts .j2store-cart .btn-warning:hover { background: #e1e6f0; }

/* ---------- Totals card ---------- */
body.view-carts .j2store-cart h3 {
  font-size: 1.2rem; font-weight: 600; color: var(--cart-ink); margin: 0 0 14px;
}
body.view-carts table.cart-footer,
body.view-carts table.cart-footer th,
body.view-carts table.cart-footer td {
  border: 0 !important; background: transparent !important;
}
body.view-carts table.cart-footer { margin-bottom: 18px; }
body.view-carts table.cart-footer th,
body.view-carts table.cart-footer td { padding: 12px 0; border-bottom: 1px dashed var(--cart-line) !important; }
body.view-carts table.cart-footer th { font-weight: 400; color: var(--cart-muted); }
body.view-carts table.cart-footer td { text-align: right; font-weight: 600; color: var(--cart-ink); }
body.view-carts table.cart-footer tr:last-child th,
body.view-carts table.cart-footer tr:last-child td {
  border-bottom: 0 !important; padding-top: 18px;
  font-size: 1.35rem; font-weight: 700; color: var(--cart-ink);
}

/* Proceed to Checkout */
body.view-carts .j2store-cart .buttons-right,
body.view-carts .cart-checkout-button { display: block; width: 100%; }
body.view-carts .cart-checkout-button .btn-success {
  display: block; width: 100%; padding: 16px 24px; font-size: 1.05rem; font-weight: 600;
  color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--cart-accent) 0%, #1c6bff 100%);
  box-shadow: 0 10px 24px rgba(3, 69, 191, .35);
}
body.view-carts .cart-checkout-button .btn-success:hover {
  background: linear-gradient(135deg, var(--cart-accent-dark) 0%, var(--cart-accent) 100%);
  box-shadow: 0 14px 30px rgba(3, 69, 191, .45);
}
body.view-carts .cart-checkout-button .btn-success::after { content: "  →"; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 991px) {
  body.view-carts .j2store-cart { grid-template-columns: 1fr; gap: 20px; }
  body.view-carts .j2store-cart > .row:nth-child(2),
  body.view-carts .j2store-cart > .row:nth-child(3) { grid-column: 1; }
  body.view-carts .j2store-cart > .row:nth-child(3) { grid-row: 2; position: static; }
}
@media (max-width: 576px) {
  body.view-carts .j2store-cart > .row:nth-child(2) { padding: 4px 14px 18px; }
  body.view-carts .cart-thumb-image img { width: 56px; height: 56px; }
  body.view-carts .j2store-cart-table tbody td { padding: 16px 4px; }
  body.view-carts a.j2store-remove { margin: 8px 0 0; display: flex; }
}

/* ==========================================================
   J2Store Checkout – Band Engine Room
   Append to templates/shaper_helixultimate/css/custom.css
   (goes after the cart CSS; every rule is scoped to body.view-checkout)
   ========================================================== */

body.view-checkout {
  --co-accent: #0345bf;
  --co-accent-dark: #022f86;
  --co-ink: #1d2433;
  --co-muted: #6b7385;
  --co-line: #eceff4;
  --co-field: #d9dee8;
  --co-card: #ffffff;
  --co-radius: 18px;
  --co-shadow: 0 12px 40px rgba(17, 24, 39, .08);
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 60%);
}

/* ---------- Wrapper + title ---------- */
body.view-checkout #j2store-checkout-content {
  max-width: 860px; margin: 0 auto 3rem;
  counter-reset: co-step;
}
body.view-checkout #j2store-checkout-content > h1 {
  text-align: center; font-weight: 600; letter-spacing: -.02em;
  color: var(--co-ink); margin-bottom: 2rem;
}
body.view-checkout #j2store-checkout-content > h1::after {
  content: ""; display: block; width: 56px; height: 4px; margin: .6rem auto 0;
  border-radius: 4px; background: var(--co-accent);
}

/* ---------- Step cards ---------- */
body.view-checkout #j2store-checkout-content > #checkout,
body.view-checkout #billing-address,
body.view-checkout #shipping-payment-method,
body.view-checkout #confirm {
  background: var(--co-card);
  border-radius: var(--co-radius);
  box-shadow: var(--co-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

/* heading bar with numbered badge */
body.view-checkout .checkout-heading {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px;
  font-size: 1.1rem; font-weight: 600; color: var(--co-ink);
  background: transparent; border: 0;
}
body.view-checkout #billing-address > .checkout-heading,
body.view-checkout #shipping-payment-method > .checkout-heading,
body.view-checkout #confirm > .checkout-heading { counter-increment: co-step; }
body.view-checkout #billing-address > .checkout-heading::before,
body.view-checkout #shipping-payment-method > .checkout-heading::before,
body.view-checkout #confirm > .checkout-heading::before {
  content: counter(co-step);
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--co-accent); color: #fff; font-size: .95rem; font-weight: 600;
  box-shadow: 0 6px 14px rgba(3, 69, 191, .3);
}
/* steps not reached yet look muted */
body.view-checkout #j2store-checkout-content > div:has(> .checkout-content:empty) > .checkout-heading {
  color: var(--co-muted);
}
body.view-checkout #j2store-checkout-content > div:has(> .checkout-content:empty) > .checkout-heading::before {
  background: #e3e7ef; color: var(--co-muted); box-shadow: none;
}
body.view-checkout .checkout-content:not(:empty) {
  padding: 4px 28px 28px;
  border-top: 1px solid var(--co-line);
}
body.view-checkout .checkout-content:not(:empty) { padding-top: 22px; }

/* "Change" link added by J2Store JS */
body.view-checkout .checkout-heading a {
  margin-left: auto; cursor: pointer;
  font-size: .8rem; font-weight: 500; text-decoration: none;
  padding: 6px 16px; border-radius: 999px;
  color: var(--co-accent); background: #eaf0fd; transition: .15s;
}
body.view-checkout .checkout-heading a:hover { background: var(--co-accent); color: #fff; }

/* ---------- Form fields ---------- */
body.view-checkout #j2store-checkout-content label {
  font-size: .85rem; font-weight: 500; color: var(--co-ink); margin-bottom: 6px;
}
body.view-checkout #j2store-checkout-content input[type="text"],
body.view-checkout #j2store-checkout-content input[type="email"],
body.view-checkout #j2store-checkout-content input[type="tel"],
body.view-checkout #j2store-checkout-content input[type="password"],
body.view-checkout #j2store-checkout-content input[type="number"],
body.view-checkout #j2store-checkout-content select,
body.view-checkout #j2store-checkout-content textarea {
  width: 100%; max-width: 100%; box-sizing: border-box;
  min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--co-field); border-radius: 12px;
  background: #f8f9fc; color: var(--co-ink);
  box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
body.view-checkout #j2store-checkout-content textarea { min-height: 96px; }
body.view-checkout #j2store-checkout-content input:focus,
body.view-checkout #j2store-checkout-content select:focus,
body.view-checkout #j2store-checkout-content textarea:focus {
  outline: 0; background: #fff; border-color: var(--co-accent);
  box-shadow: 0 0 0 4px rgba(3, 69, 191, .14);
}
body.view-checkout #j2store-checkout-content input[type="radio"],
body.view-checkout #j2store-checkout-content input[type="checkbox"] {
  accent-color: var(--co-accent); width: 18px; height: 18px;
  margin-right: 8px; vertical-align: middle;
}
body.view-checkout #j2store-checkout-content .control-group,
body.view-checkout #j2store-checkout-content .form-group,
body.view-checkout #j2store-checkout-content .field-group { margin-bottom: 16px; }

/* ---------- Payment / shipping options as selectable cards ---------- */
body.view-checkout #shipping-payment-method .checkout-content:not(:empty) label:has(input[type="radio"]) {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 18px; margin: 0 0 10px;
  border: 1px solid var(--co-field); border-radius: 14px;
  background: #fff; cursor: pointer; font-weight: 500; transition: .15s;
}
body.view-checkout #shipping-payment-method label:has(input[type="radio"]):hover {
  border-color: var(--co-accent); background: #f5f8ff;
}
body.view-checkout #shipping-payment-method label:has(input[type="radio"]:checked) {
  border-color: var(--co-accent); background: #eef3ff;
  box-shadow: 0 0 0 3px rgba(3, 69, 191, .12);
}

/* ---------- Order summary tables (confirm step) ---------- */
body.view-checkout #confirm table,
body.view-checkout #confirm th,
body.view-checkout #confirm td {
  border: 0 !important; background: transparent !important; box-shadow: none;
}
body.view-checkout #confirm table { width: 100%; margin-bottom: 18px; }
body.view-checkout #confirm thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--co-muted); font-weight: 500; padding: 10px 8px;
  border-bottom: 1px solid var(--co-line) !important;
}
body.view-checkout #confirm td, body.view-checkout #confirm tbody th {
  padding: 14px 8px; border-bottom: 1px dashed var(--co-line) !important;
}
body.view-checkout #confirm tfoot tr:last-child th,
body.view-checkout #confirm tfoot tr:last-child td,
body.view-checkout #confirm table tr:last-child td { font-weight: 700; }
body.view-checkout #confirm img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 12px;
}

/* ---------- Buttons ---------- */
body.view-checkout #j2store-checkout-content .btn,
body.view-checkout #j2store-checkout-content input[type="button"],
body.view-checkout #j2store-checkout-content input[type="submit"],
body.view-checkout #j2store-checkout-content button[type="submit"] {
  border: 0; border-radius: 999px; padding: 14px 32px;
  font-weight: 600; font-size: 1rem; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--co-accent) 0%, #1c6bff 100%);
  box-shadow: 0 10px 24px rgba(3, 69, 191, .32);
  transition: transform .15s, box-shadow .15s, background .15s;
}
body.view-checkout #j2store-checkout-content .btn:hover,
body.view-checkout #j2store-checkout-content input[type="button"]:hover,
body.view-checkout #j2store-checkout-content input[type="submit"]:hover,
body.view-checkout #j2store-checkout-content button[type="submit"]:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--co-accent-dark) 0%, var(--co-accent) 100%);
  box-shadow: 0 14px 30px rgba(3, 69, 191, .42);
}
body.view-checkout #j2store-checkout-content .btn[disabled],
body.view-checkout #j2store-checkout-content input[disabled] {
  opacity: .55; transform: none; box-shadow: none; cursor: wait;
}
/* the button row in each step: push to the right */
body.view-checkout .checkout-content .buttons,
body.view-checkout .checkout-content .pull-right,
body.view-checkout .checkout-content .right { text-align: right; margin-top: 18px; }

/* ---------- Alerts + validation ---------- */
body.view-checkout .warning,
body.view-checkout .alert-danger {
  background: #fdecec; color: #a61b1b; border: 0;
  border-left: 4px solid #c62828; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 18px;
}
body.view-checkout .j2error {
  display: block; margin-top: 4px; font-size: .8rem; color: #c62828;
}
body.view-checkout br.j2error { display: none; }
body.view-checkout .wait img { width: 20px; height: 20px; vertical-align: middle; }

/* ---------- Mobile ---------- */
@media (max-width: 576px) {
  body.view-checkout .checkout-heading { padding: 16px 18px; font-size: 1rem; }
  body.view-checkout .checkout-content:not(:empty) { padding: 18px 18px 22px; }
  body.view-checkout #j2store-checkout-content .btn,
  body.view-checkout #j2store-checkout-content input[type="button"] { width: 100%; }
}
