/* V4E - Based on v3 checkout; page templates load this after inherited head assets.
   Native form states, validation, carriers, payment widgets and AJAX own behaviour.
   No template/script changes. Shared header/campaign/fonts have separate owners. */
body#cart, body#checkout {
  --lp-v25-ink: #22262b;
  --lp-v25-muted: #667078;
  --lp-v25-rule: #e7e3dc;
  --lp-v25-grout: #f2eee7;
  --lp-v25-action: #b84510;
  background: #fff;
  color: var(--lp-v25-ink);
  font-family: 'Manrope', Arial, sans-serif;
  line-height: 1.5;
}
body#cart #wrapper, body#checkout #wrapper { background: #fff; }
body#cart .lm-cart-header, body#checkout .lm-checkout-intro {
  padding: 24px 0;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}
body#cart .lm-cart-header .page-heading, body#checkout .lm-checkout-intro h1 {
  margin: 0 0 16px;
  color: var(--lp-v25-ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: none;
  overflow-wrap: anywhere;
}
/* Flat, clearly separated surfaces in place of nested rounded/shadow cards. */
body#cart .cart-grid .card, body#checkout .lm-checkout-grid > .cart-grid-right .card,
body#checkout .checkout-step:not(.-unreachable) {
  border: 1px solid var(--lp-v25-rule) !important;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: var(--lp-v25-ink);
}
body#cart .lm-card-heading, body#checkout .lm-card-heading {
  padding: 16px 24px;
  border-bottom: 1px solid var(--lp-v25-rule);
  background: #fff;
  color: var(--lp-v25-ink);
  border-radius: 10px;
  box-shadow: none;
}
body#cart .lm-card-heading :is(h2, h3), body#checkout .lm-card-heading :is(h2, h3) {
  color: inherit;
  font-size: 22px;
  line-height: 1.3;
  text-transform: none;
}
/* Existing progress labels/states: no step count, order or reachability changes. */
body#cart .lm-checkout-progress, body#checkout .checkout-step-order {
  padding: 16px 0;
  border-block: 1px solid var(--lp-v25-rule);
  border-radius: 10px;
  box-shadow: none;
  background: #fff;
}
body#cart .lm-checkout-progress span { color: var(--lp-v25-muted); }
body#cart .lm-checkout-progress span.is-active { color: var(--lp-v25-ink); }
body#cart .lm-checkout-progress > span > b,
body#checkout .step-part .position {
  background: var(--lp-v25-grout) !important;
  color: var(--lp-v25-muted) !important;
}
body#cart .lm-checkout-progress > span.is-active > b,
body#checkout .step-part.current .position,
body#checkout .step-part.complete .position {
  background: var(--lp-v25-ink) !important;
  color: #fff !important;
}
body#checkout .step-part .line { background: var(--lp-v25-rule); }
body#checkout .step-part.complete .line { background: var(--lp-v25-ink); }
body#checkout .step-part .part-text span { color: var(--lp-v25-muted) !important; }
body#checkout .step-part.current .part-text span { color: var(--lp-v25-ink) !important; }
body#checkout .step-part:focus-within { outline: 2px solid var(--lp-v25-ink); outline-offset: 3px; }
/* Complete image and name. No cropping, colour blending or derived tile coverage. */
body#cart .product-line-grid { padding-block: 24px; border-bottom: 1px solid var(--lp-v25-rule); }
body#cart .product-line-grid-left { min-width: 0; }
body#cart .product-line-grid .product-image {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  padding: 8px;
  background: var(--lp-v25-grout);
  border: 0;
  border-radius: 10px;
}
body#cart .product-line-grid .product-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
body#cart .product-line-grid .product-name,
body#cart .product-line-grid .product-name a {
  height: auto;
  max-height: none;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  color: var(--lp-v25-ink);
  font-size: 18px;
  line-height: 1.4;
}
body#cart .product-line-grid .product-line-info { color: var(--lp-v25-muted); font-size: 14px; line-height: 1.5; }
body#cart .product-line-grid .product-line-grid-body { min-width: 0; }
body#cart .product-line-grid .product-prices { margin-top: 8px; line-height: 1.6; overflow-wrap: anywhere; }
body#cart .product-line-grid .regular-price { color: var(--lp-v25-muted); }
body#cart .product-line-grid .price { color: var(--lp-v25-ink) !important; }
body#cart .product-line-grid-right.product-line-actions {
  gap: 12px 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--lp-v25-grout);
}
body#cart .product-quantity-touchspin :is(button, .btn),
body#cart input.js-cart-line-product-quantity { min-height: 48px; border-color: var(--lp-v25-rule); background: #fff; color: var(--lp-v25-ink); }
body#cart input.js-cart-line-product-quantity { font-size: 16px; }
body#cart .price-col { min-width: 0; overflow-wrap: anywhere; }
body#cart .price-col .product-price { font-size: 22px; line-height: 1.4; font-variant-numeric: tabular-nums; }
body#cart a.remove-from-cart { color: var(--lp-v25-muted); text-underline-offset: 3px; }
/* Totals stay authoritative, with balanced wrapping of labels and amounts. */
body#cart .cart-summary-line, body#checkout .cart-summary-line {
  gap: 8px 16px;
  padding-block: 12px;
  border-color: var(--lp-v25-rule);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body#cart .cart-summary-line .value, body#checkout .cart-summary-line .value {
  max-width: 100%;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
body#cart .cart-total, body#checkout .cart-total { border-top: 1px solid var(--lp-v25-rule); padding-block: 16px; }
body#cart .cart-total .value, body#checkout .cart-total .value {
  color: var(--lp-v25-ink) !important;
  font-size: 26px;
  line-height: 1.3;
}
body#cart .lm-summary-confidence, body#checkout .lm-summary-confidence {
  background: var(--lp-v25-grout);
  color: var(--lp-v25-muted);
  border-radius: 10px;
  box-shadow: none;
}
/* Only existing basket/guest/continue actions: payment module buttons unstyled. */
body#cart .cart-detailed-actions a.btn.btn-primary,
body#checkout #checkout-login-form > .text-center .js-switch-personal-form,
body#checkout .checkout-step .btn.continue {
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid var(--lp-v25-action) !important;
  border-radius: 999px;
  background: var(--lp-v25-action) !important;
  color: var(--lp-v25-ink) !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
body#cart .cart-detailed-actions a.btn.btn-primary:hover,
body#checkout .checkout-step .btn.continue:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Labels, inputs and feedback retain native visibility, semantics and requiredness. */
body#checkout :is(#checkout-personal-information-step, #checkout-addresses-step) .form-control-label { color: var(--lp-v25-ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
body#checkout :is(#checkout-personal-information-step, #checkout-addresses-step) .form-control:not(textarea):not([type='hidden']) { min-height: 52px; }
body#checkout :is(#checkout-personal-information-step, #checkout-addresses-step) .form-control {
  max-width: 100%;
  border-color: #827c74;
  border-radius: 4px;
  background: #fff;
  color: var(--lp-v25-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
body#checkout :is(#checkout-personal-information-step, #checkout-addresses-step) .form-control[aria-invalid='true'],
body#checkout :is(#checkout-personal-information-step, #checkout-addresses-step) .has-error .form-control { border-color: #a5281b; border-width: 2px; }
body#checkout .checkout-step :is(.help-block, .invalid-feedback, .alert) { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
body#cart :is(a, button, input, summary):focus-visible,
body#checkout :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--lp-v25-ink) !important;
  outline-offset: 3px;
}
/* Existing logo/hook/widget remain present, allowed to wrap at phone/zoom widths. */
body#checkout .checkout-header-version { background: #fff; border-bottom: 1px solid var(--lp-v25-rule); box-shadow: none; }
body#checkout .checkout-header-version .header-wrapper { flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; }
body#checkout .checkout-header-version .header-logo { min-width: 0; }
body#checkout .checkout-header-version .header-logo img { max-width: 100%; height: auto; }
body#checkout .checkout-header-version .lp-cohead { min-width: 0; white-space: normal; color: var(--lp-v25-ink); }
body#checkout .checkout-header-version .lp-cohead * { white-space: normal; }
body#checkout .checkout-header-version .lp-cohead small { color: var(--lp-v25-muted); }
body#checkout .checkout-header-right { min-width: 0; max-width: 100%; }
@media (max-width: 767.98px) {
  body#cart .lm-cart-header, body#checkout .lm-checkout-intro { padding: 16px 0; }
  body#cart .lm-card-heading, body#checkout .lm-card-heading { padding: 16px; }
  body#cart .product-line-grid .product-image { flex-basis: 80px; width: 80px; height: 80px; }
  body#cart .product-line-grid .product-name, body#cart .product-line-grid .product-name a { font-size: 16px; }
  body#cart .product-line-grid-right.product-line-actions { margin-top: 16px; padding: 12px; }
  body#cart .product-line-grid .cart-line-product-actions { flex-basis: 100%; }
  body#checkout .checkout-step .btn.continue { max-width: none; width: 100%; }
  body#checkout .checkout-header-version .header-logo { flex: 0 1 144px; }
  body#checkout .checkout-header-version .lp-cohead { flex: 1 1 120px; }
  body#checkout .checkout-header-version .checkout-header-right { flex-basis: 100%; }
}
/* V025 END */


/* V031: bring native basket totals and guest entry closer on phones. DOM order unchanged. */
@media (max-width: 767.98px) {
  body#cart .lm-cart-header, body#checkout .lm-checkout-intro { padding-block: 8px; }
  body#cart .lm-cart-header .page-heading,
  body#checkout .lm-checkout-intro h1 { margin-bottom: 8px; font-size: 30px; line-height: 1.2; }
  body#cart .lm-checkout-progress, body#checkout .checkout-step-order { padding-block: 8px; margin-block: 8px 12px; }
  body#cart .product-line-grid { padding-block: 12px; }
  body#cart .product-line-grid-right.product-line-actions { margin-top: 8px; }
  body#cart .cart-grid-right { margin-top: 12px; }
  body#cart .cart-summary-line, body#checkout .cart-summary-line { padding-block: 8px; }
  body#checkout .checkout-header-version .header-wrapper { padding-block: 8px; gap: 8px 16px; }
}
/* V4E: kit palette, type and spacing; native AJAX and visibility states retained. */
body#cart #wrapper, body#checkout #wrapper { background: #faf8f5; }
body#cart .lm-cart-header, body#checkout .lm-checkout-intro { background: transparent; }
body#cart .lm-cart-kicker, body#checkout .lm-cart-kicker {
  color: #b84510; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
body#cart .lm-cart-products-card, body#cart .lm-order-summary,
body#checkout .lm-order-summary {
  background: #fff; border: 1px solid #e7e3dc; border-radius: 10px; box-shadow: none;
}
body#cart .lm-card-heading, body#checkout .lm-card-heading { border-radius: 10px 10px 0 0; }
body#cart .lm-card-heading > span:first-child, body#checkout .lm-card-heading > span:first-child {
  font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 400;
}
body#cart .lm-checkout-progress { background: transparent; }
body#cart .cart-detailed-actions > .btn-primary,
body#checkout #checkout-login-form > .text-center .js-switch-personal-form,
body#checkout .checkout-step .btn.continue {
  background: #b84510 !important; border-color: #b84510 !important; color: #fff !important;
}
body#cart .cart-detailed-actions > .btn-primary { width: 100%; min-height: 52px; border-radius: 999px; }
body#cart .cart-continue-shopping .btn {
  background: transparent; border-color: transparent; color: #22262b;
  box-shadow: none; text-decoration: underline; text-underline-offset: 4px;
}
body#cart a.remove-from-cart {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px;
  text-decoration: underline; font-size: 14px;
}
body#cart .product-quantity-touchspin .btn { min-width: 44px; }
body#cart .lm-summary-confidence, body#checkout .lm-summary-confidence { margin: 16px; padding: 16px; }
body#checkout .checkout-step { margin-bottom: 16px; }
body#checkout .checkout-step.-current { border-color: #b84510 !important; }
body#checkout .checkout-step .step-title {
  font-family: Fraunces, Georgia, serif; font-size: 26px; line-height: 1.3; text-transform: none;
}
body#checkout .lm-step-number { background: #f2eee7; color: #22262b; }
body#checkout .checkout-step.-current .lm-step-number,
body#checkout .step-part.current .position { background: #b84510 !important; color: #fff !important; }
body#checkout .checkout-step-order { background: transparent; }
body#checkout .step-part .part-text { white-space: normal; line-height: 1.4; }
body#checkout .lp-v4-delivery-guide {
  margin: 0 0 24px; padding: 16px 20px; border-left: 3px solid #b84510;
  background: #f2eee7; border-radius: 0 10px 10px 0; color: #22262b;
}
body#checkout .lp-v4-delivery-guide h3 { margin: 0 0 8px; font: 400 24px/1.3 Fraunces, Georgia, serif; }
body#checkout .lp-v4-delivery-guide p { margin: 0; }
body#checkout #js-delivery .delivery-options-list { background: transparent; }
body#checkout #js-delivery .delivery-option {
  margin: 0 0 12px; padding: 16px; gap: 12px; align-items: center;
  border: 1px solid #b8b2a9; border-radius: 10px; background: #fff;
}
body#checkout #js-delivery .delivery-option:focus-within {
  outline: 2px solid #22262b; outline-offset: 3px;
}
body#checkout #js-delivery .delivery-option:has(input:checked) { border-color: #b84510; background: #faf8f5; }
body#checkout #js-delivery .delivery-option > .custom-radio { flex: 0 0 auto; }
body#checkout #js-delivery .delivery-option-2 { flex: 1; min-width: 0; margin: 0; padding: 8px 0; cursor: pointer; }
body#checkout #js-delivery .delivery-option-2 > .d-flex { gap: 12px; }
body#checkout #js-delivery .delivery-option-2 .w-100 { gap: 6px 16px; min-width: 0; }
body#checkout #js-delivery .carrier-name { flex: 1 1 60%; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
body#checkout #js-delivery .carrier-price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
body#checkout #js-delivery .carrier-delay { flex-basis: 100%; order: 3; color: #667078; font-size: 14px; overflow-wrap: anywhere; }
body#checkout #js-delivery .carrier-logo { flex: 0 0 48px; }
body#checkout #js-delivery .carrier-logo img { max-width: 48px; height: auto; object-fit: contain; }
body#checkout #js-delivery .carrier-extra-content { margin-inline: 0; max-width: 100%; }
body#checkout #js-delivery .order-options { margin-top: 24px; }
body#checkout #js-delivery textarea { width: 100%; max-width: 100%; font-size: 16px; border-radius: 6px; }
body#checkout .checkout-step .help-block { color: #a5281b; }
body#checkout .checkout-step .form-control-comment { color: #667078; font-size: 14px; }
body#checkout .payment-option { padding: 16px; border: 1px solid #e7e3dc; border-radius: 10px; margin-bottom: 12px; }
body#checkout .payment-option label { line-height: 1.5; overflow-wrap: anywhere; }
body#checkout #payment-confirmation > .ps-shown-by-js > .btn-primary {
  min-height: 52px; width: 100%; padding: 12px 24px; border-radius: 999px;
  background: #b84510; border-color: #b84510; color: #fff;
  font: 700 16px/1.5 Manrope, Arial, sans-serif; text-transform: none; white-space: normal;
}
body#cart .cart-detailed-actions > .btn-primary:disabled,
body#checkout #payment-confirmation .btn-primary.disabled,
body#checkout .checkout-step .btn.continue:disabled { opacity: .55; }
body#checkout .lp-v4-summary-link { display: inline-block; margin-bottom: 16px; text-decoration: underline; text-underline-offset: 4px; }
body#checkout #lp-v4-order-summary { scroll-margin-top: 24px; }
@media (min-width: 992px) {
  body#checkout .lp-v4-summary-link { display: none; }
}
@media (max-width: 767.98px) {
  body#checkout .checkout-step .step-title { font-size: 22px; }
  body#checkout .lp-v4-delivery-guide { padding: 16px; }
  body#checkout #js-delivery .delivery-option { padding: 12px; }
  body#checkout .checkout-step-order .part-text { font-size: 12px; }
}
/* V4H: compact summary and guest-first entry; native form switching retained. */
body#cart .lm-cart-header { padding:8px 0; margin-bottom:12px; }
body#cart .lm-cart-header .page-heading { margin-bottom:6px; font-size:32px; }
body#cart .lm-cart-header p { margin-bottom:8px; }
body#cart .lm-checkout-progress { padding:8px 0; }
body#cart .lm-card-heading { padding:12px 16px; }
body#cart .cart-summary-line { padding-block:6px; }
body#cart .cart-total { padding-block:10px; }
body#cart .lm-summary-confidence { margin:8px 16px; padding:10px; }
body#cart .cart-detailed-actions { margin:8px 0; }
body#cart .cart-voucher { margin-top:12px; }
body#checkout #checkout-login-form[data-lp-si="v4h"].active > :not(.text-center) { display:block !important; }
body#checkout .checkout-header-version .header-wrapper { display:flex; flex-wrap:nowrap; justify-content:space-between; gap:12px; padding-block:10px; }
body#checkout .checkout-header-version .header-logo { flex:0 1 144px; }
body#checkout .checkout-header-version .lp-cohead { flex:0 1 auto; margin-left:auto; font-size:13px; }
body#checkout .checkout-header-version .lp-cohead small { display:none; }
body#checkout .checkout-header-right { display:block; position:relative; flex:0 0 auto !important; order:1; }
body#checkout .checkout-header-version .lp-cohead { order:2; }
body#checkout .checkout-header-right summary { min-height:44px; display:flex; align-items:center; cursor:pointer; text-decoration:underline; font-size:12px; }
body#checkout .lp-v4-checkout-account { position:absolute; right:0; top:100%; z-index:20; min-width:180px; max-width:80vw; padding:12px; background:#fff; border:1px solid #e7e3dc; }
@media(max-width:991.98px) {
  body#cart .cart-grid-right { order:-1; margin-top:0; }
  body#cart .cart-detailed-actions { position:static !important; width:auto !important; padding:8px 16px !important; }
}
/* V4S8: factual checkout help and native payment-option logos. */
body#checkout .checkout-header-version .header-wrapper { flex-wrap: wrap; }
body#checkout .lp-s8-checkout-phone {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  min-height: 44px; max-width: 100%; color: #22262b; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
body#checkout .lp-s8-checkout-phone span { color: #667078; }
body#checkout .payment-option .custom-radio label {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 100%;
}
body#checkout .payment-option img.lp-s8-payment-logo {
  display: inline-block; position: static; float: none; flex: 0 0 96px;
  width: 96px; height: 32px; max-width: 100%; object-fit: contain;
}
@media (max-width: 767.98px) {
  body#checkout .lp-s8-checkout-phone { order: 3; flex-basis: 100%; }
}