/*
 * Mediterranean Ceramics — 2026 refresh
 * Loaded after style.css. Remove the enqueue in inc/refresh.php to roll back.
 * Payment fields (Stripe iframe) are intentionally left unstyled.
 */

:root {
	--mc-navy: #1a315d;
	--mc-royal: #0e4fa1;
	--mc-band: #173b78;
	--mc-band-bg: #173b78;
	--mc-blue: #1d4f91;
	--mc-terracotta: #bf7359;
	--mc-terracotta-dark: #a65d45;
	--mc-sand: #f6f1e9;
	--mc-sand-deep: #ede4d6;
	--mc-line: #e6ddcf;
	--mc-ink: #1f2430;
	--mc-muted: #5f6470;
	--mc-radius: 14px;
	--mc-btn-radius: 4px;
	--mc-field-radius: 6px;
	--mc-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--mc-shadow: 0 1px 2px rgba(26, 49, 93, .06), 0 8px 24px rgba(26, 49, 93, .08);
}

body {
	color: var(--mc-ink);
	font-size: 17px;
	line-height: 1.65;
}

h1, h2, h3,
.qodef-page-title,
.qodef-single-product-title,
.qodef-testimonials-author-name {
	font-family: var(--mc-serif) !important;
	font-weight: 500 !important;
	letter-spacing: -0.01em;
	color: var(--mc-navy);
}

h2 {
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.1;
}

::selection {
	background: var(--mc-sand-deep);
}

/* ---------- Buttons ---------- */

.button,
body.woocommerce-page .qodef-content a.button,
body.woocommerce-page .qodef-content button[type=submit]:not(.qodef-woo-search-widget-button),
body.woocommerce-page .qodef-content input[type=submit],
div.woocommerce a.button,
div.woocommerce button[type=submit]:not(.qodef-woo-search-widget-button),
div.woocommerce input[type=submit] {
	border-radius: var(--mc-btn-radius) !important;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.button:not(.button--alt) {
	background-color: var(--mc-navy);
	border-color: var(--mc-navy);
}

.button:not(.button--alt):hover {
	background-color: var(--mc-terracotta);
	border-color: var(--mc-terracotta);
	color: #fff;
}

body.woocommerce-page .qodef-content a.button,
body.woocommerce-page .qodef-content button[type=submit]:not(.qodef-woo-search-widget-button),
div.woocommerce a.button,
div.woocommerce button[type=submit]:not(.qodef-woo-search-widget-button) {
	background-color: var(--mc-terracotta);
	border: 1px solid var(--mc-terracotta);
}

body.woocommerce-page .qodef-content a.button:hover,
body.woocommerce-page .qodef-content button[type=submit]:not(.qodef-woo-search-widget-button):hover,
div.woocommerce a.button:hover,
div.woocommerce button[type=submit]:not(.qodef-woo-search-widget-button):hover {
	background-color: var(--mc-navy);
	border-color: var(--mc-navy);
}

/* ---------- Header ---------- */

.qodef-top-bar {
	background-color: var(--mc-navy) !important;
	font-size: 13px;
}

.qodef-top-bar .qodef-icon-widget-holder .qodef-icon-text {
	font-size: 13px;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .85);
}

.qodef-top-bar .qodef-icon-widget-holder .qodef-icon-element {
	font-size: 13px;
	opacity: .7;
}

.qodef-top-bar .qodef-icon-widget-holder + .qodef-icon-widget-holder {
	margin-left: 22px;
}

.qodef-top-bar .qodef-social-icon-widget-holder {
	font-size: 15px;
	opacity: .8;
	transition: opacity .2s ease;
}

.qodef-top-bar .qodef-social-icon-widget-holder:hover {
	opacity: 1;
}

.qodef-top-bar .widget_block img {
	max-height: 26px;
	width: auto;
	vertical-align: middle;
}

.qodef-page-header .qodef-menu-area {
	border-bottom: 1px solid var(--mc-line);
}

.qodef-main-menu > ul > li > a {
	font-weight: 500;
	color: var(--mc-ink);
}

.qodef-main-menu > ul > li > a:hover,
.qodef-main-menu > ul > li.qodef-active-item > a {
	color: var(--mc-terracotta);
}

/* "Free Consultation": a quiet outlined button rather than a filled pill */
.qodef-main-menu > ul > li:last-child > a {
	padding-left: 16px !important;
}

.qodef-main-menu > ul > li:last-child > a > span.item_outer {
	background: transparent !important;
	border: 1px solid var(--mc-navy);
	border-radius: var(--mc-btn-radius) !important;
	color: var(--mc-navy) !important;
	padding: .5em 1.1em !important;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease;
}

.qodef-main-menu > ul > li:last-child > a > span.item_outer .menu_icon_wrapper {
	display: none;
}

.qodef-main-menu > ul > li:last-child > a:hover > span.item_outer {
	background: var(--mc-navy) !important;
	color: #fff !important;
}

.qodef-main-menu > ul > li:last-child > a > span.item_outer:after,
.qodef-main-menu > ul > li:last-child > a .item_text:after {
	display: none !important;
}

/* Basket: line icon, count only shown when there is something in it */
.qodef-page-header .qodef-shopping-cart-inner {
	display: flex;
	align-items: center;
	height: 100%;
}

.qodef-shopping-cart-holder .qodef-header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.qodef-shopping-cart-holder .qodef-cart-icon svg {
	display: none;
}

.qodef-shopping-cart-holder .qodef-cart-icon {
	display: block;
	width: 24px;
	height: 24px;
	background-color: var(--mc-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12.5a1 1 0 0 1-1 .9H7a1 1 0 0 1-1-.9L5 8Z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12.5a1 1 0 0 1-1 .9H7a1 1 0 0 1-1-.9L5 8Z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: background-color .2s ease;
}

.qodef-shopping-cart-holder .qodef-header-cart:hover .qodef-cart-icon {
	background-color: var(--mc-terracotta);
}

.qodef-shopping-cart-holder .qodef-cart-number,
.medcer-cart-count {
	position: absolute !important;
	top: -4px !important;
	right: -9px !important;
	left: auto !important;
	bottom: auto !important;
	transform: none !important;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 9px;
	background: var(--mc-terracotta);
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 700;
	line-height: 17px !important;
	text-align: center;
}

.qodef-shopping-cart-holder .qodef-cart-number[data-count="0"],
.medcer-cart-count[data-count="0"] {
	display: none;
}

.qodef-shopping-cart-dropdown {
	border-radius: 0 0 var(--mc-radius) var(--mc-radius);
	box-shadow: var(--mc-shadow);
}

/* Mobile header */
.qodef-mobile-header .qodef-mobile-header-inner {
	position: relative;
	border-bottom: 1px solid var(--mc-line);
}

.medcer-mobile-cart {
	position: absolute;
	top: 50%;
	right: 5%;
	z-index: 10;
	display: none;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	color: var(--mc-ink);
}

.medcer-mobile-cart .medcer-bag {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.qodef-mobile-header .qodef-mobile-menu-icon {
	color: var(--mc-navy);
}

.qodef-mobile-header .qodef-mobile-nav ul li a,
.qodef-mobile-header .qodef-mobile-nav ul li h6 {
	font-size: 16px;
	color: var(--mc-ink);
	border-bottom-color: var(--mc-line) !important;
}

.qodef-mobile-header .qodef-mobile-nav > .qodef-grid > ul > li:last-child > a {
	background: var(--mc-navy) !important;
	color: #fff !important;
	border-radius: var(--mc-btn-radius);
	margin: 14px 0;
	text-align: center;
}

/* ---------- Header v2: light top bar, underline nav, solid consultation button ---------- */

.qodef-top-bar {
	background-color: var(--mc-sand) !important;
	border-bottom: 1px solid var(--mc-line);
	height: 40px !important;
}

.qodef-top-bar .qodef-vertical-align-containers {
	height: 40px;
	background: transparent !important;
}

.qodef-top-bar .qodef-icon-widget-holder .qodef-icon-text,
.qodef-top-bar .qodef-icon-widget-holder .qodef-icon-element,
.qodef-top-bar .qodef-social-icon-widget-holder,
.qodef-top-bar .qodef-social-icon-widget {
	color: var(--mc-navy) !important;
}

.qodef-top-bar .qodef-icon-widget-holder:hover .qodef-icon-text,
.qodef-top-bar .qodef-social-icon-widget-holder:hover .qodef-social-icon-widget {
	color: var(--mc-terracotta) !important;
}

.qodef-top-bar .qodef-social-icon-widget-holder {
	font-size: 14px;
	margin-left: 14px !important;
}

.qodef-top-bar .widget_block {
	margin-left: 20px;
	padding-left: 20px;
	border-left: 1px solid var(--mc-line);
}

.qodef-top-bar .widget_block img {
	max-height: 24px;
}

.qodef-page-header .qodef-menu-area {
	border-bottom: 1px solid var(--mc-line);
	background: #fff !important;
}

/* Menu links: a fine underline grows from the left on hover; the current page keeps it */
.qodef-page-header .qodef-main-menu > ul > li > a,
.qodef-sticky-header .qodef-main-menu > ul > li > a {
	font-size: 15px !important;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--mc-ink) !important;
}

.qodef-main-menu > ul > li:not(:last-child) > a .item_text {
	position: relative;
	display: inline-block;
	padding: 4px 0;
	text-decoration: none !important;
}

.qodef-main-menu > ul > li:not(:last-child) > a .item_text::after {
	content: '' !important;
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	display: block !important;
	width: auto !important;
	height: 2px !important;
	background: var(--mc-terracotta) !important;
	opacity: 1 !important;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1) !important;
}

.qodef-main-menu > ul > li:not(:last-child):hover > a .item_text::after,
.qodef-main-menu > ul > li.qodef-active-item:not(:last-child) > a .item_text::after,
.qodef-main-menu > ul > li.current-menu-item:not(:last-child) > a .item_text::after {
	transform: scaleX(1);
}

.qodef-main-menu > ul > li:not(:last-child) > a:hover,
.qodef-main-menu > ul > li.qodef-active-item:not(:last-child) > a {
	color: var(--mc-navy) !important;
}

.qodef-main-menu > ul > li > a > span.item_outer {
	text-decoration: none !important;
}

/* Free Consultation: solid navy */
.qodef-main-menu > ul > li:last-child > a > span.item_outer {
	background: var(--mc-navy) !important;
	border: 1px solid var(--mc-navy);
	color: #fff !important;
	padding: .55em 1.2em !important;
}

.qodef-main-menu > ul > li:last-child > a:hover > span.item_outer {
	background: var(--mc-terracotta) !important;
	border-color: var(--mc-terracotta);
	color: #fff !important;
}

.qodef-main-menu > ul > li:last-child > a .item_text {
	color: #fff !important;
}

/* Dropdowns */
.qodef-drop-down .second .inner {
	border-radius: 0 0 6px 6px;
	box-shadow: 0 14px 34px rgba(26, 49, 93, .12);
	border-top: 2px solid var(--mc-terracotta);
	background: #fff !important;
	padding: 10px 0 !important;
}

.qodef-drop-down .second .inner ul li a {
	color: var(--mc-ink) !important;
	font-size: 14px !important;
	padding: 8px 22px !important;
	transition: background-color .2s ease, color .2s ease;
}

.qodef-drop-down .second .inner ul li a:hover {
	background: var(--mc-sand) !important;
	color: var(--mc-navy) !important;
}

/* Sticky header: white with a soft shadow; the SVG logo needs an explicit height (theme sizes it to 0) */
.qodef-sticky-header .qodef-logo-wrapper a {
	height: 48px !important;
}

.qodef-sticky-header .qodef-logo-wrapper a img {
	height: 100% !important;
	width: auto !important;
}

.qodef-sticky-header .qodef-sticky-holder {
	background: rgba(255, 255, 255, .97) !important;
	border-bottom: 1px solid var(--mc-line);
	box-shadow: 0 6px 20px rgba(26, 49, 93, .07);
}

/* ---------- Generic page title band ---------- */

.qodef-title-holder {
	background: var(--mc-band-bg) !important;
	border-bottom: 0;
}

.qodef-title-holder .qodef-page-title,
.qodef-title-holder.qodef-standard-type .qodef-page-title {
	color: #fff !important;
	font-size: clamp(30px, 4vw, 46px) !important;
	padding: 1.1em 0 !important;
}

/* ---------- Shop header ---------- */

.medcer-shop-header {
	background: var(--mc-band-bg);
	padding: 44px 0 32px;
	color: #fff;
}

.medcer-shop-header .medcer-breadcrumbs,
.medcer-shop-header .medcer-breadcrumbs a {
	color: rgba(255, 255, 255, .7);
}

.medcer-shop-header .medcer-breadcrumbs a:hover {
	color: #fff;
}

.medcer-shop-header .medcer-shop-title {
	color: #fff !important;
}

.medcer-shop-header .medcer-shop-intro,
.medcer-shop-header .medcer-shop-intro p {
	color: rgba(255, 255, 255, .82) !important;
}

.medcer-shop-header .medcer-chips a {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .32);
	color: #fff;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.medcer-shop-header .medcer-chips a:hover {
	border-color: #fff;
	color: #fff;
}

.medcer-shop-header .medcer-chips a.is-active {
	background: #fff;
	border-color: #fff;
	color: var(--mc-navy);
}

.medcer-shop-header .medcer-chips-sub .medcer-chips a {
	background: transparent;
}

.medcer-shop-header .medcer-chips-sub .medcer-chips a.is-active {
	background: var(--mc-terracotta);
	border-color: var(--mc-terracotta);
	color: #fff;
}

.medcer-breadcrumbs {
	font-size: 13px;
	letter-spacing: .03em;
	color: var(--mc-muted);
	margin-bottom: 10px;
}

.medcer-breadcrumbs a {
	color: var(--mc-muted);
	text-decoration: none;
}

.medcer-breadcrumbs a:hover {
	color: var(--mc-terracotta);
}

.medcer-breadcrumbs .sep {
	margin: 0 8px;
	opacity: .5;
}

.medcer-shop-title {
	margin: 0 0 8px;
	font-size: clamp(34px, 5vw, 56px) !important;
	line-height: 1.05;
}

.medcer-shop-intro {
	max-width: 640px;
	color: var(--mc-muted);
	font-size: 17px;
}

.medcer-shop-intro p {
	margin: 0;
}

.medcer-chips,
.medcer-chips-sub .medcer-chips {
	display: flex;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.medcer-chips {
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
	padding-right: 48px;
}

.medcer-chips::-webkit-scrollbar {
	display: none;
}

.medcer-chips li {
	margin: 0;
	flex: 0 0 auto;
}

.medcer-chips a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--mc-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mc-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	transition: all .2s ease;
}

.medcer-chips a:hover {
	border-color: var(--mc-navy);
	color: var(--mc-navy);
}

.medcer-chips a.is-active {
	background: var(--mc-navy);
	border-color: var(--mc-navy);
	color: #fff;
}

.medcer-chips-sub .medcer-chips {
	margin-top: 10px;
}

.medcer-chips-sub .medcer-chips a {
	background: transparent;
	font-size: 13px;
	padding: 6px 14px;
}

.medcer-chips-sub .medcer-chips a.is-active {
	background: var(--mc-terracotta);
	border-color: var(--mc-terracotta);
}

.medcer-product-crumbs {
	padding: 24px 0 0;
}

.medcer-product-crumbs .medcer-breadcrumbs {
	margin: 0;
}

/* Tighter space between header and grid */
.qodef-woocommerce-page:not(.qodef-woo-single-page) .qodef-content .qodef-content-inner > .qodef-container > .qodef-container-inner {
	padding-top: 40px !important;
}

/* Sort dropdown */
.qodef-woocommerce-page .woocommerce-ordering {
	margin-bottom: 28px;
}

.qodef-woocommerce-page .woocommerce-ordering select,
.qodef-woocommerce-page .woocommerce-ordering .select2-container .select2-selection {
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-btn-radius) !important;
	background-color: #fff !important;
	font-size: 14px;
}

/* ---------- Category tiles (shop landing) ---------- */

ul.products li.product-category > a {
	display: block;
	text-decoration: none;
}

ul.products li.product-category img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: transparent !important;
	mix-blend-mode: multiply;
	padding: 6%;
	box-sizing: border-box;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

ul.products li.product-category > a {
	background: var(--mc-sand);
	border-radius: var(--mc-radius);
	overflow: hidden;
	padding-bottom: 18px;
	transition: box-shadow .3s ease, transform .3s ease;
}

ul.products li.product-category > a:hover {
	box-shadow: var(--mc-shadow);
	transform: translateY(-3px);
}

ul.products li.product-category > a:hover img {
	transform: scale(1.05);
}

ul.products li.product-category .woocommerce-loop-category__title {
	font-size: 21px !important;
	line-height: 1.2 !important;
	margin: 6px 0 0 !important;
	padding: 0 12px;
	text-align: center;
	color: var(--mc-navy) !important;
}

ul.products li.product-category .woocommerce-loop-category__title mark.count {
	display: block;
	margin-top: 4px;
	background: none;
	font-family: Lato, sans-serif;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--mc-muted);
}

/* ---------- Product cards ---------- */

ul.products .product .qodef-pl-inner .qodef-pl-image,
.related.products .product .qodef-pl-inner .qodef-pl-image,
.qodef-pl-holder .qodef-pli-inner .qodef-pli-image {
	position: relative;
	overflow: hidden;
	border-radius: var(--mc-radius);
	background-color: var(--mc-sand) !important;
}

ul.products .product .qodef-pl-inner,
.related.products .product .qodef-pl-inner {
	background-color: transparent !important;
}

.related.products .product .qodef-pl-inner .qodef-pl-image img,
ul.products .product .qodef-pl-inner .qodef-pl-image img,
.qodef-pl-holder .qodef-pli-inner .qodef-pli-image img {
	border: 0 !important;
	mix-blend-mode: multiply;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}

ul.products .product:hover .qodef-pl-image img,
.related.products .product:hover .qodef-pl-image img,
.qodef-pl-holder .qodef-pli:hover .qodef-pli-image img {
	transform: scale(1.03);
}

/* Second gallery image crossfades in; the main image fades out so the two never overlap */
ul.products .product .qodef-pl-inner .qodef-pl-image img.medcer-pl-hover-img,
.related.products .product .qodef-pl-inner .qodef-pl-image img.medcer-pl-hover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	z-index: 1;
	pointer-events: none; /* clicks go through to the product link underneath */
}

ul.products .product .qodef-pl-inner .woocommerce-LoopProduct-link,
.related.products .product .qodef-pl-inner .woocommerce-LoopProduct-link {
	z-index: 2;
}

ul.products .product:hover .qodef-pl-inner .qodef-pl-image img.medcer-pl-hover-img,
.related.products .product:hover .qodef-pl-inner .qodef-pl-image img.medcer-pl-hover-img {
	opacity: 1;
}

ul.products .product:hover .qodef-pl-inner .qodef-pl-image:has(.medcer-pl-hover-img) img:not(.medcer-pl-hover-img),
.related.products .product:hover .qodef-pl-inner .qodef-pl-image:has(.medcer-pl-hover-img) img:not(.medcer-pl-hover-img) {
	opacity: 0;
}

/* Card button on every product: "Add to basket" (one-price), "Choose options" (variable)
   or "Request quote" (lava tables). Revealed on hover; always visible on touch screens. */
ul.products .product .qodef-pl-inner .qodef-pl-text,
.related.products .product .qodef-pl-inner .qodef-pl-text {
	position: absolute;
	inset: auto 0 0 0;
	height: auto;
	background: none !important;
	opacity: 1 !important;
	z-index: 3;
	pointer-events: none;
}

ul.products .product .qodef-pl-inner .qodef-pl-text-outer,
ul.products .product .qodef-pl-inner .qodef-pl-text-inner,
.related.products .product .qodef-pl-inner .qodef-pl-text-outer,
.related.products .product .qodef-pl-inner .qodef-pl-text-inner {
	display: block;
	height: auto;
}

ul.products .product .qodef-pl-inner .qodef-pl-text-inner a.button,
.related.products .product .qodef-pl-inner .qodef-pl-text-inner a.button,
ul.products .product .qodef-pl-inner .qodef-pl-text-inner a.button.product_type_variation.ajax_add_to_cart,
.related.products .product .qodef-pl-inner .qodef-pl-text-inner a.button.product_type_variation.ajax_add_to_cart {
	position: relative !important;
	left: auto !important;
	bottom: auto !important;
	display: block !important;
	width: fit-content !important;
	min-width: 0 !important;
	margin: 0 auto 14px !important;
	padding: 8px 18px !important;
	border-radius: var(--mc-btn-radius) !important;
	background: rgba(255, 255, 255, .92) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 0 !important;
	color: var(--mc-navy) !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	font-weight: 600 !important;
	text-align: center;
	box-shadow: 0 2px 10px rgba(26, 49, 93, .12);
	opacity: 0;
	transform: translateY(8px) !important;
	transition: opacity .25s ease, transform .25s ease, background-color .2s ease, color .2s ease !important;
	pointer-events: auto;
}

ul.products .product .qodef-pl-inner .qodef-pl-text-inner a.button:after,
.related.products .product .qodef-pl-inner .qodef-pl-text-inner a.button:after {
	display: none !important;
}

ul.products .product:hover .qodef-pl-inner .qodef-pl-text-inner a.button,
.related.products .product:hover .qodef-pl-inner .qodef-pl-text-inner a.button,
ul.products .product .qodef-pl-inner .qodef-pl-text-inner a.button:focus-visible {
	opacity: 1;
	transform: translateY(0) !important;
}

@media (hover: none) {
	ul.products .product .qodef-pl-inner .qodef-pl-text-inner a.button,
	.related.products .product .qodef-pl-inner .qodef-pl-text-inner a.button {
		opacity: 1;
		transform: none !important;
	}
}

ul.products .product .qodef-pl-inner .qodef-pl-text-inner a.button:hover,
.related.products .product .qodef-pl-inner .qodef-pl-text-inner a.button:hover {
	background: var(--mc-navy) !important;
	color: #fff !important;
}

ul.products .product .qodef-pl-text-wrapper,
.related.products .product .qodef-pl-text-wrapper,
.qodef-pl-holder .qodef-pli-text-wrapper {
	text-align: left;
	margin-top: 0 !important;
	padding: 14px 4px 0;
}

.related.products .product .qodef-product-list-title,
ul.products .product .qodef-product-list-title,
.qodef-pl-holder .qodef-pli .qodef-pli-title {
	font-family: var(--mc-serif) !important;
	font-size: 19px !important;
	line-height: 1.25 !important;
	font-weight: 500 !important;
	margin: 0 0 4px !important;
}

.related.products .product .qodef-product-list-title a,
ul.products .product .qodef-product-list-title a,
.qodef-pl-holder .qodef-pli .qodef-pli-title a {
	color: var(--mc-ink) !important;
}

ul.products .product .price,
.related.products .product .price,
.qodef-pl-holder .qodef-pli .qodef-pli-price {
	display: block;
	font-size: 16px !important;
	font-weight: 600;
	color: var(--mc-terracotta) !important;
}

ul.products .product .price del,
.related.products .product .price del {
	color: var(--mc-muted);
	font-weight: 400;
	margin-right: 6px;
}

/* Sale / new / out-of-stock flags */
.qodef-woocommerce-page .qodef-onsale,
.qodef-woocommerce-page .qodef-new-product,
.qodef-woocommerce-page .qodef-out-of-stock,
.qodef-onsale, .qodef-new-product, .qodef-out-of-stock {
	border-radius: var(--mc-btn-radius) !important;
	padding: 2px 12px !important;
	font-size: 12px !important;
	letter-spacing: .04em;
	top: 14px !important;
	left: 14px !important;
	z-index: 4;
}

/* Homepage product carousels: same card button as the shop, over the bottom of the image */
.qodef-pl-holder .qodef-pli {
	position: relative;
}

.qodef-pl-holder .qodef-pli .qodef-pli-text-wrapper {
	position: static !important; /* let the button anchor to the card, over the image */
}

.qodef-pl-holder .qodef-pli .qodef-pli-add-to-cart {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;
	width: auto !important;
	height: auto !important;
	transform: none !important;
	aspect-ratio: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 14px 14px;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 3 !important;
	margin: 0 !important;
}

.qodef-pl-holder .qodef-pli .qodef-pli-add-to-cart a.button {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	display: inline-block !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 8px 18px !important;
	border: 0 !important;
	border-radius: var(--mc-btn-radius) !important;
	background: rgba(255, 255, 255, .92) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--mc-navy) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	box-shadow: 0 2px 10px rgba(26, 49, 93, .12);
	opacity: 0 !important;
	transform: translateY(8px) !important;
	transition: opacity .25s ease, transform .25s ease, background-color .2s ease, color .2s ease !important;
	pointer-events: auto !important;
	visibility: visible !important;
}

.qodef-pl-holder .qodef-pli .qodef-pli-add-to-cart a.button::before,
.qodef-pl-holder .qodef-pli .qodef-pli-add-to-cart a.button::after {
	display: none !important;
}

.qodef-pl-holder .qodef-pli:hover .qodef-pli-add-to-cart a.button,
.qodef-pl-holder .qodef-pli .qodef-pli-add-to-cart a.button:focus-visible {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

.qodef-pl-holder .qodef-pli .qodef-pli-add-to-cart a.button:hover {
	background: var(--mc-navy) !important;
	color: #fff !important;
}

@media (hover: none), (max-width: 768px) {
	.qodef-pl-holder .qodef-pli .qodef-pli-add-to-cart a.button {
		opacity: 1 !important;
		transform: none !important;
		padding: 7px 14px !important;
		font-size: 12px !important;
	}
}

/* ---------- Single product ---------- */

.qodef-woo-single-page .qodef-content .qodef-content-inner > .qodef-container > .qodef-container-inner {
	padding-top: 28px !important;
}

.qodef-woo-single-page .qodef-single-product-content {
	padding-top: 0;
}

.qodef-woo-single-page .qodef-single-product-content .images .woocommerce-product-gallery__image,
.qodef-woo-single-page .qodef-single-product-content .images .woocommerce-product-gallery__image img {
	border-radius: var(--mc-radius);
}

.qodef-woo-single-page .qodef-single-product-content .images .woocommerce-product-gallery__image {
	overflow: hidden;
	background: transparent;
}

.qodef-woo-single-page .qodef-single-product-content .images .woocommerce-product-gallery__image img {
	background: var(--mc-sand);
	mix-blend-mode: multiply;
}

.qodef-woo-single-page .qodef-single-product-summary .qodef-single-product-title {
	font-size: clamp(32px, 3.4vw, 44px) !important;
	line-height: 1.1 !important;
	margin-bottom: 10px;
}

.qodef-woo-single-page .qodef-single-product-summary .price {
	font-size: 26px !important;
	font-weight: 600;
	color: var(--mc-terracotta) !important;
	margin: 0 0 22px !important;
}

.qodef-woo-single-page .qodef-single-product-summary .woocommerce-product-details__short-description {
	font-size: 16px;
	line-height: 1.7;
	color: #3a3f4a;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--mc-line);
}

body.qodef-woocommerce-page .qodef-content .variations td.label,
body.qodef-woocommerce-page .qodef-content .variations th.label {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--mc-navy);
}

.qodef-woo-single-page .qodef-single-product-summary form.cart .fpf-fields label,
.qodef-woo-single-page .qodef-single-product-summary form.cart .fpf-field label {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--mc-navy);
}

.qodef-woo-single-page .qodef-single-product-summary form.cart input[type=text]:not(.qty),
.qodef-woo-single-page .qodef-single-product-summary form.cart input[type=email],
.qodef-woo-single-page .qodef-single-product-summary form.cart input[type=number]:not(.qty),
.qodef-woo-single-page .qodef-single-product-summary form.cart textarea,
.qodef-woo-single-page .qodef-single-product-summary form.cart select {
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius) !important;
	background: #fff !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.qodef-woo-single-page .qodef-single-product-summary form.cart input:focus,
.qodef-woo-single-page .qodef-single-product-summary form.cart textarea:focus,
.qodef-woo-single-page .qodef-single-product-summary form.cart select:focus {
	border-color: var(--mc-navy) !important;
	box-shadow: 0 0 0 3px rgba(29, 79, 145, .12);
	outline: none;
}

.qodef-woo-single-page .qodef-single-product-summary .woocommerce-variation-add-to-cart,
.qodef-woo-single-page .qodef-single-product-summary form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.qodef-woo-single-page .qodef-single-product-summary .woocommerce-variation-add-to-cart > .fpf-fields,
.qodef-woo-single-page .qodef-single-product-summary form.cart > .fpf-fields {
	flex: 1 0 100%;
}

.qodef-woo-single-page .qodef-single-product-summary .fpf-fields {
	margin: 4px 0 0 !important;
}

.qodef-woo-single-page .qodef-single-product-summary .fpf-fields .form-row {
	margin: 0 0 18px !important;
}

.qodef-woo-single-page .qodef-single-product-summary table.variations tr {
	padding-top: 0 !important;
}

.qodef-woo-single-page .qodef-single-product-summary .qodef-quantity-input {
	width: 34px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: center;
	font-size: 16px;
}

.qodef-woo-single-page .qodef-single-product-summary .fpf-fields input.input-text {
	width: 100% !important;
	box-sizing: border-box;
}

.qodef-woo-single-page .qodef-single-product-summary .qodef-quantity-buttons {
	border-radius: var(--mc-btn-radius) !important;
	height: 52px;
	padding: 0 8px;
	border-color: var(--mc-line) !important;
}

.qodef-woo-single-page .qodef-single-product-summary .single_add_to_cart_button {
	flex: 1 1 220px;
	height: 52px;
	padding: 0 28px !important;
	font-size: 16px !important;
	margin: 0 !important;
}

/* Colour swatches */
.qodef-woo-single-page .qodef-single-product-summary table.variations {
	margin-bottom: 8px !important;
}

.qodef-woo-single-page .qodef-single-product-summary table.variations td,
.qodef-woo-single-page .qodef-single-product-summary table.variations th {
	padding-bottom: 8px !important;
}

.qodef-woo-single-page .qodef-single-product-summary .woocommerce-variation.single_variation:empty {
	display: none;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item) {
	border-radius: 8px !important;
	box-shadow: 0 0 0 1px var(--mc-line) !important;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected {
	box-shadow: 0 0 0 2px var(--mc-navy) !important;
}

.woo-variation-swatches .variable-items-wrapper .variable-item.button-variable-item {
	border-radius: var(--mc-btn-radius) !important;
	padding: 0 14px;
}

.qodef-woo-single-page .qodef-single-product-summary .product_meta {
	font-size: 13px;
	color: var(--mc-muted);
	margin-top: 18px;
}

.qodef-woo-single-page .qodef-single-product-summary .product_meta a {
	color: var(--mc-navy);
}

/* Tabs */
.qodef-woo-single-page .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--mc-line);
}

.qodef-woo-single-page .woocommerce-tabs ul.tabs > li > a {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	padding: 10px 0 !important;
	margin-right: 24px;
	font-weight: 600;
	color: var(--mc-muted) !important;
}

.qodef-woo-single-page .woocommerce-tabs ul.tabs > li.active > a {
	color: var(--mc-navy) !important;
	border-bottom-color: var(--mc-terracotta) !important;
}

.qodef-woo-single-page .woocommerce-tabs table.shop_attributes th,
.qodef-woo-single-page .woocommerce-tabs table.shop_attributes td {
	padding: 10px 24px 10px 0;
	border-bottom: 1px solid var(--mc-line);
	font-size: 15px;
}

.related.products > h2,
.upsells.products > h2,
.cross-sells > h2 {
	font-size: clamp(26px, 3vw, 34px) !important;
	margin-bottom: 28px !important;
}

/* ---------- Basket & checkout ---------- */

.woocommerce-checkout .woocommerce,
.woocommerce-cart .woocommerce {
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

.qodef-woocommerce-page table.cart,
.qodef-woocommerce-page table.shop_table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-radius);
	overflow: hidden;
	background: #fff;
}

.qodef-woocommerce-page table.cart thead th,
.qodef-woocommerce-page table.shop_table thead th {
	background: var(--mc-sand);
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--mc-navy);
}

.qodef-woocommerce-page table.cart td.product-thumbnail img {
	border-radius: 10px;
	background: var(--mc-sand);
}

.qodef-woocommerce-page table.cart td.product-name a {
	font-family: var(--mc-serif);
	font-size: 18px;
	color: var(--mc-ink);
}

.qodef-woocommerce-page .cart-collaterals .cart_totals {
	background: var(--mc-sand);
	border-radius: var(--mc-radius);
	padding: 28px;
	box-sizing: border-box;
}

.qodef-woocommerce-page .cart-collaterals .cart_totals table.shop_table {
	background: transparent;
	border: 0 !important;
}

.qodef-woocommerce-page .cart-collaterals .cart_totals h2,
body.qodef-woocommerce-page .cart-collaterals h2 {
	margin-top: 0 !important;
	font-size: 28px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border-radius: var(--mc-btn-radius) !important;
	background: var(--mc-terracotta) !important;
	text-align: center;
	font-size: 17px !important;
	padding: 16px 24px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	height: auto !important;
	min-height: 56px;
	line-height: 24px !important;
}

.woocommerce-cart table.cart .qodef-quantity-buttons {
	border-radius: var(--mc-btn-radius) !important;
	border-color: var(--mc-line) !important;
	max-width: 130px;
}

.woocommerce-checkout form.checkout .form-row select {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	font-size: 15px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--mc-navy) !important;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-additional-fields h3 {
	font-size: 26px !important;
	margin-bottom: 18px;
}

.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row textarea,
.woocommerce-checkout form.checkout .form-row select,
.woocommerce-checkout form.checkout .select2-container .select2-selection--single,
.woocommerce-cart .coupon input.input-text {
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius) !important;
	background: #fff !important;
	box-shadow: none !important;
}

.woocommerce-checkout form.checkout .form-row input.input-text:focus,
.woocommerce-checkout form.checkout .form-row textarea:focus {
	border-color: var(--mc-navy) !important;
}

.woocommerce-checkout form.checkout .form-row label {
	font-size: 14px;
	font-weight: 600;
	color: var(--mc-ink);
}

/* Checkout: details on the left, order summary + payment on the right (desktop).
   Payment fields themselves (the Stripe iframe) are never styled. */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	display: block;
	padding: 14px 18px !important;
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius) !important;
	background: #fff !important;
	color: var(--mc-muted) !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
	float: none !important;
	display: inline !important;
	margin-left: 4px;
	color: var(--mc-navy) !important;
	font-size: inherit !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
	display: none;
}

.woocommerce-checkout form.checkout_coupon {
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius);
	padding: 18px !important;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

.woocommerce-checkout #customer_details .col-2 {
	margin: 32px 0 0 !important;
}

.woocommerce-checkout #customer_details .form-row {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media only screen and (min-width: 481px) {
	.woocommerce-checkout #customer_details .form-row-first,
	.woocommerce-checkout #customer_details .form-row-last {
		width: calc(50% - 8px) !important;
	}

	.woocommerce-checkout #customer_details .form-row-first {
		margin-right: 16px !important;
	}
}

.woocommerce-checkout #ship-to-different-address {
	font-size: 22px !important;
}

.woocommerce-checkout #ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.woocommerce-checkout input[type=checkbox],
.woocommerce-checkout input[type=radio],
.woocommerce-account input[type=checkbox],
.woocommerce-cart input[type=radio] {
	accent-color: var(--mc-navy);
	width: 17px;
	height: 17px;
	margin: 0;
	flex: 0 0 auto;
}

.woocommerce-checkout #order_review_heading {
	margin-top: 0 !important;
}

.woocommerce-checkout #order_review {
	background: var(--mc-sand);
	border-radius: var(--mc-radius);
	padding: 24px;
	box-sizing: border-box;
}

.woocommerce-checkout #order_review table.shop_table {
	background: #fff;
	border-radius: var(--mc-field-radius);
	margin-bottom: 20px;
}

.qodef-woocommerce-page #order_review table.shop_table th,
.qodef-woocommerce-page #order_review table.shop_table td,
.qodef-woocommerce-page .cart_totals table.shop_table th,
.qodef-woocommerce-page .cart_totals table.shop_table td {
	padding: 14px 18px !important;
	border-top: 1px solid var(--mc-line) !important;
	vertical-align: top;
	font-size: 15px !important;
	line-height: 1.45 !important;
}

.qodef-woocommerce-page #order_review table.shop_table thead th {
	border-top: 0 !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

.qodef-woocommerce-page #order_review table.shop_table td.product-total,
.qodef-woocommerce-page #order_review table.shop_table tfoot td {
	text-align: right;
	white-space: nowrap;
}

.qodef-woocommerce-page #order_review table.shop_table thead th.product-total {
	text-align: right;
}

.qodef-woocommerce-page #order_review table.shop_table tfoot th {
	font-weight: 600;
	color: var(--mc-ink);
}

.qodef-woocommerce-page #order_review table.shop_table tr.order-total th,
.qodef-woocommerce-page #order_review table.shop_table tr.order-total td {
	font-size: 17px !important;
	color: var(--mc-navy);
}

.qodef-woocommerce-page .cart_totals table.shop_table th,
.qodef-woocommerce-page .cart_totals table.shop_table td {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.qodef-woocommerce-page .cart_totals table.shop_table tr:first-child th,
.qodef-woocommerce-page .cart_totals table.shop_table tr:first-child td {
	border-top: 0 !important;
}

/* Shipping choices */
.woocommerce ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.woocommerce ul#shipping_method li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	white-space: normal;
}

.woocommerce ul#shipping_method li:last-child {
	margin-bottom: 0;
}

.woocommerce ul#shipping_method li label {
	margin: 0;
	cursor: pointer;
}

.qodef-woocommerce-page #order_review table.shop_table th.product-name,
.qodef-woocommerce-page #order_review table.shop_table td.product-name {
	width: 62%;
}

.qodef-woocommerce-page #order_review table.shop_table tr.woocommerce-shipping-totals td {
	text-align: left;
}

.woocommerce-shipping-destination,
.woocommerce-shipping-calculator {
	font-size: 14px;
	color: var(--mc-muted);
}

/* Payment methods: one simple bordered list, no nested boxes */
.woocommerce-checkout #payment {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
	margin: 0 0 18px !important;
	padding: 0 !important;
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius);
	background: #fff;
	list-style: none;
	overflow: hidden;
}

.woocommerce-checkout #payment ul.payment_methods > li {
	margin: 0 !important;
	padding: 16px 18px !important;
	border-top: 1px solid var(--mc-line);
	line-height: 1.4;
}

.woocommerce-checkout #payment ul.payment_methods > li:first-child {
	border-top: 0;
}

.woocommerce-checkout #payment ul.payment_methods > li > label {
	display: inline-block;
	margin: 0 0 0 8px;
	vertical-align: middle;
	font-weight: 600;
	color: var(--mc-ink);
	cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods > li > input[type=radio] {
	vertical-align: middle;
}

.woocommerce-checkout #payment ul.payment_methods > li.woocommerce-notice,
.woocommerce-checkout #payment ul.payment_methods > li.woocommerce-info {
	border: 0 !important;
	background: transparent !important;
	color: var(--mc-muted) !important;
	font-size: 15px;
}

.woocommerce-checkout #payment .payment_box {
	margin: 12px 0 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	color: var(--mc-muted);
	font-size: 14px;
}

.woocommerce-checkout #payment .payment_box::before {
	display: none !important;
}

.woocommerce-checkout #payment .payment_box p:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout #payment .form-row.place-order {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text:empty,
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper:not(:has(*:not(:empty))) {
	display: none;
}

.woocommerce-checkout #payment #place_order {
	width: 100%;
	border-radius: var(--mc-btn-radius) !important;
	font-size: 17px !important;
	padding: 16px 24px !important;
	height: auto !important;
}

@media only screen and (min-width: 1025px) {
	.woocommerce-checkout form.checkout::after {
		content: '';
		display: table;
		clear: both;
	}

	.woocommerce-checkout form.checkout #customer_details {
		float: left;
		width: calc(100% - 470px);
	}

	.woocommerce-checkout form.checkout #order_review_heading,
	.woocommerce-checkout form.checkout #order_review {
		float: right;
		clear: right;
		width: 420px;
	}
}

.medcer-shop-message {
	background-color: var(--mc-navy);
	border-radius: var(--mc-radius);
}

.woocommerce-cross {
	background-color: var(--mc-navy);
	border-radius: var(--mc-radius);
}

.qodef-woocommerce-page .woocommerce-message,
.qodef-woocommerce-page .woocommerce-info,
.qodef-woocommerce-page .woocommerce-error {
	border-radius: var(--mc-radius);
}

/* ---------- Basket: spacing, actions row, totals panel ---------- */

/* WooCommerce notices: message and button on one aligned line */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 24px !important;
	padding: 16px 20px !important;
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius) !important;
	background: #fff !important;
	color: var(--mc-ink) !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

.woocommerce-notices-wrapper .woocommerce-message {
	border-left: 3px solid var(--mc-navy) !important;
}

.woocommerce-notices-wrapper .woocommerce-error {
	border-left: 3px solid #b3261e !important;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
	display: none !important;
}

.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-info .button,
.woocommerce-notices-wrapper .woocommerce-error .button {
	order: 2;
	float: none !important;
	margin: 0 !important;
	padding: 9px 18px !important;
	height: auto !important;
	min-width: 0 !important;
	border: 1px solid var(--mc-navy) !important;
	background: transparent !important;
	color: var(--mc-navy) !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
}

.woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-info .button:hover,
.woocommerce-notices-wrapper .woocommerce-error .button:hover {
	background: var(--mc-navy) !important;
	color: #fff !important;
}

/* Table */
.woocommerce-cart table.shop_table.cart {
	margin: 0 0 32px !important;
}

.woocommerce-cart table.shop_table.cart thead th,
.woocommerce-cart table.shop_table.cart tbody td {
	padding: 16px 18px !important;
	vertical-align: middle !important;
	border-top: 1px solid var(--mc-line) !important;
}

.woocommerce-cart table.shop_table.cart thead th {
	border-top: 0 !important;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
	text-align: left;
}

.woocommerce-cart table.shop_table.cart th.product-remove,
.woocommerce-cart table.shop_table.cart td.product-remove {
	width: 44px;
	padding-right: 0 !important;
	text-align: center;
}

.woocommerce-cart table.shop_table.cart th.product-thumbnail,
.woocommerce-cart table.shop_table.cart td.product-thumbnail {
	width: 96px;
	padding-right: 0 !important;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
	display: block;
	width: 84px !important;
	height: 84px !important;
	object-fit: cover;
	border-radius: var(--mc-field-radius) !important;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--mc-muted) !important;
	font-size: 20px;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove::after {
	display: none !important; /* the theme adds a second "×" icon */
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
	background: var(--mc-sand);
	color: #b3261e !important;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .qodef-quantity-buttons {
	width: 120px;
	margin: 0 !important;
}

/* Coupon and Update: padded, with quieter outlined buttons */
.woocommerce-cart table.shop_table.cart td.actions {
	padding: 18px !important;
	background: #fcfaf7;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
	display: flex;
	align-items: stretch;
	gap: 10px;
	float: left;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text {
	width: 200px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	font-size: 15px;
}

.woocommerce-cart table.shop_table.cart td.actions .button {
	height: 44px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	min-width: 0 !important;
	border: 1px solid var(--mc-navy) !important;
	background: transparent !important;
	color: var(--mc-navy) !important;
	font-size: 14px !important;
	line-height: 42px !important;
}

.woocommerce-cart table.shop_table.cart td.actions .button:hover:not(:disabled) {
	background: var(--mc-navy) !important;
	color: #fff !important;
}

.woocommerce-cart table.shop_table.cart td.actions .button:disabled,
.woocommerce-cart table.shop_table.cart td.actions .button[disabled] {
	opacity: .45;
	cursor: default;
}

.woocommerce-cart table.shop_table.cart td.actions > .button {
	float: right;
}

/* Totals: separate panel, right-hand column on desktop */
.woocommerce-cart .cart-collaterals {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	float: none !important;
	width: 100% !important;
	max-width: 460px;
	margin: 0 !important;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
	font-size: 26px !important;
	margin: 0 0 12px !important;
}

@media only screen and (max-width: 768px) {
	.woocommerce-cart .cart-collaterals .cart_totals {
		max-width: none;
	}

	/* Each basket item becomes a small card: image | name, price, quantity | subtotal */
	.woocommerce-cart table.shop_table.cart,
	.woocommerce-cart table.shop_table.cart tbody {
		display: block;
		width: 100%;
	}

	.woocommerce-cart table.shop_table.cart thead {
		display: none;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 72px 1fr auto;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb qty subtotal";
		column-gap: 14px;
		row-gap: 6px;
		align-items: center;
		padding: 16px;
		border-top: 1px solid var(--mc-line);
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item:first-child {
		border-top: 0;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item td {
		display: block !important;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
		text-align: left !important;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item td::before {
		display: none !important; /* WooCommerce's "Price:" style labels */
	}

	.woocommerce-cart table.shop_table.cart td.product-thumbnail { grid-area: thumb; align-self: start; }
	.woocommerce-cart table.shop_table.cart td.product-name { grid-area: name; }
	.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: remove; align-self: start; }
	.woocommerce-cart table.shop_table.cart td.product-price { grid-area: price; font-size: 14px !important; color: var(--mc-muted); }
	.woocommerce-cart table.shop_table.cart td.product-quantity { grid-area: qty; }
	.woocommerce-cart table.shop_table.cart td.product-subtotal { grid-area: subtotal; font-weight: 600; text-align: right !important; }

	.woocommerce-cart table.shop_table.cart td.product-name a {
		font-size: 17px;
		line-height: 1.3;
	}

	.woocommerce-cart table.shop_table.cart td.product-quantity .qodef-quantity-buttons {
		width: 110px;
		height: 40px;
	}

	.woocommerce-cart table.shop_table.cart tr:not(.cart_item),
	.woocommerce-cart table.shop_table.cart td.actions {
		display: block;
		width: auto !important;
	}

	.woocommerce-cart table.shop_table.cart td.actions {
		border-top: 1px solid var(--mc-line) !important;
		padding: 14px 16px !important;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon {
		width: 100%;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text {
		min-width: 0;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon .button {
		flex: 0 0 auto;
		padding: 0 14px !important;
	}

	/* The theme hides basket thumbnails on small screens */
	.woocommerce-cart table.shop_table.cart td.product-thumbnail,
	.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
	.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
		display: block !important;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon {
		float: none;
		margin-bottom: 10px;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text {
		flex: 1 1 auto;
		width: auto !important;
	}

	.woocommerce-cart table.shop_table.cart td.actions > .button {
		float: none;
		width: 100%;
	}

	.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
		width: 64px !important;
		height: 64px !important;
	}
}

/* ---------- Homepage ---------- */

.medcer-usps {
	border-bottom: 1px solid var(--mc-line);
	padding: 30px 0;
}

.medcer-usps ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.medcer-usps li {
	margin: 0;
	padding: 0 28px;
	border-left: 1px solid var(--mc-line);
}

.medcer-usps li:first-child {
	padding-left: 0;
	border-left: 0;
}

.medcer-usps strong {
	display: block;
	margin-bottom: 4px;
	font-family: var(--mc-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--mc-navy);
}

.medcer-usps span {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mc-muted);
}

/* Product page reassurance list */
.medcer-assurances {
	margin: 28px 0 8px;
	border-top: 1px solid var(--mc-line);
}

.medcer-assurances > div {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--mc-line);
	font-size: 14px;
	line-height: 1.5;
}

.medcer-assurances dt {
	font-weight: 700;
	color: var(--mc-navy);
}

.medcer-assurances dd {
	margin: 0;
	color: var(--mc-muted);
}

.medcer-assurances a {
	color: var(--mc-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.medcer-collections {
	padding: 90px 0 30px;
}

.medcer-section-head {
	text-align: center;
	margin-bottom: 40px;
}

.medcer-section-head h2 {
	margin: 6px 0 0;
}

.medcer-collections ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.medcer-collections li {
	margin: 0;
}

.medcer-collections a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.medcer-collection-img {
	display: block;
	border-radius: var(--mc-radius);
	background: var(--mc-sand);
	overflow: hidden;
	transition: box-shadow .3s ease, transform .3s ease;
}

.medcer-collection-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	padding: 8%;
	box-sizing: border-box;
	mix-blend-mode: multiply;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.medcer-collections a:hover .medcer-collection-img {
	box-shadow: var(--mc-shadow);
	transform: translateY(-3px);
}

.medcer-collections a:hover .medcer-collection-img img {
	transform: scale(1.06);
}

.medcer-collection-name {
	display: block;
	margin-top: 14px;
	font-family: var(--mc-serif);
	font-size: 21px;
	line-height: 1.2;
	color: var(--mc-navy);
}

.medcer-collection-count {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--mc-muted);
}

.medcer-collections-cta {
	margin-top: 40px;
	text-align: center;
}

.medcer-collections-cta .button {
	display: inline-block;
	width: auto;
	color: #fff !important;
}

/* Existing WPBakery sections */
.home .qodef-content p[style*="font-size: 20px"] {
	color: var(--mc-muted);
	font-size: 18px !important;
	line-height: 1.6;
}

.home .repeatable-bg p strong {
	font-family: var(--mc-serif);
	font-weight: 500;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.35;
	color: var(--mc-navy);
}

.home .cover-bg h2 {
	color: #fff !important;
}

.home .cover-bg p {
	font-size: 18px;
	line-height: 1.7;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* Testimonials as a single centred quote card */
.qodef-testimonials-holder.qodef-testimonials-standard .qodef-testimonial-content {
	max-width: 820px;
	margin: 0 auto;
}

.qodef-testimonials-holder.qodef-testimonials-standard .qodef-testimonial-text-holder {
	background: #fff;
	border-radius: 20px;
	box-shadow: var(--mc-shadow);
	padding: 48px 56px 40px;
	margin: 20px 16px 30px;
}

.qodef-testimonials-holder.qodef-testimonials-standard .qodef-testimonial-text {
	margin-top: 0 !important;
	font-family: var(--mc-serif);
	font-size: clamp(19px, 2vw, 24px) !important;
	line-height: 1.5 !important;
	color: var(--mc-ink) !important;
	font-style: normal;
}

.qodef-testimonials-holder.qodef-testimonials-standard .qodef-testimonial-text::before {
	content: '\201C';
	display: block;
	font-size: 72px;
	line-height: .6;
	color: var(--mc-terracotta);
	margin-bottom: 12px;
}

.qodef-testimonials-holder.qodef-testimonials-standard .qodef-testimonials-author-name {
	font-family: Lato, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--mc-terracotta) !important;
	margin-top: 18px;
}

.medcer-ornament {
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 auto 16px;
}

/* Tile badge above the homepage's WPBakery section headings and "Related products" */
.home .qodef-content .wpb_text_column h2:first-child::before,
.related.products > h2::before {
	content: '';
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 auto 16px;
	background: url(../images/tile-ornament.svg) center / contain no-repeat;
}

.related.products > h2 {
	text-align: center;
}

.home .cover-bg .wpb_text_column h2:first-child::before {
	filter: brightness(0) invert(1);
	opacity: .9;
}

.related.products > h2::before {
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
}

/* Editorial collections grid: the first collection takes a large tile */
.medcer-collections ul {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: dense;
}

.medcer-collections li.is-feature {
	grid-column: span 2;
	grid-row: span 2;
}

.medcer-collections li.is-feature a {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.medcer-collections li.is-feature .medcer-collection-img {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.medcer-collections li.is-feature .medcer-collection-img img {
	aspect-ratio: auto;
	height: 100%;
	max-height: 560px;
	padding: 6%;
}

.medcer-collections li.is-feature .medcer-collection-name {
	font-size: 30px;
}

/* Closing "made to order" band on the royal tile pattern */
.medcer-commission {
	padding: 96px 0;
	background: linear-gradient(rgba(16, 26, 52, .45), rgba(16, 26, 52, .45)), url(../images/detail-plate.webp) center / cover no-repeat, var(--mc-navy);
}

.medcer-commission-panel {
	max-width: 640px;
	margin: 0 auto;
	padding: 52px 56px 48px;
	background: #fff;
	border-radius: var(--mc-radius);
	box-shadow: 0 24px 60px rgba(10, 30, 70, .28);
	text-align: center;
}

.medcer-commission-panel h2 {
	margin: 0 0 14px;
	font-size: clamp(30px, 3.4vw, 42px);
}

.medcer-commission-panel p {
	margin: 0 auto 28px;
	max-width: 500px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--mc-muted);
}

.medcer-commission-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.button.button--outline {
	background: transparent !important;
	border: 1px solid var(--mc-navy) !important;
	color: var(--mc-navy) !important;
}

.button.button--outline:hover {
	background: var(--mc-navy) !important;
	color: #fff !important;
}

/* Mobile header EU badge, shown 769–1024px */
.qodef-mobile-header .qodef-position-right img {
	max-height: 26px;
	width: auto;
}

@media only screen and (max-width: 1024px) {
	.medcer-collections li.is-feature {
		grid-column: span 2;
		grid-row: auto;
	}

	.medcer-collections li.is-feature .medcer-collection-img img {
		max-height: 420px;
	}
}

@media only screen and (max-width: 768px) {
	.medcer-commission {
		padding: 56px 0;
	}

	.medcer-commission-panel {
		padding: 36px 24px 32px;
	}

	.medcer-collections li.is-feature .medcer-collection-name {
		font-size: 22px;
	}

}

/* Blue bands: a photographed detail of a hand-painted sun tile, fading in from the right */
.medcer-shop-header,
.qodef-title-holder,
.woocommerce-order .woocommerce-thankyou-order-received {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.medcer-shop-header::before,
.qodef-title-holder::before,
.woocommerce-order .woocommerce-thankyou-order-received::before {
	content: '';
	position: absolute;
	inset: 0 0 0 auto;
	width: min(62%, 860px);
	z-index: -1;
	background: url(../images/detail-sun.webp) center 42% / cover no-repeat;
	opacity: .5;
	mix-blend-mode: luminosity;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
	pointer-events: none;
}

.woocommerce-order .woocommerce-thankyou-order-received::before {
	width: 55%;
	opacity: .4;
}

/* Small screens: the photo sits behind the title, so keep it quieter */
@media only screen and (max-width: 768px) {
	.medcer-shop-header::before,
	.qodef-title-holder::before,
	.woocommerce-order .woocommerce-thankyou-order-received::before {
		width: 100%;
		opacity: .26;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
	}
}

/* ---------- Home category banners (replace the slider) ---------- */

.medcer-banners {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
	height: clamp(540px, 74vh, 740px);
	padding: 10px;
	box-sizing: border-box;
}

.medcer-banner:first-child {
	grid-column: 1;
	grid-row: 1 / 3;
}

.medcer-banners--2 .medcer-banner:nth-child(2) { grid-column: 2 / 4; grid-row: 1 / 3; }
.medcer-banners--3 .medcer-banner:nth-child(n+2) { grid-column: 2 / 4; }
.medcer-banners--4 .medcer-banner:nth-child(2) { grid-column: 2 / 4; }

/* Colours are set on the banner and its parts so the theme's link hover can't change them */
.medcer-banners a.medcer-banner,
.medcer-banners a.medcer-banner:hover,
.medcer-banners a.medcer-banner:focus {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border-radius: 6px;
	background: var(--mc-navy);
	color: var(--mc-navy);
	text-decoration: none;
}

.medcer-banner-media {
	position: absolute;
	inset: 0;
}

.medcer-banner-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.medcer-banner:hover .medcer-banner-media img {
	transform: scale(1.04);
}

.medcer-banner-body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.medcer-banners .medcer-banner-title {
	font-family: var(--mc-serif);
	font-size: clamp(21px, 1.8vw, 27px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.01em;
	color: var(--mc-navy);
}

.medcer-banners .medcer-banner-text {
	font-size: 14px;
	line-height: 1.45;
	color: var(--mc-muted);
}

.medcer-banners .medcer-banner-cta {
	margin-top: 8px;
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--mc-terracotta);
}

.medcer-banner-cta::after {
	content: ' \2192';
	display: inline-block;
	transition: transform .25s ease;
}

.medcer-banner:hover .medcer-banner-cta::after {
	transform: translateX(4px);
}

/* Photo: a white caption plate in the corner, readable on any picture */
.medcer-banner--photo .medcer-banner-body {
	margin: 18px;
	padding: 18px 22px 16px;
	max-width: min(360px, calc(100% - 36px));
	box-sizing: border-box;
	background: rgba(255, 255, 255, .9);
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 6px;
	box-shadow: 0 8px 28px rgba(10, 25, 55, .16);
	transition: background-color .3s ease, box-shadow .3s ease;
}

/* Frosted glass where supported: the photo shows through, blurred, behind the text */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.medcer-banner--photo .medcer-banner-body {
		background: rgba(255, 255, 255, .5);
		-webkit-backdrop-filter: blur(2px) saturate(50%);
		backdrop-filter: blur(2px) saturate(50%);
	}

	.medcer-banner--photo:hover .medcer-banner-body {
		background: rgba(255, 255, 255, .62);
	}

	/* Darker text with a faint light halo, since the plate is half see-through */
	.medcer-banners .medcer-banner--photo .medcer-banner-title {
		color: #12254a;
	}

	.medcer-banners .medcer-banner--photo .medcer-banner-text {
		color: #1f2430;
	}

	.medcer-banners .medcer-banner--photo .medcer-banner-cta {
		color: #8e4530;
	}

	.medcer-banners .medcer-banner--photo .medcer-banner-body > * {
		text-shadow: 0 0 10px rgba(255, 255, 255, .6);
	}
}

.medcer-banner--photo:hover .medcer-banner-body {
	box-shadow: 0 12px 34px rgba(10, 25, 55, .24);
}

/* Studio: product shot on warm sand, text above, product below — never overlapping */
.medcer-banners a.medcer-banner--studio,
.medcer-banners a.medcer-banner--studio:hover {
	flex-direction: column;
	align-items: stretch;
	background: var(--mc-sand);
}

.medcer-banner--studio .medcer-banner-body {
	padding: 40px 40px 0;
}

.medcer-banner--studio .medcer-banner-media {
	position: relative;
	inset: auto;
	flex: 1 1 auto;
	order: 2;
	min-height: 0;
	background: var(--mc-sand);
}

.medcer-banner--studio .medcer-banner-media img {
	position: absolute;
	inset: 0;
	object-fit: contain;
	object-position: center bottom;
	padding: 20px 8% 24px;
	box-sizing: border-box;
	mix-blend-mode: multiply;
}

.medcer-banner--studio:first-child .medcer-banner-title {
	font-size: clamp(34px, 3.6vw, 52px);
}

.medcer-banner--studio:first-child .medcer-banner-text {
	font-size: 16px;
}

/* Dark: bold type on deep navy, for sales and announcements */
.medcer-banners a.medcer-banner--dark,
.medcer-banners a.medcer-banner--dark:hover {
	background: #0f2147;
}

/* Dark banner with a photo: a navy wash behind the text, deepest at the bottom-left */
.medcer-banner--dark .medcer-banner-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(15, 33, 71, .88) 0%, rgba(15, 33, 71, .55) 38%, rgba(15, 33, 71, .08) 72%, rgba(15, 33, 71, 0) 100%),
		linear-gradient(90deg, rgba(15, 33, 71, .35) 0%, rgba(15, 33, 71, 0) 70%);
}

.medcer-banners .medcer-banner--dark:has(.medcer-banner-media) .medcer-banner-title,
.medcer-banners .medcer-banner--dark:has(.medcer-banner-media) .medcer-banner-text {
	text-shadow: 0 1px 14px rgba(10, 22, 48, .45);
}

/* Shorter banners on phones put the text higher, so the wash reaches further up */
@media only screen and (max-width: 600px) {
	.medcer-banner--dark .medcer-banner-media::after {
		background: linear-gradient(0deg, rgba(15, 33, 71, .9) 0%, rgba(15, 33, 71, .72) 50%, rgba(15, 33, 71, .3) 80%, rgba(15, 33, 71, .1) 100%);
	}
}

/* The faint tile watermark is only for plain navy banners */
.medcer-banner--dark:has(.medcer-banner-media)::before {
	display: none;
}

/* A large, faint tile motif for texture */
.medcer-banner--dark::before {
	content: '';
	position: absolute;
	top: -12%;
	right: -14%;
	width: 78%;
	aspect-ratio: 1;
	background: url(../images/tile-ornament.svg) center / contain no-repeat;
	filter: brightness(0) invert(1);
	opacity: .06;
	transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
	pointer-events: none;
}

.medcer-banner--dark:hover::before {
	transform: rotate(12deg) scale(1.03);
}

.medcer-banner--dark .medcer-banner-body {
	padding: 44px;
	gap: 8px;
}

.medcer-banner-ornament {
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	filter: brightness(0) invert(1);
	opacity: .9;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.medcer-banner--dark:hover .medcer-banner-ornament {
	transform: rotate(45deg);
}

.medcer-banners .medcer-banner--dark .medcer-banner-title {
	color: #fff;
	font-size: clamp(30px, 3vw, 44px);
}

.medcer-banners .medcer-banner--dark:first-child .medcer-banner-title {
	font-size: clamp(52px, 6vw, 92px);
	line-height: .95;
	letter-spacing: -.02em;
}

.medcer-banners .medcer-banner--dark .medcer-banner-text {
	max-width: 360px;
	color: rgba(255, 255, 255, .78);
	font-size: 16px;
}

.medcer-banners .medcer-banner--dark .medcer-banner-cta {
	margin-top: 14px;
	color: #f0b39c;
	font-size: 15px;
}

@media only screen and (max-width: 1024px) {
	.medcer-banners {
		height: auto;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
		grid-auto-rows: auto;
	}

	.medcer-banners .medcer-banner:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 460px;
	}

	.medcer-banners .medcer-banner:nth-child(n+2) {
		grid-column: auto;
		grid-row: auto;
		min-height: 320px;
	}

	.medcer-banners--2 .medcer-banner:nth-child(2),
	.medcer-banners--4 .medcer-banner:nth-child(2) {
		grid-column: 1 / -1;
	}

	/* Wide studio banner: product beside the text */
	.medcer-banners a.medcer-banner--studio:first-child,
	.medcer-banners a.medcer-banner--studio:first-child:hover {
		flex-direction: row;
		align-items: stretch;
	}

	.medcer-banner--studio:first-child .medcer-banner-body {
		flex: 0 0 46%;
		justify-content: center;
		padding: 32px;
		box-sizing: border-box;
	}

	.medcer-banner--studio:first-child .medcer-banner-media img {
		object-position: center;
		padding: 28px 6%;
	}
}

@media only screen and (max-width: 600px) {
	.medcer-banners {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 8px;
	}

	.medcer-banners .medcer-banner:first-child {
		min-height: 520px;
	}

	.medcer-banners .medcer-banner:nth-child(n+2) {
		grid-column: 1;
		min-height: 300px;
	}

	.medcer-banners a.medcer-banner--studio:first-child,
	.medcer-banners a.medcer-banner--studio:first-child:hover {
		flex-direction: column;
	}

	.medcer-banner--studio:first-child .medcer-banner-body {
		flex: 0 0 auto;
		padding: 28px 24px 0;
	}

	.medcer-banner--studio:first-child .medcer-banner-media img {
		object-position: center bottom;
		padding: 16px 12% 20px;
	}

	.medcer-banner--photo .medcer-banner-body {
		margin: 12px;
		padding: 16px 18px 14px;
		max-width: calc(100% - 24px);
	}

	.medcer-banner--dark .medcer-banner-body {
		padding: 32px 24px;
	}

	.medcer-banners .medcer-banner--dark:first-child {
		min-height: 380px;
	}
}

/* ---------- Footer ---------- */

.qodef-page-footer .qodef-footer-top-holder,
.qodef-page-footer {
	background: var(--mc-navy) !important;
}

.medcer-footer {
	padding: 72px 0 32px;
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	line-height: 1.6;
}

.medcer-footer a {
	color: #fff;
	text-decoration: none;
	border: 0;
	transition: color .2s ease;
}

.medcer-footer a:hover {
	color: #f0c4b2;
}

.medcer-footer-main {
	display: grid;
	grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 56px;
}

.medcer-footer-logo {
	display: inline-block;
	margin-bottom: 20px;
}

.medcer-footer-logo img {
	display: block;
	width: 210px;
	height: auto;
}

.medcer-footer-brand p {
	max-width: 300px;
	margin: 0;
	font-family: var(--mc-serif);
	font-size: 17px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .8);
}

.medcer-footer .medcer-footer-title {
	margin: 0 0 18px;
	font-family: var(--mc-serif) !important;
	font-size: 19px !important;
	font-weight: 500 !important;
	line-height: 1.2;
	letter-spacing: 0;
	color: #fff !important;
}

.medcer-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.medcer-footer ul li {
	margin: 0 0 9px;
}

.medcer-footer-place {
	margin-bottom: 20px;
}

.medcer-footer-place strong {
	display: block;
	color: #fff;
	font-weight: 600;
}

.medcer-footer-place span {
	display: block;
}

.medcer-footer-contact {
	margin: 22px 0 10px;
}

.medcer-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
}

.medcer-footer-social a {
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
}

.medcer-footer-legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 13px;
}

.medcer-footer-legal p {
	margin: 0;
	color: rgba(255, 255, 255, .6);
	font-size: 13px;
}

.medcer-footer-credits {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
	padding: 6px 0;
	text-align: right;
}

.medcer-footer .medcer-footer-agency {
	display: inline-flex;
	align-items: flex-end; /* line the words up with "Cleverhog", not the hog's head */
	gap: 12px;
	color: rgba(255, 255, 255, .6);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .85;
	transition: opacity .2s ease;
}

.medcer-footer .medcer-footer-agency:hover {
	color: rgba(255, 255, 255, .6);
	opacity: 1;
}

.medcer-footer-agency span {
	padding-bottom: 6px;
}

.medcer-footer-agency img {
	display: block;
	width: 112px;
	height: auto;
}

@media only screen and (max-width: 768px) {
	.medcer-footer-credits {
		align-items: flex-start;
		text-align: left;
	}
}

.medcer-footer-legal p a {
	color: rgba(255, 255, 255, .8);
}

.medcer-footer-eu {
	display: block;
	flex: 0 1 240px;
	background: #fff;
	border-radius: 4px;
	padding: 4px 8px;
}

.medcer-footer-eu img {
	display: block;
	width: 100%;
	height: auto;
}

.extra-content-page-footer {
	background-color: var(--mc-sand);
}

/* ---------- Forms (account, contact, coupon) ---------- */

.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce form.lost_reset_password {
	max-width: 460px;
	margin-left: 0;
	padding: 0;
	border: 0;
}

.woocommerce-account .woocommerce > h2 {
	font-size: 32px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.wpcf7-form input.wpcf7-form-control:not(.wpcf7-submit),
.wpcf7-form textarea.wpcf7-form-control {
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius) !important;
	background: #fff !important;
	box-shadow: none !important;
	font-size: 15px;
	transition: border-color .2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.wpcf7-form .wpcf7-form-control:focus {
	border-color: var(--mc-navy) !important;
	outline: none;
}

.woocommerce form .form-row label {
	font-size: 14px;
	font-weight: 600;
	color: var(--mc-ink);
}

.woocommerce form.login .form-row:has(.woocommerce-form-login__rememberme) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.woocommerce form .woocommerce-form-login__rememberme {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	font-weight: 400 !important;
}

.woocommerce form.login .woocommerce-form-login__submit {
	margin: 0 !important;
	min-width: 140px;
}

.woocommerce-LostPassword a {
	color: var(--mc-navy);
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Show-password toggle sits inside the field */
.woocommerce form .password-input {
	position: relative;
	display: block;
}

.woocommerce form .password-input input.input-text {
	padding-right: 48px !important;
}

.woocommerce form .show-password-input {
	position: absolute !important;
	top: 50%;
	right: 10px;
	width: 32px !important;
	height: 32px !important;
	min-width: 0 !important;
	margin: -16px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
}

.woocommerce form .show-password-input::after {
	content: '';
	position: absolute;
	inset: 6px;
	background-color: var(--mc-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce form .show-password-input.display-password::after {
	background-color: var(--mc-navy);
}

/* Contact Form 7 */
.wpcf7-form input.wpcf7-submit {
	height: auto !important;
	padding: 14px 32px !important;
	border: 1px solid var(--mc-navy) !important;
	border-radius: var(--mc-btn-radius) !important;
	background: var(--mc-navy) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	transition: background-color .2s ease, border-color .2s ease;
}

.wpcf7-form input.wpcf7-submit:hover {
	background: var(--mc-terracotta) !important;
	border-color: var(--mc-terracotta) !important;
}

/* ---------- Order received & My account ---------- */

.woocommerce-order .woocommerce-thankyou-order-received {
	margin: 0 0 28px;
	padding: 34px 32px;
	border-radius: var(--mc-radius);
	background: var(--mc-band-bg);
	color: #fff;
	font-family: var(--mc-serif);
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.3;
}

.woocommerce-order ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1px;
	margin: 0 0 32px;
	padding: 0;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-field-radius);
	background: var(--mc-line);
	list-style: none;
	overflow: hidden;
}

.woocommerce-order ul.woocommerce-order-overview li {
	margin: 0 !important;
	padding: 16px 20px !important;
	border: 0 !important;
	background: #fff;
	font-size: 12px !important;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--mc-muted);
	line-height: 1.5;
}

.woocommerce-order ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mc-ink);
}

.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	font-size: 26px !important;
	line-height: 1.2 !important;
	margin: 0 0 16px !important;
}

.woocommerce table.shop_table.woocommerce-table--order-details th,
.woocommerce table.shop_table.woocommerce-table--order-details td,
.woocommerce table.shop_table.woocommerce-orders-table th,
.woocommerce table.shop_table.woocommerce-orders-table td,
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 18px !important;
	border-top: 1px solid var(--mc-line) !important;
	font-size: 15px !important;
	line-height: 1.45 !important;
	vertical-align: middle;
}

.woocommerce table.shop_table thead th {
	border-top: 0 !important;
}

.woocommerce table.shop_table.woocommerce-table--order-details tfoot th {
	font-weight: 600;
}

.woocommerce table.shop_table.woocommerce-table--order-details td a,
.woocommerce table.shop_table.woocommerce-orders-table td a:not(.button) {
	color: var(--mc-navy);
}

.woocommerce table.woocommerce-orders-table a.button,
.woocommerce-MyAccount-content a.button.view {
	display: inline-block;
	padding: 8px 16px !important;
	border: 1px solid var(--mc-navy) !important;
	background: transparent !important;
	color: var(--mc-navy) !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	height: auto !important;
	min-width: 0 !important;
}

.woocommerce table.woocommerce-orders-table a.button:hover,
.woocommerce-MyAccount-content a.button.view:hover {
	background: var(--mc-navy) !important;
	color: #fff !important;
}

.woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid !important;
	width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.woocommerce-customer-details .woocommerce-columns--addresses::before,
.woocommerce-customer-details .woocommerce-columns--addresses::after {
	display: none !important;
}

.woocommerce-customer-details .woocommerce-columns--addresses .woocommerce-column {
	display: block !important;
	box-sizing: border-box;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 22px 24px !important;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-field-radius);
}

.woocommerce-customer-details address {
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	font-style: normal;
	font-size: 15px;
	line-height: 1.6;
}

.woocommerce-customer-details address p {
	margin: 8px 0 0;
	font-size: 15px !important;
	line-height: 1.6;
}

/* Account navigation */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius);
	list-style: none;
	overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0 !important;
	padding: 0 !important;
	border-top: 1px solid var(--mc-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:first-child {
	border-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 12px 18px !important;
	color: var(--mc-ink) !important;
	font-size: 15px;
	transition: background-color .2s ease, color .2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--mc-sand);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--mc-sand);
	color: var(--mc-navy) !important;
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--mc-terracotta);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	border-right: 0 !important;
}

.woocommerce-MyAccount-content > p {
	font-size: 16px;
	line-height: 1.65;
}

.woocommerce-MyAccount-content > p a {
	color: var(--mc-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media only screen and (max-width: 768px) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 28px;
	}

	.woocommerce table.shop_table_responsive tr td::before {
		font-weight: 600;
		color: var(--mc-ink);
	}
}

/* ---------- Pagination ---------- */

.qodef-woo-pagination-holder {
	margin-top: 48px;
}

.qodef-woo-pagination-holder .qodef-woo-pagination-inner {
	display: flex;
	justify-content: center;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0 !important;
}

.woocommerce-pagination ul.page-numbers li {
	margin: 0 !important;
	border: 0 !important;
	float: none !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px !important;
	box-sizing: border-box;
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-btn-radius);
	background: #fff;
	color: var(--mc-ink) !important;
	font-size: 15px !important;
	line-height: 1 !important;
	transition: border-color .2s ease, color .2s ease;
}

.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
	border-color: var(--mc-navy) !important;
	color: var(--mc-navy) !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current {
	background: var(--mc-navy);
	border-color: var(--mc-navy) !important;
	color: #fff !important;
}

/* "View All" jumps to the whole shop rather than the current category, so it is hidden */
.qodef-woo-view-all-pagination {
	display: none !important;
}

/* ---------- Composite products (lava tables) ---------- */

.composite_form .composite_component,
.composite_form .component,
.composite_form .composite_wrap,
.composite_form .composite_data {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}

.composite_component {
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-radius) !important;
	padding: 24px !important;
}

.composite_form .step_title_wrapper {
	font-family: var(--mc-serif) !important;
	font-weight: 500 !important;
	font-size: 24px !important;
	line-height: 1.2 !important;
	color: var(--mc-navy);
}

.composite_form .component .variations td.value .variable-items-wrapper {
	flex-wrap: wrap;
	gap: 8px;
}

.composite_form .composite_message .woocommerce-info,
.composite_wrap .composite_message .woocommerce-info {
	border: 1px solid var(--mc-line) !important;
	border-radius: var(--mc-field-radius) !important;
	background: #fff !important;
	font-size: 14px !important;
	color: var(--mc-muted) !important;
}

/* ---------- Cookie notice ---------- */

#cookie-notice {
	background-color: var(--mc-navy) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	box-shadow: 0 -1px 0 rgba(255, 255, 255, .08);
}

#cookie-notice .cookie-notice-container {
	padding: 14px 24px !important;
}

#cookie-notice .cn-button,
#cookie-notice #cn-accept-cookie {
	background: #fff !important;
	color: var(--mc-navy) !important;
	border-radius: var(--mc-btn-radius) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 8px 20px !important;
	margin-left: 14px !important;
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 1024px) {
	.medcer-usps ul,
	.medcer-collections ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.qodef-woo-single-page .qodef-single-product-summary {
		width: 100%;
	}
}

@media only screen and (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.medcer-shop-header {
		padding: 24px 0 20px;
	}

	.medcer-chips {
		margin-right: -5%;
	}

	.medcer-collections {
		padding: 56px 0 10px;
	}

	.medcer-collections ul {
		gap: 16px;
	}

	.medcer-collection-name {
		font-size: 17px;
	}

	.qodef-testimonials-holder.qodef-testimonials-standard .qodef-testimonial-text-holder {
		padding: 32px 24px 28px;
		margin: 10px 0 20px;
	}

	/* No hover on touch: show the card button all the time, a little smaller */
	ul.products .product .qodef-pl-inner .qodef-pl-text-inner a.button,
	.related.products .product .qodef-pl-inner .qodef-pl-text-inner a.button {
		opacity: 1;
		transform: none !important;
		margin-bottom: 10px !important;
		padding: 7px 14px !important;
		font-size: 12px !important;
	}

	.related.products .product .qodef-product-list-title,
	ul.products .product .qodef-product-list-title {
		font-size: 16px !important;
	}

	ul.products li.product-category .woocommerce-loop-category__title {
		font-size: 17px !important;
	}
}

@media only screen and (max-width: 680px) {
	.qodef-woocommerce-page table.cart thead tr th {
		font-size: 10px !important;
		letter-spacing: .02em;
		padding: 0 6px !important;
	}

	.qodef-woocommerce-page table.cart tbody tr td {
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	.qodef-woocommerce-page table.cart td.product-name a {
		font-size: 16px;
	}

	.qodef-woocommerce-page .cart-collaterals .cart_totals,
	.woocommerce-checkout #order_review {
		padding: 20px 16px;
	}
}


@media only screen and (max-width: 1024px) {
	/* The theme uses its mobile header up to 1024px; the basket sits at the far right,
	   with the EU badge (shown 769–1024px) moved left of it */
	.medcer-mobile-cart {
		display: block;
	}

	.qodef-mobile-header .qodef-position-right {
		padding-right: 44px;
	}

	.medcer-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.medcer-usps li:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.medcer-usps ul {
		row-gap: 22px;
	}
}

@media only screen and (max-width: 768px) {
	.medcer-footer {
		padding: 52px 0 96px; /* clears the floating WhatsApp button */
	}

	.medcer-footer-brand {
		grid-column: 1 / -1;
	}

	.medcer-footer-legal {
		flex-direction: column;
		align-items: flex-start;
	}

	.medcer-footer-eu {
		flex-basis: auto;
		width: 100%;
		max-width: 240px;
		box-sizing: border-box;
	}
}

@media only screen and (max-width: 480px) {
	.medcer-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 32px 20px;
	}

	.medcer-footer-main > .medcer-footer-col:nth-child(2) {
		grid-column: 1 / -1;
	}

	.medcer-usps ul {
		grid-template-columns: 1fr;
	}

	.medcer-usps li {
		padding: 0;
		border-left: 0;
	}

	.medcer-assurances > div {
		grid-template-columns: 90px 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* Showroom map (Contact us, About us): vector map, recoloured in js/map.js */
.medcer-map {
	position: relative;
	overflow: hidden;
	border-radius: var(--mc-radius);
	background: #eef3f9;
}

.medcer-map.is-full-width {
	border-radius: 0;
}

.medcer-map-canvas {
	height: var(--medcer-map-height, 480px);
	background: #eef3f9;
	font-family: inherit;
}

.medcer-map .maplibregl-ctrl-group {
	border-radius: var(--mc-btn-radius);
	box-shadow: 0 2px 10px rgba(26, 49, 93, .14);
	overflow: hidden;
}

.medcer-map .maplibregl-ctrl-group button {
	width: 34px;
	height: 34px;
}

.medcer-map .maplibregl-ctrl-attrib {
	background: rgba(255, 255, 255, .8);
	font-size: 11px;
}

.medcer-map .maplibregl-ctrl-attrib a {
	color: var(--mc-navy);
}

.medcer-map .maplibregl-cooperative-gesture-screen {
	background: rgba(26, 49, 93, .55);
	font-family: inherit;
	font-size: 16px;
}

/* Pins: navy teardrop with a white centre, name label beside it */
.medcer-pin {
	position: relative;
	width: 34px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.medcer-pin-dot {
	position: absolute;
	left: 3px;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	background: var(--mc-navy);
	transform: rotate(-45deg);
	box-shadow: 0 4px 10px rgba(26, 49, 93, .35);
	transition: background-color .2s ease;
}

.medcer-pin-dot::after {
	content: '';
	position: absolute;
	inset: 9px;
	border-radius: 50%;
	background: #fff;
}

.medcer-pin:hover .medcer-pin-dot,
.medcer-pin:focus-visible .medcer-pin-dot {
	background: var(--mc-terracotta);
}

.medcer-pin-label {
	position: absolute;
	top: 2px;
	padding: 4px 10px;
	border-radius: var(--mc-btn-radius);
	background: #fff;
	box-shadow: 0 2px 8px rgba(26, 49, 93, .16);
	color: var(--mc-navy);
	font-family: var(--mc-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

.medcer-pin--left .medcer-pin-label { right: 40px; }
.medcer-pin--right .medcer-pin-label { left: 40px; }
.medcer-pin--top .medcer-pin-label { bottom: 50px; left: 50%; top: auto; transform: translateX(-50%); }

/* Pop-up */
.medcer-map .medcer-pop .maplibregl-popup-content {
	padding: 16px 18px;
	border-radius: var(--mc-field-radius);
	box-shadow: 0 10px 30px rgba(26, 49, 93, .2);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mc-ink);
}

.medcer-map .medcer-pop .maplibregl-popup-close-button {
	padding: 2px 8px;
	font-size: 18px;
	color: var(--mc-muted);
}

.medcer-pop-name {
	display: block;
	margin-bottom: 4px;
	padding-right: 16px;
	font-family: var(--mc-serif);
	font-size: 17px;
	font-weight: 500;
	color: var(--mc-navy);
}

.medcer-pop-address,
.medcer-pop-phone {
	display: block;
	color: var(--mc-muted);
}

.medcer-map .medcer-pop a {
	color: var(--mc-navy);
}

.medcer-map .medcer-pop .medcer-pop-directions {
	display: inline-block;
	margin-top: 10px;
	padding-bottom: 1px;
	border-bottom: 1px solid currentColor;
	color: var(--mc-terracotta);
	font-weight: 700;
}
