/* =========================================================
   Zielony Klub - Cart page
   ========================================================= */

body.woocommerce-cart {
  background: var(--zk-cream-50);
}

body.woocommerce-cart *,
body.woocommerce-cart *::before,
body.woocommerce-cart *::after {
  box-sizing: border-box;
}

.woocommerce-cart .site-main,
.woocommerce-cart .entry-content > .woocommerce {
  width: min(100% - 32px, var(--zk-container));
  margin-inline: auto;
}

.woocommerce-cart .entry-content > .woocommerce {
  margin-bottom: 56px;
}

.zk-cart-header {
  margin: 28px auto 22px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    var(--zk-info-100);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.zk-cart-eyebrow {
  margin: 0 0 8px;
  color: var(--zk-green-700);
  font-family: var(--zk-font-technical);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.zk-cart-header h1 {
  margin: 0 0 10px;
  color: var(--zk-green-900);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0;
}

.zk-cart-header p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--zk-muted);
  font-size: 16px;
  line-height: 1.55;
}

.zk-cart-summary-chip {
  min-height: 56px;
  border: 1px solid rgba(24, 63, 49, 0.16);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  color: var(--zk-green-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  text-align: left;
}

.zk-cart-summary-chip strong {
  font-family: var(--zk-font-technical);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.zk-cart-summary-chip span {
  color: var(--zk-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.woocommerce-cart .woocommerce-notices-wrapper {
  width: min(100% - 32px, var(--zk-container));
  margin-inline: auto;
}

.woocommerce-cart form.woocommerce-cart-form {
  width: min(100% - 32px, var(--zk-container));
  margin: 0 auto;
}

.woocommerce-cart table.cart,
.woocommerce-cart table.shop_table {
  border: 1px solid var(--zk-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  overflow: hidden;
  box-shadow: var(--zk-shadow-card);
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
  border-color: var(--zk-line);
}

.woocommerce-cart table.cart thead th {
  padding: 13px 14px;
  background: var(--zk-green-900);
  color: #fff;
  font-family: var(--zk-font-technical);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.woocommerce-cart table.cart tbody td {
  padding: 16px 14px;
  color: var(--zk-text);
  vertical-align: middle;
}

.woocommerce-cart table.cart img {
  width: 78px;
  height: 78px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-cream-50);
  object-fit: contain;
}

.woocommerce-cart table.cart .product-name a {
  color: var(--zk-green-900);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: var(--zk-green-700);
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  color: var(--zk-green-800);
  font-weight: 850;
}

.woocommerce-cart table.cart .quantity .qty {
  width: 76px;
  min-height: 42px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  color: var(--zk-text);
  font-weight: 800;
}

.woocommerce-cart table.cart a.remove {
  width: 34px;
  height: 34px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  color: #9c3f32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.woocommerce-cart table.cart a.remove:hover {
  border-color: #9c3f32;
  background: #9c3f32;
  color: #fff;
}

.woocommerce-cart table.cart td.actions {
  padding: 16px;
  background: var(--zk-cream-50);
}

.woocommerce-cart table.cart td.actions .coupon {
  display: inline-grid;
  grid-template-columns: minmax(180px, 280px) auto;
  gap: 10px;
  align-items: center;
}

.woocommerce-cart table.cart td.actions .coupon label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  color: var(--zk-text);
  padding: 0 12px;
}

.woocommerce-cart .button,
.woocommerce-cart button.button,
.woocommerce-cart input.button {
  min-height: 44px;
  border-radius: var(--zk-radius-sm);
  background: var(--zk-green-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  line-height: 1.1;
  padding: 0 18px;
}

.woocommerce-cart .button:hover,
.woocommerce-cart button.button:hover,
.woocommerce-cart input.button:hover {
  background: var(--zk-green-900);
  color: #fff;
}

.woocommerce-cart button.button:disabled,
.woocommerce-cart button.button:disabled[disabled] {
  background: var(--zk-line);
  color: var(--zk-muted);
  opacity: 1;
}

.zk-cart-service-notes {
  width: min(100% - 32px, var(--zk-container));
  margin: 20px auto 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.zk-cart-service-notes span {
  min-height: 52px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  color: var(--zk-green-900);
  display: flex;
  align-items: center;
  padding: 12px;
  font-family: var(--zk-font-technical);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.woocommerce-cart .cart-collaterals {
  width: min(100% - 32px, var(--zk-container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
}

.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after {
  display: none;
}

.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .cart_totals {
  width: auto;
  float: none;
  margin: 0;
}

.woocommerce-cart .cart-collaterals h2 {
  margin: 0 0 14px;
  color: var(--zk-green-900);
  font-size: 24px;
  letter-spacing: 0;
}

.woocommerce-cart .cart_totals {
  position: sticky;
  top: 24px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  padding: 18px;
  box-shadow: var(--zk-shadow-card);
}

.woocommerce-cart .cart_totals table.shop_table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  border-color: var(--zk-line);
  padding: 12px 0;
}

.woocommerce-cart .cart_totals table th {
  color: var(--zk-muted);
  font-family: var(--zk-font-technical);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  color: var(--zk-green-900);
  font-size: 18px;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 14px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  min-height: 52px;
  margin: 0;
  border-radius: var(--zk-radius-sm);
  background: var(--zk-amber-600);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #a86f1c;
  color: #fff;
}

.woocommerce-cart .cross-sells ul.products {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after {
  display: none;
}

.woocommerce-cart .cross-sells ul.products li.product {
  width: auto;
  margin: 0;
  float: none;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  padding: 12px;
  box-shadow: var(--zk-shadow-card);
}

.woocommerce-cart .cross-sells ul.products li.product img {
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-cream-50);
}

.woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
  min-height: 0;
  padding: 8px 0 0;
  color: var(--zk-text);
  font-size: 15px;
  letter-spacing: 0;
}

.woocommerce-cart .cross-sells ul.products li.product .price {
  color: var(--zk-green-800);
  font-weight: 850;
}

.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
  width: min(100% - 32px, var(--zk-container));
  margin-inline: auto;
}

.woocommerce-cart .cart-empty {
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  background: var(--zk-white);
  color: var(--zk-text);
  box-shadow: var(--zk-shadow-card);
}

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

  .woocommerce-cart .cart_totals {
    position: static;
  }
}

@media (max-width: 760px) {
  .woocommerce-cart .site-main,
  .woocommerce-cart .entry-content > .woocommerce,
  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals,
  .woocommerce-cart .woocommerce-notices-wrapper,
  .zk-cart-service-notes,
  .woocommerce-cart .cart-empty,
  .woocommerce-cart .return-to-shop {
    width: min(100% - 24px, var(--zk-container));
  }

  .zk-cart-header {
    grid-template-columns: 1fr;
    margin-top: 18px;
    padding: 22px;
  }

  .zk-cart-summary-chip {
    min-width: 0;
    min-height: 82px;
    min-height: 56px;
    justify-content: start;
    column-gap: 12px;
  }

  .zk-cart-summary-chip span {
    font-size: 13px;
  }

  .zk-cart-summary-chip strong {
    font-size: 24px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    width: 100%;
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .woocommerce-cart table.cart td.actions .button {
    width: 100%;
    margin: 0;
  }

  .zk-cart-service-notes {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr,
  .woocommerce-cart table.cart td {
    display: block;
    width: 100%;
  }

  .woocommerce-cart table.cart thead {
    display: none;
  }

  .woocommerce-cart table.cart tr.cart_item {
    position: relative;
    padding: 14px 14px 12px 108px;
    border-bottom: 1px solid var(--zk-line);
    display: grid;
    min-height: 118px;
  }

  .woocommerce-cart table.cart tr.cart_item:last-child {
    border-bottom: 0;
  }

  .woocommerce-cart table.cart tbody td {
    padding: 4px 0;
    border: 0;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 78px;
  }

  .woocommerce-cart table.cart td.product-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    padding: 0;
  }

  .woocommerce-cart table.cart td.product-name {
    padding-right: 42px;
  }

  .woocommerce-cart table.cart td.product-price,
  .woocommerce-cart table.cart td.product-quantity,
  .woocommerce-cart table.cart td.product-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .woocommerce-cart table.cart td.product-price::before {
    content: "Cena";
  }

  .woocommerce-cart table.cart td.product-quantity::before {
    content: "Ilość";
  }

  .woocommerce-cart table.cart td.product-subtotal::before {
    content: "Razem";
  }

  .woocommerce-cart table.cart td.product-price::before,
  .woocommerce-cart table.cart td.product-quantity::before,
  .woocommerce-cart table.cart td.product-subtotal::before {
    color: var(--zk-muted);
    font-family: var(--zk-font-technical);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .woocommerce-cart table.cart td.actions {
    padding: 14px;
  }
}

@media (max-width: 390px) {
  .woocommerce-cart table.cart tr.cart_item {
    padding-left: 96px;
  }

  .woocommerce-cart table.cart img {
    width: 68px;
    height: 68px;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    width: 68px;
  }
}

/* Cart UX refinement */
.woocommerce-cart .entry-title {
  display: none;
}

.woocommerce-cart .entry-content > .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px 22px;
  align-items: start;
}

.woocommerce-cart .entry-content > .woocommerce > * {
  min-width: 0;
}

.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop,
.zk-cart-header {
  grid-column: 1 / -1;
  width: 100%;
}

.woocommerce-cart .woocommerce-notices-wrapper {
  margin: 0;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  margin: 0;
  border: 1px solid rgba(47, 107, 73, 0.2);
  border-left: 4px solid var(--zk-green-700);
  border-radius: var(--zk-radius-sm);
  background: #eef7f1;
  color: var(--zk-green-900);
  box-shadow: none;
}

.zk-cart-header {
  margin: 24px 0 0;
  padding: clamp(22px, 3vw, 30px);
  border-top: 3px solid var(--zk-amber-600);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 240, 0.82)),
    var(--zk-info-100);
}

.zk-cart-header h1 {
  margin-bottom: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.95;
}

.zk-cart-summary-chip {
  min-width: 0;
  min-height: 56px;
}

.woocommerce-cart form.woocommerce-cart-form {
  grid-column: 1;
  width: 100%;
  margin: 0;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  grid-row: 3 / span 5;
  width: 100%;
  margin: 0;
  display: block;
}

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

.woocommerce-cart table.cart,
.woocommerce-cart table.shop_table {
  box-shadow: 0 10px 28px rgba(24, 63, 49, 0.06);
}

.woocommerce-cart table.cart thead th {
  background: #eef3ef;
  color: var(--zk-green-900);
  border-bottom: 1px solid var(--zk-line);
}

.woocommerce-cart table.cart tbody td {
  padding: 18px 14px;
  border-top: 0;
  border-bottom: 1px solid var(--zk-line);
}

.woocommerce-cart table.cart tbody tr:last-child td {
  border-bottom: 0;
}

.woocommerce-cart table.cart img {
  width: 84px;
  height: 84px;
  object-fit: cover;
}

.woocommerce-cart table.cart .product-name a {
  font-size: 15px;
}

.woocommerce-cart table.cart .quantity {
  display: inline-flex;
  align-items: stretch;
}

.woocommerce-cart table.cart .quantity .qty {
  width: 64px;
  min-height: 42px;
  text-align: center;
}

.woocommerce-cart table.cart td.actions {
  padding: 16px;
}

.woocommerce-cart table.cart td.actions,
.woocommerce-cart table.cart td.actions .coupon {
  gap: 12px;
}

.woocommerce-cart table.cart td.actions .coupon {
  float: none;
}

.woocommerce-cart table.cart td.actions > .button[name="update_cart"],
.woocommerce-cart table.cart td.actions > button[name="update_cart"] {
  float: right;
  margin-left: 12px;
  border: 1px solid rgba(47, 107, 73, 0.2);
  background: var(--zk-green-100);
  color: var(--zk-green-900);
}

.woocommerce-cart button.button:disabled,
.woocommerce-cart button.button:disabled[disabled] {
  border: 1px solid var(--zk-line);
  background: #eef1ec;
  color: var(--zk-muted);
}

.zk-cart-service-notes {
  grid-column: 1;
  width: 100%;
  margin: 0;
}

.zk-cart-service-notes span {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.woocommerce-cart .cart_totals {
  top: 96px;
  padding: 20px;
  border-top: 3px solid var(--zk-amber-600);
}

.woocommerce-cart .cart_totals h2 {
  font-size: 24px;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  padding: 13px 0;
  background: transparent;
}

.woocommerce-cart .cart_totals table td {
  text-align: right;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 19px;
  font-weight: 900;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button.alt {
  min-height: 56px;
  background: var(--zk-green-700) !important;
  color: #fff !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button.alt:hover {
  background: var(--zk-green-900) !important;
  color: #fff !important;
}

@media (max-width: 1020px) {
  .woocommerce-cart .entry-content > .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals,
  .zk-cart-service-notes {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-cart .cart_totals {
    position: static;
  }
}

@media (max-width: 760px) {
  .woocommerce-cart .entry-content > .woocommerce {
    width: min(100% - 24px, var(--zk-container));
    gap: 14px;
  }

  .zk-cart-header {
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr,
  .woocommerce-cart table.cart td {
    display: block;
    width: 100%;
  }

  .woocommerce-cart table.cart thead {
    display: none;
  }

  .woocommerce-cart table.cart tr.cart_item {
    position: relative;
    display: grid;
    min-height: 118px;
    padding: 14px 14px 12px 108px;
    border-bottom: 1px solid var(--zk-line);
  }

  .woocommerce-cart table.cart tr.cart_item:last-child {
    border-bottom: 0;
  }

  .woocommerce-cart table.cart tbody td {
    padding: 4px 0;
    border: 0;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 78px;
  }

  .woocommerce-cart table.cart td.product-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    padding: 0;
  }

  .woocommerce-cart table.cart td.product-name {
    padding-right: 42px;
  }

  .woocommerce-cart table.cart td.product-price,
  .woocommerce-cart table.cart td.product-quantity,
  .woocommerce-cart table.cart td.product-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .woocommerce-cart table.cart td.product-price::before {
    content: "Cena";
  }

  .woocommerce-cart table.cart td.product-quantity::before {
    content: "Ilość";
  }

  .woocommerce-cart table.cart td.product-subtotal::before {
    content: "Razem";
  }

  .woocommerce-cart table.cart td.product-price::before,
  .woocommerce-cart table.cart td.product-quantity::before,
  .woocommerce-cart table.cart td.product-subtotal::before {
    color: var(--zk-muted);
    font-family: var(--zk-font-technical);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .woocommerce-cart table.cart img {
    width: 78px;
    height: 78px;
  }

  .woocommerce-cart table.cart td.actions {
    padding: 14px;
  }
}

@media (max-width: 390px) {
  .woocommerce-cart table.cart tr.cart_item {
    padding-left: 96px;
  }

  .woocommerce-cart table.cart img,
  .woocommerce-cart table.cart td.product-thumbnail {
    width: 68px;
    height: 68px;
  }
}

/* Cart UX refinement - product clarity */
.woocommerce-cart .entry-content > .woocommerce {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
}

.zk-cart-header {
  min-height: 120px;
  align-items: center;
}

.zk-cart-header h1 {
  font-size: clamp(46px, 4.7vw, 60px);
}

.zk-cart-summary-chip {
  white-space: nowrap;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info {
  padding: 16px 18px;
  outline: 0;
}

.woocommerce-cart table.cart {
  table-layout: auto;
}

.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart td.product-remove {
  width: 54px;
}

.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail {
  width: 92px;
}

.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart td.product-price {
  width: 108px;
  min-width: 96px;
}

.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity {
  width: 150px;
  min-width: 142px;
  text-align: center;
}

.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
  width: 118px;
  min-width: 108px;
  text-align: right;
}

.woocommerce-cart table.cart td.product-thumbnail {
  padding-inline: 8px 12px;
}

.woocommerce-cart table.cart td.product-thumbnail a {
  width: 78px;
  height: 78px;
  display: block;
}

.woocommerce-cart table.cart img,
.woocommerce-page.woocommerce-cart table.cart img,
.woocommerce-cart table.cart td.product-thumbnail img {
  width: 78px !important;
  max-width: 78px !important;
  height: 78px !important;
  display: block;
  object-fit: cover;
}

.woocommerce-cart table.cart .product-name {
  min-width: 0;
}

.woocommerce-cart table.cart .product-name a {
  font-size: 15px;
  line-height: 1.35;
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  white-space: nowrap;
}

.woocommerce-cart table.cart .quantity {
  justify-content: center;
  white-space: nowrap;
}

.woocommerce-cart table.cart td.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: grid;
  grid-template-columns: minmax(140px, 190px) auto;
  gap: 10px;
}

.woocommerce-cart table.cart td.actions .coupon .button {
  background: #55545c;
  color: #fff;
}

.woocommerce-cart table.cart td.actions .coupon .button:hover {
  background: #3f3e45;
}

.woocommerce-cart table.cart td.actions > .button[name="update_cart"],
.woocommerce-cart table.cart td.actions > button[name="update_cart"] {
  float: none;
  margin-left: auto;
  background: #edf5ef;
}

.woocommerce-cart .cart_totals {
  padding: 18px;
}

.woocommerce-cart .cart_totals table th {
  width: 38%;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  padding-top: 16px;
}

.woocommerce-cart .cart_totals .zk-cart-products-gross th,
.woocommerce-cart .cart_totals .zk-cart-products-gross td {
  color: var(--zk-green-900);
  font-size: 16px;
  font-weight: 900;
}

.woocommerce-cart .cart_totals .cart-discount td {
  color: #9c3f32;
  font-weight: 850;
}

.woocommerce-cart .cart_totals .woocommerce-remove-coupon {
  margin-left: 8px;
  color: var(--zk-muted);
  font-family: var(--zk-font-technical);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-totals,
.woocommerce-cart .cart_totals .shipping,
.woocommerce-cart .cart_totals .tax-rate,
.woocommerce-cart .cart_totals .order-total,
.woocommerce-cart .cart_totals .includes_tax {
  display: none !important;
}

@media (max-width: 1120px) and (min-width: 1021px) {
  .woocommerce-cart .entry-content > .woocommerce {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 330px);
  }

  .woocommerce-cart table.cart th.product-thumbnail,
  .woocommerce-cart table.cart td.product-thumbnail {
    width: 82px;
  }

  .woocommerce-cart table.cart td.product-thumbnail a,
  .woocommerce-cart table.cart img,
  .woocommerce-page.woocommerce-cart table.cart img,
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
  }

  .woocommerce-cart table.cart th.product-price,
  .woocommerce-cart table.cart td.product-price {
    width: 96px;
    min-width: 88px;
  }

  .woocommerce-cart table.cart th.product-quantity,
  .woocommerce-cart table.cart td.product-quantity {
    width: 142px;
    min-width: 136px;
  }

  .woocommerce-cart table.cart th.product-subtotal,
  .woocommerce-cart table.cart td.product-subtotal {
    width: 108px;
    min-width: 102px;
  }
}

@media (max-width: 760px) {
  .zk-cart-summary-chip {
    white-space: normal;
  }

  .woocommerce-cart table.cart td.actions {
    display: block;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart table.cart td.product-thumbnail,
  .woocommerce-cart table.cart th.product-thumbnail {
    width: 78px;
  }

  .woocommerce-cart table.cart td.product-thumbnail a,
  .woocommerce-cart table.cart img,
  .woocommerce-page.woocommerce-cart table.cart img,
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 78px !important;
    max-width: 78px !important;
    height: 78px !important;
  }
}

@media (max-width: 390px) {
  .woocommerce-cart table.cart td.product-thumbnail,
  .woocommerce-cart table.cart th.product-thumbnail {
    width: 68px;
  }

  .woocommerce-cart table.cart td.product-thumbnail a,
  .woocommerce-cart table.cart img,
  .woocommerce-page.woocommerce-cart table.cart img,
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 68px !important;
    max-width: 68px !important;
    height: 68px !important;
  }
}

/* Cart UX refinement - fixed desktop table */
@media (min-width: 1021px) {
  .woocommerce-cart table.cart {
    table-layout: fixed;
    width: 100%;
  }

  .woocommerce-cart table.cart th.product-remove,
  .woocommerce-cart table.cart td.product-remove {
    display: none !important;
  }

  .woocommerce-cart table.cart th.product-thumbnail,
  .woocommerce-cart table.cart td.product-thumbnail {
    width: 76px;
    padding-inline: 6px 10px;
  }

  .woocommerce-cart table.cart th.product-price,
  .woocommerce-cart table.cart td.product-price {
    width: 96px;
    min-width: 0;
    text-align: right;
  }

  .woocommerce-cart table.cart th.product-quantity,
  .woocommerce-cart table.cart td.product-quantity {
    width: 150px;
    min-width: 0;
    text-align: center;
  }

  .woocommerce-cart table.cart th.product-subtotal,
  .woocommerce-cart table.cart td.product-subtotal {
    width: 128px;
    min-width: 0;
    padding-left: 12px;
    text-align: right;
  }

  .woocommerce-cart table.cart td.product-thumbnail a,
  .woocommerce-cart table.cart img,
  .woocommerce-page.woocommerce-cart table.cart img,
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
  }

  .woocommerce-cart table.cart .product-name a {
    font-size: 14px;
    line-height: 1.35;
  }

  .woocommerce-cart table.cart .product-price,
  .woocommerce-cart table.cart .product-subtotal {
    font-size: 14px;
  }

  .woocommerce-cart table.cart a.remove {
    display: none !important;
  }

  .woocommerce-cart table.cart a.remove:hover {
    display: none !important;
  }

  .woocommerce-cart table.cart .quantity .qty {
    width: 48px;
    min-height: 36px;
  }

  .woocommerce-cart table.cart td.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(130px, 170px) auto;
    gap: 10px;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon .button,
  .woocommerce-cart table.cart td.actions > button[name="update_cart"] {
    min-height: 40px;
  }
}

.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart td.product-remove {
  display: none !important;
}

/* Cart UIX polish - tighter flow with custom rewards widgets */
.woocommerce-cart .entry-content > .woocommerce {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  grid-auto-flow: row dense;
  gap: 16px 18px;
  align-items: start;
}

.woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style) {
  grid-column: 1;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(47, 107, 73, 0.18);
  border-left: 4px solid var(--zk-amber-600);
  border-radius: var(--zk-radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 240, 0.74)),
    var(--zk-white);
  box-shadow: 0 10px 28px rgba(24, 63, 49, 0.05);
  color: var(--zk-text);
  font-size: 14px;
  line-height: 1.5;
}

.woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style) h2,
.woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style) h3,
.woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style) strong:first-child {
  color: var(--zk-green-900);
  font-size: 18px;
  line-height: 1.25;
}

.woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style) p {
  margin: 4px 0 0;
}

.woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style) p:first-of-type {
  margin-top: 8px;
}

.woocommerce-cart form.woocommerce-cart-form {
  grid-column: 1;
  grid-row: auto;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  grid-row: auto;
  align-self: start;
  width: 100%;
  margin: 0;
}

.woocommerce-cart .cart_totals {
  top: 88px;
  padding: 20px;
  border-color: rgba(47, 107, 73, 0.18);
  box-shadow: 0 18px 42px rgba(24, 63, 49, 0.09);
}

.woocommerce-cart .cart_totals h2 {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.15;
}

.woocommerce-cart .cart_totals table.shop_table,
.woocommerce-cart .cart_totals table.shop_table tbody,
.woocommerce-cart .cart_totals table.shop_table tr {
  display: block;
  width: 100%;
}

.woocommerce-cart .cart_totals table.shop_table {
  margin: 0;
  border: 0;
  background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table tr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--zk-line);
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
  color: var(--zk-muted);
  font-size: 11px;
  line-height: 1.2;
}

.woocommerce-cart .cart_totals table.shop_table td {
  color: var(--zk-green-900);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  padding-top: 18px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button.alt {
  min-height: 58px;
  padding-inline: 16px;
  font-size: 16px;
  line-height: 1.25;
}

.woocommerce-cart table.cart {
  margin-top: 0;
}

.woocommerce-cart table.cart tbody td {
  background: var(--zk-white);
}

.woocommerce-cart table.cart td.actions {
  background:
    linear-gradient(90deg, rgba(248, 246, 240, 0.92), rgba(255, 255, 255, 0.96));
}

@media (max-width: 1020px) {
  .woocommerce-cart .entry-content > .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals,
  .woocommerce-cart .zk-cart-service-notes,
  .woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart .entry-content > .woocommerce > :not(.zk-cart-header):not(.woocommerce-notices-wrapper):not(form.woocommerce-cart-form):not(.cart-collaterals):not(.zk-cart-service-notes):not(.cart-empty):not(.return-to-shop):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style),
  .woocommerce-cart .cart_totals {
    padding: 16px;
  }

  .woocommerce-cart .cart_totals table.shop_table tr {
    gap: 12px;
  }
}

.woocommerce-cart .entry-content > .woocommerce > .zk-program-cart-box.zk-program-cart-box {
  grid-column: 1;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(47, 107, 73, 0.18);
  border-top: 3px solid var(--zk-amber-600);
  border-left: 1px solid rgba(47, 107, 73, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.82)),
    var(--zk-white);
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box.zk-program-cart-box {
  width: 100%;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid rgba(47, 107, 73, 0.18);
  border-top: 3px solid var(--zk-amber-600);
  border-radius: var(--zk-radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.82)),
    var(--zk-white);
  box-shadow: 0 12px 30px rgba(24, 63, 49, 0.06);
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-cart-box__header {
  gap: 12px;
  margin-bottom: 8px;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box h2 {
  color: #2f5747;
  font-size: 18px;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-cart-box__balance {
  min-width: 66px;
  padding: 8px 9px;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-cart-box__lead,
.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-cart-box__wallet-note,
.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-cart-box__note {
  font-size: 13px;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-benefits {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 12px;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-benefits li {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-benefits li.is-locked {
  display: block;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-benefits li.is-locked span {
  overflow: hidden;
  color: #3f4f47;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-benefits li.is-locked .woocommerce-Price-amount,
.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-benefits li.is-locked .woocommerce-Price-currencySymbol {
  font-weight: inherit;
}

.woocommerce-cart .cart-collaterals > .zk-program-cart-box .zk-program-benefits li strong {
  margin-top: 0;
  text-align: right;
}
