/* World-class single-viewport cart */

body.tmo-cart-ux {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79, 143, 130, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 39, 68, 0.06), transparent 50%),
    linear-gradient(180deg, #f4f7f9 0%, #eef3f6 100%);
}

/* Kill Elementor kit display typography on this surface */
body.tmo-cart-ux.elementor-kit-6381 h1,
body.tmo-cart-ux.elementor-kit-6381 h2,
body.tmo-cart-ux h1,
body.tmo-cart-ux h2,
body.tmo-cart-ux .tmo-cart-shell__title,
body.tmo-cart-ux .tmo-cart-totals__title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

body.tmo-cart-ux .woocommerce-notices-wrapper:empty,
body.tmo-cart-ux #ht-ctc-chat,
body.tmo-cart-ux .ht-ctc,
body.tmo-cart-ux #wa-widget,
body.tmo-cart-ux .whatsapp-chat,
body.tmo-cart-ux .joinchat {
  display: none !important;
}

body.tmo-cart-ux .tmo-section--flush {
  padding: 0 !important;
  margin: 0 !important;
}

body.tmo-cart-ux .tmo-main {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.tmo-cart-ux .tmo-main > .tmo-section,
body.tmo-cart-ux .tmo-main > .tmo-section > article {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.tmo-cart-ux .woocommerce {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

body.tmo-cart-ux .woocommerce-notices-wrapper:not(:empty) {
  max-width: 1180px;
  margin: 0 auto;
  padding: .5rem 1.25rem 0;
}

.tmo-cart-shell {
  --tmo-cart-pad: 1.25rem;
  max-width: 1080px;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem var(--tmo-cart-pad) 1.15rem;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 6rem);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #d7e0ea;
  box-shadow: 0 18px 50px rgba(15, 39, 68, 0.06);
  animation: tmo-cart-in .4s ease both;
}

@keyframes tmo-cart-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tmo-cart-shell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
  flex: 0 0 auto;
}

.tmo-cart-shell__eyebrow {
  margin: 0 0 .1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4f8f82;
}

.tmo-cart-shell__title {
  margin: 0 !important;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem) !important;
  font-weight: 700 !important;
  color: #0f2744 !important;
}

.tmo-cart-shell__continue {
  font-size: .88rem;
  font-weight: 600;
  color: #5b6b7c;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.tmo-cart-shell__continue:hover { color: #0f2744; }

.tmo-cart-shell__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  gap: 1.1rem;
  align-items: stretch;
}

.tmo-cart-shell__items {
  min-height: 0;
  overflow: auto;
  border-top: 1px solid #d7e0ea;
  padding-right: .15rem;
}

.tmo-cart-shell__summary {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  animation: tmo-cart-rail .5s ease .06s both;
}

@keyframes tmo-cart-rail {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.tmo-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  border-top: 1px solid #d7e0ea;
  padding: 2rem 0;
}
.tmo-cart-empty__copy {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  color: #5b6b7c;
  line-height: 1.5;
}
.tmo-cart-empty .button {
  display: inline-flex !important;
  align-items: center;
  min-height: 2.85rem;
  padding: 0 1.35rem !important;
  background: #0f2744 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: background .2s ease, transform .2s ease;
}
.tmo-cart-empty .button:hover {
  background: #4f8f82 !important;
  color: #0f2744 !important;
  transform: translateY(-1px);
}

.tmo-cart-shell__summary .cart-collaterals,
.tmo-cart-shell__summary .cart_totals {
  height: auto;
}

.tmo-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
}

.tmo-cart-table td {
  border: 0;
  border-bottom: 1px solid #e6edf4;
  padding: .7rem .35rem !important;
  vertical-align: middle;
  background: transparent !important;
}

.tmo-cart-row .product-thumbnail {
  width: 88px;
  padding-left: 0 !important;
}
.tmo-cart-row .product-thumbnail img {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  object-fit: cover;
  margin: 0;
  transition: transform .25s ease;
}
.tmo-cart-row:hover .product-thumbnail img {
  transform: scale(1.03);
}

.tmo-cart-row .product-name {
  font-size: .92rem;
  font-weight: 600;
  color: #0f2744;
  line-height: 1.3;
  text-transform: none !important;
}
.tmo-cart-row .product-name a {
  color: inherit;
  text-decoration: none;
}
.tmo-cart-row .product-name a:hover { color: #4f8f82; }
.tmo-cart-row .variation {
  margin: .15rem 0 0;
  font-size: .76rem;
  font-weight: 500;
  color: #5b6b7c;
  text-transform: none !important;
}
.tmo-cart-row .variation dt,
.tmo-cart-row .variation dd {
  display: inline;
  margin: 0;
  float: none;
}
.tmo-cart-row .variation dt { font-weight: 600; }
.tmo-cart-row .variation dd p { display: inline; margin: 0; }

.tmo-cart-row__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .3rem;
}
.tmo-cart-row__price {
  font-size: .8rem;
  font-weight: 500;
  color: #5b6b7c;
}
.tmo-cart-row__remove,
.tmo-cart-row .product-remove a {
  font-size: .76rem !important;
  font-weight: 600 !important;
  color: #5b6b7c !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  line-height: inherit !important;
  text-indent: 0 !important;
  overflow: visible !important;
}
.tmo-cart-row__remove:hover,
.tmo-cart-row .product-remove a:hover {
  color: #9b2c2c !important;
  text-decoration: underline !important;
}

.tmo-cart-row .product-quantity {
  width: 132px;
  text-align: center;
}

/* Qty stepper — override Elementor 16px input padding that clipped values */
.tmo-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #d7e0ea;
  background: #fff;
  height: 2.35rem;
}
.tmo-qty .quantity {
  display: contents;
  margin: 0 !important;
}
.tmo-qty .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.tmo-qty__btn {
  width: 2.1rem;
  border: 0;
  background: #f4f7f9 !important;
  color: #0f2744 !important;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
  transition: background .15s ease;
}
.tmo-qty__btn:hover {
  background: #e6edf4 !important;
  color: #0f2744 !important;
}
.tmo-qty .qty,
.tmo-qty .tmo-qty-input,
body.tmo-cart-ux .tmo-cart-row input.qty {
  width: 2.6rem !important;
  min-width: 2.6rem !important;
  max-width: 2.6rem !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid #d7e0ea !important;
  border-right: 1px solid #d7e0ea !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #0f2744 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: none !important;
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow: none !important;
}
.tmo-qty .qty::-webkit-outer-spin-button,
.tmo-qty .qty::-webkit-inner-spin-button,
body.tmo-cart-ux .tmo-cart-row input.qty::-webkit-outer-spin-button,
body.tmo-cart-ux .tmo-cart-row input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tmo-cart-row .product-subtotal {
  width: 110px;
  text-align: right;
  font-weight: 700;
  color: #0f2744;
  white-space: nowrap;
  font-size: .95rem;
}

.tmo-cart-actions-row td {
  border-bottom: 0 !important;
  padding-top: .35rem !important;
}
.tmo-update-cart,
body.tmo-cart-ux .woocommerce-cart-form .actions .button:not(.tmo-update-cart),
body.tmo-cart-ux .woocommerce-cart-form .actions a.button {
  display: none !important;
}

/* Summary rail — compact, content-sized (no stretch gap) */
.tmo-cart-totals {
  background:
    linear-gradient(180deg, rgba(126, 184, 168, 0.12), transparent 42%),
    #f7f9fb;
  border: 1px solid #d7e0ea;
  padding: .85rem .95rem .9rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

.tmo-cart-totals__title {
  margin: 0 0 .55rem !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  color: #0f2744 !important;
}

.tmo-cart-coupon { margin: 0 0 .55rem; }
.tmo-cart-coupon__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem;
}
.tmo-cart-coupon__row .input-text {
  min-height: 2.1rem !important;
  height: 2.1rem !important;
  border: 1px solid #d7e0ea !important;
  border-radius: 0 !important;
  padding: .3rem .55rem !important;
  font-size: .82rem !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  background: #fff !important;
  color: #0f2744 !important;
  text-transform: none !important;
}
.tmo-cart-coupon__row .button {
  min-height: 2.1rem !important;
  height: 2.1rem !important;
  margin: 0 !important;
  padding: 0 .7rem !important;
  background: #0f2744 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  font-size: .75rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.tmo-cart-totals .shop_table {
  margin: 0 !important;
  border: 0 !important;
}
.tmo-cart-totals .shop_table th,
.tmo-cart-totals .shop_table td {
  border: 0 !important;
  border-bottom: 1px solid #e6edf4 !important;
  padding: .4rem 0 !important;
  background: transparent !important;
  font-size: .84rem;
  text-transform: none !important;
}
.tmo-cart-totals .shop_table th {
  font-weight: 500;
  color: #5b6b7c;
  text-align: left;
}
.tmo-cart-totals .shop_table td {
  text-align: right;
  font-weight: 600;
  color: #0f2744;
}
.tmo-cart-totals .order-total th,
.tmo-cart-totals .order-total td {
  border-bottom: 0 !important;
  padding-top: .55rem !important;
  font-size: .95rem !important;
  color: #0f2744 !important;
  font-weight: 700 !important;
}
.tmo-cart-totals .woocommerce-shipping-destination,
.tmo-cart-totals .shipping-calculator-button {
  font-size: .72rem;
  font-weight: 500;
  color: #5b6b7c;
  text-transform: none !important;
}

.tmo-cart-totals .wc-proceed-to-checkout {
  padding: .65rem 0 .2rem !important;
  margin: 0 !important;
}
.tmo-cart-checkout-btn,
body.tmo-cart-ux .checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 2.65rem !important;
  background: #4f8f82 !important;
  color: #0f2744 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background .2s ease, transform .2s ease;
}
.tmo-cart-checkout-btn:hover,
body.tmo-cart-ux .checkout-button:hover {
  background: #3f7a6f !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.tmo-cart-totals__note {
  margin: .25rem 0 0;
  font-size: .68rem;
  color: #5b6b7c;
  text-align: center;
  line-height: 1.3;
}

body.tmo-cart-ux .cross-sells,
body.tmo-cart-ux .cart-collaterals .cross-sells {
  display: none !important;
}

@media (max-width: 900px) {
  body.tmo-cart-ux {
    overflow: auto;
  }
  body.tmo-cart-ux .tmo-main {
    justify-content: flex-start;
    align-items: stretch;
  }
  .tmo-cart-shell {
    max-height: none;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-bottom: 5.5rem;
  }
  .tmo-cart-shell__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tmo-cart-shell__items {
    overflow: visible;
    max-height: none;
  }
  .tmo-cart-shell__summary {
    position: sticky;
    bottom: 0;
    z-index: 20;
  }
  .tmo-cart-totals {
    border-left: 0;
    border-right: 0;
    box-shadow: 0 -10px 30px rgba(15, 39, 68, .08);
  }
}

@media (max-width: 640px) {
  .tmo-cart-row .product-subtotal {
    display: none;
  }
  .tmo-cart-shell__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .tmo-cart-row .product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
  }
}
