/* Teuton commerce UI — cart, classic checkout, account and transactional states. */
:root {
  --tsco-brand: #4b002d;
  --tsco-brand-dark: #30001d;
  --tsco-primary: #1769e0;
  --tsco-primary-hover: #0e57c0;
  --tsco-ink: #25252a;
  --tsco-muted: #6b6e76;
  --tsco-line: #dfe2e7;
  --tsco-line-soft: #eceef1;
  --tsco-surface: #fff;
  --tsco-surface-soft: #f7f7f8;
  --tsco-focus: 0 0 0 3px rgba(23, 105, 224, .22);
  --tsco-radius: 14px;
  --tsco-field-radius: 9px;
  --tsco-shadow: 0 12px 34px rgba(29, 20, 26, .07);
}

body.woocommerce-cart .neve-main > .shop-container,
body.woocommerce-checkout .neve-main > .shop-container,
body.woocommerce-account .neve-main > .shop-container { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }

body.woocommerce-cart .ts-page-heading,
body.woocommerce-checkout .ts-page-heading { margin-bottom: clamp(24px, 4vw, 48px); }

body.woocommerce-cart button,
body.woocommerce-cart .button,
body.woocommerce-checkout button,
body.woocommerce-checkout .button {
  min-height: 46px;
  border-radius: var(--tsco-field-radius);
  font-family: Khand, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
}

body.woocommerce-cart .button.alt,
body.woocommerce-checkout .button.alt,
body.woocommerce-cart .checkout-button,
body.woocommerce-checkout #place_order {
  color: #fff !important;
  border-color: var(--tsco-primary) !important;
  background: var(--tsco-primary) !important;
}
body.woocommerce-cart .button.alt:hover,
body.woocommerce-checkout .button.alt:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-checkout #place_order:hover { background: var(--tsco-primary-hover) !important; }

.ts-button--secondary,
body.woocommerce-cart .ts-button--secondary,
body.woocommerce-checkout .ts-button--secondary {
  color: var(--tsco-brand) !important;
  border: 1px solid var(--tsco-brand) !important;
  background: #fff !important;
}
.ts-button--secondary:hover { background: #faf5f8 !important; }

/* Cart product list */
body.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: clamp(28px, 4vw, 52px); align-items: start; }
body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart .ts-page-heading,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .return-to-shop { grid-column: 1; }
body.woocommerce-cart .cart-collaterals { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
body.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; }

.ts-cart-list { width: 100%; }
.ts-cart-list__head,
.ts-cart-product { display: grid; grid-template-columns: minmax(330px, 1fr) 96px 84px 108px; gap: 14px; align-items: center; }
.ts-cart-list__head { padding: 0 42px 12px 0; color: var(--tsco-muted); border-bottom: 1px solid var(--tsco-line); font-size: .78rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.ts-cart-list__head span:not(:first-child) { text-align: right; }
.ts-cart-product { position: relative; padding: 24px 42px 24px 0; border-bottom: 1px solid var(--tsco-line-soft); }
.ts-cart-product__main { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "image details" "specs specs"; gap: 12px 18px; align-items: start; min-width: 0; }
.ts-cart-product__image { grid-area: image; }
.ts-cart-product__details { grid-area: details; min-width: 0; }
.ts-cart-product__specs { grid-area: specs; min-width: 0; padding-top: 2px; }
.ts-cart-product__image img { display: block; width: 104px; height: 104px; object-fit: contain; border-radius: 10px; background: var(--tsco-surface-soft); }
.ts-cart-product__name { margin: 0 0 7px; color: var(--tsco-ink); font-family: Khand, sans-serif; font-size: 1.18rem; font-weight: 600; line-height: 1.22; }
.ts-cart-product__name a { color: inherit; text-decoration: none; }
.ts-cart-product .variation { display: grid; grid-template-columns: minmax(118px, 145px) minmax(0, 1fr); gap: 5px 12px; margin: 0; color: var(--tsco-muted); font-size: .84rem; line-height: 1.4; }
.ts-checkout-summary .variation { display: grid; grid-template-columns: minmax(108px, max-content) minmax(0, 1fr); gap: 3px 8px; margin: 5px 0 0; color: var(--tsco-muted); font-size: .82rem; line-height: 1.35; }
.ts-cart-product .variation dt,
.ts-cart-product .variation dd,
.ts-checkout-summary .variation dt,
.ts-checkout-summary .variation dd { display: inline; float: none; margin: 0; padding: 0; }
.ts-cart-product .variation dt,
.ts-checkout-summary .variation dt { color: #545760; font-weight: 600; }
.ts-cart-product .variation dd,
.ts-checkout-summary .variation dd { margin-left: 0; }
.ts-cart-product .variation dd,
.ts-checkout-summary .variation dd { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.ts-cart-product .variation p,
.ts-checkout-summary .variation p { display: inline; margin: 0; }
.ts-cart-product__unit,
.ts-cart-product__subtotal { text-align: right; white-space: nowrap; color: var(--tsco-ink); }
.ts-cart-product__quantity { display: flex; justify-content: flex-end; }
.ts-cart-product__quantity .quantity { width: 78px; }
.ts-cart-product__quantity input.qty { box-sizing: border-box !important; width: 100% !important; height: 44px !important; min-height: 44px !important; padding: 6px 8px !important; text-align: center; border: 1px solid var(--tsco-line); border-radius: 8px; background: #fff; }
.ts-cart-product__quantity input.qty:focus { border-color: var(--tsco-primary); box-shadow: var(--tsco-focus); outline: 0; }
.ts-cart-product__remove { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
.ts-cart-product__remove .remove { display: grid; width: 30px; height: 30px; place-items: center; color: #8a4a50 !important; border-radius: 50%; background: transparent; font-size: 24px; text-decoration: none; }
.ts-cart-product__remove .remove:hover { color: #fff !important; background: #a21d2f; }
.ts-cart-product__mobile-label { display: none; }

.ts-cart-actions { min-height: 1px; margin-top: 8px; }
.ts-cart-update { opacity: .78; }
html.js .ts-cart-update { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

body.woocommerce-cart .cart_totals.ts-cart-summary { width: 100%; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--tsco-line); border-radius: var(--tsco-radius); background: #fff; box-shadow: var(--tsco-shadow); }
.ts-cart-summary h2 { margin: 0 0 18px !important; color: var(--tsco-brand); font-size: clamp(1.45rem, 2vw, 1.75rem) !important; }
.ts-cart-summary__rows { margin: 0; }
.ts-cart-summary__rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 12px 0; border-top: 1px solid var(--tsco-line-soft); }
.ts-cart-summary__rows > div:first-child { border-top: 0; }
.ts-cart-summary dt { color: var(--tsco-muted); font-weight: 500; }
.ts-cart-summary dd { margin: 0; color: var(--tsco-ink); text-align: right; font-weight: 600; }
.ts-cart-summary__shipping dd { max-width: 185px; color: var(--tsco-muted); font-size: .9rem; font-weight: 400; line-height: 1.35; }
.ts-cart-summary__subtotal { margin-top: 4px; padding-top: 17px !important; border-top-color: var(--tsco-line) !important; }
.ts-cart-summary__subtotal dt,
.ts-cart-summary__subtotal dd { color: var(--tsco-ink); font-size: 1.06rem; font-weight: 700; }
.ts-cart-summary .wc-proceed-to-checkout { padding: 18px 0 10px; }
.ts-cart-summary .checkout-button { display: flex !important; min-height: 52px; align-items: center; justify-content: center; margin: 0 !important; font-size: 1.1rem !important; }
.ts-cart-summary__continue { display: flex; min-height: 44px; padding: 7px; align-items: center; justify-content: center; gap: 6px; color: var(--tsco-brand); text-align: center; font-weight: 600; text-decoration: none; }
.ts-cart-summary__continue:hover { color: var(--tsco-brand-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Checkout structure */
body.woocommerce-checkout form.checkout.ts-checkout { display: block !important; width: 100% !important; }
.ts-checkout-progress { max-width: 720px; margin: 0 auto clamp(28px, 5vw, 52px); }
.ts-checkout-progress ol { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.ts-checkout-progress ol::before { position: absolute; z-index: 0; top: 17px; right: 16.666%; left: 16.666%; height: 2px; content: ""; background: var(--tsco-line); }
.ts-checkout-progress li { position: relative; text-align: center; }
.ts-checkout-progress li::before { position: absolute; z-index: 0; top: 17px; left: -50%; width: 100%; height: 2px; content: ""; background: transparent; }
.ts-checkout-progress li:first-child::before { display: none; }
.ts-checkout-progress li.is-complete::before,
.ts-checkout-progress li.is-active::before { background: var(--tsco-primary); }
.ts-checkout-progress button { position: relative; z-index: 1; display: inline-flex; width: 100%; min-height: 0; padding: 0 6px; flex-direction: column; align-items: center; gap: 6px; color: var(--tsco-muted); border: 0; background: transparent; font-family: Roboto, sans-serif; font-size: .86rem; font-weight: 600; opacity: 1; }
.ts-checkout-progress button:disabled { cursor: default; opacity: 1; }
.ts-checkout-progress button .ts-checkout-progress__number { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--tsco-line); border-radius: 50%; background: #fff; }
.ts-checkout-progress__label { padding: 0 5px; background: #fff; }
.ts-checkout-progress li.is-active button,
.ts-checkout-progress li.is-complete button { color: var(--tsco-ink); }
.ts-checkout-progress li.is-active button .ts-checkout-progress__number { z-index: 2; color: #fff !important; border-color: var(--tsco-primary); background: var(--tsco-primary); -webkit-text-fill-color: #fff; }
.ts-checkout-progress li.is-complete button .ts-checkout-progress__number { color: var(--tsco-primary); border-color: var(--tsco-primary); }
.ts-checkout-progress button:focus-visible { border-radius: 6px; box-shadow: var(--tsco-focus); outline: 0; }

.ts-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 390px); gap: clamp(34px, 6vw, 76px); align-items: start; }
.ts-checkout-main { min-width: 0; }
.ts-checkout-step { animation: tsco-fade .18s ease; }
.ts-checkout-step[hidden] { display: none !important; }
@keyframes tsco-fade { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.ts-checkout-step__header { margin-bottom: 26px; }
.ts-checkout-step__eyebrow { margin: 0 0 2px; color: var(--tsco-primary); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ts-checkout-step__header h2 { margin: 0 0 7px; color: var(--tsco-brand); font-size: clamp(1.65rem, 3vw, 2rem); }
.ts-checkout-step__header h2[tabindex="-1"]:focus { outline: 0; box-shadow: none; }
.ts-checkout-step__header p:last-child { max-width: 650px; margin: 0; color: var(--tsco-muted); }
.ts-checkout-step__actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--tsco-line-soft); }
.ts-checkout-step__actions--end { justify-content: flex-end; }
.ts-checkout-step__actions--back-only { width: max-content; border: 0; }
.ts-checkout-next { min-width: 210px; }

body.woocommerce-checkout #customer_details { display: block; }
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
body.woocommerce-checkout #customer_details .col-2 { margin-top: 12px; }
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3 { margin: 0 0 20px; color: var(--tsco-ink); font-size: 1.25rem; }
body.woocommerce-checkout .woocommerce-additional-fields { margin-top: 24px; }
body.woocommerce-checkout .form-row { margin-bottom: 16px; }
body.woocommerce-checkout .form-row label { display: block; margin-bottom: 6px; color: var(--tsco-ink); font-size: .88rem; font-weight: 600; }
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .select2-container .select2-selection--single { min-height: 48px; border: 1px solid var(--tsco-line); border-radius: var(--tsco-field-radius); background: #fff; box-shadow: none; }
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select { padding: 10px 13px; }
body.woocommerce-checkout .select2-container .select2-selection__rendered { line-height: 46px; }
body.woocommerce-checkout .select2-container .select2-selection__arrow { height: 46px; }
body.woocommerce-checkout .form-row input:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .select2-container--focus .select2-selection--single { border-color: var(--tsco-primary); box-shadow: var(--tsco-focus); outline: 0; }
body.woocommerce-checkout .woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce-invalid .select2-selection { border-color: #b3261e !important; }
body.woocommerce-checkout #ship-to-different-address { margin: 14px 0; font-size: 1rem; }
body.woocommerce-checkout #ship-to-different-address label {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  line-height: 1.35;
}
body.woocommerce-checkout #ship-to-different-address input[type="checkbox"] {
  position: static;
  width: 20px;
  height: 20px;
  margin: 0 !important;
}
body.woocommerce-checkout #ship-to-different-address label > span { min-width: 0; }

.ts-checkout-shipping-methods .ts-shipping-table { width: 100%; border: 0; }
.ts-checkout-shipping-methods .ts-shipping-table tbody,
.ts-checkout-shipping-methods .ts-shipping-table tr,
.ts-checkout-shipping-methods .ts-shipping-table td { border: 0 !important; }
.ts-checkout-shipping-methods .shipping > th { display: none; }
.ts-checkout-shipping-methods .shipping > td { display: block; width: 100%; padding: 0; border: 0; }
.ts-checkout-shipping-methods #shipping_method { display: grid; gap: 12px; margin: 0; padding: 0; }
.ts-checkout-shipping-methods #shipping_method li { position: relative; margin: 0; padding: 0; list-style: none; }
.ts-checkout-shipping-methods #shipping_method li > input { position: absolute; top: 0; bottom: 0; left: 18px; width: 18px; height: 18px; margin: auto 0 !important; transform: none; accent-color: var(--tsco-primary); }
.ts-checkout-shipping-methods #shipping_method li > label { display: flex; min-height: 66px; margin: 0; padding: 15px 18px 15px 52px; align-items: center; justify-content: space-between; gap: 16px; color: var(--tsco-ink); border: 1px solid var(--tsco-line); border-radius: 11px; background: #fff; cursor: pointer; font-weight: 600; }
body.woocommerce-checkout .ts-checkout-shipping-methods #shipping_method li > label { display: flex !important; width: 100% !important; }
.ts-checkout-shipping-methods #shipping_method li > input:checked + label { border-color: var(--tsco-primary); background: #f5f9ff; box-shadow: inset 0 0 0 1px var(--tsco-primary); }
.ts-checkout-shipping-methods #shipping_method li > input:focus-visible + label { box-shadow: var(--tsco-focus); }
.ts-checkout-shipping-methods #shipping_method .amount { margin-left: auto; white-space: nowrap; }
.ts-checkout-shipping-methods .woocommerce-shipping-contents,
.ts-checkout-shipping-methods .woocommerce-shipping-destination,
.ts-checkout-shipping-methods .woocommerce-shipping-calculator { color: var(--tsco-muted); font-size: .88rem; }

/* Payment cards and checkout coupon */
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order { position: static; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.woocommerce-checkout #payment { width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.woocommerce-checkout #payment ul.payment_methods { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method { position: relative; margin: 0; padding: 0; border: 1px solid var(--tsco-line); border-radius: 11px; background: #fff; overflow: hidden; }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input { position: absolute; z-index: 2; top: 0; bottom: 0; left: 18px; width: 18px; height: 18px; margin: auto 0 !important; transform: none; accent-color: var(--tsco-primary); }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> div.payment_box) > input:checked { top: 23px; bottom: auto; margin: 0 !important; }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label { display: flex; width: 100%; min-height: 64px; margin: 0; padding: 14px 18px 14px 52px; align-items: center; gap: 10px; color: var(--tsco-ink); cursor: pointer; font-weight: 600; line-height: 1.25; }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img { width: auto; max-width: 112px; max-height: 28px; margin-left: auto; object-fit: contain; flex: 0 0 auto; }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label .ts-card-logos { display: inline-flex; margin-left: auto; align-items: center; gap: 7px; flex: 0 0 auto; }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label .ts-card-logos img { width: 42px; height: auto; max-width: 42px; max-height: 27px; margin: 0; border-radius: 3px; }
body.woocommerce-checkout #payment li.wc_payment_method:has(> input:checked) { border-color: var(--tsco-primary); background: #f5f9ff; box-shadow: inset 0 0 0 1px var(--tsco-primary); }
body.woocommerce-checkout #payment li.wc_payment_method > input:focus-visible + label { box-shadow: var(--tsco-focus); }
body.woocommerce-checkout #payment div.payment_box { margin: 0; padding: 0 18px 20px 52px; color: #4c5260; background: transparent; font-size: .92rem; line-height: 1.5; }
body.woocommerce-checkout #payment div.payment_box::before { display: none; }
body.woocommerce-checkout #payment .place-order { margin-top: 24px; padding: 22px 0 0; border-top: 1px solid var(--tsco-line); }
body.woocommerce-checkout #place_order { float: none; width: 100%; min-height: 54px; margin-top: 16px; font-size: 1.12rem !important; }

.ts-payment-discount-badge { display: inline-flex; min-height: 24px; padding: 3px 8px; align-items: center; color: #7a1730; border: 1px solid #e1a7b6; border-radius: 999px; background: #fff3f6; font-family: Roboto, sans-serif; font-size: .72rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.ts-payment-discount-note { margin: 0 0 8px; color: #7a1730; font-weight: 700; }

.ts-checkout-coupon { margin-bottom: 22px; text-align: left; }
.ts-checkout-coupon__toggle { display: inline-flex; width: auto; min-height: 44px; margin: 0; padding: 0 !important; align-items: center; justify-content: flex-start; color: var(--tsco-brand) !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-family: Roboto, sans-serif; font-size: .9rem; font-weight: 600; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ts-checkout-coupon__toggle:hover { color: var(--tsco-brand-dark) !important; }
.ts-checkout-coupon__toggle:focus-visible { border-radius: 3px; outline: 0; box-shadow: var(--tsco-focus) !important; }
.ts-checkout-coupon__panel { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 10px; box-sizing: border-box; width: 100%; margin-top: 10px; padding: 14px; border: 1px solid var(--tsco-line); border-radius: 11px; background: var(--tsco-surface-soft); }
.ts-checkout-coupon__panel[hidden] { display: none !important; }
body.woocommerce-checkout .ts-checkout-coupon__panel input,
body.woocommerce-checkout .ts-checkout-coupon__panel button { box-sizing: border-box; width: 100%; height: 48px; min-height: 48px; margin: 0; }
body.woocommerce-checkout .ts-checkout-coupon__panel input { padding: 10px 13px; border: 1px solid var(--tsco-line); border-radius: var(--tsco-field-radius); background: #fff; }
body.woocommerce-checkout .ts-checkout-coupon__panel button.button { color: var(--tsco-brand) !important; border: 1px solid var(--tsco-brand) !important; background: #fff !important; }
body.woocommerce-checkout .ts-checkout-coupon__panel button.button:hover { background: #faf5f8 !important; }
.ts-checkout-coupon__status { display: none; grid-column: 1 / -1; margin: 0; font-size: .84rem; line-height: 1.4; }
.ts-checkout-coupon__status:not(:empty) { display: block; }
.ts-checkout-coupon__status.is-error { color: #9b1c2c; }
.ts-checkout-coupon__status.is-success { color: #1f6b43; }

body.woocommerce-checkout input[type="checkbox"],
body.woocommerce-checkout input[type="radio"],
body.woocommerce-cart input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--tsco-primary); }
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin: 1rem 0; }
body.woocommerce-checkout .woocommerce-form__label-for-checkbox,
body.woocommerce-checkout .form-row .checkbox { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; }

body.woocommerce-checkout .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce-Price-amount { font-family: Roboto, sans-serif; }

/* Sticky checkout summary */
.ts-checkout-summary { position: sticky; top: 94px; padding: 26px; border: 1px solid var(--tsco-line); border-radius: var(--tsco-radius); background: #fff; box-shadow: var(--tsco-shadow); }
.ts-checkout-summary > h2 { margin: 0 0 18px; color: var(--tsco-brand); font-size: 1.5rem; }
.ts-checkout-summary__items { border-bottom: 1px solid var(--tsco-line); }
.ts-checkout-summary__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 13px 0; font-size: .9rem; }
.ts-checkout-summary__item:first-child { padding-top: 0; }
.ts-checkout-summary__product strong { color: var(--tsco-ink); font-weight: 600; }
.ts-checkout-summary__quantity { margin-left: 4px; color: var(--tsco-muted); }
.ts-checkout-summary__price { white-space: nowrap; color: var(--tsco-ink); font-weight: 600; }
.ts-checkout-summary__totals { margin: 10px 0 0; }
.ts-checkout-summary__totals > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 7px 0; }
.ts-checkout-summary__totals dt { color: var(--tsco-muted); font-weight: 400; }
.ts-checkout-summary__totals dd { margin: 0; color: var(--tsco-ink); text-align: right; font-weight: 600; }
.ts-checkout-summary__grand-total { margin-top: 6px; padding-top: 14px !important; border-top: 1px solid var(--tsco-line); }
.ts-checkout-summary__grand-total dt { color: var(--tsco-ink); font-size: 1.05rem; font-weight: 700; }
.ts-checkout-summary__grand-total dd .amount { font-size: 1.25rem; font-weight: 700; }
.ts-checkout-summary__grand-total dd small { display: block; margin-top: 2px; color: var(--tsco-muted); font-size: .76rem; font-weight: 400; }
.ts-checkout-summary__grand-total dd small .amount { font-size: inherit; font-weight: inherit; }
.ts-checkout-summary__total-value--final,
.ts-checkout-summary__tax--final { display: none !important; }
.ts-checkout[data-ts-current-step="3"] .ts-checkout-summary__fee--swish { display: grid; }
.ts-checkout:not([data-ts-current-step="3"]) .ts-checkout-summary__fee--swish { display: none; }
.ts-checkout[data-ts-current-step="3"] .ts-checkout-summary__total-value--before-payment,
.ts-checkout[data-ts-current-step="3"] .ts-checkout-summary__tax--before-payment { display: none !important; }
.ts-checkout[data-ts-current-step="3"] .ts-checkout-summary__total-value--final { display: inline !important; }
.ts-checkout[data-ts-current-step="3"] .ts-checkout-summary__tax--final { display: block !important; }
.ts-checkout-summary-toggle { display: none; }

.ts-checkout-errors:not(:empty) { margin-bottom: 22px; padding: 13px 15px; color: #7a1712; border: 1px solid #e4aaa6; border-radius: 9px; background: #fff5f4; }
body.woocommerce-checkout .woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-message { border-radius: 9px; box-shadow: none; }

/* Shared account/order surfaces */
body.woocommerce-account .woocommerce-MyAccount-navigation ul { border: 1px solid var(--tsco-line); border-radius: 12px; overflow: hidden; }
body.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--tsco-line-soft); }
body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 12px 15px; color: var(--tsco-ink); text-decoration: none; }
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { color: var(--tsco-brand); background: #faf5f8; font-weight: 700; }
body.woocommerce-account table.shop_table,
body.woocommerce-order-received table.shop_table { border-color: var(--tsco-line); border-radius: 10px; }

@media (max-width: 1100px) {
  .ts-cart-list__head { display: none; }
  .ts-cart-product { grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; padding: 18px; border: 1px solid var(--tsco-line); border-radius: 12px; background: #fff; }
  .ts-cart-product__main { grid-column: 1 / -1; grid-template-columns: 82px minmax(0, 1fr); grid-template-areas: "image details" "specs specs"; }
  .ts-cart-product__image img { width: 82px; height: 82px; }
  .ts-cart-product__unit,
  .ts-cart-product__quantity,
  .ts-cart-product__subtotal { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; text-align: right; }
  .ts-cart-product__unit { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--tsco-line-soft); }
  .ts-cart-product__quantity { grid-column: 1; }
  .ts-cart-product__subtotal { grid-column: 2; }
  .ts-cart-product__mobile-label { display: inline; color: var(--tsco-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; }
  .ts-cart-product__remove { top: 11px; right: 11px; transform: none; }
  .ts-cart-product__details { padding-right: 24px; }
}

@media (max-width: 1023px) {
  body.woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
  body.woocommerce-cart .woocommerce-notices-wrapper,
  body.woocommerce-cart .ts-page-heading,
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-empty,
  body.woocommerce-cart .return-to-shop,
  body.woocommerce-cart .cart-collaterals { grid-column: 1; grid-row: auto; }
  body.woocommerce-cart .cart-collaterals { width: 100%; max-width: 620px; justify-self: end; }
  .ts-checkout-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; }
}

@media (max-width: 900px) {
  body.woocommerce-cart .neve-main > .shop-container,
  body.woocommerce-checkout .neve-main > .shop-container { padding-inline: 16px; }
  .ts-cart-product .variation { grid-template-columns: minmax(108px, 132px) minmax(0, 1fr); gap: 5px 10px; }
  body.woocommerce-cart .cart-collaterals { max-width: none; }

  .ts-checkout-progress { margin-bottom: 22px; }
  .ts-checkout-progress button { flex-direction: column; gap: 3px; padding: 0 5px; background: transparent; font-size: .72rem; }
  .ts-checkout-progress li::before { top: 17px; }
  .ts-checkout-layout { display: flex; flex-direction: column; gap: 22px; }
  .ts-checkout-main { width: 100%; }
  .ts-checkout-summary-toggle { display: flex; width: 100%; min-height: 62px; margin-bottom: 22px; padding: 10px 14px; align-items: center; justify-content: space-between; color: var(--tsco-ink); border: 1px solid var(--tsco-line); border-radius: 11px; background: var(--tsco-surface-soft); font-family: Roboto, sans-serif; text-align: left; }
  .ts-checkout-summary-toggle span:first-child { display: grid; }
  .ts-checkout-summary-toggle small { color: var(--tsco-primary); font-size: .78rem; }
  .ts-checkout-summary-toggle__amount { white-space: nowrap; font-weight: 700; }
  .ts-checkout-summary-toggle__amount .woocommerce-Price-amount { display: inline !important; white-space: nowrap; }
  .ts-checkout-summary-toggle__amount .woocommerce-Price-currencySymbol { display: inline !important; }
  .ts-checkout-summary { position: static; display: none; width: 100%; padding: 20px; box-shadow: none; }
  .ts-checkout-summary.is-open { display: block; }
  .ts-checkout[data-ts-current-step="3"] .ts-checkout-summary-toggle { display: none; }
  .ts-checkout[data-ts-current-step="3"] .ts-checkout-summary { display: block; }
  .ts-checkout-step__actions { align-items: stretch; }
  .ts-checkout-step__actions .button { flex: 1; }
  .ts-checkout-next { min-width: 0; }
  .ts-checkout-step__actions--back-only { width: 100%; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--tsco-line-soft); }
  .ts-checkout-step__actions--back-only .button { max-width: 160px; }
}

@media (max-width: 430px) {
  .ts-cart-product__main { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .ts-cart-product__image img { width: 68px; height: 68px; }
  .ts-cart-product { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 8px; padding: 16px; }
  .ts-cart-product__main { padding-bottom: 14px; border-bottom: 1px solid var(--tsco-line-soft); }
  .ts-cart-product__unit,
  .ts-cart-product__quantity,
  .ts-cart-product__subtotal {
    grid-column: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    text-align: left;
  }
  .ts-cart-product__quantity { align-items: center; }
  .ts-cart-product__subtotal { align-items: flex-end; text-align: right; }
  .ts-cart-product__unit .amount,
  .ts-cart-product__subtotal .amount { font-size: .94rem; white-space: nowrap; }
  .ts-cart-product__quantity .quantity { width: 66px; }
  .ts-cart-product__quantity input.qty { height: 42px !important; min-height: 42px !important; }
  .ts-cart-product .variation { grid-template-columns: minmax(116px, 138px) minmax(0, 1fr); gap: 5px 9px; }
  .ts-cart-summary__rows > div { gap: 12px; }
  body.woocommerce-cart .cart_totals.ts-cart-summary { padding: 20px; }
  .ts-checkout-step__actions { flex-direction: column-reverse; }
  .ts-checkout-step__actions--end { flex-direction: column; }
  .ts-checkout-coupon__panel { grid-template-columns: 1fr; }
  .ts-checkout-coupon__status { grid-column: 1; }
  body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label { flex-wrap: wrap; padding-right: 14px; }
  body.woocommerce-checkout #payment ul.payment_methods li.payment_method_swish:has(> div.payment_box) > input:checked { top: 36px; }
  .ts-payment-discount-badge { order: 3; }
}

@media (max-width: 360px) {
  .ts-cart-product .variation { grid-template-columns: 1fr; gap: 1px; }
  .ts-cart-product .variation dt:not(:first-child) { margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-checkout-step { animation: none; }
}
