/* Simple Gravel Cart Redesign — scoped to WooCommerce cart page only */
.sg-cart-redesign {
  --sg-ink: #07152d;
  --sg-muted: #6f7f96;
  --sg-line: #dfe5ec;
  --sg-panel: #ffffff;
  --sg-soft: #f8fafc;
  --sg-orange: #ff4f00;
  --sg-orange-dark: #e84700;
  --sg-green: #08cf70;
  --sg-shadow: 0 10px 30px rgba(9, 30, 66, .07);
  --sg-radius: 8px;
}

.sg-cart-redesign .elementor-widget-woocommerce-cart .woocommerce {
  max-width: 1420px;
  margin: 0 auto;
}

.sg-cart-redesign .sg-cart-intro {
  margin: 0 0 22px;
}

.sg-cart-redesign .sg-cart-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #7a8799;
  font-size: 14px;
}
.sg-cart-redesign .sg-cart-breadcrumb a { color: #7a8799; text-decoration: none; }
.sg-cart-redesign .sg-cart-breadcrumb .sg-chevron { opacity: .65; }
.sg-cart-redesign .sg-cart-title {
  margin: 0;
  color: var(--sg-ink);
  font-size: clamp(38px, 4.1vw, 64px);
  line-height: .98;
  letter-spacing: -2.6px;
  font-weight: 800;
}
.sg-cart-redesign .sg-cart-subtitle {
  margin: 10px 0 0;
  color: var(--sg-muted);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.45;
}

/* Main two-column frame */
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, .9fr) !important;
  gap: 24px !important;
  align-items: start !important;
}
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__column,
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__column-start,
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__column-end {
  width: auto !important;
  padding: 0 !important;
  float: none !important;
}

/* Product card */
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-shop-table,
.sg-cart-redesign .elementor-widget-woocommerce-cart .coupon.e-cart-section,
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart-totals {
  border: 1px solid var(--sg-line) !important;
  border-radius: var(--sg-radius) !important;
  background: var(--sg-panel) !important;
  box-shadow: var(--sg-shadow) !important;
}
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-shop-table {
  padding: 12px 16px 10px !important;
  margin-bottom: 16px !important;
}
.sg-cart-redesign .elementor-widget-woocommerce-cart table.shop_table {
  border: 0 !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.sg-cart-redesign .elementor-widget-woocommerce-cart table.shop_table thead th {
  padding: 10px 10px 13px !important;
  border: 0 !important;
  background: transparent !important;
  color: #66758c !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
}
.sg-cart-redesign .elementor-widget-woocommerce-cart table.shop_table tbody tr.cart_item td {
  padding: 14px 10px !important;
  border-top: 1px solid #eef1f5 !important;
  border-bottom: 1px solid #eef1f5 !important;
  vertical-align: middle !important;
  background: #fff !important;
}
.sg-cart-redesign .elementor-widget-woocommerce-cart table.shop_table tbody tr.cart_item td:first-child {
  border-left: 1px solid #eef1f5 !important;
  border-radius: 7px 0 0 7px !important;
}
.sg-cart-redesign .elementor-widget-woocommerce-cart table.shop_table tbody tr.cart_item td:last-child {
  border-right: 1px solid #eef1f5 !important;
  border-radius: 0 7px 7px 0 !important;
}

.sg-cart-redesign td.product-thumbnail { width: 104px !important; }
.sg-cart-redesign td.product-thumbnail img {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
}
.sg-cart-redesign td.product-name a {
  color: var(--sg-ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}
.sg-cart-redesign td.product-name dl.variation {
  margin: 7px 0 0 !important;
  color: #718097 !important;
  font-size: 13px !important;
}
.sg-cart-redesign td.product-name dl.variation dt,
.sg-cart-redesign td.product-name dl.variation dd {
  display: inline !important;
  float: none !important;
  margin: 0 !important;
}
.sg-cart-redesign td.product-name dl.variation dd p { display: inline !important; }
.sg-cart-redesign td.product-price,
.sg-cart-redesign td.product-subtotal {
  color: var(--sg-ink) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.sg-cart-redesign td.product-subtotal,
.sg-cart-redesign td.product-subtotal .amount { color: var(--sg-orange) !important; font-weight: 800 !important; }

/* Remove icon */
.sg-cart-redesign td.product-remove { width: 32px !important; text-align: center !important; }
.sg-cart-redesign td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 32px !important;
  color: transparent !important;
  font-size: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  position: relative;
}
.sg-cart-redesign td.product-remove a.remove:before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2369798f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E");
}
.sg-cart-redesign td.product-remove a.remove:hover { background: #fff3ee !important; }
.sg-cart-redesign td.product-remove a.remove:hover:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff4f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E");
}

/* Quantity stepper */
.sg-cart-redesign .sg-qty-stepper {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  height: 38px;
  border: 1px solid #d6dde7;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.sg-cart-redesign .sg-qty-stepper button {
  appearance: none;
  border: 0;
  border-right: 1px solid #dfe5ec;
  background: #fff;
  color: var(--sg-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.sg-cart-redesign .sg-qty-stepper button:last-child { border-left: 1px solid #dfe5ec; border-right: 0; }
.sg-cart-redesign .sg-qty-stepper button:hover { background: #f6f8fb; }
.sg-cart-redesign .sg-qty-stepper input.qty {
  width: 34px !important;
  min-width: 34px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--sg-ink) !important;
  text-align: center !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
}
.sg-cart-redesign .sg-qty-stepper input.qty::-webkit-outer-spin-button,
.sg-cart-redesign .sg-qty-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Hide native update cart button; JS updates via WooCommerce's native submit path */
.sg-cart-redesign .woocommerce-cart-form td.actions { padding: 0 !important; border: 0 !important; height: 0 !important; }
.sg-cart-redesign .woocommerce-cart-form button[name="update_cart"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Coupon card */
.sg-cart-redesign .elementor-widget-woocommerce-cart .coupon.e-cart-section {
  padding: 16px 18px !important;
  margin: 0 !important;
}
.sg-cart-redesign .coupon .form-row.coupon-col {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, .95fr) !important;
  gap: 18px !important;
  align-items: center !important;
  width: 100% !important;
}
.sg-cart-redesign .sg-coupon-copy {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}
.sg-cart-redesign .sg-coupon-icon {
  width: 28px;
  height: 28px;
  background: no-repeat center/28px 28px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ff4f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 11 23l-9-9V4h10l8.59 8.59a2 2 0 0 1 0 2.82Z'/%3E%3Cpath d='M7 9h.01'/%3E%3C/svg%3E");
}
.sg-cart-redesign .sg-coupon-copy strong { display: block; color: var(--sg-ink); font-size: 15px; line-height: 1.15; }
.sg-cart-redesign .sg-coupon-copy span { display: block; margin-top: 4px; color: var(--sg-muted); font-size: 12px; }
.sg-cart-redesign .sg-coupon-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  align-items: center;
}
.sg-cart-redesign .coupon input#coupon_code {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid #d5dde8 !important;
  border-radius: 5px !important;
  padding: 0 14px !important;
  box-shadow: none !important;
  background: #fff !important;
  color: var(--sg-ink) !important;
}
.sg-cart-redesign .coupon button.e-apply-coupon {
  min-height: 44px !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #9aa8ba !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: var(--sg-ink) !important;
  font-weight: 800 !important;
  text-transform: capitalize !important;
}
.sg-cart-redesign .coupon button.e-apply-coupon:hover { border-color: var(--sg-ink) !important; background: #f8fafc !important; }

/* Order summary */
.sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart-totals {
  padding: 22px 22px 18px !important;
}
.sg-cart-redesign .cart_totals h2 {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: var(--sg-ink) !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: -.5px !important;
}
.sg-cart-redesign .cart_totals table.shop_table tr th,
.sg-cart-redesign .cart_totals table.shop_table tr td {
  border: 0 !important;
  padding: 12px 0 !important;
  color: var(--sg-ink) !important;
  background: transparent !important;
}
.sg-cart-redesign .cart_totals table.shop_table tr th { font-weight: 700 !important; }
.sg-cart-redesign .cart_totals table.shop_table tr td { text-align: right !important; font-weight: 800 !important; }
.sg-cart-redesign .cart_totals tr.cart-subtotal { border-bottom: 1px solid var(--sg-line) !important; }
.sg-cart-redesign .cart_totals tr.order-total th { font-size: 19px !important; }
.sg-cart-redesign .cart_totals tr.order-total td,
.sg-cart-redesign .cart_totals tr.order-total td .amount {
  color: var(--sg-orange) !important;
  font-size: 25px !important;
  font-weight: 900 !important;
}
.sg-cart-redesign .sg-item-count {
  color: var(--sg-muted);
  font-weight: 500;
}
.sg-cart-redesign .sg-summary-note {
  margin: -2px 0 16px;
  color: var(--sg-muted);
  font-size: 13px;
  line-height: 1.45;
}
.sg-cart-redesign .wc-proceed-to-checkout { padding: 0 !important; margin: 0 !important; }
.sg-cart-redesign .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 0 10px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: var(--sg-orange) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.sg-cart-redesign .wc-proceed-to-checkout a.checkout-button:after {
  content: "→";
  font-size: 28px;
  line-height: .8;
  font-weight: 300;
}
.sg-cart-redesign .wc-proceed-to-checkout a.checkout-button:hover { background: var(--sg-orange-dark) !important; transform: translateY(-1px); }

/* Preserve Stripe/Link express checkout and make its host fit the card */
.sg-cart-redesign #wc-stripe-express-checkout-element { margin: 8px 0 10px !important; width: 100% !important; }

.sg-cart-redesign .sg-payment-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.sg-cart-redesign .sg-pay-badge {
  height: 29px;
  min-width: 46px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e5ec;
  border-radius: 3px;
  background: #fff;
  color: #14264b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.sg-cart-redesign .sg-pay-badge.visa { color: #163a9a; font-size: 14px; font-style: italic; }
.sg-cart-redesign .sg-pay-badge.mastercard { min-width: 44px; gap: 0; }
.sg-cart-redesign .sg-pay-badge.mastercard i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; margin: 0 -2px; }
.sg-cart-redesign .sg-pay-badge.mastercard i:first-child { background: #ef3f36; }
.sg-cart-redesign .sg-pay-badge.mastercard i:last-child { background: #f7a600; opacity: .9; }
.sg-cart-redesign .sg-pay-badge.amex { background: #1c9bd1; color: #fff; }
.sg-cart-redesign .sg-pay-badge.discover { font-size: 9px; }
.sg-cart-redesign .sg-pay-badge.shop { color: #5a31f4; min-width: 58px; }

/* Trust strip */
.sg-cart-redesign .sg-trust-strip {
  grid-column: 1 / -1;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background: #fff;
  box-shadow: var(--sg-shadow);
  overflow: hidden;
}
.sg-cart-redesign .sg-trust-item {
  min-height: 104px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px 30px;
  position: relative;
}
.sg-cart-redesign .sg-trust-item + .sg-trust-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--sg-line);
}
.sg-cart-redesign .sg-trust-icon {
  width: 46px;
  height: 46px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px 44px;
}
.sg-cart-redesign .sg-trust-icon.lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23ff4f00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 14v3'/%3E%3C/svg%3E"); }
.sg-cart-redesign .sg-trust-icon.truck { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 24 24' fill='none' stroke='%23ff4f00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M14 9h4l4 4v4h-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='16.5' cy='17.5' r='2.5'/%3E%3C/svg%3E"); }
.sg-cart-redesign .sg-trust-copy strong { display: block; color: var(--sg-ink); font-size: 16px; font-weight: 800; line-height: 1.2; }
.sg-cart-redesign .sg-trust-copy span { display: block; margin-top: 5px; color: var(--sg-muted); font-size: 13px; line-height: 1.35; }

/* Woo notices */
.sg-cart-redesign .woocommerce-notices-wrapper { margin-bottom: 12px; }
.sg-cart-redesign .woocommerce-message,
.sg-cart-redesign .woocommerce-error,
.sg-cart-redesign .woocommerce-info { border-radius: 6px; }

/* Tablet */
@media (max-width: 1024px) {
  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__container {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr) !important;
    gap: 18px !important;
  }
  .sg-cart-redesign .sg-trust-item { padding: 18px 20px; grid-template-columns: 44px 1fr; }
  .sg-cart-redesign .coupon .form-row.coupon-col { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* Mobile */
@media (max-width: 767px) {
  .sg-cart-redesign .elementor-widget-woocommerce-cart .woocommerce { width: 100%; }
  .sg-cart-redesign .sg-cart-intro { margin-bottom: 18px; padding: 0 2px; }
  .sg-cart-redesign .sg-cart-breadcrumb { font-size: 12px; margin-bottom: 10px; }
  .sg-cart-redesign .sg-cart-title { font-size: 42px; letter-spacing: -1.8px; }
  .sg-cart-redesign .sg-cart-subtitle { font-size: 15px; margin-top: 7px; }

  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__column { width: 100% !important; }
  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__column-end { order: 2; }
  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart__column-start { order: 1; }

  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-shop-table { padding: 8px !important; margin-bottom: 12px !important; }
  .sg-cart-redesign .woocommerce-cart-form table.shop_table thead { display: none !important; }
  .sg-cart-redesign .woocommerce-cart-form table.shop_table,
  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody { display: block !important; width: 100% !important; }
  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 30px 82px minmax(0, 1fr) !important;
    grid-template-areas:
      "remove image name"
      "remove image qty"
      "remove image subtotal" !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    width: 100% !important;
    padding: 12px 8px !important;
    border: 1px solid #eef1f5 !important;
    border-radius: 7px !important;
    background: #fff !important;
  }
  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }
  .sg-cart-redesign td.product-remove { grid-area: remove; align-self: center; }
  .sg-cart-redesign td.product-thumbnail { grid-area: image; align-self: start; }
  .sg-cart-redesign td.product-thumbnail img { width: 78px !important; height: 78px !important; }
  .sg-cart-redesign td.product-name { grid-area: name; }
  .sg-cart-redesign td.product-name a { font-size: 15px !important; }
  /* On phones show one price only: the orange line total/subtotal. */
  .sg-cart-redesign td.product-price {
    grid-area: price;
    display: none !important;
  }
  .sg-cart-redesign td.product-quantity { grid-area: qty; }
  .sg-cart-redesign td.product-subtotal {
    grid-area: subtotal;
    font-size: 15px !important;
    margin-top: 1px !important;
  }
  .sg-cart-redesign td.product-price:before,
  .sg-cart-redesign td.product-subtotal:before {
    content: none !important;
    display: none !important;
  }

  .sg-cart-redesign .elementor-widget-woocommerce-cart .coupon.e-cart-section { padding: 14px !important; }
  .sg-cart-redesign .coupon .form-row.coupon-col { grid-template-columns: 1fr !important; gap: 12px !important; }
  /* Stack the coupon field and button so neither is squeezed/cut off on narrow screens. */
  .sg-cart-redesign .sg-coupon-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .sg-cart-redesign .sg-coupon-controls .coupon-col-start,
  .sg-cart-redesign .sg-coupon-controls .coupon-col-end {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .sg-cart-redesign .coupon input#coupon_code,
  .sg-cart-redesign .coupon button.e-apply-coupon {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .sg-cart-redesign .coupon button.e-apply-coupon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart-totals { padding: 18px 16px 15px !important; }
  .sg-cart-redesign .cart_totals h2 { font-size: 22px !important; }
  .sg-cart-redesign .cart_totals tr.order-total td,
  .sg-cart-redesign .cart_totals tr.order-total td .amount { font-size: 22px !important; }

  .sg-cart-redesign .sg-trust-strip {
    order: 3;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 2px;
  }
  .sg-cart-redesign .sg-trust-item { min-height: 86px; padding: 16px 18px; }
  .sg-cart-redesign .sg-trust-item + .sg-trust-item:before {
    left: 18px;
    right: 18px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

@media (max-width: 420px) {
  .sg-cart-redesign .sg-cart-title { font-size: 38px; }
  .sg-cart-redesign .sg-coupon-controls { grid-template-columns: 1fr; }
  .sg-cart-redesign .coupon button.e-apply-coupon { width: 100% !important; }
  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    grid-template-columns: 28px 72px minmax(0, 1fr) !important;
  }
  .sg-cart-redesign td.product-thumbnail img { width: 68px !important; height: 68px !important; }
}


/* v1.0.2 visual refinements */
.sg-cart-redesign .sg-cart-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sg-cart-redesign .sg-title-truck {
  flex: 0 0 auto;
  width: .82em;
  height: .82em;
  display: inline-block;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 24 24' fill='none' stroke='%23ff4f00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M14 9h4l4 4v4h-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='16.5' cy='17.5' r='2.5'/%3E%3C/svg%3E");
}

/* Keep hidden WooCommerce update row from producing visual space. */
.sg-cart-redesign .woocommerce-cart-form tr:has(> td.actions) {
  display: none !important;
}

/* Coupon alignment refinements */
.sg-cart-redesign .coupon .form-row.coupon-col {
  grid-template-columns: minmax(220px, .9fr) minmax(360px, 1.1fr) !important;
}
.sg-cart-redesign .sg-coupon-copy { justify-self: start; width: 100%; }
.sg-cart-redesign .sg-coupon-controls { width: 100%; }

@media (max-width: 767px) {
  .sg-cart-redesign .sg-cart-intro { padding: 0 4px; }
  .sg-cart-redesign .sg-cart-title {
    gap: 10px;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1.6px;
  }
  .sg-cart-redesign .sg-title-truck { width: .78em; height: .78em; }
  .sg-cart-redesign .sg-cart-subtitle { padding-left: 1px; }

  /* Neutralize WooCommerce small-screen generated labels that caused stray colons / Product: text. */
  .sg-cart-redesign .woocommerce-cart-form table.shop_table_responsive tr.cart_item td::before,
  .sg-cart-redesign .woocommerce-cart-form table.shop_table_responsive tr.cart_item td:before {
    content: none !important;
    display: none !important;
  }

  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-shop-table {
    padding: 8px !important;
  }
  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    grid-template-columns: 28px 76px minmax(0, 1fr) !important;
    grid-template-areas:
      "remove image name"
      "remove image qty"
      "remove image subtotal" !important;
    column-gap: 12px !important;
    row-gap: 7px !important;
    padding: 14px 10px !important;
    align-items: center !important;
  }
  .sg-cart-redesign td.product-remove {
    align-self: center !important;
    justify-self: center !important;
  }
  .sg-cart-redesign td.product-thumbnail {
    align-self: center !important;
  }
  .sg-cart-redesign td.product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
  }
  .sg-cart-redesign td.product-name,
  .sg-cart-redesign td.product-price,
  .sg-cart-redesign td.product-quantity,
  .sg-cart-redesign td.product-subtotal {
    min-width: 0 !important;
  }
  .sg-cart-redesign td.product-name a {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }
  .sg-cart-redesign td.product-price,
  .sg-cart-redesign td.product-subtotal {
    display: flex !important;
    align-items: baseline;
    gap: 3px;
    font-size: 13px !important;
  }
  .sg-cart-redesign td.product-price::after,
  .sg-cart-redesign td.product-subtotal::after { content: none !important; }
  .sg-cart-redesign td.product-price { grid-area: price; }
  .sg-cart-redesign td.product-price:before {
    content: "Price:" !important;
    display: inline !important;
    color: var(--sg-ink) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .sg-cart-redesign td.product-quantity {
    grid-area: qty;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
  }
  .sg-cart-redesign td.product-quantity:before {
    content: "Quantity:" !important;
    display: inline !important;
    color: var(--sg-ink) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .sg-cart-redesign td.product-subtotal { grid-area: subtotal; }
  .sg-cart-redesign td.product-subtotal:before {
    content: "Subtotal:" !important;
    display: inline !important;
    color: var(--sg-ink) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .sg-cart-redesign .sg-qty-stepper {
    grid-template-columns: 31px 31px 31px;
    height: 36px;
  }
  .sg-cart-redesign .sg-qty-stepper input.qty {
    width: 31px !important;
    min-width: 31px !important;
    height: 34px !important;
  }

  /* Mobile coupon: clean header, then full-width input and button. */
  .sg-cart-redesign .elementor-widget-woocommerce-cart .coupon.e-cart-section { padding: 16px 14px !important; }
  .sg-cart-redesign .coupon .form-row.coupon-col {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .sg-cart-redesign .sg-coupon-copy {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: center;
  }
  .sg-cart-redesign .sg-coupon-icon { width: 26px; height: 26px; background-size: 26px 26px; }
  .sg-cart-redesign .sg-coupon-controls {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .sg-cart-redesign .coupon input#coupon_code,
  .sg-cart-redesign .coupon button.e-apply-coupon {
    min-height: 44px !important;
    width: 100% !important;
  }

  .sg-cart-redesign .elementor-widget-woocommerce-cart .e-cart-totals {
    padding: 18px 14px 16px !important;
  }
  .sg-cart-redesign .cart_totals table.shop_table tr th,
  .sg-cart-redesign .cart_totals table.shop_table tr td {
    padding: 11px 0 !important;
  }
  .sg-cart-redesign .wc-proceed-to-checkout a.checkout-button {
    min-height: 50px !important;
    font-size: 15px !important;
  }
  .sg-cart-redesign .sg-payment-badges {
    gap: 6px;
    margin-top: 10px;
  }
  .sg-cart-redesign .sg-pay-badge {
    height: 27px;
    min-width: 42px;
    padding: 0 6px;
  }

  .sg-cart-redesign .sg-trust-strip {
    margin-top: 14px;
  }
  .sg-cart-redesign .sg-trust-item {
    min-height: 82px;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 15px 16px;
  }
  .sg-cart-redesign .sg-trust-icon {
    width: 38px;
    height: 38px;
    background-size: 38px 38px;
  }
  .sg-cart-redesign .sg-trust-copy strong { font-size: 15px; }
  .sg-cart-redesign .sg-trust-copy span { font-size: 12px; }
}

@media (max-width: 390px) {
  .sg-cart-redesign .sg-cart-title { font-size: 35px; gap: 8px; }
  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    grid-template-columns: 24px 66px minmax(0, 1fr) !important;
    column-gap: 9px !important;
    padding: 12px 8px !important;
  }
  .sg-cart-redesign td.product-thumbnail img { width: 64px !important; height: 64px !important; }
  .sg-cart-redesign td.product-name a { font-size: 13px !important; }
  .sg-cart-redesign .sg-qty-stepper { grid-template-columns: 29px 29px 29px; }
  .sg-cart-redesign .sg-qty-stepper input.qty { width: 29px !important; min-width: 29px !important; }
}

/* ===== v1.0.3 compatibility + layout refinements ===== */
.sg-cart-redesign .sg-cart-title .sg-title-truck {
  display: inline-block !important;
  width: 0.82em !important;
  height: 0.82em !important;
  min-width: 0.82em;
  flex: 0 0 0.82em;
}

/* Desktop coupon = icon/copy + field + button in one clean row. */
@media (min-width: 1025px) {
  .sg-cart-redesign .coupon .form-row.coupon-col {
    display: grid !important;
    grid-template-columns: minmax(250px, 1.05fr) minmax(190px, .8fr) 140px !important;
    gap: 16px !important;
    align-items: center !important;
  }
  .sg-cart-redesign .sg-coupon-copy {
    grid-column: 1 !important;
    justify-self: stretch !important;
    margin: 0 !important;
  }
  .sg-cart-redesign .sg-coupon-controls {
    grid-column: 2 / 4 !important;
    display: grid !important;
    grid-template-columns: minmax(190px, 1fr) 140px !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Hide the native update-cart action row without :has() for broader browser support. */
.sg-cart-redesign .woocommerce-cart-form td.actions {
  display: none !important;
}

@media (max-width: 767px) {
  .sg-cart-redesign .sg-cart-intro {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .sg-cart-redesign .sg-cart-title {
    font-size: clamp(34px, 10vw, 40px) !important;
    gap: 9px !important;
    letter-spacing: -1.4px !important;
  }
  .sg-cart-redesign .sg-cart-title .sg-title-truck {
    width: .76em !important;
    height: .76em !important;
    min-width: .76em !important;
    flex-basis: .76em !important;
  }
  .sg-cart-redesign .sg-cart-subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    grid-template-columns: 26px 70px minmax(0,1fr) !important;
    column-gap: 10px !important;
    row-gap: 7px !important;
    padding: 13px 9px !important;
  }
  .sg-cart-redesign td.product-thumbnail img {
    width: 66px !important;
    height: 66px !important;
  }
  .sg-cart-redesign td.product-name a {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }
  .sg-cart-redesign td.product-price,
  .sg-cart-redesign td.product-subtotal,
  .sg-cart-redesign td.product-quantity {
    margin: 0 !important;
  }
  .sg-cart-redesign td.product-price,
  .sg-cart-redesign td.product-subtotal {
    font-size: 13px !important;
  }

  .sg-cart-redesign .sg-qty-stepper {
    grid-template-columns: 30px 30px 30px !important;
    height: 35px !important;
  }
  .sg-cart-redesign .sg-qty-stepper input.qty {
    width: 30px !important;
    min-width: 30px !important;
    height: 33px !important;
  }
  .sg-cart-redesign .sg-qty-stepper button {
    min-width: 30px !important;
  }

  .sg-cart-redesign .sg-coupon-copy {
    width: 100% !important;
    justify-self: stretch !important;
  }
  .sg-cart-redesign .sg-coupon-controls {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  .sg-cart-redesign .coupon input#coupon_code,
  .sg-cart-redesign .coupon button.e-apply-coupon {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .sg-cart-redesign .cart_totals table.shop_table tr th,
  .sg-cart-redesign .cart_totals table.shop_table tr td {
    display: table-cell !important;
    width: auto !important;
    text-align: inherit !important;
  }
  .sg-cart-redesign .cart_totals table.shop_table tr td {
    text-align: right !important;
  }
  .sg-cart-redesign .sg-payment-badges {
    gap: 5px !important;
  }
  .sg-cart-redesign .sg-pay-badge {
    min-width: 42px !important;
    height: 27px !important;
    padding: 0 6px !important;
  }

  .sg-cart-redesign .sg-trust-item {
    grid-template-columns: 42px minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 15px 16px !important;
  }
  .sg-cart-redesign .sg-trust-icon {
    width: 40px !important;
    height: 40px !important;
    background-size: 40px 40px !important;
  }
}

@media (max-width: 380px) {
  .sg-cart-redesign .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    grid-template-columns: 24px 62px minmax(0,1fr) !important;
    column-gap: 8px !important;
  }
  .sg-cart-redesign td.product-thumbnail img {
    width: 60px !important;
    height: 60px !important;
  }
  .sg-cart-redesign td.product-quantity {
    flex-wrap: wrap !important;
  }
}


/* v1.0.5 — coupon button + final mobile conflict fixes */
/* Reset Elementor/WooCommerce column sizing so the coupon controls cannot squeeze or overflow. */
.sg-cart-redesign .coupon .coupon-col-start,
.sg-cart-redesign .coupon .coupon-col-end {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sg-cart-redesign .sg-coupon-controls {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) 150px !important;
  gap: 12px !important;
  align-items: stretch !important;
  min-width: 0 !important;
}
.sg-cart-redesign .coupon .coupon-col-start,
.sg-cart-redesign .coupon .coupon-col-end {
  min-width: 0 !important;
}
.sg-cart-redesign .coupon input#coupon_code,
.sg-cart-redesign .coupon button.e-apply-coupon {
  box-sizing: border-box !important;
  height: 46px !important;
  min-height: 46px !important;
}
.sg-cart-redesign .coupon button.e-apply-coupon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  padding: 0 16px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  /* Final override: one orange line price only on mobile. */
  .sg-cart-redesign td.product-price {
    display: none !important;
  }
  .sg-cart-redesign td.product-price::before,
  .sg-cart-redesign td.product-price:before,
  .sg-cart-redesign td.product-subtotal::before,
  .sg-cart-redesign td.product-subtotal:before {
    content: none !important;
    display: none !important;
  }
  .sg-cart-redesign td.product-subtotal {
    display: block !important;
    font-size: 15px !important;
    margin-top: 1px !important;
  }
  .sg-cart-redesign td.product-quantity:before,
  .sg-cart-redesign td.product-quantity::before {
    content: none !important;
    display: none !important;
  }

  /* Coupon controls: field first, true full-width button underneath. */
  .sg-cart-redesign .sg-coupon-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .sg-cart-redesign .coupon .coupon-col-start,
  .sg-cart-redesign .coupon .coupon-col-end {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .sg-cart-redesign .coupon input#coupon_code,
  .sg-cart-redesign .coupon button.e-apply-coupon {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }
  .sg-cart-redesign .coupon button.e-apply-coupon {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
  }
}
