/* AliensBuilds Cart Page - dedicated styling */
body.woocommerce-cart {
  --ab-cart-accent: #73ff2b;
  --ab-cart-accent-dark: #2a7f10;
  --ab-cart-text: #e9f7e2;
  --ab-cart-muted: rgba(224, 242, 215, 0.72);
  --ab-cart-panel: rgba(4, 16, 8, 0.7);
  --ab-cart-line: rgba(117, 255, 70, 0.3);
  background-color: #030a05;
  background-image: url("../images/cart_background.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: var(--ab-cart-text);
}

body.woocommerce-cart::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(120, 255, 90, 0.22),
      transparent 50%
    ),
    linear-gradient(180deg, rgba(3, 9, 5, 0.55), rgba(2, 5, 3, 0.84));
  pointer-events: none;
  z-index: 0;
}

body.woocommerce-cart .site {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area {
  background: transparent;
}

body.woocommerce-cart .entry-header {
  text-align: center;
  margin-bottom: 20px;
}

body.woocommerce-cart .entry-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px 10px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(112, 255, 61, 0.5);
  background: linear-gradient(
    180deg,
    rgba(33, 86, 20, 0.68),
    rgba(9, 27, 12, 0.78)
  );
  color: #d3ffac;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  text-shadow:
    0 0 12px rgba(115, 255, 43, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.65);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.5);
}

body.woocommerce-cart .entry-title::before {
  content: "Shopping ";
  color: #abff86;
  opacity: 0.96;
  margin-right: 0.25ch;
}

body.woocommerce-cart .wp-block-woocommerce-cart {
  max-width: 1320px;
  margin: 0 auto 60px;
  padding: 14px 24px 30px;
}

body.woocommerce-cart .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 31vw, 430px) !important;
  gap: 24px;
  align-items: start;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart
  .wc-block-components-sidebar-layout
  > .wc-block-components-main,
body.woocommerce-cart
  .wc-block-components-sidebar-layout
  > .wc-block-cart__main {
  width: 100%;
  min-width: 0;
}

body.woocommerce-cart
  .wc-block-components-sidebar-layout
  > .wc-block-components-sidebar,
body.woocommerce-cart
  .wc-block-components-sidebar-layout
  > .wc-block-cart__sidebar {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  align-self: start;
}

body.woocommerce-cart .wc-block-cart__sidebar > * {
  width: 100%;
  max-width: 100% !important;
}

/* Main cards */
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals .cart_totals {
  background:
    linear-gradient(180deg, rgba(7, 24, 12, 0.84), rgba(3, 13, 7, 0.88)),
    var(--ab-cart-panel);
  border: 1px solid var(--ab-cart-line);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(140, 255, 93, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.46);
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
  padding: 18px;
}

/* Table headers */
body.woocommerce-cart .wc-block-cart-items thead th,
body.woocommerce-cart table.shop_table.cart thead th {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #d8ffb5;
  background: linear-gradient(
    90deg,
    rgba(49, 122, 31, 0.35),
    rgba(10, 31, 15, 0.52)
  );
  border-bottom: 1px solid rgba(125, 255, 80, 0.35) !important;
  padding: 14px 12px;
}

/* Product rows */
body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-cart table.shop_table.cart tbody tr {
  border-bottom: 1px solid rgba(112, 255, 64, 0.22);
}

body.woocommerce-cart .wc-block-cart-items td,
body.woocommerce-cart table.shop_table.cart td {
  color: var(--ab-cart-text);
  border: none;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart table.shop_table.cart td.product-name a {
  color: #dfffc0;
  font-weight: 700;
  text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-name:hover,
body.woocommerce-cart table.shop_table.cart td.product-name a:hover {
  color: #9bff65;
  text-decoration: underline;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
  border-radius: 6px;
  border: 1px solid rgba(120, 255, 71, 0.38);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__total,
body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
  color: #8fff5a;
  font-weight: 800;
}

/* Quantity controls */
body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart table.shop_table.cart .quantity {
  background: rgba(2, 10, 5, 0.62);
  border: 1px solid rgba(113, 255, 62, 0.36);
  border-radius: 4px;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button,
body.woocommerce-cart table.shop_table.cart .quantity .plus,
body.woocommerce-cart table.shop_table.cart .quantity .minus {
  color: #9dff6f;
  background: linear-gradient(
    180deg,
    rgba(47, 128, 23, 0.45),
    rgba(15, 43, 16, 0.65)
  );
  border: 0;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input,
body.woocommerce-cart table.shop_table.cart .quantity .qty {
  background: transparent;
  color: #e7ffd8;
  border: 0;
  font-weight: 700;
}

/* Remove button */
body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid rgba(126, 255, 78, 0.65);
  background: linear-gradient(180deg, #76d71e, #4e9f17);
  color: #eefade !important;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 8px 14px rgba(0, 0, 0, 0.35);
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover,
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
  background: linear-gradient(180deg, #8dff34, #5ebd1c);
  color: #ffffff !important;
}

/* Coupon and action area */
body.woocommerce-cart table.shop_table.cart td.actions {
  border-top: 1px solid rgba(120, 255, 74, 0.28);
  padding-top: 16px;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-totals-coupon__form input {
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(112, 255, 67, 0.32);
  background: rgba(2, 10, 6, 0.75);
  color: #e8ffd9;
  font-weight: 700;
}

body.woocommerce-cart table.shop_table.cart td.actions button,
body.woocommerce-cart table.shop_table.cart td.actions .button,
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-cart .wc-block-components-totals-coupon__form button,
body.woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .checkout-button.button.alt {
  width: 100%;
  min-height: 46px;
  border-radius: 4px !important;
  border: 1px solid rgba(126, 255, 78, 0.68) !important;
  background: linear-gradient(180deg, #73d51d, #4d9f16) !important;
  color: #f3ffe9 !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.36);
}

body.woocommerce-cart table.shop_table.cart td.actions button:hover,
body.woocommerce-cart table.shop_table.cart td.actions .button:hover,
body.woocommerce-cart .wc-block-components-totals-coupon__button:hover,
body.woocommerce-cart .wc-block-components-totals-coupon__form button:hover,
body.woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .checkout-button.button.alt:hover {
  background: linear-gradient(180deg, #89f630, #5ebd1c) !important;
  color: #ffffff !important;
}

/* Totals side */
body.woocommerce-cart
  .wc-block-cart__sidebar
  .wc-block-components-totals-wrapper,
body.woocommerce-cart .cart-collaterals .cart_totals table {
  border: 1px solid rgba(110, 255, 62, 0.32);
  border-radius: 6px;
  background: rgba(4, 14, 8, 0.76);
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item,
body.woocommerce-cart .cart-collaterals .cart_totals tr {
  border-bottom: 1px solid rgba(118, 255, 73, 0.2);
}

body.woocommerce-cart
  .wc-block-cart__sidebar
  .wc-block-components-totals-item__label,
body.woocommerce-cart .cart-collaterals .cart_totals th {
  color: #d8ffb6;
  font-weight: 700;
}

body.woocommerce-cart
  .wc-block-cart__sidebar
  .wc-block-components-totals-item__value,
body.woocommerce-cart .cart-collaterals .cart_totals td {
  color: #eeffd9;
  font-weight: 800;
}

/* Coupon panel in block cart */
body.woocommerce-cart .wc-block-components-panel {
  border-radius: 6px;
  border: 1px solid rgba(116, 255, 70, 0.22);
  background: rgba(3, 12, 7, 0.55);
  margin-bottom: 14px;
}

body.woocommerce-cart .wc-block-components-panel__button {
  color: #deffc6;
  font-weight: 700;
}

/* Keep layout close to reference */
body.woocommerce-cart .wc-block-components-express-payment {
  display: none !important;
}

body.woocommerce-cart .wc-block-components-divider {
  border-color: rgba(114, 255, 66, 0.2) !important;
}

/* ---------- Classic cart table (forced) ---------- */
body.woocommerce-cart .woocommerce-cart-form {
  background:
    linear-gradient(180deg, rgba(7, 24, 12, 0.84), rgba(3, 13, 7, 0.88)),
    var(--ab-cart-panel);
  border: 1px solid var(--ab-cart-line);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(140, 255, 93, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.46);
  padding: 18px;
}

body.woocommerce-cart table.shop_table.cart.woocommerce-cart-form__contents {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  background: transparent;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  thead
  th {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: #d8ffb5;
  background: linear-gradient(
    90deg,
    rgba(49, 122, 31, 0.35),
    rgba(10, 31, 15, 0.52)
  );
  border-bottom: 1px solid rgba(125, 255, 80, 0.35);
  padding: 14px 12px;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-name {
  width: 50%;
  text-align: left;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-price,
body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-quantity,
body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-subtotal {
  width: 14%;
  text-align: center;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-remove {
  width: 120px;
  text-align: center;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  tbody
  tr.cart_item {
  border-bottom: 1px solid rgba(112, 255, 64, 0.22);
}

body.woocommerce-cart table.shop_table.cart.woocommerce-cart-form__contents td {
  padding: 16px 12px;
  border: 0;
  color: var(--ab-cart-text);
  vertical-align: middle;
}

body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-quantity,
body.woocommerce-cart table.shop_table.cart td.product-subtotal,
body.woocommerce-cart table.shop_table.cart td.product-remove {
  text-align: center;
}

body.woocommerce-cart .ab-cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.woocommerce-cart .ab-cart-product__thumb img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(120, 255, 71, 0.38);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

body.woocommerce-cart .ab-cart-product__title {
  color: #dfffc0;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.3;
}

body.woocommerce-cart .ab-cart-product__title:hover {
  color: #9bff65;
  text-decoration: underline;
}

/* No extra description under product title */
body.woocommerce-cart table.shop_table.cart td.product-name dl,
body.woocommerce-cart table.shop_table.cart td.product-name .variation,
body.woocommerce-cart table.shop_table.cart td.product-name .wc-item-meta,
body.woocommerce-cart table.shop_table.cart td.product-name small,
body.woocommerce-cart table.shop_table.cart td.product-name p {
  display: none !important;
}

body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
  color: #8fff5a;
  font-weight: 800;
}

body.woocommerce-cart table.shop_table.cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(113, 255, 62, 0.36);
  border-radius: 4px;
  background: rgba(2, 10, 5, 0.62);
  overflow: hidden;
}

body.woocommerce-cart table.shop_table.cart .quantity .qty {
  width: 52px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #e7ffd8;
  font-weight: 800;
  text-align: center;
}

body.woocommerce-cart table.shop_table.cart td.product-remove a.remove.button {
  min-width: 100px;
  min-height: 40px;
}

body.woocommerce-cart table.shop_table.cart td.actions {
  border-top: 1px solid rgba(120, 255, 74, 0.28);
  padding-top: 16px;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  float: left;
}

body.woocommerce-cart
  table.shop_table.cart
  td.actions
  .button[name="update_cart"] {
  float: left;
  margin-left: 10px;
  width: auto;
  min-width: 170px;
}

@media (max-width: 1100px) {
  body.woocommerce-cart .wp-block-woocommerce-cart {
    padding: 10px 14px 24px;
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-cart .wc-block-cart__sidebar {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.woocommerce-cart .entry-title {
    font-size: 24px;
    padding: 10px 14px 8px;
  }

  body.woocommerce-cart .entry-title::before {
    display: none;
  }
}

/* ==================================================
   Reference replica: classic cart table + totals card
   ================================================== */
body.woocommerce-cart .woocommerce-cart-form {
  max-width: 1260px;
  margin: 0 auto;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  thead
  th {
  background: linear-gradient(90deg, #031a0e, #0a2a18) !important;
  color: #ddffc3 !important;
  border-right: 1px solid rgba(118, 255, 72, 0.18);
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  thead
  th:last-child {
  border-right: 0;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  tbody
  tr.cart_item
  td {
  background: #e8e8e8;
  color: #2f3b2f;
  border-bottom: 1px solid rgba(20, 51, 26, 0.2);
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  tbody
  tr.cart_item
  td.product-name {
  text-align: left;
}

body.woocommerce-cart .ab-cart-product__title {
  color: #b8e59d;
  font-weight: 900;
}

body.woocommerce-cart .ab-cart-product__title:hover {
  color: #8dd565;
}

body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
  color: #71df38 !important;
  font-weight: 900;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
  background: #5f6661;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity .qty {
  background: #5f6661;
  color: #ffffff;
  width: 54px;
  height: 40px;
  font-size: 24px;
  font-weight: 900;
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-quantity
  .quantity
  .qty::-webkit-outer-spin-button,
body.woocommerce-cart
  table.shop_table.cart
  td.product-quantity
  .quantity
  .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-quantity
  .quantity
  .qty[type="number"] {
  -moz-appearance: textfield;
}

body.woocommerce-cart table.shop_table.cart td.product-remove a.remove.button {
  width: 98px;
  min-width: 98px;
  height: 38px;
  min-height: 38px;
  border: 1px solid #78e539 !important;
  border-radius: 4px;
  background: linear-gradient(180deg, #7be022, #57b117) !important;
  color: #f2ffe8 !important;
  font-size: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 14px rgba(0, 0, 0, 0.25);
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-remove
  a.remove.button::before {
  content: "•";
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

body.woocommerce-cart table.shop_table.cart td.actions {
  background: #e8e8e8 !important;
  padding: 16px 12px !important;
  border-top: 1px solid rgba(26, 64, 34, 0.35);
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  float: left !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
  width: 220px;
  height: 44px;
  border: 1px solid rgba(37, 58, 40, 0.24);
  border-radius: 4px;
  background: #404845;
  color: #ecf7ea;
  font-weight: 800;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .button,
body.woocommerce-cart
  table.shop_table.cart
  td.actions
  .button[name="update_cart"] {
  width: 168px !important;
  min-width: 168px !important;
  height: 44px;
  min-height: 44px;
  border-radius: 4px !important;
}

body.woocommerce-cart
  table.shop_table.cart
  td.actions
  .button[name="update_cart"]:disabled {
  background: linear-gradient(180deg, #b7e3a0, #9dcb86) !important;
  color: #f5fff3 !important;
  border-color: #b7e3a0 !important;
  opacity: 1;
}

body.woocommerce-cart .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  width: min(100%, 560px);
  background: rgba(6, 22, 11, 0.88) !important;
  border: 1px solid rgba(117, 255, 70, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  margin: 0 !important;
  padding: 14px 18px !important;
  background: linear-gradient(90deg, #031a0e, #0a2a18) !important;
  color: #d9ffbe !important;
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

body.woocommerce-cart .cart-collaterals .cart_totals table {
  margin: 0 !important;
  background: #e8e8e8;
}

body.woocommerce-cart .cart-collaterals .cart_totals table th,
body.woocommerce-cart .cart-collaterals .cart_totals table td {
  padding: 16px 22px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.woocommerce-cart .cart-collaterals .cart_totals table th {
  color: #b8e59d;
  font-weight: 800;
}

body.woocommerce-cart .cart-collaterals .cart_totals table td {
  color: #c2ebb1;
  font-weight: 900;
}

body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
  padding: 14px !important;
  margin: 0 !important;
}

body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button {
  width: 100%;
  min-height: 62px;
  border-radius: 4px !important;
  border: 1px solid #78e539 !important;
  background: linear-gradient(180deg, #7be022, #57b117) !important;
  color: #f5ffe8 !important;
  font-size: 36px;
  font-weight: 900 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
}

body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button::after {
  content: "  ->";
}

@media (max-width: 1100px) {
  body.woocommerce-cart .cart-collaterals {
    justify-content: stretch;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
  }

  body.woocommerce-cart table.shop_table.cart td.actions .coupon {
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  body.woocommerce-cart
    table.shop_table.cart
    td.actions
    .button[name="update_cart"] {
    float: none;
    margin-left: 0;
  }
}

/* ==================================================
   Cart polish - override broken replica rules
   ================================================== */
body.woocommerce-cart .woocommerce {
  max-width: 1320px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 26px;
  align-items: start;
}

body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce > .woocommerce-info,
body.woocommerce-cart .woocommerce > .woocommerce-message,
body.woocommerce-cart .woocommerce > .woocommerce-error {
  grid-column: 1 / -1;
}

body.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  margin: 0;
  max-width: none;
}

body.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  width: 100%;
  margin: 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
}

body.woocommerce-cart table.shop_table.cart.woocommerce-cart-form__contents {
  border-collapse: collapse;
  border: 1px solid rgba(118, 255, 72, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  thead
  th {
  padding: 14px 12px;
  text-align: center;
  background: linear-gradient(90deg, #031a0e, #0a2a18) !important;
  color: #ddffc3 !important;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  thead
  th.product-name {
  text-align: left;
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  tbody
  tr.cart_item
  td {
  background: #e8e8e8 !important;
  color: #2b352e;
  border-bottom: 1px solid rgba(27, 62, 33, 0.18);
}

body.woocommerce-cart
  table.shop_table.cart.woocommerce-cart-form__contents
  tbody
  tr.cart_item
  td.product-name {
  text-align: left;
}

body.woocommerce-cart .ab-cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.woocommerce-cart .ab-cart-product__thumb img {
  width: 96px;
  height: 96px;
}

body.woocommerce-cart .ab-cart-product__title {
  color: #8fd965 !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: none;
}

body.woocommerce-cart .ab-cart-product__title:hover {
  color: #71c748 !important;
}

body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
  color: #71df38 !important;
  font-weight: 900;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity {
  text-align: center;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity .ab-qty {
  display: inline-grid;
  grid-template-columns: 36px 54px 36px;
  align-items: center;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #5f6661;
  border: 1px solid rgba(37, 51, 40, 0.42);
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-quantity
  .ab-qty
  .ab-qty-btn {
  width: 36px;
  height: 40px;
  border: 0;
  background: #4f5652;
  color: #90ff5e;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-quantity
  .ab-qty
  .ab-qty-btn:hover {
  background: #59615c;
}

body.woocommerce-cart table.shop_table.cart td.product-quantity .ab-qty .qty {
  width: 54px;
  height: 40px;
  border: 0;
  margin: 0;
  padding: 0;
  background: #5f6661;
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  -moz-appearance: textfield;
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-quantity
  .ab-qty
  .qty::-webkit-outer-spin-button,
body.woocommerce-cart
  table.shop_table.cart
  td.product-quantity
  .ab-qty
  .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.woocommerce-cart table.shop_table.cart td.product-remove a.remove.button {
  width: 108px;
  min-width: 108px;
  height: 38px;
  min-height: 38px;
  border: 1px solid #78e539 !important;
  border-radius: 4px;
  background: linear-gradient(180deg, #7be022, #57b117) !important;
  color: #f2ffe8 !important;
  font-size: 14px !important;
  font-weight: 900;
  text-transform: none;
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-remove
  a.remove.button::before,
body.woocommerce-cart
  table.shop_table.cart
  td.product-remove
  a.remove.button::after {
  content: none !important;
}

body.woocommerce-cart table.shop_table.cart td.actions {
  background: #e8e8e8 !important;
  padding: 16px 12px !important;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  float: left !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
  width: 220px;
  height: 44px;
  border: 1px solid rgba(37, 58, 40, 0.24);
  border-radius: 4px;
  background: #404845;
  color: #ecf7ea;
  font-weight: 800;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .button,
body.woocommerce-cart
  table.shop_table.cart
  td.actions
  .button[name="update_cart"] {
  width: 168px !important;
  min-width: 168px !important;
  height: 44px;
  min-height: 44px;
  border-radius: 4px !important;
}

body.woocommerce-cart
  table.shop_table.cart
  td.actions
  .button[name="update_cart"] {
  float: left;
  margin-left: 10px;
}

body.woocommerce-cart
  table.shop_table.cart
  td.actions
  .button[name="update_cart"]:disabled {
  background: linear-gradient(180deg, #b7e3a0, #9dcb86) !important;
  color: #f5fff3 !important;
  border-color: #b7e3a0 !important;
  opacity: 1;
}

body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  font-size: 18px;
}

body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button {
  font-size: 19px !important;
}

body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button::after {
  content: "  ->";
}

@media (max-width: 1180px) {
  body.woocommerce-cart .woocommerce {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .cart-collaterals {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  body.woocommerce-cart .ab-cart-product__thumb img {
    width: 72px;
    height: 72px;
  }

  body.woocommerce-cart .ab-cart-product__title {
    font-size: 16px;
  }

  body.woocommerce-cart table.shop_table.cart td.product-quantity .ab-qty .qty {
    font-size: 16px;
  }

  body.woocommerce-cart table.shop_table.cart td.actions .coupon {
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
  body.woocommerce-cart table.shop_table.cart td.actions .coupon .button,
  body.woocommerce-cart
    table.shop_table.cart
    td.actions
    .button[name="update_cart"] {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0;
  }
}

/* ==================================================
   Cart layout lock (pixel-pass)
   ================================================== */
body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents {
  table-layout: fixed;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-name {
  width: 44% !important;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-price,
body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-quantity,
body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-subtotal {
  width: 14% !important;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-remove {
  width: 14% !important;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents
  td.product-name {
  padding-right: 18px;
}

body.woocommerce-cart .woocommerce .woocommerce-cart-form .ab-cart-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  .ab-cart-product__meta {
  min-width: 0;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  .ab-cart-product__title {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart
  td.product-remove
  a.remove.button,
body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart
  td.product-remove
  a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-indent: 0 !important;
  overflow: visible !important;
  line-height: 1 !important;
  font-size: 14px !important;
  letter-spacing: 0.2px;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart
  td.product-remove
  a.remove.button::before,
body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart
  td.product-remove
  a.remove::before {
  content: none !important;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart
  td.actions {
  white-space: normal;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart
  td.actions
  .coupon {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 10px 0 0;
}

body.woocommerce-cart
  .woocommerce
  .woocommerce-cart-form
  table.shop_table.cart
  td.actions
  .button[name="update_cart"] {
  float: none !important;
  margin-left: 0 !important;
  vertical-align: top;
}

@media (max-width: 980px) {
  body.woocommerce-cart
    .woocommerce
    .woocommerce-cart-form
    table.shop_table.cart.woocommerce-cart-form__contents
    th.product-name {
    width: 100% !important;
  }

  body.woocommerce-cart .woocommerce .woocommerce-cart-form .ab-cart-product {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body.woocommerce-cart
    .woocommerce
    .woocommerce-cart-form
    .ab-cart-product__title {
    white-space: normal;
    text-overflow: initial;
  }
}

/* ==================================================
   Structural layout only (table row 1 / coupon+totals row 2)
   ================================================== */
body.woocommerce-cart .woocommerce {
  display: block !important;
  max-width: 1320px;
  margin: 0 auto 50px;
}

body.woocommerce-cart .woocommerce-cart-form {
  display: block;
  width: 100%;
}

body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table.cart.woocommerce-cart-form__contents {
  width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form .ab-cart-second-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
  margin-top: 16px;
}

body.woocommerce-cart .woocommerce-cart-form .ab-cart-second-row__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.woocommerce-cart .woocommerce-cart-form .ab-cart-second-row__left .coupon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

body.woocommerce-cart
  .woocommerce-cart-form
  .ab-cart-second-row__left
  .coupon
  .input-text {
  width: 220px;
}

body.woocommerce-cart
  .woocommerce-cart-form
  .ab-cart-second-row__right
  .cart-collaterals {
  margin: 0 !important;
  display: block !important;
}

body.woocommerce-cart
  .woocommerce-cart-form
  .ab-cart-second-row__right
  .cart-collaterals
  .cart_totals {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 980px) {
  body.woocommerce-cart .woocommerce-cart-form .ab-cart-second-row {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    .ab-cart-second-row__left
    .coupon {
    width: 100%;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    .ab-cart-second-row__left
    .coupon
    .input-text {
    width: 100%;
  }
}

/* ==================================================
   User request: simplify outer form + unify 3 button styles
   ================================================== */
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .woocommerce-cart-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.woocommerce-cart table.shop_table.cart td.product-remove a.remove.button,
body.woocommerce-cart
  .ab-cart-second-row__left
  .coupon
  .button[name="apply_coupon"],
body.woocommerce-cart .ab-cart-second-row__left button[name="apply_coupon"],
body.woocommerce-cart .ab-cart-coupon-row .coupon .button[name="apply_coupon"],
body.woocommerce-cart .ab-cart-coupon-row button[name="apply_coupon"],
body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button,
body.woocommerce-cart .cart-collaterals .checkout-button.button.alt {
  border: 1px solid #78e539 !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #7be022, #57b117) !important;
  color: #f2ffe8 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 14px rgba(0, 0, 0, 0.25);
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-remove
  a.remove.button:hover,
body.woocommerce-cart
  .ab-cart-second-row__left
  .coupon
  .button[name="apply_coupon"]:hover,
body.woocommerce-cart
  .ab-cart-second-row__left
  button[name="apply_coupon"]:hover,
body.woocommerce-cart
  .ab-cart-coupon-row
  .coupon
  .button[name="apply_coupon"]:hover,
body.woocommerce-cart .ab-cart-coupon-row button[name="apply_coupon"]:hover,
body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button:hover,
body.woocommerce-cart .cart-collaterals .checkout-button.button.alt:hover {
  background: linear-gradient(180deg, #8dff34, #5ebd1c) !important;
  color: #ffffff !important;
}

body.woocommerce-cart
  table.shop_table.cart
  td.product-remove
  a.remove.button::before,
body.woocommerce-cart
  table.shop_table.cart
  td.product-remove
  a.remove.button::after,
body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button::before {
  content: none !important;
}

/* ==================================================
   Single-quantity cart structure
   - top row: products table (left) + cart totals (right)
   - under products: coupon row
   ================================================== */
body.woocommerce-cart .ab-cart-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: start;
}

body.woocommerce-cart .ab-cart-top-row__left,
body.woocommerce-cart .ab-cart-top-row__right {
  min-width: 0;
}

body.woocommerce-cart .ab-cart-top-row__left .woocommerce-cart-form {
  margin: 0;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents {
  width: 100%;
  table-layout: fixed;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-name {
  width: 62% !important;
  text-align: left;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-price {
  width: 20% !important;
  text-align: center;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents
  th.product-remove {
  width: 18% !important;
  text-align: center;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart
  td.product-price,
body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart
  td.product-remove {
  text-align: center;
}

body.woocommerce-cart .ab-cart-coupon-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.woocommerce-cart .ab-cart-coupon-row .coupon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

body.woocommerce-cart .ab-cart-coupon-row .coupon .input-text {
  width: 220px;
  height: 44px;
}

body.woocommerce-cart .ab-cart-top-row__right .cart-collaterals {
  margin: 0 !important;
  display: block !important;
}

body.woocommerce-cart .ab-cart-top-row__right .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: 340px;
  margin: 0 0 0 auto !important;
}

/* ==================================================
   Dark green transparent surfaces (replace white areas)
   ================================================== */
body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents
  tbody
  tr.cart_item
  td,
body.woocommerce-cart .cart-collaterals .cart_totals table,
body.woocommerce-cart .cart-collaterals .cart_totals table th,
body.woocommerce-cart .cart-collaterals .cart_totals table td {
  background: rgb(9 33 18 / 45%) !important;
}

body.woocommerce-cart .ab-cart-coupon-row .coupon .input-text {
  background: rgba(10, 32, 18, 0.72) !important;
  border-color: rgba(123, 224, 86, 0.35) !important;
  color: #dff8cf !important;
}

body.woocommerce-cart .ab-cart-coupon-row .coupon .input-text::placeholder {
  color: rgba(223, 248, 207, 0.68);
}

body.woocommerce-cart .cart-collaterals .cart_totals table th,
body.woocommerce-cart .cart-collaterals .cart_totals table td {
  border-bottom-color: rgba(124, 218, 92, 0.2) !important;
}

/* Product table header: single color, no borders */
body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents
  thead,
body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents
  thead
  tr,
body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart.woocommerce-cart-form__contents
  thead
  th {
  background: rgba(8, 28, 16, 0.95) !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ==================================================
   Cart totals cleanup per request
   ================================================== */
body.woocommerce-cart .ab-cart-top-row__right .cart-collaterals,
body.woocommerce-cart .ab-cart-top-row__right .cart-collaterals .cart_totals,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  > h2,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  table,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  table
  th,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  table
  td,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .wc-proceed-to-checkout,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button {
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  > h2 {
  text-align: center !important;
}

body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  table {
  width: auto !important;
  margin: 10px auto 8px !important;
}

body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  table
  th,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  table
  td {
  text-align: center !important;
  padding: 8px 14px !important;
}

body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .wc-proceed-to-checkout {
  text-align: center;
  padding-top: 8px !important;
}

body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .checkout-button.button.alt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  line-height: 1.1;
}

body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button::before,
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .wc-proceed-to-checkout
  .checkout-button::after {
  content: none !important;
}

/* Cart table spacing */
body.woocommerce-cart table.cart {
  margin-bottom: 0 !important;
}

/* Remove as trash icon */
body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart
  td.product-remove
  a.remove.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  font-size: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #71df38 !important;
  line-height: 1;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart
  td.product-remove
  a.remove.button
  .ab-remove-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart
  td.product-remove
  a.remove.button
  .ab-remove-icon
  svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

body.woocommerce-cart
  .ab-cart-top-row__left
  table.shop_table.cart
  td.product-remove
  a.remove.button:hover {
  color: #8dff4f !important;
  background: transparent !important;
}

/* Hide duplicate subtotal row in cart totals */
body.woocommerce-cart
  .ab-cart-top-row__right
  .cart-collaterals
  .cart_totals
  tr.cart-subtotal {
  display: none !important;
}

/* Product thumb in cart: wider 16:9 + no border */
body.woocommerce-cart .ab-cart-top-row__left .ab-cart-product {
  display: grid !important;
  align-items: center;
  grid-template-columns: 168px minmax(0, 1fr) !important;
  gap: 14px;
}

body.woocommerce-cart .ab-cart-top-row__left .ab-cart-product__thumb img {
  width: 140px !important;
  height: auto !important;
  aspect-ratio: 4 / 2;
  object-fit: cover;
  border: 0 !important;
  box-shadow: none !important;
}

/* Discount coupon remove link */
body.woocommerce-cart .cart-collaterals a.woocommerce-remove-coupon,
body.woocommerce-cart .ab-cart-coupon-row a.woocommerce-remove-coupon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 255, 78, 0.45);
  background: rgba(10, 32, 18, 0.6);
  color: #71df38 !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0;
  line-height: 1;
}

body.woocommerce-cart .cart-collaterals a.woocommerce-remove-coupon::before,
body.woocommerce-cart .ab-cart-coupon-row a.woocommerce-remove-coupon::before {
  content: "Remove";
  font-size: 11px;
  letter-spacing: 0.2px;
}

body.woocommerce-cart .cart-collaterals a.woocommerce-remove-coupon:hover,
body.woocommerce-cart .ab-cart-coupon-row a.woocommerce-remove-coupon:hover {
  background: rgba(18, 45, 26, 0.75);
  border-color: rgba(126, 255, 78, 0.72);
  color: #8dff4f !important;
}

/* Woo notices (e.g. "Coupon has been removed.") */
body.woocommerce-cart .woocommerce-notices-wrapper {
  margin: 0 0 14px;
  text-align: center;
}

body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: auto;
  max-width: min(620px, calc(100% - 20px));
  margin: 0 auto 10px !important;
  padding: 10px 14px !important;
  border-radius: 10px;
  border: 1px solid rgba(117, 255, 70, 0.35) !important;
  background: rgba(9, 33, 18, 0.78) !important;
  color: #dff8cf !important;
  box-shadow: none !important;
  text-shadow: none;
}

body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error::before,
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .woocommerce-message img.emoji {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}

body.woocommerce-cart .woocommerce-message a.restore-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 255, 78, 0.55);
  background: rgba(14, 42, 23, 0.7);
  color: #8dff4f !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

body.woocommerce-cart .woocommerce-message a.restore-item:hover {
  background: rgba(20, 52, 30, 0.9);
  border-color: rgba(141, 255, 79, 0.85);
  color: #dfffc8 !important;
}

/* Empty cart state */
body.woocommerce-cart .woocommerce .wc-empty-cart-message {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
}

body.woocommerce-cart .woocommerce .wc-empty-cart-message .cart-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(560px, calc(100% - 20px));
  margin: 0 auto;
  padding: 12px 16px !important;
  border-radius: 12px;
  border: 1px solid rgba(117, 255, 70, 0.35) !important;
  background: rgba(9, 33, 18, 0.78) !important;
  color: #dff8cf !important;
  box-shadow: none !important;
}

body.woocommerce-cart .woocommerce p.return-to-shop {
  margin: 0;
  text-align: center;
}

body.woocommerce-cart .woocommerce p.return-to-shop .button.wc-backward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #78e539 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #7be022, #57b117) !important;
  color: #f2ffe8 !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 14px rgba(0, 0, 0, 0.25);
}

body.woocommerce-cart .woocommerce p.return-to-shop .button.wc-backward:hover {
  background: linear-gradient(180deg, #8dff34, #5ebd1c) !important;
  color: #ffffff !important;
}

body.woocommerce-cart .woocommerce p.return-to-shop .button.wc-backward::before,
body.woocommerce-cart .woocommerce p.return-to-shop .button.wc-backward::after {
  content: none !important;
}

@media (max-width: 980px) {
  body.woocommerce-cart .ab-cart-top-row {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .ab-cart-coupon-row .coupon {
    width: 100%;
  }

  body.woocommerce-cart .ab-cart-coupon-row .coupon .input-text {
    width: 100%;
  }
}

/* ==================================================
   Mobile cart cleanup (does NOT affect desktop)
   ================================================== */
@media (max-width: 700px) {
  body.woocommerce-cart .wp-block-woocommerce-cart {
    padding: 10px 12px 20px;
  }

  body.woocommerce-cart .ab-cart-top-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.woocommerce-cart
    .ab-cart-top-row__left
    table.shop_table.cart.woocommerce-cart-form__contents {
    table-layout: auto !important;
  }

  body.woocommerce-cart .ab-cart-top-row__left table.shop_table.cart thead {
    display: none !important;
  }

  body.woocommerce-cart
    table.shop_table_responsive.cart
    tr.cart_item
    td.product-name::before,
  body.woocommerce-cart
    table.shop_table_responsive.cart
    tr.cart_item
    td.product-price::before,
  body.woocommerce-cart
    table.shop_table_responsive.cart
    tr.cart_item
    td.product-remove::before {
    content: none !important;
    display: none !important;
  }

  body.woocommerce-cart .ab-cart-top-row__left table.shop_table.cart tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas:
      "product remove"
      "price remove";
    gap: 8px 10px;
    align-items: center;
    padding: 12px 10px !important;
  }

  body.woocommerce-cart
    .ab-cart-top-row__left
    table.shop_table.cart
    tbody
    tr.cart_item
    td.product-name {
    grid-area: product;
    padding: 0 !important;
  }

  body.woocommerce-cart
    .ab-cart-top-row__left
    table.shop_table.cart
    tbody
    tr.cart_item
    td.product-price {
    grid-area: price;
    padding: 0 !important;
    text-align: left !important;
  }

  body.woocommerce-cart
    .ab-cart-top-row__left
    table.shop_table.cart
    tbody
    tr.cart_item
    td.product-remove {
    grid-area: remove;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  body.woocommerce-cart .ab-cart-top-row__left .ab-cart-product {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  body.woocommerce-cart .ab-cart-top-row__left .ab-cart-product__thumb img {
    width: 112px !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
  }

  body.woocommerce-cart .ab-cart-top-row__left .ab-cart-product__title {
    font-size: 21px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: initial !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.woocommerce-cart
    .ab-cart-top-row__left
    table.shop_table.cart
    tbody
    tr.cart_item
    td.product-price
    .woocommerce-Price-amount {
    font-size: 22px !important;
    line-height: 1.1;
  }

  body.woocommerce-cart
    .ab-cart-top-row__left
    table.shop_table.cart
    td.product-remove
    a.remove.button {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  body.woocommerce-cart .ab-cart-coupon-row {
    margin-top: 10px !important;
  }

  body.woocommerce-cart .ab-cart-coupon-row .coupon {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px !important;
    align-items: center;
  }

  body.woocommerce-cart .ab-cart-coupon-row .coupon .input-text {
    width: 100% !important;
    height: 48px !important;
  }

  body.woocommerce-cart
    .ab-cart-coupon-row
    .coupon
    .button[name="apply_coupon"],
  body.woocommerce-cart .ab-cart-coupon-row .coupon button[name="apply_coupon"] {
    width: auto !important;
    min-width: 132px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    white-space: nowrap;
  }

  body.woocommerce-cart .ab-cart-top-row__right .cart-collaterals .cart_totals {
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 12px !important;
  }

  body.woocommerce-cart .ab-cart-top-row__right .cart-collaterals .cart_totals > h2 {
    font-size: 16px !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals table {
    width: 100% !important;
    max-width: 260px !important;
    margin: 8px auto 10px !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals table th,
  body.woocommerce-cart .cart-collaterals .cart_totals table td {
    padding: 10px 12px !important;
    font-size: 16px !important;
  }

  body.woocommerce-cart
    .ab-cart-top-row__right
    .cart-collaterals
    .wc-proceed-to-checkout
    .checkout-button,
  body.woocommerce-cart .cart-collaterals .checkout-button.button.alt {
    max-width: 240px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }
}
