/*
 * Elementor's own markup mapped onto the design system (assets/css/prodermis-uk.css).
 *
 * Pages are Elementor containers carrying the mockup class names (hero, wrap, sec__head …)
 * with native Heading, Text Editor, Image and Button widgets inside. Elementor containers
 * default to a flex column and its widgets add wrapper divs; these rules undo just enough of
 * that for the mockup CSS to apply as written.
 */

/* Containers: Elementor's flex column is fine for stacked content; these are rows in the mockups. */
.e-con.hero__actions,
.e-con.sec__head,
.e-con.trade__actions,
.e-con.actions,
.e-con.buy__actions,
.e-con.form-actions {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}
.e-con.hero__actions,
.e-con.actions { gap: 12px; }
.e-con.sec__head { justify-content: space-between; align-items: flex-end; gap: 24px; }

/* Photos that fill their frame (hero, range cards): the widget wrapper must not become the
   positioning box, or the absolutely placed <img> collapses to zero height. */
.hero__media .elementor-widget-image,
.range__img .elementor-widget-image,
.hero__media .elementor-widget-image > .elementor-widget-container,
.range__img .elementor-widget-image > .elementor-widget-container { position: static; }

/* Other photos: the widget fills its box, the image keeps the design radius. */
.intro__photo .elementor-widget-image,
.intro__photo .elementor-widget-image img { width: 100%; height: 100%; }
.elementor-widget-image img { display: block; }

/* Text Editor widget: no extra space after its last paragraph. */
.elementor-widget-text-editor > :last-child,
.elementor-widget-text-editor .elementor-widget-container > :last-child { margin-bottom: 0; }

/* Shortcode and HTML widgets are transparent wrappers. */
.elementor-widget-shortcode,
.elementor-widget-html { width: 100%; }

/* Items in a row size to their content, not Elementor's default 100% width. */
.e-con.hero__actions > *,
.e-con.trade__actions > *,
.e-con.actions > *,
.e-con.buy__actions > *,
.e-con.form-actions > * { width: auto; }
.e-con.sec__head > .e-con { width: auto; flex: 1 1 320px; }

/* The hero photo bleeds to the window edge (02-DESIGN 3.1): let the negative margin widen it. */
.e-con.hero__media { width: auto; }

/* WooCommerce's "View cart" link after an AJAX add: the basket drawer replaces it ("basket", never "cart"). */
.added_to_cart.wc-forward { display: none !important; }

/* Breadcrumb on a blue band (category page). */
.crumbs--on-blue, .crumbs--on-blue a { color: rgba(255, 255, 255, .8); }
.band--head { padding-top: 72px; padding-bottom: 64px; text-align: left; }
.band--head h1 { color: #fff; }

/* 404 */
.page-404 { position: relative; padding-top: 88px; padding-bottom: 104px; }
.page-404 h1 { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 16px; }
.page-404 .lead { font-size: 18px; font-weight: 300; color: var(--mute); max-width: 32em; margin-bottom: 28px; }
.page-404 .actions { margin-bottom: 28px; }

/* Product cards show the ex-VAT price only (PC-07); the screen-reader line keeps both (PC-12). */
.product__price .pduk-price__inc { display: none; }
.product__price .pduk-price__ex { font-size: 22px; font-weight: 300; color: var(--blue); }
.product__price .pduk-price__ex small { font-size: 15px; color: var(--mute); margin-left: 4px; }
.product__stock { font-size: 15px; color: var(--mute); margin-left: 8px; }
.product h3 a, .product .product__name a { color: inherit; text-decoration: none; }

/* Buying box price in brand blue (WooCommerce colours .price olive by default). */
.buy .price, .buy .price .amount, .buy .price bdi { color: var(--blue); }

/* Category header: the lead lines up with the left-aligned heading. */
.band--head .band__lead { margin-left: 0; margin-right: 0; text-align: left; }

/* ---------- WooCommerce pages (handoff 5.12–5.14) ---------- */
.woo-page { padding-top: 56px; padding-bottom: 104px; }
@media (max-width: 980px) { .woo-page { padding-top: 40px; padding-bottom: 72px; } }

/* My account extras */
.acc-quick { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acc-quick a { display: flex; align-items: center; min-height: 56px; padding: 14px 18px; background: var(--mist); border-radius: var(--r-panel); color: var(--blue); font-weight: 500; text-decoration: none; }
.acc-quick a:hover { background: #E9EDF5; }
.acc-contact { color: var(--mute); margin-top: 24px; }
.acc-registration { margin-top: 28px; }
.acc-empty { padding: 32px 0; }
.acc-empty h2 { font-size: 30px; margin-bottom: 8px; }
.acc-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.acc-address { border: 1px solid var(--hair); border-radius: var(--r-panel); padding: 24px; }
.acc-form, .acc-password { max-width: 640px; }
.acc-pager { display: flex; gap: 12px; margin-top: 28px; }
.order--last { margin-top: 28px; }
.order__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.line__noimg { width: 96px; height: 52px; border-radius: 8px; background: var(--mist); }
.line__action { align-self: center; }
@media (max-width: 560px) {
	.acc-quick, .acc-addresses { grid-template-columns: 1fr; }
	.line__noimg { width: 72px; height: 40px; }
}

/* Login page notices (LG-10, LG-30) */
.apply__reason { background: var(--mist); border-radius: var(--r-panel); padding: 14px 18px; margin-bottom: 20px; }
.apply__notices:empty { display: none; }

/* Basket (handoff 5.13) */
.basket { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.basket__title { grid-column: 1 / -1; }
.basket__summary { border: 1px solid var(--hair); border-radius: var(--r-panel); padding: 28px; }
.basket__product { display: flex; align-items: center; gap: 16px; }
.basket__name { font-size: 17px; }
.basket__remove { font-size: 15px; }
.basket__delivery { color: var(--mute); font-size: 15px; margin: 16px 0; }
.basket__browse { display: inline-block; margin-top: 16px; }
.basket__update { margin-top: 16px; }
.basket-empty { padding: 24px 0 8px; }
.basket-empty h1 { margin-bottom: 12px; }
.basket-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pduk-country-text { color: var(--mute); font-size: 15px; margin: 4px 0 16px; }
.pduk-back-to-basket { display: inline-block; margin-top: 16px; }
@media (max-width: 980px) {
	.basket { grid-template-columns: 1fr; gap: 32px; }
}
.woo-page.woo-account { padding-top: 0; padding-bottom: 0; } /* the account grid has its own padding */

/* Search results (handoff 5.15) */
.search-page { padding-top: 56px; padding-bottom: 104px; }
.search-page h1 { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 8px; }
.search-count { color: var(--mute); margin-bottom: 24px; }
.search-again { max-width: 640px; margin-bottom: 48px; }
.search-again label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.search-again__row { display: flex; gap: 12px; align-items: center; }
.search-again__row .input { flex: 1; }
.search-pages { list-style: none; padding: 0; margin: 56px 0 0; max-width: 46em; }
.search-pages li { border-top: 1px solid var(--hair); padding: 20px 0; }
.search-pages p { color: var(--mute); margin: 6px 0 0; }

/* Checkout, delivery first (CO-01 to CO-11) */
.checkout-title { margin-bottom: 32px; }
.checkout-section + .checkout-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--hair); }
.checkout-h { font-size: 24px; font-weight: 300; margin-bottom: 20px; }
.pduk-billing-same { margin-bottom: 16px; }
.pduk-billing-same label { display: flex; gap: 10px; align-items: center; font-size: 16px; cursor: pointer; }
.pduk-billing-same input { width: 20px; height: 20px; accent-color: var(--blue); }
.woocommerce-additional-fields { margin-top: 32px; }
.checkout-summary #order_review_heading { font-size: 24px; font-weight: 300; margin-bottom: 16px; }

/* Cookie banner (Complianz) in the site's type (handoff 4.20). */
.cmplz-cookiebanner, .cmplz-cookiebanner * { font-family: var(--font) !important; }
.cmplz-cookiebanner .cmplz-title { font-weight: 300; font-size: 22px; }
.cmplz-cookiebanner .cmplz-btn { min-height: 44px; font-weight: 500; }
.cmplz-cookiebanner :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Complianz's generated Cookie Policy (UK): body text at the 15px minimum (acceptance checklist). */
#cmplz-document, #cmplz-document p, #cmplz-document li, #cmplz-document td, #cmplz-document i, #cmplz-document a, .cmplz-document, .cmplz-document p, .cmplz-document li { font-size: 15px; }

/* The cookie banner never covers buy actions (acceptance checklist): bottom left on wide screens, where
   the buying box, basket and checkout actions are on the right; on phones it sits above the sticky buy bar. */
@media (min-width: 981px) {
  body .cmplz-cookiebanner.cmplz-bottom-right, body .cmplz-cookiebanner { left: 16px !important; right: auto !important; }
}
@media (max-width: 980px) {
  body.has-buybar .cmplz-cookiebanner { bottom: 84px !important; }
}

/* Checkout: the delivery address is always shown (delivery-first form). WooCommerce's checkout script hides it
   and slides it open on load, which pushed the billing section down (Lighthouse layout shift). Keep it still. */
.woocommerce-checkout .shipping_address { display: block !important; height: auto !important; overflow: visible !important; }

/* Prosculpt Mix and Match bundle (copy deck 3.1) */
.pill-tag--offer { display: inline-block; margin: 0 0 12px; }
.product__tile .pill-tag--offer { position: absolute; top: 12px; left: 12px; margin: 0; }
.product__tile { position: relative; }
.pdp__reg { font-size: 15px; color: var(--mute); margin: -8px 0 20px; }
.buy--bundle .buy__choose { font-size: 20px; font-weight: 500; margin: 20px 0 4px; }
.buy--bundle .buy__hint { font-size: 15px; color: var(--mute); margin: 0 0 12px; }
.buy--bundle .mnm_status, .buy--bundle .mnm_message, .buy--bundle .mnm_price { display: none !important; } /* Our counter says it (MX-12 to MX-15). */
.buy--bundle .pduk-mnm-count { font-size: 15px; margin: 12px 0; color: var(--ink); }
.buy--bundle .pduk-mnm-count.is-ready { color: var(--ok); font-weight: 500; }
/* Mix and Match's "Clear selections" and "Edit selections" aren't in the copy deck: the steppers and Remove do the same. */
.buy--bundle .mnm_reset, .woocommerce .edit_container_in_cart_text { display: none !important; }
