/* LP-DESIGN-V1 (8 Nov 2026): small design fixes D03 D07 D08 D09 D10 D11 D14. Linked last in head.tpl. Undo: remove the link line. */

/* D08: filters drawer looked dimmed. The module's overlay (z 1300) sat ABOVE the drawer (z 1060). Put it under the drawer. */
html body .lp-drawer-overlay { z-index: 1055 !important; }

/* D07: checkout, "Where did you hear about us?" now comes AFTER the delivery choice. Same elements, same ids, same saved value; display order only. */
html body .lpco-extras { display: flex; flex-direction: column; }
html body .lpco-extras > :nth-child(1), html body .lpco-extras > :nth-child(2) { order: 10; }
html body .lpco-extras > :nth-child(n+3) { order: 1; }
html body .lpco-extras > :nth-child(3) { margin-top: 0 !important; }
html body .lpco-extras > :nth-child(1) { margin-top: 22px !important; }

/* D09: category cards, same image box, 2-line names (case handled by lp-design-v1.js, display only) */
html body .lp-card__media .product-thumbnail { aspect-ratio: 1 / 1; overflow: hidden; }
html body .lp-card__media .product-thumbnail .product-cover-link { display: block; width: 100%; height: 100%; }
html body .lp-card__media .product-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover; }
html body .lp-card .lp-card__inner .lp-card__body h3.lp-card__title,
html body #products .product-list-wrapper .product-miniature .lp-card__body h3.lp-card__title { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2 !important; line-clamp: 2; overflow: hidden !important; height: 2.7em !important; max-height: 2.7em !important; min-height: 2.7em !important; box-sizing: border-box !important; }
html body .lp-card .lp-card__inner .lp-card__body h3.lp-card__title, html body #products .product-list-wrapper .product-miniature .lp-card__body h3.lp-card__title, html body .lp-card .lp-card__inner .lp-card__body h3.lp-card__title a, html body #products .product-list-wrapper .product-miniature .lp-card__body h3.lp-card__title a { text-transform: capitalize !important; }

@media (max-width: 991.98px) {
  /* D03: slim cookie banner on phones: one row, Reject all + Accept + policy link kept */
  html body #cookieMessage .cookie-message-wrapper { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) !important; min-height: 0; }
  html body #cookieMessage .cookie-message-content { flex: 1 1 auto; min-width: 0; padding: 0; }
  html body #cookieMessage .cookie-message-content p { font-size: 0 !important; line-height: 1.2; margin: 0 !important; white-space: normal; overflow: visible; }
  html body #cookieMessage .cookie-message-content p::before { content: "We use cookies. "; font-size: 12px; color: #fff; }
  html body #cookieMessage .cookie-message-content p a { display: inline-block; font-size: 12px; padding: 12px 0; margin: -12px 0; }
  html body #cookieMessage .lp-cookie-btns { width: auto !important; flex: 0 0 auto; gap: 6px; }
  html body #cookieMessage .lp-cookie-btns .cookie-close-button { flex: 0 0 auto !important; min-width: 0; min-height: 40px !important; padding: 0 12px !important; font-size: 13px !important; line-height: 1 !important; display: flex; align-items: center; justify-content: center; }

  /* D10 + D11: header, tighter paddings; chips and trust links with a 44px tall hit area */
  html body #header .lp-responsive-header .main-header .header-wrapper { padding-top: 2px !important; padding-bottom: 4px !important; row-gap: 4px !important; }
  html body #header .lp-ph-search { min-height: 40px; }
  html body #header .lp-deptstrip, html body #header .lp-deptstrip__list { height: 44px; }
  html body #header .lp-deptstrip__list a { display: flex; align-items: center; min-height: 44px; }
  html body .lp-c-trust a { position: relative; }
  html body .lp-c-trust a::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
  html.lp-condensed body #header .lp-deptstrip { display: none !important; }
}

/* D14: Colour / Size line on the product page gets the same 16px side gutter */
html body .lp-pp-chips--top { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
/* D12 home hero: bright room photo, readable text */
html body .lp-v4-home .hero .photo::after { content: ""; position: absolute; inset: 0; display: block; background: linear-gradient(to top, rgba(20,16,12,.78) 0%, rgba(20,16,12,.55) 38%, rgba(20,16,12,.12) 75%, rgba(20,16,12,0) 100%); }
html body .lp-v4-home .hero .lp-hero-offer { display: inline-block; margin: 0 0 12px; padding: 6px 12px; background: #fff; color: #18232c; font-weight: 800; font-size: 14px; line-height: 1.2; border-radius: 6px; }
