/* TryLoveMe cart — single source of truth */
body.woocommerce-cart,
body.woocommerce-cart .site-main,
body.woocommerce-cart main,
.tlm-cart-page {
  background: var(--tlm-pure-white);
}

.tlm-cart-page__content { margin: 0; }

body.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 380px);
  grid-template-areas:
    "intro intro"
    "progress progress"
    "cart summary";
  column-gap: 28px;
  row-gap: 28px;
  width: min(calc(100% - (var(--tlm-gutter) * 2)), var(--tlm-container));
  margin-inline: auto;
  padding-block: 38px 72px;
}

body.woocommerce-cart .tlm-cart-intro { grid-area: intro; }
body.woocommerce-cart .tlm-cart-progress { grid-area: progress; }
body.woocommerce-cart form.woocommerce-cart-form { grid-area: cart; }
body.woocommerce-cart .cart-collaterals { grid-area: summary; }

body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-cart .entry-header,
body.woocommerce-cart .page-title { display: none; }

/* Intro */
.tlm-cart-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
}

.tlm-cart-intro__eyebrow,
.tlm-cart-progress__eyebrow {
  margin: 0 0 8px;
  color: var(--tlm-brownie);
  font-size: var(--tlm-font-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tlm-cart-intro h1 {
  margin: 0;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .96;
}

.tlm-cart-intro > div > p:last-child {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--tlm-muted);
  font-size: var(--tlm-font-md);
  line-height: 1.55;
}

.tlm-cart-intro .tlm-btn {
  flex: 0 0 auto;
  min-height: 48px;
  margin-bottom: 4px;
}

/* Benefits progress */
.tlm-cart-progress {
  margin: 0;
  padding: 28px 32px 26px;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-lg);
  background: linear-gradient(135deg, rgba(240,226,222,.50), rgba(255,255,255,.98) 56%, rgba(230,161,192,.12));
  box-shadow: var(--tlm-shadow-sm);
}

.tlm-cart-progress__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  margin-bottom: 28px;
}

.tlm-cart-progress__message {
  max-width: 850px;
  margin: 0;
  font-size: clamp(27px, 2.45vw, 40px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.tlm-cart-progress__subtotal {
  min-width: 150px;
  margin: 0;
  text-align: right;
}

.tlm-cart-progress__subtotal > span {
  display: block;
  margin-bottom: 5px;
  color: var(--tlm-muted);
  font-size: var(--tlm-font-sm);
}

.tlm-cart-progress__subtotal strong,
.tlm-cart-progress__subtotal strong bdi,
.tlm-cart-progress__subtotal .woocommerce-Price-amount,
.tlm-cart-progress__subtotal .woocommerce-Price-currencySymbol {
  display: inline;
  white-space: nowrap;
}

.tlm-cart-progress__subtotal strong {
  font-size: var(--tlm-font-lg);
  line-height: 1.2;
}

.tlm-cart-progress__scale {
  position: relative;
  padding-bottom: 54px;
}

.tlm-cart-progress__track {
  position: relative;
  height: 5px;
  margin-inline: 8px;
  border-radius: var(--tlm-radius-pill);
  background: rgba(58,31,34,.11);
}

.tlm-cart-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tlm-salmon), var(--tlm-accent));
  transition: width var(--tlm-duration-normal) var(--tlm-ease);
}

.tlm-cart-progress__dot {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d8ced0;
  box-shadow: 0 0 0 1px rgba(58,31,34,.13);
  transform: translate(-50%, -50%);
}

.tlm-cart-progress__dot.is-reached { background: var(--tlm-accent); }

.tlm-cart-progress__milestones {
  position: absolute;
  inset: 18px 8px auto;
  height: 40px;
}

.tlm-cart-progress__milestone {
  position: absolute;
  top: 0;
  left: var(--tlm-progress-left, 0%);
  width: max-content;
  max-width: 130px;
  color: var(--tlm-muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
}

.tlm-cart-progress__milestone:first-child {
  text-align: left;
  transform: none;
}

.tlm-cart-progress__milestone:last-child {
  text-align: right;
  transform: translateX(-100%);
}

.tlm-cart-progress__milestone > strong,
.tlm-cart-progress__milestone > span { display: block; }

.tlm-cart-progress__milestone > strong {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--tlm-text);
  font-size: 11px;
  white-space: nowrap;
}

.tlm-cart-progress__milestone > strong .woocommerce-Price-amount,
.tlm-cart-progress__milestone > strong bdi,
.tlm-cart-progress__milestone > strong .woocommerce-Price-currencySymbol {
  display: inline;
  white-space: nowrap;
}

.tlm-cart-progress__milestone.is-reached span {
  color: var(--tlm-accent);
  font-weight: 700;
}

/* Cart products */
body.woocommerce-cart form.woocommerce-cart-form {
  min-width: 0;
  margin: 0;
  padding: 22px 24px 18px;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-lg);
  background: var(--tlm-surface);
  box-shadow: var(--tlm-shadow-sm);
}

body.woocommerce-cart table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
}

body.woocommerce-cart table.shop_table th {
  padding: 10px 10px 14px;
  border: 0;
  color: var(--tlm-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.woocommerce-cart table.shop_table td {
  padding: 16px 10px;
  border-top: 1px solid var(--tlm-border);
  vertical-align: middle;
}

body.woocommerce-cart td.product-remove { width: 44px; }
body.woocommerce-cart td.product-thumbnail { width: 82px; }
body.woocommerce-cart td.product-price { width: 104px; }
body.woocommerce-cart td.product-quantity { width: 142px; }
body.woocommerce-cart td.product-subtotal { width: 112px; }

body.woocommerce-cart td.product-thumbnail img {
  width: 64px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6px;
  border-radius: var(--tlm-radius-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--tlm-border);
}

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

body.woocommerce-cart td.product-name a {
  display: inline-block;
  max-width: 460px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.38;
}

body.woocommerce-cart td.product-name a:hover { color: var(--tlm-accent); }

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

body.woocommerce-cart td.product-remove a.remove {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--tlm-border);
  border-radius: 50%;
  color: #d10f0f;
  font-size: 18px;
  line-height: 1;
}

body.woocommerce-cart td.product-remove a.remove:hover {
  border-color: var(--tlm-accent);
  background: var(--tlm-accent-soft);
}

body.woocommerce-cart .quantity {
  display: inline-grid;
  grid-template-columns: 34px 46px 34px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-pill);
  background: #fff;
}

body.woocommerce-cart .quantity .tlm-qty-step {
  display: grid;
  width: 34px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tlm-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

body.woocommerce-cart .quantity .tlm-qty-step:hover,
body.woocommerce-cart .quantity .tlm-qty-step:focus-visible {
  background: var(--tlm-accent-soft);
}

body.woocommerce-cart .quantity .qty {
  width: 46px;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--tlm-border);
  border-radius: 0;
  background: #fff;
  text-align: center;
  appearance: textfield;
}

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

/* Coupon */
body.woocommerce-cart .actions {
  padding: 16px 0 0;
}

body.woocommerce-cart .coupon {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  width: min(100%, 640px);
}

body.woocommerce-cart .coupon #coupon_code {
  width: 100%;
  min-height: 46px;
  padding-inline: 18px;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-pill);
  background: #fff;
}

body.woocommerce-cart .coupon button {
  min-height: 46px;
  padding-inline: 22px;
  border: 0;
  border-radius: var(--tlm-radius-pill);
  white-space: nowrap;
}

body.woocommerce-cart .actions > button[name="update_cart"] { display: none; }

/* Summary */
body.woocommerce-cart .woocommerce .cart-collaterals {
  min-width: 0;
  width: 100%;
  margin: 0;
  align-self: start;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
  position: sticky;
  top: calc(var(--tlm-header-height, 84px) + 18px);
  float: none;
  width: 100%;
  min-width: 320px;
  padding: 28px;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-lg);
  background: linear-gradient(180deg, #fff, rgba(240,226,222,.28));
  box-shadow: var(--tlm-shadow-sm);
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tr {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  border-bottom: 1px solid var(--tlm-border);
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tr:last-child {
  border-bottom: 0;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table th,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table td {
  width: auto;
  padding: 14px 0;
  border: 0;
  vertical-align: middle;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table th {
  color: var(--tlm-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table td {
  justify-self: end;
  text-align: right;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .woocommerce-Price-amount bdi,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .woocommerce-Price-currencySymbol,
body.woocommerce-cart td.product-price .woocommerce-Price-amount,
body.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
  white-space: nowrap;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total th,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total td {
  padding-top: 18px;
  font-size: 13px;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total td strong {
  font-size: 17px;
}

body.woocommerce-cart .woocommerce .cart-collaterals .wc-proceed-to-checkout {
  padding: 20px 0 0;
}

body.woocommerce-cart .woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: var(--tlm-radius-pill);
  background: var(--tlm-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.woocommerce-cart .woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--tlm-brownie);
}

body.woocommerce-cart .woocommerce-cart-form__cart-item {
  transition: opacity var(--tlm-duration-fast) var(--tlm-ease);
}

/* Compact desktop */
@media (max-width: 1180px) {
  body.woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
    column-gap: 24px;
  }

  body.woocommerce-cart form.woocommerce-cart-form {
    padding-inline: 18px;
  }

  body.woocommerce-cart td.product-thumbnail { width: 70px; }
  body.woocommerce-cart td.product-thumbnail img { width: 58px; }
  body.woocommerce-cart td.product-price { width: 92px; }
  body.woocommerce-cart td.product-quantity { width: 126px; }
  body.woocommerce-cart td.product-subtotal { width: 98px; }
}

/* Stack earlier: prevents a squeezed summary card */
@media (max-width: 960px) {
  body.woocommerce-cart .woocommerce {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "progress"
      "cart"
      "summary";
    row-gap: 22px;
    padding-block: 30px 56px;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    position: static;
    padding: 24px;
  }

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

/* Mobile — single source of truth */
@media (max-width: 768px) {
  html,
  body.woocommerce-cart {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

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

  body.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "progress"
      "cart"
      "summary";
    gap: 18px;
    width: calc(100% - 24px);
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding: 26px 0 44px;
  }

  /* Intro */
  .tlm-cart-intro {
    display: grid;
    gap: 16px;
    min-width: 0;
  }

  .tlm-cart-intro h1 {
    margin: 0;
    font-size: clamp(42px, 12vw, 54px);
    line-height: .96;
  }

  .tlm-cart-intro > div > p:last-child {
    max-width: 100%;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tlm-cart-intro .tlm-btn {
    width: max-content;
    max-width: 100%;
    min-height: 46px;
    margin: 0;
    padding-inline: 18px;
    white-space: nowrap;
  }

  /* Benefits */
  .tlm-cart-progress {
    min-width: 0;
    overflow: hidden;
    padding: 20px 16px 18px;
    border-radius: 22px;
  }

  .tlm-cart-progress__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .tlm-cart-progress__message {
    width: 100%;
    max-width: 100%;
    font-size: clamp(24px, 6.7vw, 31px);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tlm-cart-progress__subtotal {
    min-width: 0;
    text-align: left;
  }

  .tlm-cart-progress__subtotal strong {
    font-size: 22px;
  }

  .tlm-cart-progress__scale {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 56px;
  }

  .tlm-cart-progress__track {
    width: calc(100% - 8px);
    min-width: 0;
    margin-inline: 4px;
  }

  .tlm-cart-progress__milestones {
    inset-inline: 4px;
    width: calc(100% - 8px);
    min-width: 0;
  }

  .tlm-cart-progress__milestone {
    width: 58px;
    max-width: 58px;
    font-size: 8px;
    line-height: 1.25;
  }

  .tlm-cart-progress__milestone > strong {
    display: block;
    font-size: 9px;
    white-space: nowrap;
  }

  /* Cart card */
  body.woocommerce-cart form.woocommerce-cart-form {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 12px 14px;
    overflow: hidden;
    border-radius: 22px;
  }

  body.woocommerce-cart .woocommerce table.shop_table_responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    table-layout: fixed;
  }

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

  body.woocommerce-cart .woocommerce table.shop_table_responsive tbody {
    display: block;
    width: 100%;
  }

  body.woocommerce-cart .woocommerce table.shop_table_responsive tr.cart_item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 34px;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "thumb qty qty"
      "thumb subtotal subtotal";
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px 2px 18px;
    border-bottom: 1px solid var(--tlm-border);
  }

  body.woocommerce-cart .woocommerce table.shop_table_responsive tr.cart_item td {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  body.woocommerce-cart .woocommerce table.shop_table_responsive tr.cart_item td::before {
    display: none;
    content: none;
  }

  body.woocommerce-cart .woocommerce td.product-remove {
    position: static;
    grid-area: remove;
    justify-self: end;
    align-self: start;
    width: 34px;
  }

  body.woocommerce-cart .woocommerce td.product-remove a.remove {
    width: 32px;
    height: 32px;
  }

  body.woocommerce-cart .woocommerce td.product-thumbnail {
    grid-area: thumb;
    align-self: start;
    width: 72px;
  }

  body.woocommerce-cart .woocommerce td.product-thumbnail img {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0;
    object-fit: contain;
  }

  body.woocommerce-cart .woocommerce td.product-name {
    grid-area: name;
    padding: 2px 0 0;
  }

  body.woocommerce-cart .woocommerce td.product-name a {
    display: block;
    max-width: 100%;
    color: var(--tlm-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.woocommerce-cart .woocommerce td.product-price {
    grid-area: price;
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 13px;
    white-space: normal;
  }

  body.woocommerce-cart .woocommerce td.product-price::before {
    display: inline;
    content: "Cena";
    color: var(--tlm-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body.woocommerce-cart .woocommerce td.product-quantity {
    grid-area: qty;
  }

  body.woocommerce-cart .woocommerce td.product-quantity::before {
    display: block;
    margin-bottom: 6px;
    content: "Ilość";
    color: var(--tlm-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body.woocommerce-cart .woocommerce .quantity {
    grid-template-columns: 32px 42px 32px;
    min-height: 38px;
  }

  body.woocommerce-cart .woocommerce .quantity .tlm-qty-step {
    width: 32px;
    height: 36px;
  }

  body.woocommerce-cart .woocommerce .quantity .qty {
    width: 42px;
    height: 36px;
    min-height: 36px;
  }

  body.woocommerce-cart .woocommerce td.product-subtotal {
    grid-area: subtotal;
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 14px;
    font-weight: 750;
    white-space: normal;
  }

  body.woocommerce-cart .woocommerce td.product-subtotal::before {
    display: inline;
    content: "Razem";
    color: var(--tlm-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  /* Coupon */
  body.woocommerce-cart .woocommerce table.shop_table_responsive tr:last-child td.actions {
    display: block;
    width: 100%;
    padding: 16px 0 0;
    text-align: left !important;
  }

  body.woocommerce-cart .woocommerce .actions .coupon {
    float: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  body.woocommerce-cart .woocommerce .actions .coupon #coupon_code,
  body.woocommerce-cart .woocommerce .actions .coupon button {
    float: none;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
  }

  body.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"] {
    display: none;
  }

  /* Summary */
  body.woocommerce-cart .woocommerce .cart-collaterals {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 22px 18px;
    border-radius: 22px;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table {
    display: table;
    width: 100%;
    min-width: 0;
    margin: 0;
    table-layout: fixed;
    border-collapse: collapse;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tbody {
    display: table-row-group;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tr {
    display: table-row;
    min-height: 0;
    padding: 0;
    border-bottom: 1px solid var(--tlm-border);
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tr:last-child {
    border-bottom: 0;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table th,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table td {
    display: table-cell;
    width: 50%;
    padding: 13px 0;
    border: 0;
    vertical-align: middle;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table th {
    color: var(--tlm-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: left;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table td {
    color: var(--tlm-text);
    font-size: 14px;
    font-weight: 700;
    text-align: right !important;
    white-space: nowrap;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table td::before {
    display: none;
    content: none;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total th,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total td {
    padding-top: 16px;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total td strong {
    font-size: 18px;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .wc-proceed-to-checkout {
    padding: 18px 0 0;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    min-height: 52px;
    padding-inline: 16px;
    white-space: normal;
    text-align: center;
  }

  /* Do not cover checkout actions with social proof. */
  body.woocommerce-cart .tlm-social-proof {
    display: none;
  }
}

@media (max-width: 390px) {
  body.woocommerce-cart .woocommerce {
    width: calc(100% - 18px);
  }

  body.woocommerce-cart .woocommerce table.shop_table_responsive tr.cart_item {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    gap: 7px 10px;
  }

  body.woocommerce-cart .woocommerce td.product-thumbnail {
    width: 64px;
  }

  body.woocommerce-cart .woocommerce td.product-thumbnail img {
    width: 60px;
    height: 60px;
  }

  .tlm-cart-progress__milestone {
    width: 52px;
    max-width: 52px;
    font-size: 7px;
  }

  .tlm-cart-progress__milestone > strong {
    font-size: 8px;
  }
}


/* v1.9.31 — coupon + totals visual polish */
@media (max-width: 768px) {
  /* Coupon button: match the input and card width instead of looking like a short pill. */
  body.woocommerce-cart .woocommerce .actions .coupon {
    gap: 12px;
  }

  body.woocommerce-cart .woocommerce .actions .coupon #coupon_code {
    min-height: 50px;
    padding-inline: 18px;
    border-radius: 999px;
  }

  body.woocommerce-cart .woocommerce .actions .coupon button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--tlm-text);
    color: #fff;
    text-align: center;
    justify-content: center;
  }

  body.woocommerce-cart .woocommerce .actions .coupon button:hover,
  body.woocommerce-cart .woocommerce .actions .coupon button:focus-visible {
    background: #1a1a1a;
    color: #fff;
  }

  /* Coupon validation message should sit cleanly under the form. */
  body.woocommerce-cart .woocommerce-error,
  body.woocommerce-cart .woocommerce-info,
  body.woocommerce-cart .woocommerce-message {
    border-radius: 14px;
  }

  /* Remove the odd shaded row background from cart totals. */
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tbody,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tr,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table th,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table td {
    background: transparent;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total {
    background: transparent;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total th,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .order-total td {
    background: transparent;
  }
}


/* ==========================================================================
   TryLoveMe v1.9.47 — Cart shipping / InPost UX
   ========================================================================== */

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
tr.woocommerce-shipping-totals.shipping {
  display: block;
  width: 100%;
  padding: 18px 0 20px;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
tr.woocommerce-shipping-totals.shipping > th,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
tr.woocommerce-shipping-totals.shipping > td {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left !important;
  white-space: normal;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
tr.woocommerce-shipping-totals.shipping > th {
  margin-bottom: 11px;
  color: var(--tlm-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
#shipping_method {
  display: grid;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
#shipping_method li {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(58,31,34,.11);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  text-indent: 0;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
#shipping_method li:has(input:checked) {
  border-color: rgba(225,128,177,.72);
  background: #fff8fb;
  box-shadow: 0 0 0 3px rgba(225,128,177,.08);
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
#shipping_method li > input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 16px;
  height: 16px;
  margin: 0;
  transform: translateY(-50%);
  accent-color: var(--tlm-accent);
  z-index: 2;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
#shipping_method li > label {
  display: flex !important;
  min-height: 58px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 11px 40px;
  color: var(--tlm-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
#shipping_method li > label img {
  flex: 0 0 auto;
  width: auto !important;
  max-width: 64px !important;
  max-height: 30px !important;
  margin: 0 0 0 auto !important;
  object-fit: contain;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
.woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
.woocommerce-shipping-calculator {
  margin: 12px 0 0;
  color: var(--tlm-muted);
  font-size: 10px;
  line-height: 1.45;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
.shipping-calculator-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tlm-text);
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* InPost / parcel point buttons generated by plugins */
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
.woocommerce-shipping-totals button,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
.woocommerce-shipping-totals .button,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
.woocommerce-shipping-totals input[type="button"],
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
.woocommerce-shipping-totals input[type="submit"] {
  min-height: 42px;
  margin: 12px 0 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tlm-text) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  letter-spacing: .04em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

@media (max-width: 768px) {
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
  tr.woocommerce-shipping-totals.shipping {
    padding-block: 16px;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
  #shipping_method li > label {
    min-height: 56px;
    padding-right: 10px;
    font-size: 10.5px;
  }

  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals
  #shipping_method li > label img {
    max-width: 56px !important;
    max-height: 27px !important;
  }
}


/* ==========================================================================
   TryLoveMe v1.9.48 — compact shipping selector
   ========================================================================== */
body.woocommerce-cart .cart_totals #shipping_method {
  gap: 6px !important;
}

body.woocommerce-cart .cart_totals #shipping_method li {
  min-height: 0 !important;
  border-radius: 10px !important;
}

body.woocommerce-cart .cart_totals #shipping_method li > label {
  min-height: 46px !important;
  padding: 8px 9px 8px 36px !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}

body.woocommerce-cart .cart_totals #shipping_method li > input[type="radio"] {
  left: 11px !important;
  width: 14px !important;
  height: 14px !important;
}

body.woocommerce-cart .cart_totals #shipping_method li > label img {
  max-width: 44px !important;
  max-height: 22px !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-totals.shipping > th {
  margin-bottom: 8px !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator {
  margin-top: 8px !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-totals button,
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals .button,
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals input[type="button"],
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals input[type="submit"] {
  min-height: 36px !important;
  margin-top: 8px !important;
  padding: 0 14px !important;
  font-size: 9px !important;
}

@media (max-width: 768px) {
  body.woocommerce-cart .cart_totals #shipping_method li > label {
    min-height: 44px !important;
    font-size: 9.5px !important;
  }

  body.woocommerce-cart .cart_totals #shipping_method li > label img {
    max-width: 40px !important;
    max-height: 20px !important;
  }
}


/* ==========================================================================
   TryLoveMe v1.9.49 — Cart shipping UX: simple compact list
   ========================================================================== */

@media (min-width: 901px) {
  body.woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 340px);
    column-gap: 24px;
  }
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
  padding: 24px !important;
  min-width: 0 !important;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2 {
  margin-bottom: 15px !important;
  font-size: 29px !important;
}

body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals.shipping {
  padding: 13px 0 15px !important;
}

body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals.shipping > th {
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 9px !important;
}

body.woocommerce-cart .cart_totals #shipping_method {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(58,31,34,.11);
  border-radius: 13px;
  background: #fff;
}

body.woocommerce-cart .cart_totals #shipping_method li {
  position: relative !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(58,31,34,.09) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.woocommerce-cart .cart_totals #shipping_method li:last-child {
  border-bottom: 0 !important;
}

body.woocommerce-cart .cart_totals #shipping_method li:has(input:checked) {
  background: #fff5f9 !important;
  box-shadow: inset 3px 0 0 var(--tlm-accent) !important;
}

body.woocommerce-cart .cart_totals #shipping_method li > input[type="radio"] {
  top: 50% !important;
  left: 12px !important;
  width: 14px !important;
  height: 14px !important;
}

body.woocommerce-cart .cart_totals #shipping_method li > label {
  display: flex !important;
  min-height: 42px !important;
  width: 100% !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px 8px 36px !important;
  color: var(--tlm-text) !important;
  font-size: 9.5px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  text-align: left !important;
}

body.woocommerce-cart .cart_totals #shipping_method li > label img {
  display: none !important;
}

body.woocommerce-cart .cart_totals #shipping_method li > label .amount {
  flex: 0 0 auto;
  margin-left: auto !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
  margin: 9px 0 0 !important;
  padding: 9px 10px !important;
  border-radius: 10px;
  background: #faf8f8;
  font-size: 9px !important;
  line-height: 1.4 !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator {
  margin-top: 6px !important;
}

body.woocommerce-cart .cart_totals .shipping-calculator-button {
  font-size: 9px !important;
}

/* Plugin-generated parcel point button: one clean CTA */
body.woocommerce-cart .cart_totals button:not([name="update_cart"]),
body.woocommerce-cart .cart_totals .button:not(.checkout-button),
body.woocommerce-cart .cart_totals input[type="button"],
body.woocommerce-cart .cart_totals input[type="submit"] {
  min-height: 36px !important;
  width: 100% !important;
  margin: 9px 0 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0d1212 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

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

body.woocommerce-cart .woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
  min-height: 48px !important;
}

@media (max-width: 900px) {
  body.woocommerce-cart .cart_totals #shipping_method li > label {
    min-height: 44px !important;
    font-size: 10px !important;
  }
}
