/* Relay Radio Store — Build 0034: Cart & Checkout visual polish.
   Scoped, progressive presentation only. No payment widget internals, product
   image URLs, shipping rates, totals, form names or WooCommerce templates change. */

/* Checkout journey: a modest visual upgrade to the existing Porto steps when
   they are present. No new/fake steps are generated. */
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) :is(.checkout-steps, .checkout-process, .cart-steps, .cart-process, .porto-steps, .woocommerce-checkout-steps) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
  flex-wrap: wrap;
  color: #aebed2;
  border-color: rgba(52, 138, 182, .30);
}
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) :is(.checkout-steps, .checkout-process, .cart-steps, .cart-process, .porto-steps, .woocommerce-checkout-steps) :is(a,span,li) {
  color: #aebed2;
  font-weight: 750;
  letter-spacing: .005em;
}
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) :is(.checkout-steps, .checkout-process, .cart-steps, .cart-process, .porto-steps, .woocommerce-checkout-steps) :is(.active,.current,.is-active) {
  color: #77deff !important;
  text-shadow: 0 0 18px rgba(24,190,230,.17);
}

/* Keep the compact hero aligned with the station's updated panels. */
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) .relay-commerce-intro {
  border-color: rgba(40,137,191,.40);
  border-radius: 17px;
  padding: clamp(20px,2.2vw,28px);
  background: radial-gradient(ellipse 430px 140px at 0% 0%, rgba(4,178,230,.12), transparent 85%),
              linear-gradient(120deg,#101b30 0%,#0e192c 60%,#11182b 100%);
  box-shadow: inset 0 1px 0 rgba(105,220,249,.05),0 18px 38px rgba(0,0,0,.16);
}
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) .relay-commerce-intro__kicker {
  color: #80dfff;
}
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) .relay-commerce-intro h1 {
  font-weight: 850;
  letter-spacing: -.035em;
}
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) .relay-commerce-intro__help {
  background: #0b1525;
  border-color: rgba(54,137,184,.30);
}
body.relay-store-theme:is(.woocommerce-cart, .woocommerce-checkout) .relay-commerce-intro__help a {
  color: #a2e9ff;
}

/* CART: allow long product names to wrap cleanly instead of squeezing the
   price/quantity and thumbnail columns. The table and controls remain native. */
body.relay-store-theme.woocommerce-cart .woocommerce-cart-form {
  border-radius: 17px;
  border-color: rgba(49,126,179,.30);
  box-shadow: 0 16px 36px rgba(0,0,0,.19);
}
body.relay-store-theme.woocommerce-cart table.cart {
  width: 100%;
}
body.relay-store-theme.woocommerce-cart table.cart .product-thumbnail {
  min-width: 88px;
  vertical-align: middle;
}
body.relay-store-theme.woocommerce-cart table.cart .product-thumbnail img {
  display: block;
  width: 86px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 5px;
  background: #f8fafc;
  border: 1px solid rgba(160,185,209,.30);
  border-radius: 12px;
}
body.relay-store-theme.woocommerce-cart table.cart .product-name {
  min-width: 160px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.relay-store-theme.woocommerce-cart table.cart .product-name a {
  display: inline;
  color: #eff6ff;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}
body.relay-store-theme.woocommerce-cart table.cart .product-name a:hover,
body.relay-store-theme.woocommerce-cart table.cart .product-name a:focus-visible {
  color: #76dbff;
}
body.relay-store-theme.woocommerce-cart table.cart dl.variation {
  margin-top: 8px;
  line-height: 1.5;
}
body.relay-store-theme.woocommerce-cart table.cart tbody td {
  vertical-align: middle;
}
body.relay-store-theme.woocommerce-cart table.cart .product-price,
body.relay-store-theme.woocommerce-cart table.cart .product-subtotal {
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.relay-store-theme.woocommerce-cart table.cart .product-subtotal .amount {
  color: #fff;
}
body.relay-store-theme.woocommerce-cart table.cart :is(.quantity, .quantity.buttons_added) {
  border-radius: 11px;
  background: rgba(8,18,34,.75);
  border: 1px solid rgba(72,124,174,.30);
}
body.relay-store-theme.woocommerce-cart table.cart :is(.qty, input.qty) {
  font-variant-numeric: tabular-nums;
  text-align: center;
}
body.relay-store-theme.woocommerce-cart table.cart a.remove,
body.relay-store-theme.woocommerce-cart table.cart .remove-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
}
body.relay-store-theme.woocommerce-cart table.cart a.remove:focus-visible,
body.relay-store-theme.woocommerce-cart table.cart .remove-product:focus-visible {
  outline: 2px solid #68d4f5;
  outline-offset: 2px;
}
body.relay-store-theme.woocommerce-cart table.cart .actions .button:not(:disabled) {
  background: linear-gradient(130deg,rgba(16,53,86,.90),rgba(48,61,117,.90));
  border: 1px solid rgba(77,143,199,.34);
  border-radius: 11px;
  color: #f4f9ff;
  font-weight: 800;
}
body.relay-store-theme.woocommerce-cart table.cart .actions .button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Real WooCommerce totals are untouched; only typography and separators. */
body.relay-store-theme.woocommerce-cart .cart_totals {
  border-radius: 17px;
  border-color: rgba(51,132,184,.32) !important;
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}
body.relay-store-theme.woocommerce-cart .cart_totals :is(h2,h3,h4) {
  font-size: clamp(1.02rem,1.5vw,1.18rem);
  letter-spacing: -.012em;
}
body.relay-store-theme.woocommerce-cart .cart_totals :is(th,td) {
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.45;
}
body.relay-store-theme.woocommerce-cart .cart_totals .order-total th,
body.relay-store-theme.woocommerce-cart .cart_totals .order-total td {
  border-top: 2px solid rgba(24,190,230,.48) !important;
  padding-top: 17px;
  padding-bottom: 16px;
  font-size: 1.07rem;
}
body.relay-store-theme.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 1.30rem !important;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.relay-store-theme.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  color: #fff !important;
  border: 1px solid rgba(91,194,250,.25) !important;
  background: linear-gradient(115deg,#0a99db,#5e58dd 60%,#7e47d5) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 22px rgba(20,92,180,.18);
  font-weight: 850;
  transition: filter .2s ease, transform .2s ease;
}
body.relay-store-theme.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:is(:hover,:focus-visible) {
  filter: brightness(1.10);
  transform: translateY(-1px);
}
body.relay-store-theme.woocommerce-cart .relay-cart-shipping-note td {
  font-size: .78rem;
  line-height: 1.5;
  color: #a7bace !important;
  font-weight: 500;
  border-top: 1px solid rgba(60,131,180,.18);
}
body.relay-store-theme.woocommerce-cart .relay-cart-shipping-note span {
  display: inline-block;
  padding: 3px 0;
}

/* The payment provider owns its express checkout controls: no PayPal, Pay Later,
   Stripe express iframe, PayPal message or payment-logo overrides here. */

/* CHECKOUT: readable information hierarchy and consistent form styling. */
body.relay-store-theme.woocommerce-checkout .woocommerce-billing-fields,
body.relay-store-theme.woocommerce-checkout .woocommerce-shipping-fields,
body.relay-store-theme.woocommerce-checkout .woocommerce-additional-fields,
body.relay-store-theme.woocommerce-checkout .checkout-order-review {
  border-color: rgba(52,128,180,.32) !important;
  border-radius: 17px;
  box-shadow: 0 15px 32px rgba(0,0,0,.15);
}
body.relay-store-theme.woocommerce-checkout :is(.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields) > h3,
body.relay-store-theme.woocommerce-checkout :is(#order_review_heading,.checkout-order-review h3) {
  font-size: 1.16rem;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(60,135,185,.25);
}
body.relay-store-theme.woocommerce-checkout :is(.form-row label,.woocommerce-billing-fields label,.woocommerce-shipping-fields label) {
  color: #d7e8f8 !important;
  font-size: .82rem;
  font-weight: 760;
}
body.relay-store-theme.woocommerce-checkout :is(input.input-text,textarea,select) {
  min-height: 45px;
  border-radius: 11px !important;
  border-color: rgba(65,121,163,.44) !important;
  background: #091626 !important;
  color: #f5faff !important;
}
body.relay-store-theme.woocommerce-checkout :is(input.input-text,textarea,select):focus {
  border-color: #21c3ef !important;
  box-shadow: 0 0 0 3px rgba(29,192,236,.14) !important;
  outline: none;
}
/* Labels sit over their own controls on phones; no radio, checkbox,
   payment-method or consent control width is overridden. */
body.relay-store-theme.woocommerce-checkout #customer_details .form-row:not(.woocommerce-form__label-for-checkbox) > label:not(.checkbox) {
  display: block;
  margin-bottom: 7px;
}
body.relay-store-theme.woocommerce-checkout #customer_details .form-row :is(input.input-text,textarea,select) {
  width: 100%;
  max-width: 100%;
}
body.relay-store-theme.woocommerce-checkout input::placeholder,
body.relay-store-theme.woocommerce-checkout textarea::placeholder {
  color: #92a7be;
}
body.relay-store-theme.woocommerce-checkout .select2-container--default .select2-selection--single {
  min-height: 45px;
  border-radius: 11px;
  background: #091626;
  border-color: rgba(65,121,163,.44);
}
body.relay-store-theme.woocommerce-checkout .select2-container--default .select2-selection__rendered {
  line-height: 43px;
  color: #f5faff;
}
body.relay-store-theme.woocommerce-checkout .select2-container--default .select2-selection__arrow {
  height: 43px;
}
body.relay-store-theme.woocommerce-checkout .woocommerce-checkout-review-order-table :is(th,td),
body.relay-store-theme.woocommerce-checkout #order_review :is(th,td) {
  padding: 11px 9px;
  border-color: rgba(62,130,180,.24);
}
body.relay-store-theme.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total :is(th,td),
body.relay-store-theme.woocommerce-checkout #order_review .order-total :is(th,td) {
  padding-top: 17px;
  border-top: 2px solid rgba(25,189,234,.45) !important;
  color: #fff;
  font-size: 1.10rem;
  font-weight: 850;
}
body.relay-store-theme.woocommerce-checkout :is(#place_order,.wc-block-components-checkout-place-order-button):not(.ppcp-button) {
  border-radius: 12px !important;
  font-size: 1rem;
  min-height: 52px;
  box-shadow: 0 10px 22px rgba(35,97,178,.19);
}
body.relay-store-theme.woocommerce-checkout :is(.woocommerce-privacy-policy-text,.woocommerce-terms-and-conditions-wrapper) {
  font-size: .84rem;
  line-height: 1.6;
}

/* Comfortable but efficient vertical rhythm, including short one-item carts. */
body.relay-store-theme.woocommerce-cart #main,
body.relay-store-theme.woocommerce-checkout #main {
  padding-bottom: clamp(30px, 4.5vw, 55px);
}
body.relay-store-theme.woocommerce-cart .cart-collaterals {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  body.relay-store-theme.woocommerce-cart .cart_totals { margin-top: 14px; }
  body.relay-store-theme.woocommerce-checkout .checkout-order-review { margin-top: 18px; }
}
@media (max-width: 767px) {
  body.relay-store-theme:is(.woocommerce-cart,.woocommerce-checkout) .relay-commerce-intro { padding: 19px 17px; }
  body.relay-store-theme.woocommerce-cart table.cart .product-name { min-width: 0; }
  body.relay-store-theme.woocommerce-cart table.cart .product-thumbnail { min-width: 0; }
  body.relay-store-theme.woocommerce-cart table.cart .product-thumbnail img { width: 70px; }
  body.relay-store-theme.woocommerce-cart table.cart .product-name a { font-size: .89rem; }
  body.relay-store-theme.woocommerce-cart .cart_totals .order-total .amount { font-size: 1.20rem !important; }
  body.relay-store-theme.woocommerce-checkout :is(.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields,.checkout-order-review) { padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.relay-store-theme.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { transition: none; transform: none; }
}
