/**
 * ECIS Shop Flow — Cart → Checkout → Order received
 * Light Institutional Surface (Operate polish)
 */

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
body.woocommerce-cart.cc-shop-flow,
body.woocommerce-checkout.cc-shop-flow,
body.woocommerce-order-received.cc-shop-flow {
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(197, 168, 105, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 20%, rgba(197, 168, 105, 0.1), transparent 50%),
    linear-gradient(180deg, var(--cc-bg-surface) 0%, var(--cc-bg-gold-light) 100%);
}

body.cc-shop-flow .site-content,
body.cc-shop-flow #content,
body.cc-shop-flow .ast-container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

body.cc-shop-flow .entry-header,
body.cc-shop-flow .ast-archive-description,
body.cc-shop-flow .page-header {
  text-align: center;
  margin-block: 0.75rem 1.5rem;
}

body.cc-shop-flow .entry-title,
body.cc-shop-flow .ast-page-title,
body.cc-shop-flow h1.entry-title {
  color: var(--cc-navy-primary) !important;
  font-size: clamp(1.55rem, 3.2vw, 2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */
body.cc-shop-flow .woocommerce-message,
body.cc-shop-flow .woocommerce-info,
body.cc-shop-flow .woocommerce-error,
body.cc-shop-flow .woocommerce-notices-wrapper .woocommerce-message,
body.cc-shop-flow .woocommerce-notices-wrapper .woocommerce-info {
  background: var(--cc-bg-surface) !important;
  border: 1px solid var(--cc-gold-border) !important;
  border-inline-start: 3px solid var(--cc-gold-primary) !important;
  color: var(--cc-navy-primary) !important;
  border-radius: var(--cc-radius-sm, 8px);
  padding: 0.85rem 1rem !important;
  margin-block: 0 1rem !important;
  box-shadow: none !important;
  list-style: none;
}

body.cc-shop-flow .woocommerce-error {
  border-inline-start-color: #b42318 !important;
}

body.cc-shop-flow .woocommerce-message::before,
body.cc-shop-flow .woocommerce-info::before,
body.cc-shop-flow .woocommerce-error::before {
  color: var(--cc-gold-dark) !important;
}

body.cc-shop-flow .woocommerce-message .button,
body.cc-shop-flow .woocommerce-info .button {
  background: var(--cc-gold-primary) !important;
  color: var(--cc-navy-dark) !important;
  border: none !important;
  border-radius: var(--cc-radius-sm, 8px) !important;
  font-weight: 700 !important;
  padding: 0.45rem 0.9rem !important;
  float: none !important;
  margin-inline-start: 0.5rem;
}

/* --------------------------------------------------------------------------
   WooCommerce float reset (grid/flex layouts require this)
   -------------------------------------------------------------------------- */
body.cc-shop-flow .woocommerce {
  display: flow-root;
  width: 100%;
  max-width: 100%;
}

body.woocommerce-cart.cc-shop-flow .woocommerce-cart-form,
body.woocommerce-cart.cc-shop-flow .cart-collaterals,
body.woocommerce-checkout.cc-shop-flow form.checkout #customer_details,
body.woocommerce-checkout.cc-shop-flow form.checkout #order_review,
body.woocommerce-checkout.cc-shop-flow form.checkout #order_review_heading {
  float: none !important;
  clear: none !important;
  margin-inline: 0 !important;
}

body.cc-shop-flow .woocommerce-notices-wrapper,
body.woocommerce-checkout.cc-shop-flow .woocommerce-form-coupon-toggle,
body.woocommerce-checkout.cc-shop-flow .woocommerce-form-login-toggle {
  width: 100%;
  clear: both;
}

/* --------------------------------------------------------------------------
   Shared panels / tables
   -------------------------------------------------------------------------- */
body.cc-shop-flow .woocommerce,
body.cc-shop-flow .woocommerce-cart-form,
body.cc-shop-flow .cart-collaterals,
body.cc-shop-flow .woocommerce-checkout,
body.cc-shop-flow #customer_details,
body.cc-shop-flow #order_review,
body.cc-shop-flow .woocommerce-checkout-review-order {
  color: var(--cc-navy-primary);
}

body.cc-shop-flow table.shop_table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid var(--cc-gold-border) !important;
  border-radius: var(--cc-radius-md, 14px) !important;
  background: var(--cc-bg-surface) !important;
  overflow: hidden;
  margin: 0 0 1.25rem !important;
}

body.cc-shop-flow table.shop_table .product-name,
body.cc-shop-flow table.shop_table .product-name a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.cc-shop-flow table.shop_table th,
body.cc-shop-flow table.shop_table td {
  border: none !important;
  border-bottom: 1px solid var(--cc-border-subtle) !important;
  padding: 0.9rem 1rem !important;
  color: var(--cc-navy-primary) !important;
  background: transparent !important;
  vertical-align: middle;
}

body.cc-shop-flow table.shop_table thead th {
  background: var(--cc-bg-gold-light) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.cc-shop-flow table.shop_table tr:last-child th,
body.cc-shop-flow table.shop_table tr:last-child td {
  border-bottom: none !important;
}

body.cc-shop-flow table.shop_table a {
  color: var(--cc-navy-primary) !important;
  font-weight: 700;
  text-decoration: none;
}

body.cc-shop-flow table.shop_table a:hover {
  color: var(--cc-gold-dark) !important;
}

body.cc-shop-flow .product-thumbnail img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border-radius: var(--cc-radius-sm, 8px);
  border: 1px solid var(--cc-gold-border);
  background: var(--cc-bg-gold-light);
}

body.cc-shop-flow a.remove {
  color: var(--cc-navy-primary) !important;
  border: 1.5px solid var(--cc-gold-border) !important;
  border-radius: 999px !important;
  width: 1.75rem !important;
  height: 1.75rem !important;
  line-height: 1.55rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--cc-bg-surface) !important;
}

body.cc-shop-flow a.remove:hover {
  background: var(--cc-navy-primary) !important;
  color: #fff !important;
  border-color: var(--cc-navy-primary) !important;
}

/* --------------------------------------------------------------------------
   Cart layout
   -------------------------------------------------------------------------- */
body.woocommerce-cart.cc-shop-flow .woocommerce {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

body.woocommerce-cart.cc-shop-flow .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

body.woocommerce-cart.cc-shop-flow .woocommerce-cart-form,
body.woocommerce-cart.cc-shop-flow .cart-collaterals {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 992px) {
  body.woocommerce-cart.cc-shop-flow .woocommerce {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
  }

  body.woocommerce-cart.cc-shop-flow .woocommerce-cart-form {
    grid-column: 1;
    grid-row: 2;
  }

  body.woocommerce-cart.cc-shop-flow .cart-collaterals {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }

  body.woocommerce-cart.cc-shop-flow .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
  }
}

body.cc-shop-flow .cart_totals,
body.cc-shop-flow .cart-collaterals .cart_totals {
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-gold-border);
  border-radius: var(--cc-radius-md, 14px);
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: var(--cc-shadow-card, 0 10px 30px -10px rgba(11, 27, 61, 0.08));
}

body.cc-shop-flow .cart_totals > h2 {
  color: var(--cc-navy-primary) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  margin: 0 0 1rem !important;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--cc-gold-border);
}

body.cc-shop-flow .cart_totals table.shop_table {
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 1rem !important;
  background: transparent !important;
}

body.cc-shop-flow .cart_totals table.shop_table th,
body.cc-shop-flow .cart_totals table.shop_table td {
  padding: 0.65rem 0 !important;
}

body.cc-shop-flow .cart_totals .order-total th,
body.cc-shop-flow .cart_totals .order-total td {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cc-navy-primary) !important;
}

body.cc-shop-flow .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}

body.cc-shop-flow .coupon label {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cc-navy-primary);
}

body.cc-shop-flow .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0 0 !important;
  border-top: 1px solid var(--cc-border-subtle);
}

/* --------------------------------------------------------------------------
   Forms & buttons
   -------------------------------------------------------------------------- */
body.cc-shop-flow input.input-text,
body.cc-shop-flow textarea.input-text,
body.cc-shop-flow select,
body.cc-shop-flow .select2-container--default .select2-selection--single,
body.cc-shop-flow .woocommerce form .form-row input.input-text,
body.cc-shop-flow .woocommerce form .form-row textarea,
body.cc-shop-flow .woocommerce form .form-row select {
  background: var(--cc-bg-gold-light) !important;
  border: 1.5px solid var(--cc-gold-border) !important;
  border-radius: var(--cc-radius-sm, 8px) !important;
  color: var(--cc-navy-primary) !important;
  min-height: 2.85rem;
  padding: 0.55rem 0.85rem !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.cc-shop-flow textarea.input-text,
body.cc-shop-flow .woocommerce form .form-row textarea {
  min-height: 6rem;
}

body.cc-shop-flow input.input-text:focus,
body.cc-shop-flow textarea.input-text:focus,
body.cc-shop-flow select:focus,
body.cc-shop-flow .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--cc-gold-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(197, 168, 105, 0.28) !important;
}

body.cc-shop-flow .woocommerce form .form-row label {
  color: var(--cc-navy-primary) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.35rem !important;
}

body.cc-shop-flow .required {
  color: #b42318 !important;
}

body.cc-shop-flow .button,
body.cc-shop-flow button.button,
body.cc-shop-flow input.button,
body.cc-shop-flow a.button,
body.cc-shop-flow #place_order,
body.cc-shop-flow .checkout-button,
body.cc-shop-flow .wc-proceed-to-checkout a.checkout-button {
  background: var(--cc-gold-primary) !important;
  color: var(--cc-navy-dark) !important;
  border: none !important;
  border-radius: var(--cc-radius-sm, 8px) !important;
  font-weight: 800 !important;
  font-size: 0.98rem !important;
  padding: 0.85rem 1.25rem !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: filter 0.15s ease, transform 0.15s ease;
}

body.cc-shop-flow .button:hover,
body.cc-shop-flow button.button:hover,
body.cc-shop-flow input.button:hover,
body.cc-shop-flow a.button:hover,
body.cc-shop-flow #place_order:hover,
body.cc-shop-flow .checkout-button:hover {
  filter: brightness(0.96);
  color: var(--cc-navy-dark) !important;
}

body.cc-shop-flow .button:disabled,
body.cc-shop-flow button.button:disabled,
body.cc-shop-flow input.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.cc-shop-flow .button.alt,
body.cc-shop-flow #place_order,
body.cc-shop-flow .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.cc-shop-flow button[name="update_cart"],
body.cc-shop-flow button[name="apply_coupon"] {
  background: var(--cc-bg-surface) !important;
  color: var(--cc-navy-primary) !important;
  border: 1.5px solid var(--cc-navy-primary) !important;
  font-weight: 700 !important;
}

body.cc-shop-flow button[name="update_cart"]:hover,
body.cc-shop-flow button[name="apply_coupon"]:hover {
  background: var(--cc-navy-primary) !important;
  color: #fff !important;
  filter: none;
}

body.cc-shop-flow .wc-proceed-to-checkout {
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   Checkout layout
   -------------------------------------------------------------------------- */
body.woocommerce-checkout.cc-shop-flow .woocommerce-form-coupon-toggle .woocommerce-info {
  text-align: start;
}

body.woocommerce-checkout.cc-shop-flow form.checkout {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  align-items: start;
}

body.woocommerce-checkout.cc-shop-flow form.checkout > * {
  min-width: 0;
}

@media (min-width: 992px) {
  body.woocommerce-checkout.cc-shop-flow form.checkout {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    grid-template-areas:
      "cc-billing cc-summary-head"
      "cc-billing cc-summary-body";
    align-items: start;
  }

  body.woocommerce-checkout.cc-shop-flow #customer_details {
    grid-area: cc-billing;
    width: 100% !important;
    min-width: 0;
  }

  body.woocommerce-checkout.cc-shop-flow #order_review_heading {
    grid-area: cc-summary-head;
    width: 100% !important;
    min-width: 0;
    align-self: start;
    margin-bottom: 0 !important;
  }

  body.woocommerce-checkout.cc-shop-flow #order_review {
    grid-area: cc-summary-body;
    width: 100% !important;
    min-width: 0;
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

body.cc-shop-flow #customer_details .col-1,
body.cc-shop-flow #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  max-width: none !important;
  min-width: 0;
}

body.cc-shop-flow .woocommerce form .form-row {
  float: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
}

body.cc-shop-flow .woocommerce-billing-fields__field-wrapper,
body.cc-shop-flow .woocommerce-shipping-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

body.cc-shop-flow .woocommerce-billing-fields__field-wrapper .form-row,
body.cc-shop-flow .woocommerce-shipping-fields__field-wrapper .form-row {
  flex: 1 1 100%;
  min-width: 0;
}

body.cc-shop-flow .woocommerce-billing-fields__field-wrapper .form-row-first,
body.cc-shop-flow .woocommerce-billing-fields__field-wrapper .form-row-last,
body.cc-shop-flow .woocommerce-shipping-fields__field-wrapper .form-row-first,
body.cc-shop-flow .woocommerce-shipping-fields__field-wrapper .form-row-last {
  flex: 1 1 calc(50% - 0.5rem);
  max-width: calc(50% - 0.5rem);
}

body.cc-shop-flow .woocommerce-billing-fields > h3,
body.cc-shop-flow .woocommerce-additional-fields > h3,
body.cc-shop-flow #order_review_heading,
body.cc-shop-flow .woocommerce-shipping-fields > h3 {
  color: var(--cc-navy-primary) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  margin: 0 0 1rem !important;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--cc-gold-border);
}

body.cc-shop-flow #customer_details,
body.cc-shop-flow #order_review {
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-gold-border);
  border-radius: var(--cc-radius-md, 14px);
  padding: 1.2rem 1.25rem 1.4rem;
  box-shadow: var(--cc-shadow-card, 0 10px 30px -10px rgba(11, 27, 61, 0.08));
  box-sizing: border-box;
}

body.cc-shop-flow #order_review_heading {
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-gold-border);
  border-bottom: none;
  border-radius: var(--cc-radius-md, 14px) var(--cc-radius-md, 14px) 0 0;
  margin: 0 !important;
  padding: 1rem 1.25rem 0.75rem !important;
  box-shadow: none;
}

body.cc-shop-flow #order_review_heading + #order_review {
  border-radius: 0 0 var(--cc-radius-md, 14px) var(--cc-radius-md, 14px);
  border-top: none;
  padding-top: 0.35rem;
}

body.cc-shop-flow #payment {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0.35rem 0 0 !important;
}

body.cc-shop-flow #payment ul.payment_methods {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
}

body.cc-shop-flow #payment ul.payment_methods li {
  background: var(--cc-bg-gold-light);
  border: 1px solid var(--cc-gold-border);
  border-radius: var(--cc-radius-sm, 8px);
  padding: 0.85rem 1rem !important;
  margin: 0 0 0.65rem !important;
  list-style: none;
}

body.cc-shop-flow #payment ul.payment_methods li label {
  color: var(--cc-navy-primary) !important;
  font-weight: 800 !important;
  cursor: pointer;
}

body.cc-shop-flow #payment div.payment_box {
  background: var(--cc-bg-surface) !important;
  border: 1px solid var(--cc-gold-border) !important;
  border-radius: var(--cc-radius-sm, 8px);
  color: var(--cc-text-body) !important;
  margin-top: 0.65rem !important;
  padding: 0.75rem 0.9rem !important;
  box-shadow: none !important;
}

body.cc-shop-flow #payment div.payment_box::before {
  display: none !important;
}

body.cc-shop-flow #payment .woocommerce-privacy-policy-text {
  color: var(--cc-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0.75rem 0 1rem;
}

body.cc-shop-flow #payment .woocommerce-privacy-policy-text a {
  color: var(--cc-navy-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.cc-shop-flow .woocommerce-form-login,
body.cc-shop-flow .woocommerce-form-coupon {
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-gold-border);
  border-radius: var(--cc-radius-md, 14px);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Quantity
   -------------------------------------------------------------------------- */
body.cc-shop-flow .quantity .qty {
  width: 4rem !important;
  text-align: center;
  background: var(--cc-bg-gold-light) !important;
  border: 1.5px solid var(--cc-gold-border) !important;
  border-radius: var(--cc-radius-sm, 8px) !important;
  color: var(--cc-navy-primary) !important;
}

/* --------------------------------------------------------------------------
   Order received / thank-you
   -------------------------------------------------------------------------- */
body.cc-shop-flow .woocommerce-thankyou-order-received {
  color: var(--cc-navy-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.25rem;
}

body.cc-shop-flow ul.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  list-style: none;
  margin: 0 0 1.5rem !important;
  padding: 1rem 1.15rem !important;
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-gold-border);
  border-radius: var(--cc-radius-md, 14px);
}

body.cc-shop-flow ul.woocommerce-order-overview li {
  flex: 1 1 9.5rem;
  min-width: 0;
  margin: 0 !important;
  padding: 0.35rem 0.75rem !important;
  border-inline-end: 1px dashed var(--cc-gold-border);
  text-align: center;
  color: var(--cc-text-muted);
  font-size: 0.82rem;
}

body.cc-shop-flow ul.woocommerce-order-overview li:last-child {
  border-inline-end: none;
}

body.cc-shop-flow ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--cc-navy-primary);
  font-size: 0.98rem;
  font-weight: 800;
  word-break: break-word;
}

body.cc-shop-flow .woocommerce-bacs-bank-details,
body.cc-shop-flow .wc-bacs-bank-details {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cc-gold-border);
}

body.cc-shop-flow .woocommerce-bacs-bank-details h2,
body.cc-shop-flow .wc-bacs-bank-details h2 {
  color: var(--cc-gold-dark) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin: 0 0 1rem !important;
}

body.cc-shop-flow .woocommerce-order-details,
body.cc-shop-flow .woocommerce-customer-details {
  margin-top: 1.5rem;
}

/* Checkout review table — keep rows aligned on mobile */
@media (max-width: 768px) {
  body.woocommerce-checkout.cc-shop-flow #order_review table.shop_table tr {
    display: table-row !important;
  }

  body.woocommerce-checkout.cc-shop-flow #order_review table.shop_table td,
  body.woocommerce-checkout.cc-shop-flow #order_review table.shop_table th {
    display: table-cell !important;
    padding: 0.75rem 0.85rem !important;
  }

  body.woocommerce-checkout.cc-shop-flow #order_review table.shop_table td::before {
    display: none !important;
  }

  body.cc-shop-flow .woocommerce-billing-fields__field-wrapper .form-row-first,
  body.cc-shop-flow .woocommerce-billing-fields__field-wrapper .form-row-last,
  body.cc-shop-flow .woocommerce-shipping-fields__field-wrapper .form-row-first,
  body.cc-shop-flow .woocommerce-shipping-fields__field-wrapper .form-row-last {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Mobile cart — single column + responsive table
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body.woocommerce-cart.cc-shop-flow .woocommerce {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-cart.cc-shop-flow .woocommerce-cart-form,
  body.woocommerce-cart.cc-shop-flow .cart-collaterals {
    grid-column: 1;
    grid-row: auto;
    position: static;
    top: auto;
  }

  body.woocommerce-cart.cc-shop-flow .cart-collaterals {
    order: 2;
  }
}

@media (max-width: 768px) {
  body.woocommerce-cart.cc-shop-flow table.shop_table thead {
    display: none;
  }

  body.woocommerce-cart.cc-shop-flow table.shop_table tbody tr {
    display: block;
    padding: 1rem !important;
    border-bottom: 1px solid var(--cc-border-subtle);
  }

  body.woocommerce-cart.cc-shop-flow table.shop_table td {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0 !important;
    border: none !important;
    text-align: start !important;
  }

  body.woocommerce-cart.cc-shop-flow table.shop_table td::before {
    content: attr(data-title) ": ";
    font-weight: 700;
    color: var(--cc-text-muted);
    flex: 0 0 38%;
    max-width: 9rem;
  }

  body.woocommerce-cart.cc-shop-flow table.shop_table td.product-remove,
  body.woocommerce-cart.cc-shop-flow table.shop_table td.product-thumbnail {
    justify-content: flex-start;
    align-items: center;
  }

  body.woocommerce-cart.cc-shop-flow table.shop_table td.product-remove::before,
  body.woocommerce-cart.cc-shop-flow table.shop_table td.product-thumbnail::before {
    display: none;
  }

  body.woocommerce-cart.cc-shop-flow table.shop_table td.product-name {
    flex-wrap: wrap;
  }

  body.woocommerce-cart.cc-shop-flow table.shop_table td.product-name::before {
    flex: 0 0 100%;
    max-width: none;
    margin-bottom: 0.15rem;
  }

  body.cc-shop-flow .product-thumbnail img {
    width: 88px !important;
    height: 88px !important;
  }

  body.cc-shop-flow .actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.cc-shop-flow .coupon {
    width: 100%;
  }

  body.cc-shop-flow .coupon .input-text,
  body.cc-shop-flow .coupon .button,
  body.cc-shop-flow .actions .button {
    width: 100%;
  }

  body.cc-shop-flow #customer_details,
  body.cc-shop-flow #order_review,
  body.cc-shop-flow #order_review_heading {
    padding-inline: 1rem;
  }

  body.cc-shop-flow #order_review_heading {
    border-radius: var(--cc-radius-md, 14px) var(--cc-radius-md, 14px) 0 0;
  }

  body.cc-shop-flow ul.woocommerce-order-overview li {
    flex: 1 1 100%;
    border-inline-end: none;
    border-bottom: 1px dashed var(--cc-gold-border);
    padding-bottom: 0.65rem !important;
  }

  body.cc-shop-flow ul.woocommerce-order-overview li:last-child {
    border-bottom: none;
    padding-bottom: 0.35rem !important;
  }
}

/* Overflow guard */
body.cc-shop-flow .woocommerce *,
body.cc-shop-flow .woocommerce *::before,
body.cc-shop-flow .woocommerce *::after {
  box-sizing: border-box;
}

body.cc-shop-flow .woocommerce {
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  body.cc-shop-flow * {
    transition: none !important;
  }
}
