/*
 * Steelquay cart — v2. Child of WHMCS standard_cart; loaded after its CSS.
 * Fonts and colour tokens come from templates/steelquay/css/custom.css (same page).
 */
#order-standard_cart { font-family: var(--sq-font, "Onest", system-ui, sans-serif); color: var(--sq-ink, #1a2229); }
#order-standard_cart .header-lined h1,
#order-standard_cart h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.025em; }
#order-standard_cart .header-lined p, #order-standard_cart .header-lined .lead { color: var(--sq-steel, #5b6670); }

/* Section sub-headings: thin rule, no grey bar. */
#order-standard_cart .sub-heading { border-top: 1px solid var(--sq-line, rgba(26, 34, 41, 0.1)); height: auto; margin: 28px 0 16px; text-align: left; }
#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading-borderless span {
  position: static; display: inline-block; margin-top: 16px; padding: 0; background: none;
  color: var(--sq-link, #007a9e); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Product cards (store listing). */
#order-standard_cart .products .product {
  position: relative; display: flex; flex-direction: column; padding: 24px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--sq-line, rgba(26, 34, 41, 0.1)); border-radius: 20px; box-shadow: none;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
#order-standard_cart .products .product:hover { border-color: rgba(0, 183, 230, 0.5); box-shadow: 0 20px 50px -20px rgba(15, 21, 26, 0.25); transform: translateY(-2px); }
#order-standard_cart .products .product header { background: none; border: 0; padding: 0; margin: 0 0 8px; }
#order-standard_cart .products .product header span { font-size: 22px; font-weight: 600; color: var(--sq-ink, #1a2229); }
#order-standard_cart .products .product header .qty { color: var(--sq-steel, #5b6670); font-size: 13px; font-weight: 500; }
#order-standard_cart .products .product div.product-desc { width: auto; float: none; padding: 0; color: var(--sq-steel, #5b6670); font-size: 15px; }
#order-standard_cart .products .product div.product-desc ul { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--sq-line, rgba(26, 34, 41, 0.1)); }
#order-standard_cart .products .product div.product-desc li { padding: 4px 0; color: var(--sq-ink, #1a2229); }
#order-standard_cart .products .product footer { width: auto; float: none; margin-top: auto; padding-top: 16px; text-align: left; }
#order-standard_cart .products .product div.product-pricing { margin: 0 0 12px; font-size: 14px; color: var(--sq-steel, #5b6670); }
#order-standard_cart .products .product div.product-pricing span.price {
  display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--sq-ink, #1a2229);
}
#order-standard_cart .products .product .btn-order-now { width: 100%; }

/* Configure / review steps */
#order-standard_cart .field-container,
#order-standard_cart .product-info,
#order-standard_cart .view-cart-items,
#order-standard_cart .secondary-cart-body .card {
  background: #fff; border: 1px solid var(--sq-line, rgba(26, 34, 41, 0.1)); border-radius: 20px; padding: 20px;
}
#order-standard_cart .product-info .product-title { font-size: 20px; font-weight: 600; }
#order-standard_cart .view-cart-items-header {
  background: #fafbfc; color: var(--sq-steel, #5b6670); border-radius: 14px 14px 0 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
#order-standard_cart .view-cart-items .item { border-color: var(--sq-line, rgba(26, 34, 41, 0.1)); }
#order-standard_cart .view-cart-items .item-title { font-weight: 600; }
#order-standard_cart .view-cart-items .item-price span:first-child { font-weight: 700; }
#order-standard_cart .empty-cart .btn, #order-standard_cart .btn-remove-from-cart { color: var(--sq-danger, #c2273a); }

/* Order summary — CSS sticky (avoid WHMCS JS margin-top gap before footer) */
#order-standard_cart .secondary-cart-sidebar#scrollingPanelContainer,
#order-standard_cart #scrollingPanelContainer {
  float: right;
}
#order-standard_cart #orderSummary {
  position: sticky;
  top: 88px;
  margin-top: 0 !important;
}
#order-standard_cart .secondary-cart-body {
  margin-top: 0 !important;
}
#order-standard_cart .order-summary,
#order-standard_cart .summary-container {
  background: var(--sq-ink-2, #0f151a) !important; color: #e8eef2; border: 0; border-radius: 20px; overflow: hidden;
}
#order-standard_cart .sq-tos-agree {
  margin: 14px 0 10px;
  text-align: left;
  color: #c9d4dc;
  font-size: 13px;
  line-height: 1.4;
}
#order-standard_cart .sq-tos-agree label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}
#order-standard_cart .sq-tos-agree input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}
#order-standard_cart .sq-tos-agree a {
  color: #7dd3f0 !important;
  text-decoration: underline;
}
#order-standard_cart .sq-tos-agree a:hover { color: #fff !important; }
#order-standard_cart #checkout.sq-tos-blocked {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Checkout: mailing opt-in Yes/No in one row (no EN blurb) */
#order-standard_cart .sq-mail-optin { margin: 20px 0 8px; }
#order-standard_cart .sq-mail-optin h4 { margin: 0 0 12px; }
#order-standard_cart .sq-mail-optin-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#order-standard_cart .sq-mail-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--sq-line, rgba(26, 34, 41, 0.18));
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--sq-ink, #1a2229);
}
#order-standard_cart .sq-mail-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#order-standard_cart .sq-mail-choice:has(input:checked) {
  border-color: var(--sq-link, #007a9e);
  background: rgba(0, 183, 230, 0.12);
  box-shadow: inset 0 0 0 1px var(--sq-link, #007a9e), 0 0 0 3px rgba(0, 183, 230, 0.16);
}
#order-standard_cart .sq-mail-choice:focus-within {
  outline: 2px solid var(--sq-cyan, #00b7e6);
  outline-offset: 2px;
}
#order-standard_cart .order-summary h2 { background: transparent; color: #fff; font-size: 18px; font-weight: 600; padding: 18px 20px 6px; text-align: left; }
#order-standard_cart .order-summary .summary-container { padding: 0 20px 20px; background: transparent !important; }
#order-standard_cart .order-summary .subtotal, #order-standard_cart .order-summary .bordered-totals { border-color: rgba(255, 255, 255, 0.12); }
#order-standard_cart .order-summary .total-due-today .amt,
#order-standard_cart .order-summary .total-due-today span.amt { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
#order-standard_cart .order-summary .text-muted, #order-standard_cart .order-summary small { color: #9aa6b0 !important; }
#order-standard_cart .order-summary .btn-checkout,
#order-standard_cart .order-summary .btn-primary,
#order-standard_cart #checkout { background: var(--sq-cyan, #00b7e6) !important; border-color: var(--sq-cyan, #00b7e6) !important; color: var(--sq-ink, #1a2229) !important; }
#order-standard_cart .order-summary :focus-visible { outline-color: #33c6ee !important; }

/* Domain / promo / payment method blocks */
#order-standard_cart .domain-checker-container { background: var(--sq-ink-2, #0f151a); border-radius: 20px; }
#order-standard_cart .promo-code, #order-standard_cart .view-cart-tabs .tab-content { border-radius: 14px; border-color: var(--sq-line, rgba(26, 34, 41, 0.1)); }
#order-standard_cart .payment-methods .radio-inline,
#order-standard_cart label.radio-inline {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; margin: 0 8px 8px 0;
  border: 1px solid rgba(26, 34, 41, 0.14); border-radius: 12px; background: #fff; font-weight: 500;
}
#order-standard_cart .payment-methods .radio-inline:has(input:checked),
#order-standard_cart label.radio-inline:has(input:checked) { border-color: var(--sq-link, #007a9e); box-shadow: inset 0 0 0 1px var(--sq-link, #007a9e), 0 0 0 3px rgba(0, 183, 230, 0.18); }
#order-standard_cart .cc-input-container { border-radius: 14px; }

/* Cart sidebar (categories, currency) */
#order-standard_cart .cart-sidebar .list-group-item.active,
.cart-sidebar .list-group-item.active { background: var(--sq-ink, #1a2229) !important; border-color: var(--sq-ink, #1a2229) !important; color: #fff !important; }

/* sq-temp: hide USD for Enot RU review (2026-12-02) — keep RUB only in cart currency picker */
#order-standard_cart select[name="currency"] option[value="1"],
.cart-sidebar select[name="currency"] option[value="1"],
select#inputCurrency option[value="1"] {
  display: none !important;
}

@media (max-width: 767.98px) {
  #order-standard_cart .products .product { padding: 18px; }
  #order-standard_cart .products .product div.product-pricing span.price { font-size: 30px; }
  #order-standard_cart .order-summary { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #order-standard_cart .products .product { transition: none; }
  #order-standard_cart .products .product:hover { transform: none; }
}

/* sq-live: equal product cards */
#order-standard_cart .products .row-eq-height {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}
#order-standard_cart .products .row-eq-height > [class*="col-"] {
  display: flex !important;
  flex-direction: column;
  float: none;
}
#order-standard_cart .products .product {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
#order-standard_cart .products .product div.product-desc {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
#order-standard_cart .products .product div.product-desc .product-featuresdesc {
  flex: 1 1 auto;
}
#order-standard_cart .products .product div.product-desc .product-featuresdesc > ul {
  list-style: none;
  padding: 12px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--sq-line, rgba(26, 34, 41, 0.1));
}
#order-standard_cart .products .product div.product-desc .product-featuresdesc > ul > li {
  padding: 4px 0;
  color: var(--sq-ink, #1a2229);
  font-weight: 400;
  line-height: 1.45;
}
#order-standard_cart .products .product div.product-desc .product-featuresdesc > ul > li b,
#order-standard_cart .products .product div.product-desc .product-featuresdesc > ul > li strong {
  font-weight: 600;
}
#order-standard_cart .products .product div.product-desc p {
  margin: 0;
  padding: 0;
  color: var(--sq-ink, #1a2229);
  font-weight: 400;
  line-height: 1.45;
}
#order-standard_cart .products .product div.product-desc ul {
  list-style: none;
  padding: 12px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--sq-line, rgba(26, 34, 41, 0.1));
}
#order-standard_cart .products .product div.product-desc ul:empty {
  display: none;
}
#order-standard_cart .products .product div.product-desc li {
  padding: 4px 0;
  color: var(--sq-ink, #1a2229);
  font-weight: 400;
  line-height: 1.45;
}
#order-standard_cart .products .product div.product-desc li b,
#order-standard_cart .products .product div.product-desc li strong {
  font-weight: 600;
}
#order-standard_cart .products .product footer {
  margin-top: auto !important;
  padding-top: 16px;
}


/* Steelquay TOS agree — keep iCheck box size stable */
.sq-tos-agree { margin: 12px 0 14px; }
.sq-tos-agree label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  color: #c5ced6;
  cursor: pointer;
}
.sq-tos-agree label > span { flex: 1; line-height: 1.45; }
.sq-tos-agree .icheckbox_square-blue,
.sq-tos-agree .iradio_square-blue {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  flex: 0 0 22px;
  margin-top: 2px;
}
.sq-tos-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: #33c6ee;
}
#checkout.sq-tos-blocked,
.btn-checkout.sq-tos-blocked {
  opacity: 0.45;
  pointer-events: none;
}
#checkout:not(.sq-tos-blocked):not(.disabled),
.btn-checkout:not(.sq-tos-blocked):not(.disabled) {
  opacity: 1;
  pointer-events: auto;
}
