/* Scoped styles. The official artwork is never filtered, recoloured or cropped. */
.mxcr { margin: 1em 0; color-scheme: light; }
.mxcr-trigger { cursor: pointer; text-decoration: underline; }
.mxcr-figure { margin: .75em 0 0; padding: 0; max-width: 640px; background: #fff; }
.mxcr .mxcr-img, .mxcr-dialog .mxcr-img {
	display: block; width: 100%; max-width: 100%; height: auto;
	margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	filter: none !important; opacity: 1; object-fit: contain;
}
.mxcr-links { margin: .5em 0 0; font-size: .9em; text-align: center; color: #1d2327; }
.mxcr-links a { color: #003399; }
.mxcr-dialog {
	width: min( 720px, 100% ); max-width: 100%; max-height: 100%;
	margin: auto; padding: 0; border: 0; background: #fff; color: #1d2327; color-scheme: light; overflow: auto;
}
.mxcr-dialog::backdrop { background: rgba( 0, 0, 0, .6 ); }
.mxcr-dialog .mxcr-figure { max-width: none; margin: 0; padding: 0 12px 12px; }
.mxcr-dialog__bar {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 8px 12px; background: #fff; border-bottom: 1px solid #dcdcde;
}
.mxcr-dialog__title { margin: 0; font-size: 1.05em; line-height: 1.3; color: inherit; }
.mxcr-dialog__close {
	min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #8c8f94; border-radius: 4px;
	background: #fff; color: #1d2327; font-size: 26px; line-height: 1; cursor: pointer;
}
.mxcr-dialog__close:focus-visible, .mxcr-trigger:focus-visible { outline: 2px solid #003399; outline-offset: 2px; }
@media ( max-width: 600px ) {
	.mxcr-dialog { width: 100%; height: 100%; }
	.mxcr-dialog .mxcr-figure { padding: 0 0 12px; }
}
/* Cart/Checkout block order summary: align with the summary rows. */
.mxcr--summary { margin: 0; padding: 12px 16px; }

/* Written complaints */
.mxcr-complaints__form label { display: block; font-weight: 600; margin-bottom: 4px; }
.mxcr-complaints__form input[type="text"], .mxcr-complaints__form input[type="email"], .mxcr-complaints__form textarea { width: 100%; max-width: 40em; box-sizing: border-box; }
/* Readable fields where the theme styles none (e.g. Twenty Twenty-Five); :where() keeps any theme style first. */
:where(.mxcr-complaints__form) :where(input[type="text"], input[type="email"], textarea) { padding: .6em .75em; font: inherit; line-height: 1.4; border: 1px solid #8c8f94; border-radius: 4px; background: #fff; color: inherit; }
:where(.mxcr-complaints__form) :where(button[type="submit"]) { cursor: pointer; }
.mxcr-complaints__optional { font-weight: 400; }
.mxcr-complaints__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mxcr-complaints__errors, .mxcr-complaints__done { padding: 12px 16px; border-left: 4px solid; margin: 0 0 16px; }
.mxcr-complaints__errors { border-color: #b32d2e; background: #fcf0f1; }
.mxcr-complaints__errors ul { margin: 0; padding-left: 18px; }
.mxcr-complaints__done { border-color: #007017; background: #edfaef; }
.mxcr-complaints__done:focus { outline: none; }
.mxcr-complaints__privacy { font-size: .9em; }

/* GARAN label and energy arrow */
.mxcr-garan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 .5em; }
.mxcr-garan__more { margin: 0 0 1em; }
/* With a grouped product's prices: under the price, after its energy arrow. */
span.mxcr-garan { margin: .4em 0 0; }
/* Themes size images in the summary to full width; the nested label keeps its own size. */
.mxcr-garan img.mxcr-garan__nested { display: block; height: 32px !important; width: auto !important; max-width: none !important; }
.mxcr-energy { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; vertical-align: middle; margin-inline-start: .4em; }
/* Several models: a row of their own under the price (a price range leaves no room beside it), flush with it. */
.mxcr-energy:has(> .mxcr-energy__model + .mxcr-energy__model), .mxcr-energy:has(> .mxcr-models) { display: flex; margin: .35em 0 0; }
/* Energy class arrow (nested display): sized in em, so it follows the price font; never so small (product lists) that the A–G range cannot be read. */
.mxcr-energy__model { display: inline-flex; align-items: center; gap: 0 .4em; }
/* White ground: the black A–G range must stay readable on dark themes; keep the label colours in forced-colors mode. */
.mxcr-energy__label { display: inline-flex; align-items: stretch; height: 1.6em; padding: 1px 2px; background: #fff; font: 700 max(1em, 16px)/1 Arial, Helvetica, sans-serif; vertical-align: middle; forced-color-adjust: none; }
.mxcr-models { font-size: clamp(12px, .6em, 14px); font-weight: 400; } /* Readable, and not larger than body text beside a large price. */
.mxcr-energy__range { display: flex; flex-direction: column; justify-content: space-between; margin-right: .2em; color: #000; font-size: max(.45em, 8px); line-height: 1; }
.mxcr-energy__arrow { position: relative; display: inline-flex; align-items: center; width: 2.6em; background: #000; clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%); }
.mxcr-energy__arrow::before { content: ""; position: absolute; inset: 1px; clip-path: polygon(0 0, 71% 0, 99% 50%, 71% 100%, 0 100%); background: var(--mxcr-class); }
.mxcr-energy__arrow span { position: relative; width: 72%; text-align: center; color: #fff; font-size: 1.1em; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.mxcr-energy__arrow--a { --mxcr-class: #009640; }
.mxcr-energy__arrow--b { --mxcr-class: #52ae32; }
.mxcr-energy__arrow--c { --mxcr-class: #c8d400; }
.mxcr-energy__arrow--d { --mxcr-class: #ffed00; }
.mxcr-energy__arrow--e { --mxcr-class: #fbba00; }
.mxcr-energy__arrow--f { --mxcr-class: #eb6909; }
.mxcr-energy__arrow--g { --mxcr-class: #e30613; }
.mxcr-energy a { text-decoration: none; }
.mxcr-energy__sheet { font-size: clamp(12px, .6em, 14px); font-weight: 400; }
.mxcr-repair dt { font-weight: 600; margin-top: .8em; }
.mxcr-repair dd { margin: 0; }
/* Reviews: how reviews are checked, above the list; colours follow the theme. */
.mxcr-reviews-notice { display: flex; gap: .6em; align-items: flex-start; margin: 0 0 1.2em; padding: .6em .9em; border-inline-start: 4px solid currentColor; background: rgba(127, 127, 127, .1); font-size: .95em; }
.mxcr-reviews-notice svg { flex: none; width: 1.25em; height: 1.25em; margin-top: .1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
