.wm-cart-page,
.wm-cart-page * {
  box-sizing: border-box;
}

.wm-cart-page {
  --wm-cart-border: rgba(229, 224, 216, 0.95);
  --wm-cart-border-soft: rgba(229, 224, 216, 0.72);
  --wm-cart-surface-soft: rgba(249, 248, 245, 0.82);
  --wm-cart-shadow: 0 14px 34px rgba(17, 24, 39, 0.055);
  --wm-cart-shadow-strong: 0 18px 42px rgba(17, 24, 39, 0.11);
  direction: rtl;
  padding: 28px 0 76px;
  background:
    linear-gradient(180deg, rgba(200, 155, 60, 0.045), rgba(200, 155, 60, 0) 240px),
    var(--wm-color-bg, #f6f5f2);
  color: var(--wm-color-text, #1f2937);
}

.woocommerce-cart .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.woocommerce-cart .entry-title {
  display: none;
}

.wm-cart-page__container,
.woocommerce-cart .woocommerce-notices-wrapper {
  width: min(100% - 40px, var(--wm-content-width, 1200px));
  margin-inline: auto;
}

.woocommerce-cart .woocommerce-notices-wrapper {
  margin-top: 18px;
  direction: rtl;
}

.wm-cart-page__header {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  padding: 26px 34px;
  overflow: hidden;
  border: 1px solid var(--wm-cart-border);
  border-radius: var(--wm-radius-lg, 28px);
  background:
    radial-gradient(circle at 9% 10%, rgba(200, 155, 60, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 245, 0.94));
  box-shadow: var(--wm-cart-shadow);
}

.wm-cart-page__eyebrow,
.wm-cart-summary__kicker,
.wm-cart-empty__eyebrow {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 11px;
  border: 1px solid rgba(200, 155, 60, 0.24);
  border-radius: var(--wm-radius-pill, 999px);
  background: rgba(200, 155, 60, 0.09);
  color: var(--wm-color-accent-dark, #9f7425);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.wm-cart-page__title {
  margin: 0;
  color: var(--wm-color-primary, #111827);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 850;
  line-height: 1.25;
}

.wm-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(352px, 0.74fr);
  gap: 20px;
  align-items: start;
}

.wm-cart-form,
.wm-cart-layout__summary {
  min-width: 0;
}

.wm-cart-items,
.wm-cart-summary,
.wm-cart-empty,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message {
  border: 1px solid var(--wm-cart-border);
  border-radius: var(--wm-radius-lg, 28px);
  background: var(--wm-color-surface, #fff);
  box-shadow: var(--wm-cart-shadow);
}

.wm-cart-items {
  overflow: hidden;
}

.wm-cart-items__head,
.wm-cart-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--wm-cart-border-soft);
}

.wm-cart-items__head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wm-cart-items__head h2,
.wm-cart-summary__head h2 {
  margin: 0;
  color: var(--wm-color-primary, #111827);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.55;
}

.wm-cart-items__head span,
.wm-cart-summary__count {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--wm-cart-border-soft);
  border-radius: var(--wm-radius-pill, 999px);
  background: var(--wm-color-soft, #f9f8f5);
  color: var(--wm-color-muted, #6b7280);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.wm-cart-items__update {
  min-height: 36px !important;
  padding-inline: 13px !important;
  border-radius: var(--wm-radius-pill, 999px) !important;
  background: var(--wm-color-soft, #f9f8f5) !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.wm-cart-items__list {
  display: grid;
  gap: 0;
}

.wm-cart-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
}

.wm-cart-item + .wm-cart-item {
  border-top: 1px solid var(--wm-cart-border-soft);
}

.wm-cart-item__media {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(229, 224, 216, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 32%, rgba(200, 155, 60, 0.055), transparent 42%),
    #fff;
}

.wm-cart-item__media a {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.wm-cart-item__media img {
  width: auto;
  max-width: 82px;
  max-height: 82px;
  display: block;
  object-fit: contain;
}

.wm-cart-item__body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(388px, auto);
  gap: 20px;
  align-items: center;
}

.wm-cart-item__info {
  min-width: 0;
}

.wm-cart-item__title {
  margin: 0;
  color: var(--wm-color-primary, #111827);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
}

.wm-cart-item__title a {
  color: inherit;
  text-decoration: none;
}

.wm-cart-item__title a:hover,
.wm-cart-item__title a:focus {
  color: var(--wm-color-accent-dark, #9f7425);
}

.wm-cart-item__meta {
  margin-top: 4px;
  color: var(--wm-color-muted, #6b7280);
  font-size: 12px;
  line-height: 1.8;
}

.wm-cart-item__meta:empty {
  display: none;
}

.wm-cart-item__meta dl {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 0;
}

.wm-cart-item__meta dt,
.wm-cart-item__meta dd,
.wm-cart-item__meta p {
  margin: 0;
}

.wm-cart-item__meta dt {
  color: var(--wm-color-muted, #6b7280);
  font-weight: 650;
}

.wm-cart-item__meta dd {
  color: var(--wm-color-primary, #111827);
  font-weight: 760;
}

.wm-cart-item__controls {
  display: grid;
  grid-template-columns: minmax(112px, auto) 76px minmax(124px, auto) 38px;
  gap: 14px;
  align-items: center;
  justify-content: end;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--wm-cart-border-soft);
}

.wm-cart-item__unit,
.wm-cart-item__quantity,
.wm-cart-item__subtotal {
  display: grid;
  gap: 5px;
}

.wm-cart-item__unit span,
.wm-cart-item__quantity label,
.wm-cart-item__subtotal span {
  color: var(--wm-color-muted, #6b7280);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.45;
}

.wm-cart-item__unit strong,
.wm-cart-item__unit .amount {
  color: var(--wm-color-text, #1f2937);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.65;
  white-space: nowrap;
}

.wm-cart-item__quantity .quantity {
  display: inline-flex;
  align-items: center;
}

.wm-cart-item__quantity input.qty {
  width: 72px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--wm-cart-border);
  border-radius: 14px;
  background: var(--wm-color-soft, #f9f8f5);
  color: var(--wm-color-primary, #111827);
  font-family: var(--wm-font-primary);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.wm-cart-item__subtotal strong,
.wm-cart-item__subtotal .amount {
  color: var(--wm-color-accent-dark, #9f7425);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.65;
  white-space: nowrap;
}

.wm-cart-item__remove {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  align-self: end;
  border: 1px solid var(--wm-cart-border);
  border-radius: 50%;
  background: #fff;
  color: var(--wm-color-muted, #6b7280) !important;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wm-cart-item__remove:hover,
.wm-cart-item__remove:focus {
  border-color: rgba(180, 35, 24, 0.24);
  background: var(--wm-color-danger-bg, #fef3f2);
  color: var(--wm-color-danger-text, #b42318) !important;
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.08);
}

.wm-cart-summary__coupon input,
.wm-cart-page .shipping-calculator-form input,
.wm-cart-page .shipping-calculator-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--wm-cart-border);
  border-radius: 14px;
  background: var(--wm-color-soft, #f9f8f5);
  color: var(--wm-color-primary, #111827);
  font-family: var(--wm-font-primary);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.wm-cart-page button.button,
.wm-cart-page a.button,
.wm-cart-page .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--wm-cart-border);
  border-radius: 14px;
  background: #fff;
  color: var(--wm-color-primary, #111827);
  font-family: var(--wm-font-primary);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.wm-cart-page button.button:hover,
.wm-cart-page a.button:hover,
.wm-cart-page button.button:focus,
.wm-cart-page a.button:focus {
  border-color: rgba(200, 155, 60, 0.45);
  background: rgba(200, 155, 60, 0.07);
  color: var(--wm-color-accent-dark, #9f7425);
}

.wm-cart-page button.button:disabled,
.wm-cart-page button.button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.wm-cart-layout__summary {
  position: sticky;
  top: 104px;
}

.wm-cart-summary__coupon {
  display: grid;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 14px;
  border: 1px solid rgba(200, 155, 60, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 248, 245, 0.82)),
    var(--wm-color-surface, #fff);
}

.wm-cart-summary__coupon-head {
  display: grid;
  gap: 3px;
}

.wm-cart-summary__coupon label {
  color: var(--wm-color-primary, #111827);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.wm-cart-summary__coupon-head span {
  color: var(--wm-color-muted, #6b7280);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.8;
}

.wm-cart-summary__coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: stretch;
}

.wm-cart-summary__coupon-button {
  width: 72px;
  min-height: 44px !important;
  padding-inline: 8px !important;
  border-color: rgba(200, 155, 60, 0.32) !important;
  background: #fff !important;
  color: var(--wm-color-accent-dark, #9f7425) !important;
  white-space: nowrap;
}

.wm-cart-summary {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff, rgba(249, 248, 245, 0.62)),
    var(--wm-color-surface, #fff);
}

.wm-cart-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wm-color-accent, #c89b3c), transparent);
}

.wm-cart-summary__head {
  padding: 20px 20px 16px;
}

.wm-cart-summary__kicker {
  min-height: 24px;
  margin-bottom: 5px;
  padding-inline: 9px;
  font-size: 11px;
}

.wm-cart-summary__rows {
  display: grid;
  padding: 8px 20px 0;
}

.wm-cart-summary__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--wm-cart-border-soft);
}

.wm-cart-summary__label,
.wm-cart-summary__value {
  color: var(--wm-color-muted, #6b7280);
  font-size: 13px;
  line-height: 1.85;
  text-align: right;
}

.wm-cart-summary__value {
  min-width: 0;
  color: var(--wm-color-primary, #111827);
  font-weight: 850;
  text-align: left;
}

.wm-cart-summary__value .amount,
.wm-cart-summary__value bdi {
  color: inherit;
  font-weight: inherit;
}

.wm-cart-summary__total {
  margin: 16px 20px 0;
  padding: 18px 16px;
  border: 1px solid rgba(200, 155, 60, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(200, 155, 60, 0.16), rgba(255, 255, 255, 0.84)),
    #fffaf0;
}

.wm-cart-summary__total .wm-cart-summary__row {
  padding: 0;
  border-bottom: 0;
}

.wm-cart-summary__row.order-total .wm-cart-summary__label,
.wm-cart-summary__row.order-total .wm-cart-summary__value {
  color: var(--wm-color-primary, #111827);
  font-size: 15px;
  font-weight: 900;
}

.wm-cart-summary__row.order-total .amount,
.wm-cart-summary__row.order-total bdi {
  color: var(--wm-color-accent-dark, #9f7425);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 950;
}

.wm-cart-summary__checkout {
  display: grid;
  gap: 0;
  padding: 16px 20px 14px;
}

.wm-cart-summary__cta {
  width: 100%;
  min-height: 58px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #111827, #1f2a3d) !important;
  color: #fff !important;
  font-size: 15px !important;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.22);
}

.wm-cart-summary__checkout .checkout-button:not(.wm-cart-summary__cta) {
  display: none !important;
}

.wm-cart-summary__checkout > *:empty {
  display: none !important;
}

.wm-cart-summary__cta:hover,
.wm-cart-summary__cta:focus {
  color: #fff !important;
  box-shadow: var(--wm-cart-shadow-strong);
  transform: translateY(-1px);
}

.wm-cart-page .woocommerce-shipping-methods {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.wm-cart-summary__shipping {
  display: grid;
  gap: 8px;
}

.wm-cart-summary__shipping p,
.wm-cart-summary__shipping small {
  margin: 0;
  color: var(--wm-color-muted, #6b7280);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.wm-cart-page .woocommerce-shipping-methods li {
  display: grid;
  gap: 5px;
}

.wm-cart-page .woocommerce-shipping-methods label {
  color: var(--wm-color-primary, #111827);
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.8;
}

.wm-cart-page .shipping-calculator-button {
  color: var(--wm-color-accent-dark, #9f7425);
  font-size: 12.5px;
  font-weight: 850;
}

.wm-cart-page .shipping-calculator-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  text-align: right;
}

.wm-cart-page table.shop_table {
  display: none;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-cart .wc-proceed-to-checkout:not(.wm-cart-summary__checkout),
.woocommerce-cart .checkout-button:not(.wm-cart-summary__cta) {
  display: none !important;
}

.wm-cart-empty {
  position: relative;
  max-width: 560px;
  margin: 12px auto 0;
  padding: 42px 30px;
  overflow: hidden;
  text-align: center;
}

.wm-cart-empty::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wm-color-accent, #c89b3c), transparent);
}

.wm-cart-empty__mark {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  border-radius: 20px;
  background: rgba(200, 155, 60, 0.09);
}

.wm-cart-empty__mark::before {
  content: "";
  width: 28px;
  height: 20px;
  border: 2px solid var(--wm-color-accent-dark, #9f7425);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.wm-cart-empty__mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 10px;
  border: 2px solid var(--wm-color-accent-dark, #9f7425);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateY(-14px);
}

.wm-cart-empty__eyebrow {
  margin-inline: auto;
}

.wm-cart-empty h1 {
  margin: 0 0 8px;
  color: var(--wm-color-primary, #111827);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.5;
}

.wm-cart-empty p {
  max-width: 380px;
  margin: 0 auto 20px;
  color: var(--wm-color-muted, #6b7280);
  font-size: 14px;
  line-height: 1.9;
}

.wm-cart-empty__button {
  min-width: 160px;
}

.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message {
  margin: 0 0 12px;
  padding: 14px 16px;
  list-style: none;
  text-align: right;
}

.woocommerce-cart .woocommerce-message {
  border-color: rgba(2, 122, 72, 0.22);
  background: var(--wm-color-success-bg, #ecfdf3);
  color: var(--wm-color-success-text, #027a48);
}

.woocommerce-cart .woocommerce-error {
  border-color: rgba(180, 35, 24, 0.22);
  background: var(--wm-color-danger-bg, #fef3f2);
  color: var(--wm-color-danger-text, #b42318);
}

.woocommerce-cart .woocommerce-info {
  background: var(--wm-color-surface, #fff);
  color: var(--wm-color-primary, #111827);
}

@media (max-width: 1100px) {
  .wm-cart-item__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wm-cart-item__controls {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 36px;
    justify-content: stretch;
    padding-block-start: 12px;
    padding-inline-start: 0;
    border-block-start: 1px solid var(--wm-cart-border-soft);
    border-inline-start: 0;
  }
}

@media (max-width: 960px) {
  .wm-cart-layout {
    grid-template-columns: 1fr;
  }

  .wm-cart-layout__summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .wm-cart-page {
    padding: 20px 0 128px;
  }

  .wm-cart-page__container,
  .woocommerce-cart .woocommerce-notices-wrapper {
    width: min(100% - 24px, var(--wm-content-width, 1200px));
  }

  .wm-cart-page__header {
    min-height: auto;
    margin-bottom: 14px;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .wm-cart-page__title {
    font-size: 27px;
  }

  .wm-cart-layout {
    gap: 14px;
  }

  .wm-cart-items,
  .wm-cart-summary,
  .wm-cart-empty {
    border-radius: 22px;
  }

  .wm-cart-items__head,
  .wm-cart-summary__head {
    padding: 15px 16px 13px;
  }

  .wm-cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px;
  }

  .wm-cart-item__media {
    width: 82px;
    border-radius: 16px;
  }

  .wm-cart-item__media img {
    max-width: 64px;
    max-height: 64px;
  }

  .wm-cart-item__title {
    font-size: 14px;
    line-height: 1.7;
  }

  .wm-cart-item__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 36px;
    gap: 9px;
  }

  .wm-cart-item__unit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .wm-cart-item__quantity input.qty {
    width: 64px;
  }

  .wm-cart-item__subtotal strong,
  .wm-cart-item__subtotal .amount {
    font-size: 14px;
  }

  .wm-cart-item__remove {
    width: 36px;
    height: 36px;
  }

  .wm-cart-items__head {
    align-items: flex-start;
  }

  .wm-cart-items__head > div {
    display: grid;
    gap: 7px;
  }

  .wm-cart-summary__coupon-row {
    grid-template-columns: 1fr;
  }

  .wm-cart-summary__coupon-button {
    width: 100%;
  }

  .wm-cart-summary__rows,
  .wm-cart-summary__checkout {
    padding-inline: 16px;
  }

  .wm-cart-summary__coupon,
  .wm-cart-summary__total {
    margin-inline: 16px;
  }

  .wm-cart-summary__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .wm-cart-item {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
  }

  .wm-cart-item__media {
    width: 86px;
    min-height: 0;
  }

  .wm-cart-item__media img {
    max-width: 68px;
    max-height: 68px;
  }

  .wm-cart-item__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 36px;
  }

  .wm-cart-item__unit {
    grid-column: 1 / -1;
  }

  .wm-cart-item__remove {
    width: 36px;
    border-radius: 50%;
  }
}

/* Refined cart system: alignment, proximity, repetition, contrast. */
.wm-cart-form {
  display: grid;
  gap: 12px;
}

.wm-cart-items__head {
  padding: 18px 22px;
}

.wm-cart-items__table-head {
  display: grid;
  grid-template-columns: 96px minmax(240px, 1fr) 120px 88px 128px 36px;
  gap: 14px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--wm-cart-border-soft);
  background: rgba(249, 248, 245, 0.76);
  color: var(--wm-color-muted, #6b7280);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.5;
}

.wm-cart-items__table-head span:first-child {
  grid-column: 1 / 3;
  text-align: right;
}

.wm-cart-items__table-head span:not(:first-child) {
  text-align: center;
}

.wm-cart-item {
  grid-template-columns: 96px minmax(240px, 1fr) 120px 88px 128px 36px;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
}

.wm-cart-item__media {
  width: 96px;
  border-radius: 16px;
}

.wm-cart-item__media img {
  max-width: 74px;
  max-height: 74px;
}

.wm-cart-item__body,
.wm-cart-item__controls {
  display: contents;
}

.wm-cart-item__info {
  align-self: center;
}

.wm-cart-item__title {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.85;
}

.wm-cart-item__unit,
.wm-cart-item__quantity,
.wm-cart-item__subtotal {
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.wm-cart-item__unit span,
.wm-cart-item__quantity label,
.wm-cart-item__subtotal span {
  text-align: center;
}

.wm-cart-item__unit strong,
.wm-cart-item__unit .amount,
.wm-cart-item__subtotal strong,
.wm-cart-item__subtotal .amount {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.wm-cart-item__subtotal strong,
.wm-cart-item__subtotal .amount {
  color: var(--wm-color-accent-dark, #9f7425);
  font-size: 14px;
}

.wm-cart-item__quantity input.qty {
  width: 58px;
  min-height: 36px;
  border-radius: 12px;
}

.wm-cart-item__remove {
  width: 34px;
  height: 34px;
  align-self: center;
  font-size: 20px;
}

.wm-cart-page .wm-cart-item__remove.remove {
  width: 34px !important;
  height: 34px !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

.wm-cart-coupon {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--wm-cart-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--wm-cart-shadow);
}

.wm-cart-coupon label {
  color: var(--wm-color-primary, #111827);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
  white-space: nowrap;
}

.wm-cart-coupon__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
  align-items: center;
  width: min(100%, 420px);
}

.wm-cart-coupon__row br,
.wm-cart-summary__row > p:empty,
.wm-cart-item p:empty,
.wm-cart-item br {
  display: none !important;
}

.wm-cart-coupon input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--wm-cart-border);
  border-radius: 12px;
  background: var(--wm-color-soft, #f9f8f5);
  color: var(--wm-color-primary, #111827);
  font-family: var(--wm-font-primary);
  font-size: 12.5px;
  text-align: right;
  margin: 0 !important;
}

.wm-cart-coupon__button {
  width: 74px;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding-inline: 8px !important;
  border-radius: 12px !important;
  border-color: rgba(200, 155, 60, 0.34) !important;
  color: var(--wm-color-accent-dark, #9f7425) !important;
  white-space: nowrap;
}

.wm-cart-summary {
  border-radius: 22px;
}

.wm-cart-summary__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px 20px 14px;
}

.wm-cart-summary__kicker {
  display: none;
}

.wm-cart-summary__head h2 {
  font-size: 17px;
  line-height: 1.45;
}

.wm-cart-summary__rows {
  padding: 4px 20px 0;
}

.wm-cart-summary__row {
  grid-template-columns: minmax(96px, 1fr) minmax(132px, auto);
  gap: 16px;
  align-items: center;
  min-height: 42px;
  padding: 9px 0;
}

.wm-cart-summary__label {
  font-size: 13px;
  font-weight: 720;
}

.wm-cart-summary__value {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  white-space: nowrap;
}

.wm-cart-summary__value .amount {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.wm-cart-summary__shipping {
  justify-items: end;
  text-align: left;
}

.wm-cart-summary__shipping p {
  text-align: left;
}

.wm-cart-summary__total {
  margin: 12px 20px 0;
  padding: 14px 16px;
  border-radius: 16px;
}

.wm-cart-summary__total .wm-cart-summary__row {
  min-height: 42px;
}

.wm-cart-summary__row.order-total .wm-cart-summary__label,
.wm-cart-summary__row.order-total .wm-cart-summary__value {
  font-size: 14px;
}

.wm-cart-summary__row.order-total .amount,
.wm-cart-summary__row.order-total bdi {
  font-size: clamp(19px, 1.8vw, 23px);
}

.wm-cart-summary__checkout {
  padding: 12px 20px 20px;
}

.wm-cart-summary__cta {
  height: 48px !important;
  min-height: 48px !important;
  padding-block: 0 !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

@media (max-width: 1180px) {
  .wm-cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .wm-cart-items__table-head,
  .wm-cart-item {
    grid-template-columns: 86px minmax(190px, 1fr) 106px 76px 116px 34px;
    gap: 12px;
  }

  .wm-cart-item__media {
    width: 86px;
  }
}

@media (max-width: 960px) {
  .wm-cart-layout {
    grid-template-columns: 1fr;
  }

  .wm-cart-items__table-head,
  .wm-cart-item {
    grid-template-columns: 82px minmax(180px, 1fr) 108px 78px 118px 34px;
  }

  .wm-cart-layout__summary {
    position: static;
  }

  .wm-cart-coupon {
    grid-template-columns: auto minmax(220px, 1fr);
  }
}

@media (max-width: 760px) {
  .wm-cart-items__table-head {
    display: none;
  }

  .wm-cart-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .wm-cart-item__media {
    width: 78px;
  }

  .wm-cart-item__media img {
    max-width: 60px;
    max-height: 60px;
  }

  .wm-cart-item__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wm-cart-item__controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 34px;
    grid-column: 1 / -1;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--wm-cart-border-soft);
  }

  .wm-cart-item__unit,
  .wm-cart-item__quantity,
  .wm-cart-item__subtotal {
    justify-items: start;
  }

  .wm-cart-item__unit span,
  .wm-cart-item__quantity label,
  .wm-cart-item__subtotal span,
  .wm-cart-item__unit strong,
  .wm-cart-item__unit .amount,
  .wm-cart-item__subtotal strong,
  .wm-cart-item__subtotal .amount {
    text-align: right;
  }

  .wm-cart-coupon {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .wm-cart-coupon__row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .wm-cart-summary__row {
    grid-template-columns: minmax(92px, 1fr) minmax(116px, auto);
  }
}

@media (max-width: 430px) {
  .wm-cart-page {
    padding-bottom: 138px;
  }

  .wm-cart-item {
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 13px;
  }

  .wm-cart-item__media {
    width: 70px;
    border-radius: 14px;
  }

  .wm-cart-item__media img {
    max-width: 54px;
    max-height: 54px;
  }

  .wm-cart-item__title {
    font-size: 13.5px;
    line-height: 1.75;
  }

  .wm-cart-item__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 34px;
  }

  .wm-cart-item__unit {
    grid-column: auto;
  }

  .wm-cart-item__unit,
  .wm-cart-item__quantity,
  .wm-cart-item__subtotal {
    gap: 4px;
  }

  .wm-cart-summary__head,
  .wm-cart-summary__rows,
  .wm-cart-summary__checkout {
    padding-inline: 16px;
  }

  .wm-cart-summary__total {
    margin-inline: 16px;
  }

  .wm-cart-summary__row {
    grid-template-columns: minmax(80px, 1fr) minmax(112px, auto);
    gap: 10px;
  }

  .wm-cart-summary__value {
    font-size: 12.5px;
  }

  .wm-cart-summary__row.order-total .amount,
  .wm-cart-summary__row.order-total bdi {
    font-size: 20px;
  }

  .wm-cart-coupon {
    gap: 8px;
  }

  .wm-cart-coupon label {
    font-size: 12px;
  }

  .wm-cart-coupon__row {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .wm-cart-coupon__button {
    width: 64px;
  }
}

/* Final cart table rebuild with explicit cells. */
.wm-cart-items {
  border-radius: 24px;
}

.wm-cart-items__head {
  min-height: 76px;
}

.wm-cart-items__table-head {
  grid-template-columns: 40px 130px 92px 130px minmax(300px, 1fr) !important;
  gap: 16px !important;
  padding: 12px 22px !important;
  direction: ltr;
}

.wm-cart-items__table-head span:first-child {
  grid-column: auto !important;
  text-align: right;
}

.wm-cart-items__table-head span {
  display: block;
  grid-row: 1 !important;
}

.wm-cart-items__table-head span:nth-of-type(1) {
  grid-column: 1 !important;
}

.wm-cart-items__table-head span:nth-of-type(2) {
  grid-column: 2 !important;
}

.wm-cart-items__table-head span:nth-of-type(3) {
  grid-column: 3 !important;
}

.wm-cart-items__table-head span:nth-of-type(4) {
  grid-column: 4 !important;
}

.wm-cart-items__table-head span:nth-of-type(5) {
  grid-column: 5 !important;
}

.wm-cart-items__table-head span:not(:first-child) {
  text-align: center;
}

.wm-cart-item {
  grid-template-columns: 40px 130px 92px 130px minmax(300px, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  min-height: 126px;
  padding: 18px 22px !important;
  direction: ltr;
}

.wm-cart-item__product {
  grid-column: 5 !important;
  grid-row: 1 !important;
}

.wm-cart-item__unit {
  grid-column: 4 !important;
  grid-row: 1 !important;
}

.wm-cart-item__quantity {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

.wm-cart-item__subtotal {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.wm-cart-item__remove-cell {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.wm-cart-item__product {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  direction: rtl;
}

.wm-cart-item__media {
  width: 92px !important;
  height: 92px;
  aspect-ratio: auto;
  border-radius: 16px;
}

.wm-cart-item__media img {
  max-width: 72px !important;
  max-height: 72px !important;
}

.wm-cart-item__body,
.wm-cart-item__controls {
  display: initial;
}

.wm-cart-item__info {
  min-width: 0;
}

.wm-cart-item__title {
  max-width: none;
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.75;
  text-align: right;
}

.wm-cart-item__unit,
.wm-cart-item__quantity,
.wm-cart-item__subtotal,
.wm-cart-item__remove-cell {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  direction: rtl;
}

.wm-cart-item__unit span,
.wm-cart-item__quantity label,
.wm-cart-item__subtotal span {
  display: block;
  color: var(--wm-color-muted, #6b7280);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.4;
}

.wm-cart-item__unit strong,
.wm-cart-item__unit .amount,
.wm-cart-item__subtotal strong,
.wm-cart-item__subtotal .amount {
  display: inline-flex !important;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
}

.wm-cart-item__subtotal strong,
.wm-cart-item__subtotal .amount {
  color: var(--wm-color-accent-dark, #9f7425);
  font-size: 14px;
  font-weight: 900;
}

.wm-cart-item__quantity .quantity {
  display: grid !important;
  place-items: center;
}

.wm-cart-item__quantity .screen-reader-text,
.wm-cart-item__quantity p:empty,
.wm-cart-item__quantity br {
  display: none !important;
}

.wm-cart-item__quantity input.qty {
  width: 58px !important;
  min-height: 36px !important;
  height: 36px;
  margin: 0 !important;
  border-radius: 12px;
}

.wm-cart-page .wm-cart-item__remove.remove {
  width: 34px !important;
  height: 34px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

@media (max-width: 1180px) {
  .wm-cart-items__table-head,
  .wm-cart-item {
    grid-template-columns: 36px 112px 82px 112px minmax(250px, 1fr) !important;
    gap: 12px !important;
  }

  .wm-cart-item__product {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .wm-cart-item__media {
    width: 78px !important;
    height: 78px;
  }

  .wm-cart-item__media img {
    max-width: 60px !important;
    max-height: 60px !important;
  }
}

@media (max-width: 960px) {
  .wm-cart-items__table-head,
  .wm-cart-item {
    grid-template-columns: 36px 116px 84px 116px minmax(250px, 1fr) !important;
  }
}

@media (max-width: 720px) {
  .wm-cart-items__table-head {
    display: none !important;
  }

  .wm-cart-item {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    min-height: 0;
    padding: 16px !important;
  }

  .wm-cart-item__product,
  .wm-cart-item__unit,
  .wm-cart-item__quantity,
  .wm-cart-item__subtotal,
  .wm-cart-item__remove-cell {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .wm-cart-item__product {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .wm-cart-item__unit,
  .wm-cart-item__quantity,
  .wm-cart-item__subtotal,
  .wm-cart-item__remove-cell {
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding-top: 10px;
    border-top: 1px solid var(--wm-cart-border-soft);
    text-align: right;
  }

  .wm-cart-item__unit span,
  .wm-cart-item__quantity label,
  .wm-cart-item__subtotal span {
    text-align: right;
  }

  .wm-cart-item__unit strong,
  .wm-cart-item__quantity .quantity,
  .wm-cart-item__subtotal strong {
    justify-self: end;
  }

  .wm-cart-item__remove-cell {
    grid-template-columns: 1fr;
    justify-items: end;
  }
}

@media (max-width: 430px) {
  .wm-cart-item__product {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }

  .wm-cart-item__media {
    width: 68px !important;
    height: 68px;
  }

  .wm-cart-item__media img {
    max-width: 52px !important;
    max-height: 52px !important;
  }

  .wm-cart-item__unit,
  .wm-cart-item__quantity,
  .wm-cart-item__subtotal {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* Clean cart layout inspired by a compact checkout table. */
.wm-cart-page {
  --wm-cart-gold: var(--wm-color-accent, #c89b3c);
  --wm-cart-gold-dark: var(--wm-color-accent-dark, #9f7425);
  --wm-cart-brown: #573015;
}

.wm-cart-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  direction: rtl;
}

.wm-cart-form,
.wm-cart-layout__summary {
  direction: rtl;
}

.wm-cart-items {
  overflow: visible;
  border-color: rgba(200, 155, 60, 0.62);
  border-radius: 7px;
  box-shadow: none;
}

.wm-cart-items__head {
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 0;
}

.wm-cart-items__head h2 {
  font-size: 16px;
}

.wm-cart-items__head span {
  min-height: 24px;
  font-size: 11px;
}

.wm-cart-items__update {
  min-height: 34px !important;
  border-radius: 6px !important;
  background: #e5e7eb !important;
  color: #fff !important;
}

.wm-cart-items__table-head {
  grid-template-columns: 36px 136px 96px minmax(240px, 1fr) 96px !important;
  gap: 10px !important;
  min-height: 42px;
  padding: 0 10px 0 14px !important;
  border-top: 1px solid rgba(200, 155, 60, 0.5);
  border-bottom: 1px solid rgba(200, 155, 60, 0.5);
  background: #fff;
  direction: ltr;
}

.wm-cart-items__table-head span {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--wm-cart-gold);
  color: var(--wm-color-primary, #111827);
  font-size: 12px;
  font-weight: 700;
}

.wm-cart-items__table-head span:nth-of-type(1) {
  grid-column: 1 !important;
}

.wm-cart-items__table-head span:nth-of-type(2) {
  grid-column: 2 !important;
}

.wm-cart-items__table-head span:nth-of-type(3) {
  grid-column: 3 !important;
}

.wm-cart-items__table-head span:nth-of-type(4) {
  grid-column: 4 !important;
}

.wm-cart-items__table-head span:nth-of-type(5) {
  grid-column: 5 !important;
}

.wm-cart-item {
  grid-template-columns: 36px 136px 96px minmax(240px, 1fr) 96px !important;
  gap: 10px !important;
  min-height: 126px;
  padding: 12px 10px 14px 14px !important;
  border-top: 0 !important;
  direction: ltr;
}

.wm-cart-item + .wm-cart-item {
  border-top: 1px solid rgba(200, 155, 60, 0.28) !important;
}

.wm-cart-item__product {
  display: contents !important;
}

.wm-cart-item__media {
  grid-column: 5 !important;
  grid-row: 1 !important;
  width: 82px !important;
  height: 82px;
  justify-self: center;
  border-radius: 7px;
  border-color: rgba(200, 155, 60, 0.25);
  background: #fff;
}

.wm-cart-item__media img {
  max-width: 72px !important;
  max-height: 72px !important;
}

.wm-cart-item__info {
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: center;
  direction: rtl;
}

.wm-cart-item__title {
  color: var(--wm-color-primary, #111827);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.8;
  text-align: right;
}

.wm-cart-item__meta {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.8;
}

.wm-cart-item__unit {
  display: none !important;
}

.wm-cart-item__quantity {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: stretch;
  align-self: center;
  direction: rtl;
}

.wm-cart-item__quantity label,
.wm-cart-item__subtotal span {
  display: none;
}

.wm-cart-item__quantity .quantity {
  display: grid !important;
  place-items: center;
}

.wm-cart-item__quantity input.qty {
  width: 46px !important;
  height: 36px;
  min-height: 36px !important;
  border-radius: 5px;
  background: #fff;
}

.wm-cart-item__subtotal {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center;
  direction: rtl;
}

.wm-cart-item__subtotal strong,
.wm-cart-item__subtotal .amount {
  color: var(--wm-color-primary, #111827);
  font-size: 13px;
  font-weight: 760;
}

.wm-cart-item__remove-cell {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center;
  justify-self: center;
}

.wm-cart-page .wm-cart-item__remove.remove {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  background: transparent !important;
  color: #4b5563 !important;
  box-shadow: none !important;
  font-size: 26px !important;
}

.wm-cart-coupon {
  min-height: 54px;
  padding: 8px 12px;
  border-color: rgba(200, 155, 60, 0.22);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.055);
}

.wm-cart-coupon label {
  font-size: 12px;
  font-weight: 800;
}

.wm-cart-coupon input,
.wm-cart-coupon__button {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 6px !important;
}

.wm-cart-coupon__button {
  width: 70px;
  background: #fff !important;
}

.wm-cart-summary {
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: var(--wm-cart-gold);
  color: #fff;
  box-shadow: 0 10px 22px rgba(87, 48, 21, 0.12);
}

.wm-cart-summary::before {
  display: none;
}

.wm-cart-summary__head {
  display: block;
  padding: 22px 18px 12px;
  text-align: center;
  border-bottom: 0;
}

.wm-cart-summary__head h2 {
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.wm-cart-summary__count {
  display: none;
}

.wm-cart-summary__rows {
  padding: 0 18px;
}

.wm-cart-summary__row {
  min-height: 30px;
  padding: 4px 0;
  border-bottom: 0;
}

.wm-cart-summary__label,
.wm-cart-summary__value,
.wm-cart-summary__value .amount,
.wm-cart-summary__value bdi {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.wm-cart-summary__total {
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wm-cart-summary__total .wm-cart-summary__row {
  min-height: 30px;
  padding: 4px 0 12px;
}

.wm-cart-summary__row.order-total .wm-cart-summary__label,
.wm-cart-summary__row.order-total .wm-cart-summary__value,
.wm-cart-summary__row.order-total .amount,
.wm-cart-summary__row.order-total bdi {
  color: #fff;
  font-size: 13px;
}

.wm-cart-summary__checkout {
  padding: 8px 16px 18px;
}

.wm-cart-summary__cta {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 5px !important;
  background: var(--wm-cart-brown) !important;
  color: #fff !important;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .wm-cart-layout {
    grid-template-columns: 1fr;
  }

  .wm-cart-layout__summary {
    width: min(100%, 360px);
    position: static;
  }
}

@media (max-width: 760px) {
  .wm-cart-items__table-head {
    display: grid !important;
    grid-template-columns: 32px 1fr 76px 1fr !important;
    min-height: 38px;
  }

  .wm-cart-items__table-head span:nth-of-type(1) {
    grid-column: 1 !important;
  }

  .wm-cart-items__table-head span:nth-of-type(2) {
    display: none;
  }

  .wm-cart-items__table-head span:nth-of-type(3) {
    grid-column: 4 !important;
  }

  .wm-cart-items__table-head span:nth-of-type(4) {
    grid-column: 3 !important;
  }

  .wm-cart-items__table-head span:nth-of-type(5) {
    grid-column: 2 !important;
  }

  .wm-cart-item {
    grid-template-columns: 32px 92px minmax(0, 1fr) 54px !important;
    min-height: 116px;
    gap: 8px !important;
    padding: 12px 8px !important;
  }

  .wm-cart-item__media {
    grid-column: 2 !important;
    width: 80px !important;
    height: 80px;
  }

  .wm-cart-item__info {
    grid-column: 3 !important;
  }

  .wm-cart-item__quantity {
    grid-column: 4 !important;
    border-top: 0;
    padding-top: 0;
  }

  .wm-cart-item__subtotal {
    display: none !important;
  }

  .wm-cart-item__remove-cell {
    grid-column: 1 !important;
    border-top: 0;
    padding-top: 0;
  }

  .wm-cart-coupon {
    flex-direction: row;
    min-height: 54px;
  }

  .wm-cart-layout__summary {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .wm-cart-item {
    grid-template-columns: 30px 82px minmax(0, 1fr) 46px !important;
  }

  .wm-cart-item__media {
    width: 78px !important;
    height: 78px;
  }

  .wm-cart-item__media img {
    max-width: 66px !important;
    max-height: 66px !important;
  }

  .wm-cart-item__title {
    font-size: 13px;
  }
}

/* Cart visual language: use the reference for structure, not styling. */
.wm-cart-page {
  --wm-cart-line: rgba(229, 224, 216, 0.88);
  --wm-cart-line-strong: rgba(200, 155, 60, 0.34);
  --wm-cart-panel-shadow: 0 16px 38px rgba(17, 24, 39, 0.07);
  --wm-cart-panel-shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.045);
}

.wm-cart-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.wm-cart-items,
.wm-cart-summary,
.wm-cart-coupon {
  border: 1px solid var(--wm-cart-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 245, 0.42)),
    var(--wm-color-surface, #fff);
  box-shadow: var(--wm-cart-panel-shadow);
}

.wm-cart-items {
  overflow: hidden;
}

.wm-cart-items__head {
  min-height: 68px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--wm-cart-line);
}

.wm-cart-items__head h2 {
  font-size: 18px;
}

.wm-cart-items__head span,
.wm-cart-summary__count {
  border-color: var(--wm-cart-line);
  background: var(--wm-color-soft, #f9f8f5);
}

.wm-cart-items__table-head {
  min-height: 0;
  height: auto;
  padding: 12px 18px !important;
  border-top: 0;
  border-bottom: 1px solid var(--wm-cart-line);
  background: rgba(249, 248, 245, 0.76);
}

.wm-cart-items__table-head span {
  border-bottom: 0;
  color: var(--wm-color-muted, #6b7280);
  font-size: 14px;
  font-weight: 820;
}

.wm-cart-item {
  min-height: 132px;
  padding: 18px !important;
  background: #fff;
}

.wm-cart-item + .wm-cart-item {
  border-top-color: var(--wm-cart-line) !important;
}

.wm-cart-item__media {
  width: 88px !important;
  height: 88px;
  border-radius: 18px;
  border-color: var(--wm-cart-line);
  background:
    radial-gradient(circle at 50% 30%, rgba(200, 155, 60, 0.07), transparent 46%),
    #fff;
}

.wm-cart-item__media img {
  max-width: 72px !important;
  max-height: 72px !important;
}

.wm-cart-item__title {
  color: var(--wm-color-primary, #111827);
  font-size: 14.5px;
  font-weight: 850;
}

.wm-cart-item__meta {
  color: var(--wm-color-muted, #6b7280);
}

.wm-cart-item__quantity input.qty {
  border: 1px solid var(--wm-cart-line);
  border-radius: 12px;
  background: var(--wm-color-soft, #f9f8f5);
  color: var(--wm-color-primary, #111827);
  font-weight: 850;
}

.wm-cart-item__subtotal strong,
.wm-cart-item__subtotal .amount {
  color: var(--wm-cart-gold-dark);
  font-size: 14px;
  font-weight: 900;
}

.wm-cart-page .wm-cart-item__remove.remove {
  border: 1px solid transparent !important;
  color: var(--wm-color-muted, #6b7280) !important;
}

.wm-cart-page .wm-cart-item__remove.remove:hover,
.wm-cart-page .wm-cart-item__remove.remove:focus {
  border-color: rgba(180, 35, 24, 0.18) !important;
  background: var(--wm-color-danger-bg, #fef3f2) !important;
  color: var(--wm-color-danger-text, #b42318) !important;
}

.wm-cart-coupon {
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: var(--wm-cart-panel-shadow-soft);
}

.wm-cart-coupon label {
  color: var(--wm-color-primary, #111827);
  font-size: 13px;
}

.wm-cart-coupon input {
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid var(--wm-cart-line);
  border-radius: 12px !important;
  background: var(--wm-color-soft, #f9f8f5);
}

.wm-cart-coupon__button {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 12px !important;
  border-color: var(--wm-cart-line-strong) !important;
  background: #fff !important;
  color: var(--wm-cart-gold-dark) !important;
}

.wm-cart-summary {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--wm-color-primary, #111827);
}

.wm-cart-summary::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wm-color-accent, #c89b3c), transparent);
}

.wm-cart-summary__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 20px 20px 15px;
  text-align: right;
  border-bottom: 1px solid var(--wm-cart-line);
}

.wm-cart-summary__head h2 {
  color: var(--wm-color-primary, #111827);
  font-size: 18px;
}

.wm-cart-summary__count {
  display: inline-flex;
}

.wm-cart-summary__rows {
  padding: 8px 20px 0;
}

.wm-cart-summary__row {
  min-height: 42px;
  padding: 9px 0;
  border-bottom: 1px solid var(--wm-cart-line);
}

.wm-cart-summary__label {
  color: var(--wm-color-muted, #6b7280);
  font-size: 13px;
  font-weight: 760;
}

.wm-cart-summary__value,
.wm-cart-summary__value .amount,
.wm-cart-summary__value bdi {
  color: var(--wm-color-primary, #111827);
  font-size: 13px;
  font-weight: 850;
}

.wm-cart-summary__total {
  margin: 14px 20px 0;
  padding: 14px 16px;
  border: 1px solid rgba(200, 155, 60, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(200, 155, 60, 0.13), rgba(255, 255, 255, 0.88)),
    #fffaf0;
}

.wm-cart-summary__total .wm-cart-summary__row {
  padding: 0;
  border-bottom: 0;
}

.wm-cart-summary__row.order-total .wm-cart-summary__label,
.wm-cart-summary__row.order-total .wm-cart-summary__value {
  color: var(--wm-color-primary, #111827);
  font-size: 14px;
}

.wm-cart-summary__row.order-total .amount,
.wm-cart-summary__row.order-total bdi {
  color: var(--wm-cart-gold-dark);
  font-size: 21px;
  font-weight: 950;
}

.wm-cart-summary__checkout {
  padding: 14px 20px 20px;
}

.wm-cart-summary__cta {
  height: 50px !important;
  min-height: 50px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #111827, #1f2a3d) !important;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.18);
}

@media (max-width: 1100px) {
  .wm-cart-layout {
    grid-template-columns: 1fr;
  }

  .wm-cart-layout__summary {
    width: 100%;
  }

  .wm-cart-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .wm-cart-items,
  .wm-cart-summary,
  .wm-cart-coupon {
    border-radius: 20px;
  }

  .wm-cart-items__table-head {
    padding-inline: 12px !important;
    background: var(--wm-color-soft, #f9f8f5);
  }

  .wm-cart-item {
    min-height: 124px;
    padding: 14px 12px !important;
  }

  .wm-cart-item__media {
    width: 76px !important;
    height: 76px;
    border-radius: 16px;
  }

  .wm-cart-item__title {
    font-size: 13.5px;
  }

  .wm-cart-coupon {
    min-height: 58px;
  }
}

@media (max-width: 430px) {
  .wm-cart-coupon {
    gap: 7px;
    padding-inline: 10px;
  }

  .wm-cart-coupon label {
    font-size: 12px;
  }

  .wm-cart-summary__total {
    margin-inline: 16px;
  }
}

/* Final spacing and desktop alignment adjustments. */
.wm-cart-page {
  padding-bottom: 18px;
}

.wm-cart-items__table-head span,
.wm-cart-items__table-head span:first-child,
.wm-cart-items__table-head span:not(:first-child) {
  align-self: stretch !important;
  height: auto;
  min-height: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.wm-cart-summary {
  display: flex;
  flex-direction: column;
}

.wm-cart-summary__checkout {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.wm-cart-summary__checkout p {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
}

.wm-cart-summary__checkout br {
  display: none !important;
}

.wm-cart-summary__checkout .wm-cart-summary__cta,
.wm-cart-summary__checkout a.checkout-button.wm-cart-summary__cta {
  width: 100% !important;
  display: inline-flex !important;
}

.woocommerce-cart .wm-site-footer {
  margin-top: 32px;
}

@media (max-width: 760px) {
  .wm-cart-page {
    padding-bottom: 96px;
  }
}

/* Final cart usability fixes. */
@media (min-width: 761px) {
  .wm-cart-items__table-head {
    grid-template-columns: 36px 136px 96px minmax(240px, 1fr) 96px !important;
    align-items: center !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 18px !important;
    grid-template-rows: auto !important;
  }

  .wm-cart-items__table-head > span {
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .wm-cart-items__table-head br {
    display: none !important;
  }
}

.wm-cart-summary {
  min-height: 360px;
}

.wm-cart-summary__checkout {
  margin-top: auto !important;
  padding-bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
}

.wm-cart-summary__checkout p {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: grid !important;
  align-items: end !important;
  justify-self: stretch !important;
  align-self: end !important;
}

.wm-cart-summary__checkout br {
  display: none !important;
}

.wm-cart-summary__checkout a.checkout-button.wm-cart-summary__cta {
  width: 100% !important;
  justify-self: stretch !important;
}

.woocommerce-cart .wm-cart-summary__checkout p > a.checkout-button.button.alt.wc-forward.wm-cart-summary__cta {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-cart .wm-site-footer {
  margin-top: 24px !important;
}

@media (max-width: 760px) {
  .wm-cart-items__table-head {
    display: none !important;
  }

  .wm-cart-item {
    grid-template-columns: minmax(0, 1fr) 54px 34px !important;
    gap: 10px 12px !important;
    min-height: 0 !important;
    padding: 14px !important;
    direction: ltr;
  }

  .wm-cart-item__media {
    width: 82px !important;
    height: 82px !important;
    align-self: start;
    justify-self: end;
  }

  .wm-cart-item__product {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 12px;
    align-items: start;
    direction: ltr;
  }

  .wm-cart-item__info {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    align-self: start;
    direction: rtl;
  }

  .wm-cart-item__media {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  .wm-cart-item__title {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 13.5px;
    line-height: 1.75;
  }

  .wm-cart-item__quantity {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 42px;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .wm-cart-item__quantity label {
    display: block !important;
    color: var(--wm-color-muted, #6b7280);
    font-size: 12px;
    font-weight: 800;
  }

  .wm-cart-item__quantity input.qty {
    width: 54px !important;
  }

  .wm-cart-item__subtotal {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-height: 42px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--wm-cart-line, rgba(229, 224, 216, 0.88)) !important;
  }

  .wm-cart-item__subtotal span {
    display: block !important;
    color: var(--wm-color-muted, #6b7280);
    font-size: 12px;
    font-weight: 800;
  }

  .wm-cart-item__remove-cell {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 44px !important;
    min-height: 44px;
    align-self: start;
    justify-self: center;
    padding: 0 !important;
    border-top: 0 !important;
  }

  .wm-cart-page .wm-cart-item__remove.remove {
    width: 44px !important;
    height: 44px !important;
    font-size: 22px !important;
  }

  .wm-cart-summary {
    min-height: 360px;
  }
}

@media (max-width: 430px) {
  .wm-cart-item {
    grid-template-columns: minmax(0, 1fr) 50px 34px !important;
    gap: 10px;
  }

  .wm-cart-item__product {
    grid-template-columns: minmax(0, 1fr) 76px !important;
  }

  .wm-cart-item__media {
    width: 76px !important;
    height: 76px !important;
  }

  .wm-cart-item__media img {
    max-width: 64px !important;
    max-height: 64px !important;
  }
}

/* Absolute last CTA width guard against WooCommerce paragraph injection. */
.wm-cart-summary__checkout > p {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

.wm-cart-summary__checkout > p > a.wm-cart-summary__cta,
.cart_totals .wm-cart-summary__checkout > p > a.checkout-button.wm-cart-summary__cta {
  width: 100% !important;
  inline-size: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  box-sizing: border-box !important;
}

/* Final requested ordering and attached checkout CTA. */
.wm-cart-summary__checkout {
  padding: 0 !important;
  margin-top: auto !important;
  padding-bottom: 0 !important;
}

.wm-cart-summary__checkout > p {
  margin: 0 !important;
  padding: 0 !important;
}

.wm-cart-summary__checkout > p > a.wm-cart-summary__cta,
.cart_totals .wm-cart-summary__checkout > p > a.checkout-button.wm-cart-summary__cta {
  min-height: 54px !important;
  height: 54px !important;
  border-radius: 0 0 22px 22px !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

/* Checkout progress stepper, CTA lock icon + continue link, coupon feedback,
   recalculating spinner, animated update-cart reveal, quantity stepper buttons. */
.wm-cart-page__header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 245, 0.94));
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 28px;
}

.wm-checkout-steps {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.wm-checkout-steps__step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wm-color-muted, #6b7280);
}

.wm-checkout-steps__step + .wm-checkout-steps__step {
  margin-inline-start: 14px;
}

.wm-checkout-steps__step + .wm-checkout-steps__step::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-inline-end: 14px;
  background: var(--wm-cart-line, rgba(229, 224, 216, 0.88));
}

.wm-checkout-steps__circle {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--wm-cart-line, rgba(229, 224, 216, 0.88));
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.wm-checkout-steps__step.is-active .wm-checkout-steps__circle {
  border-color: var(--wm-color-accent, #c89b3c);
  background: var(--wm-color-accent, #c89b3c);
  color: #fff;
}

.wm-checkout-steps__step.is-active {
  color: var(--wm-color-primary, #111827);
}

.wm-checkout-steps__label {
  font-size: 12.5px;
  font-weight: 760;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .wm-checkout-steps__label {
    display: none;
  }

  .wm-checkout-steps__step + .wm-checkout-steps__step::before {
    width: 16px;
    margin-inline-end: 8px;
  }
}

.wm-cart-summary__cta-lock {
  width: 16px;
  height: 16px;
  flex: none;
}

.wm-cart-summary__continue {
  display: block;
  margin-top: 10px;
  padding: 0 20px 16px;
  color: var(--wm-color-muted, #6b7280);
  font-size: 12.5px;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}

.wm-cart-summary__continue:hover,
.wm-cart-summary__continue:focus {
  color: var(--wm-cart-gold-dark);
}

.wm-cart-coupon__feedback {
  margin: 8px 0 0;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 700;
}

.wm-cart-coupon__feedback.is-success {
  color: var(--wm-color-success-text, #027a48);
}

.wm-cart-coupon__feedback.is-error {
  color: var(--wm-color-danger-text, #b42318);
}

.wm-cart-coupon__button.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.wm-cart-coupon__button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(159, 116, 37, 0.3);
  border-top-color: var(--wm-cart-gold-dark);
  border-radius: 50%;
  animation: wm-cart-spin 700ms linear infinite;
}

.wm-cart-summary.is-recalculating .wm-cart-summary__total {
  position: relative;
}

.wm-cart-summary.is-recalculating .wm-cart-summary__total::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.7);
}

.wm-cart-summary.is-recalculating .wm-cart-summary__total::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin: -10px;
  border: 2px solid rgba(17, 24, 39, 0.15);
  border-top-color: var(--wm-color-primary, #111827);
  border-radius: 50%;
  animation: wm-cart-spin 700ms linear infinite;
}

@keyframes wm-cart-spin {
  to {
    transform: rotate(360deg);
  }
}

.wm-cart-items__update {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.wm-cart-items__update.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wm-cart-item__quantity .quantity.wm-quantity-stepper,
.wm-cart-item__quantity .wm-quantity-stepper {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

.wm-qty-step {
  display: none;
}

/* Touch-target stepper buttons: only where the card layout has room (mobile). */
@media (max-width: 760px) {
  .wm-qty-step {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--wm-cart-line, rgba(229, 224, 216, 0.88));
    border-radius: 10px;
    background: #fff;
    color: var(--wm-color-primary, #111827);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .wm-qty-step:hover,
  .wm-qty-step:focus {
    border-color: var(--wm-cart-line-strong, rgba(200, 155, 60, 0.34));
    color: var(--wm-cart-gold-dark);
  }

  .wm-cart-item__quantity input.qty {
    width: 40px !important;
  }

  .wm-cart-coupon input,
  .wm-cart-coupon__button {
    height: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 760px) {
  .wm-cart-item {
    position: relative;
    grid-template-columns: 1fr !important;
  }

  .wm-cart-item__product {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px;
    justify-items: end;
    direction: rtl;
  }

  .wm-cart-item__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  .wm-cart-item__info {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100%;
    text-align: right;
  }

  .wm-cart-item__quantity {
    grid-column: 1 !important;
    grid-row: 2 !important;
    flex-direction: row;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--wm-cart-line, rgba(229, 224, 216, 0.88)) !important;
  }

  .wm-cart-item__subtotal {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .wm-cart-item__remove-cell {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .wm-cart-summary__checkout > p > a.wm-cart-summary__cta,
  .cart_totals .wm-cart-summary__checkout > p > a.checkout-button.wm-cart-summary__cta {
    border-radius: 0 0 20px 20px !important;
  }
}
