/* Aurora Cart — premium checkout flow v2.9.7 */

/* ── Page rhythm ── */
body.aurora-storefront.woocommerce-cart .aurora-wc-page-intro .PageHero_hero__qlWDQ {
  padding-bottom: clamp(20px, 3vw, 32px);
}

body.aurora-storefront.woocommerce-cart .aurora-wc-wrap {
  padding-top: clamp(16px, 2.5vw, 28px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

body.aurora-storefront.woocommerce-cart .aurora-wc-cart {
  padding-bottom: 0;
}

body.aurora-storefront.woocommerce-cart .aurora-wc-wrap > .woocommerce {
  display: block;
}

body.aurora-storefront .aurora-cart-trust {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  padding: 14px 18px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(237, 244, 255, 0.72);
}

body.aurora-storefront .aurora-cart-trust a {
  color: #00d4ff;
  text-decoration: none;
}

/* ── Cart layout ── */
body.aurora-storefront .aurora-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

body.aurora-storefront .aurora-cart-layout::after {
  display: none;
  content: none;
}

body.aurora-storefront .aurora-wc-cart {
  width: 100%;
}

body.aurora-storefront .aurora-cart-layout .woocommerce-cart-form {
  min-width: 0;
}

body.aurora-storefront .aurora-cart-layout .cart-collaterals {
  width: 100%;
  min-width: 380px;
  max-width: 440px;
  justify-self: end;
}

/* ── Cart table panel ── */
body.aurora-storefront .woocommerce-cart-form {
  background: linear-gradient(165deg, rgba(11, 18, 40, 0.95), rgba(8, 13, 30, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 32px);
  margin: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

body.aurora-storefront .woocommerce-cart-form table.shop_table {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  table-layout: auto;
  width: 100%;
}

body.aurora-storefront .woocommerce-cart-form table.shop_table thead th {
  padding: 14px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

body.aurora-storefront .woocommerce-cart-form table.shop_table td {
  padding: 20px 12px !important;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.aurora-storefront .woocommerce-cart-form table.shop_table td.product-remove {
  width: 36px;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

body.aurora-storefront .woocommerce-cart-form table.shop_table td.product-thumbnail {
  width: 96px;
}

body.aurora-storefront .woocommerce-cart-form table.shop_table td.product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: #0b1228;
  padding: 8px;
}

body.aurora-storefront .woocommerce-cart-form td.product-name {
  min-width: 140px;
}

body.aurora-storefront .woocommerce-cart-form td.product-name a {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  color: #edf4ff !important;
  text-decoration: none;
}

body.aurora-storefront .woocommerce-cart-form td.product-name a:hover {
  color: #00d4ff !important;
}

body.aurora-storefront .woocommerce-cart-form td.product-price,
body.aurora-storefront .woocommerce-cart-form td.product-subtotal {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

body.aurora-storefront .woocommerce-cart-form td.product-quantity {
  min-width: 100px;
}

body.aurora-storefront .woocommerce-cart-form .quantity .qty {
  width: 72px;
  min-height: 44px;
  text-align: center;
}

body.aurora-storefront .woocommerce-cart-form a.remove {
  color: rgba(255, 120, 120, 0.9) !important;
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s ease;
}

body.aurora-storefront .woocommerce-cart-form a.remove:hover {
  color: #ff6666 !important;
  background: transparent !important;
}

/* ── Coupon + actions ── */
body.aurora-storefront .woocommerce-cart-form .actions {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.aurora-storefront .woocommerce-cart-form .coupon {
  margin-bottom: 16px;
}

body.aurora-storefront .woocommerce-cart-form .coupon label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-m, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.82);
}

body.aurora-storefront .woocommerce-cart-form .coupon__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: stretch;
}

body.aurora-storefront .woocommerce-cart-form .coupon input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
}

body.aurora-storefront .woocommerce-cart-form .coupon .button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px !important;
  white-space: nowrap;
}

body.aurora-storefront .woocommerce-cart-form .button--ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(237, 244, 255, 0.82) !important;
  min-height: 48px;
}

body.aurora-storefront .woocommerce-cart-form .button--ghost:hover {
  border-color: rgba(0, 212, 255, 0.35) !important;
  color: #00d4ff !important;
}

/* ── Totals sidebar ── */
body.aurora-storefront .cart-collaterals {
  margin: 0;
  position: sticky;
  top: calc(var(--header-height, 72px) + 16px);
  width: 100%;
}

body.aurora-storefront .cart_totals {
  width: 100%;
  min-width: 380px;
  max-width: 440px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(11, 18, 40, 0.95), rgba(8, 13, 30, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  margin: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

body.aurora-storefront .cart_totals > * {
  max-width: 100%;
  box-sizing: border-box;
}

body.aurora-storefront .cart_totals h2 {
  font-family: var(--font-d, "Bebas Neue", sans-serif);
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  color: #edf4ff;
}

/* Disable WC responsive-table stacking inside cart totals */
body.aurora-storefront .cart_totals table.shop_table,
body.aurora-storefront .cart_totals table.shop_table_responsive {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse;
}

body.aurora-storefront .cart_totals table.shop_table_responsive thead {
  display: table-header-group !important;
}

body.aurora-storefront .cart_totals table.shop_table_responsive tbody {
  display: table-row-group !important;
}

body.aurora-storefront .cart_totals table.shop_table_responsive tr:not(.shipping) {
  display: table-row !important;
}

body.aurora-storefront .cart_totals table.shop_table_responsive tr:not(.shipping) th,
body.aurora-storefront .cart_totals table.shop_table_responsive tr:not(.shipping) td {
  display: table-cell !important;
}

body.aurora-storefront .cart_totals table.shop_table_responsive td::before {
  display: none !important;
  content: none !important;
}

body.aurora-storefront .cart_totals .shop_table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.aurora-storefront .cart_totals .shop_table tr:last-child {
  border-bottom: 0;
}

body.aurora-storefront .cart_totals .shop_table th {
  width: auto;
  min-width: 0;
  padding: 14px 16px 14px 0 !important;
  border: 0 !important;
  font-family: var(--font-b, "DM Sans", sans-serif);
  font-size: 14px;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: normal !important;
  vertical-align: middle;
  color: rgba(237, 244, 255, 0.72);
  word-break: normal;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

body.aurora-storefront .cart_totals .shop_table td {
  width: auto;
  min-width: 0;
  padding: 14px 0 !important;
  border: 0 !important;
  text-align: right;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 600;
  color: rgba(237, 244, 255, 0.92);
  word-break: normal;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

body.aurora-storefront .cart_totals .shop_table tr.shipping {
  display: block !important;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.aurora-storefront .cart_totals .shop_table tr.shipping th,
body.aurora-storefront .cart_totals .shop_table tr.shipping td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  text-align: left !important;
  white-space: normal;
}

body.aurora-storefront .cart_totals .shop_table tr.shipping th {
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
  color: rgba(0, 212, 255, 0.75);
}

body.aurora-storefront .cart_totals .order-total th,
body.aurora-storefront .cart_totals .order-total td {
  padding-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.aurora-storefront .cart_totals .order-total .amount {
  font-family: var(--font-d, "Bebas Neue", sans-serif);
  font-size: 28px;
  color: #00d4ff;
  white-space: nowrap;
}

/* ── Shipping methods (cart totals) ── */
body.aurora-storefront .cart_totals .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.aurora-storefront .cart_totals .woocommerce-shipping-methods li {
  margin: 0 0 8px;
}

body.aurora-storefront .cart_totals .woocommerce-shipping-methods li:last-child {
  margin-bottom: 0;
}

body.aurora-storefront .cart_totals .woocommerce-shipping-methods li label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(8, 13, 30, 0.55);
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: var(--font-b, "DM Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.45 !important;
  color: rgba(237, 244, 255, 0.88) !important;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  box-sizing: border-box;
}

body.aurora-storefront .cart_totals .woocommerce-shipping-methods li input[type="hidden"] + label {
  margin-left: 0;
}

body.aurora-storefront .cart_totals .woocommerce-shipping-methods li input[type="radio"] {
  flex-shrink: 0;
  margin: 0 10px 0 0;
}

body.aurora-storefront .cart_totals .woocommerce-shipping-methods li input:checked + label,
body.aurora-storefront .cart_totals .woocommerce-shipping-methods li label:has(input:checked) {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}

/* ── Proceed to checkout + express payment ── */
body.aurora-storefront .cart_totals .wc-proceed-to-checkout {
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.aurora-storefront .cart_totals .checkout-button,
body.aurora-storefront .cart_totals a.checkout-button.button.alt,
body.aurora-storefront .cart_totals .wc-forward {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px;
  height: auto;
  line-height: 1.2 !important;
  padding: 14px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-align: center;
  border-radius: 12px !important;
  box-sizing: border-box;
  overflow: hidden;
  writing-mode: horizontal-tb !important;
}

body.aurora-storefront .cart_totals #wc-stripe-express-checkout-element,
body.aurora-storefront .cart_totals #wcpay-express-checkout-element,
body.aurora-storefront .cart_totals .wcpay-express-checkout-element,
body.aurora-storefront .cart_totals .wc-stripe-express-checkout,
body.aurora-storefront .cart_totals #wc-stripe-payment-request-button-separator,
body.aurora-storefront .cart_totals .wcpay-payment-request-wrapper,
body.aurora-storefront .cart_totals .wcpay-woopayments-button,
body.aurora-storefront .cart_totals .stripe-link-button,
body.aurora-storefront .cart_totals [class*="express-checkout"],
body.aurora-storefront .cart_totals [class*="payment-request"] {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

body.aurora-storefront .cart_totals #wc-stripe-express-checkout-element {
  margin-top: 12px !important;
  clear: both;
}

body.aurora-storefront .cart_totals iframe,
body.aurora-storefront .cart_totals .StripeElement,
body.aurora-storefront .cart_totals .__PrivateStripeElement {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

body.aurora-storefront .cart-collaterals .cross-sells {
  margin-top: 24px;
}

body.aurora-storefront .cart-collaterals .cross-sells h2 {
  font-family: var(--font-d, "Bebas Neue", sans-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

/* ── Empty cart ── */
body.aurora-storefront.woocommerce-cart .wc-empty-cart-message,
body.aurora-storefront.woocommerce-cart .woocommerce-cart .return-to-shop,
body.aurora-storefront.woocommerce-cart .woocommerce-cart .cart-empty {
  display: none !important;
}

body.aurora-storefront.woocommerce-cart .aurora-empty-premium {
  max-width: 520px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 1180px) {
  body.aurora-storefront .aurora-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  body.aurora-storefront .aurora-cart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.aurora-storefront .aurora-cart-layout .cart-collaterals {
    min-width: 0;
    max-width: none;
    justify-self: stretch;
  }

  body.aurora-storefront .cart-collaterals {
    position: static;
  }

  body.aurora-storefront .cart_totals {
    min-width: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  body.aurora-storefront .woocommerce-cart-form .coupon__row {
    flex-direction: column;
    flex-wrap: wrap;
  }

  body.aurora-storefront .woocommerce-cart-form .coupon .button,
  body.aurora-storefront .woocommerce-cart-form .button--ghost {
    width: 100%;
  }

  body.aurora-storefront .woocommerce-cart-form table.shop_table_responsive td {
    padding: 14px 0 !important;
  }

  body.aurora-storefront .woocommerce-cart-form {
    padding: 18px 16px;
  }

  body.aurora-storefront .cart_totals {
    min-width: 0;
    max-width: none;
    padding: 22px 18px;
  }

  body.aurora-storefront .cart_totals .checkout-button,
  body.aurora-storefront .cart_totals a.checkout-button.button.alt,
  body.aurora-storefront .cart_totals .wc-forward {
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 14px 12px !important;
  }
}
