/* MIKUU Configurator — front-end stylesheet
 * Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280 / 1440.
 * No external CSS framework. Pure custom CSS with CSS variables.
 */

:root {
  --mk-bg:           #ffffff;
  --mk-surface:      #ffffff;
  --mk-ink:          #1a1a1a;
  --mk-ink-soft:     #4a4a48;
  --mk-mute:         #7a7a76;
  --mk-line:         #e3e1da;
  --mk-line-strong:  #cfccc2;
  --mk-accent:       #b07a3a;
  --mk-cta:          #1f3a2e;
  --mk-cta-hover:    #163022;
  --mk-cta-ink:      #ffffff;
  --mk-dark:         #1a1a18;
  --mk-radius-sm:    6px;
  --mk-radius-md:    10px;
  --mk-radius-lg:    14px;
  --mk-shadow-sm:    0 1px 2px rgba(0,0,0,.04);
  --mk-shadow-md:    0 6px 18px rgba(0,0,0,.06);
  --mk-shadow-lg:    0 24px 48px rgba(0,0,0,.18);
  --mk-serif:        "Minion Pro","Cormorant Garamond","EB Garamond",Georgia,"Times New Roman",serif;
  --mk-sans:         "Trebuchet MS Local","Trebuchet MS","Kozuka Gothic Pr6N","Inter","Helvetica Neue",Arial,"Microsoft Yi Baiti",sans-serif;
  --mk-ease:         cubic-bezier(.2,.8,.2,1);
}

/* Scope everything inside .mikuu-configurator so we don't bleed into the theme. */
.mikuu-configurator {
  background: var(--mk-bg);
  color: var(--mk-ink);
  font-family: var(--mk-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mikuu-configurator *,
.mikuu-configurator *::before,
.mikuu-configurator *::after { box-sizing: border-box; }
.mikuu-configurator p { margin: 0 0 12px; color: var(--mk-ink-soft); }
.mikuu-configurator a { color: var(--mk-ink); text-decoration: none; }
.mikuu-configurator a:hover { color: var(--mk-accent); }
.mikuu-configurator img { display: block; max-width: 100%; height: auto; }
.mikuu-configurator h1, .mikuu-configurator h2, .mikuu-configurator h3 { margin: 0; color: var(--mk-ink); }

/* ------ Layout shell ------ */
.mk-shell {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
@media (min-width: 1024px) { .mk-shell { padding: 0 64px 120px; } }

/* ------ Fixed price bar (bottom of viewport) ------
 * Originally a sticky top strip; pinned to the bottom so the live total and
 * primary actions stay in view while the user scrolls through long sections.
 */
/* The theme language switcher renders its dropdown inside the header's own
 * stacking context, so even very high z-index values can't lift it above the
 * fixed pricebar. Cleanest fix: hide the pricebar entirely while the switcher
 * is open (focus-within covers click + keyboard, aria-expanded covers themes
 * that toggle a class only on the trigger). */
body:has(.frema-lang-switch:focus-within) .mk-pricebar,
body:has(.frema-lang-switch [aria-expanded="true"]) .mk-pricebar,
body:has(.frema-lang-switch.is-open) .mk-pricebar,
body:has(.frema-lang-switch.open) .mk-pricebar,
body:has(.frema-lang-switch.active) .mk-pricebar,
body.mk-lang-open .mk-pricebar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.mk-pricebar {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mk-header-h, 64px);
  bottom: auto;
  /* Kept low so theme header dropdowns (language switcher, menu, account
   * popovers) can render above the pricebar instead of being clipped. */
  z-index: 1;
  /* Backdrop blur creates a stacking context that traps theme dropdowns
   * underneath. Use a solid translucent fill instead so descendants of the
   * theme header can paint over the pricebar. */
  background: rgba(255,255,255,.96);
  border-top: 0;
  border-bottom: 1px solid var(--mk-line);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.admin-bar .mk-pricebar { top: calc(var(--mk-header-h, 64px) + 46px); }
@media (min-width: 783px) { .admin-bar .mk-pricebar { top: calc(var(--mk-header-h, 64px) + 32px); } }
.mk-pricebar-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 1024px) {
  .mk-pricebar-inner { padding: 14px 60px; }
}

.mk-pricebar-label {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.mk-pricebar-total {
  margin-left: auto;
  text-align: right;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}
.mk-total-amount { font-weight: 700; font-size: 20px; transition: opacity 180ms var(--mk-ease); }
.mk-total-vat   { font-size: 11px; color: var(--mk-mute); }
.mk-pricebar-actions { display: flex; gap: 8px; }

/* Reserve top space on every viewport so content never sits under the bar. */
.mikuu-configurator { padding-top: 64px; padding-bottom: 0; }
@media (min-width: 1024px) { .mikuu-configurator { padding-top: 72px; } }

@media (max-width: 767px) {
  .mk-pricebar-label { font-size: 15px; }
  .mk-total-amount   { font-size: 14px; }
  .mk-pricebar .mk-total-vat { display: none; }
  .mk-pricebar-inner { padding: 10px 14px; gap: 10px; }
  .mk-pricebar-actions .mk-btn { padding: 8px 12px; font-size: 13px; }
  /* On very tight viewports, drop the outlined Summary button — primary CTA is enough. */
}
@media (max-width: 480px) {
  .mk-pricebar-actions .mk-btn-outline { display: none; }
}

/* ------ Buttons ------ */
.mk-btn {
  font-family: var(--mk-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--mk-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms var(--mk-ease), color 180ms var(--mk-ease), border-color 180ms var(--mk-ease), transform 120ms var(--mk-ease);
  white-space: nowrap;
}
.mk-btn:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 2px;
}
.mk-btn:active { transform: translateY(1px); }
.mk-btn-outline {
  background: transparent;
  color: var(--mk-ink);
  border-color: var(--mk-line-strong);
}
.mk-btn-outline:hover { border-color: var(--mk-ink); }
.mk-btn-cta {
  background: var(--mk-cta);
  color: var(--mk-cta-ink);
  border-color: var(--mk-cta);
}
.mk-btn-cta:hover { background: var(--mk-cta-hover); border-color: var(--mk-cta-hover); }

/* ------ Breadcrumb + hero ------ */
.mk-breadcrumb { padding: 32px 0 8px; font-size: 18px; }
.mk-breadcrumb a { color: var(--mk-ink); font-weight: 600; }

.mk-hero { padding: 8px 0 48px; }
.mk-hero-title {
  font-family: var(--mk-serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.mk-hero-desc { max-width: 640px; color: var(--mk-ink-soft); font-size: 15px; }
@media (max-width: 1023px) { .mk-hero-title { font-size: 44px; } }
@media (max-width: 767px)  { .mk-hero-title { font-size: 36px; } .mk-hero { padding-bottom: 32px; } }
@media (max-width: 480px)  { .mk-hero-title { font-size: 28px; } }

/* ------ Two-column main grid ------ */
.mk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .mk-grid {
    grid-template-columns: minmax(0, 70fr) minmax(0, 30fr);
    gap: 64px;
    align-items: start;
  }
}

/* ------ Section / preview pair ------
 * Each pair is its own grid; the left preview is position:sticky so it pins
 * to the viewport while the user scrolls through that section's options.
 * When the pair container ends, sticky releases naturally and the next
 * pair's preview takes over. Mobile collapses to a single column with no
 * stickiness so the page reads top-to-bottom. */
.mk-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
@media (min-width: 1024px) {
  .mk-pair {
    grid-template-columns: minmax(0, 70fr) minmax(0, 30fr);
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
  }
  .mk-pair-preview {
    position: sticky;
    top: 120px; /* 80px theme header + 24px breathing room */
    align-self: start;
  }
}
.mk-pair > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 1023px) {
  .mk-pair-preview {
    position: sticky;
    top: var(--mk-header-h, 64px);
    align-self: start;
    z-index: 5;
    background: var(--mk-bg, #fff);
  }
  .admin-bar .mk-pair-preview { top: calc(var(--mk-header-h, 64px) + 32px); }
}

/* ------ Section headings ------ */
.mk-section { margin-bottom: 56px; }
.mk-h2 {
  font-family: var(--mk-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 24px;
}
.mk-h2-bleed { font-size: 40px; margin-bottom: 8px; }
@media (max-width: 767px) {
  .mk-section { margin-bottom: 40px; }
  .mk-h2      { font-size: 24px; }
  .mk-h2-bleed{ font-size: 28px; }
}

/* ------ Preview gallery ------ */
.mk-gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.mk-gallery-main {
  position: relative;
  background: #ececea;
  border-radius: var(--mk-radius-md);
  overflow: hidden;
  margin: 0;
}
.mk-gallery-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.mk-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  color: var(--mk-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    background 180ms var(--mk-ease),
    box-shadow 180ms var(--mk-ease),
    transform 120ms var(--mk-ease);
  z-index: 2;
}
.mk-gallery-arrow:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.mk-gallery-arrow:active { transform: translateY(-50%) scale(0.96); }
.mk-gallery-arrow:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 2px;
}
.mk-gallery-arrow svg { display: block; }
.mk-gallery-prev { left: 16px; }
.mk-gallery-next { right: 16px; }
@media (max-width: 767px) {
  .mk-gallery-arrow { width: 38px; height: 38px; }
  .mk-gallery-prev  { left: 10px; }
  .mk-gallery-next  { right: 10px; }
}

.mk-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mk-gallery-thumbs img {
  background: #ececea;
  border-radius: var(--mk-radius-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  cursor: pointer;
  transition: transform 220ms var(--mk-ease);
}
.mk-gallery-thumbs img:hover { transform: scale(1.02); }

.mk-gallery-interior {
  margin: 0;
  background: #ececea;
  border-radius: var(--mk-radius-md);
  overflow: hidden;
}
.mk-gallery-interior img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.mk-gallery-floorplan {
  margin: 0;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-md);
  padding: 24px;
}
.mk-gallery-floorplan img { width: 100%; max-width: 720px; margin: 0 auto; }

/* Three editorial photos at the end of the gallery (Solar / Shower / Bench
 * by default; admin-editable). Same fixed-aspect-container + cover technique
 * as the main gallery so any photo aspect ratio fits cleanly. */
.mk-gallery-extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mk-gallery-extras-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--mk-radius-md);
  background: #ececea;
}
.mk-gallery-extras-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 200ms ease, filter 200ms ease;
}
/* Hover + active feedback on clickable gallery thumbs (Exterior + Core). */
.mk-gallery-thumbs span { transition: box-shadow 150ms ease, transform 150ms ease; }
.mk-gallery-thumbs span:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.mk-gallery-thumbs img.is-active-thumb { outline: 2px solid #1a1a1a; outline-offset: 2px; border-radius: 10px; }
/* Dim unselected extras photos with a grey overlay; clear the dimming when
 * the matching extra is selected. */
.mk-gallery-extras-item.is-dimmed img {
  opacity: 0.5;
  filter: grayscale(100%);
}
.mk-gallery-extras-item.is-dimmed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 120, 0.35);
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 200ms ease;
}
.mk-gallery-extras-item.is-selected::after {
  opacity: 0;
}
@media (max-width: 480px) {
  /* On small screens, keep three photos in a horizontal swipeable strip
   * rather than crushing them — mirrors the thumbnail behaviour. */
  .mk-gallery-extras {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .mk-gallery-extras::-webkit-scrollbar { display: none; }
  .mk-gallery-extras-item { scroll-snap-align: start; }
}

@media (max-width: 480px) {
  .mk-gallery-thumbs { grid-template-columns: repeat(3, minmax(120px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .mk-gallery-thumbs img { scroll-snap-align: start; }
}

/* ------ Swatches ------ */
.mk-swatches { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mk-swatch {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 180ms var(--mk-ease);
}
.mk-swatch:focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 4px; }
.mk-swatch-dot {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mk-swatch-color, #ddd);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.mk-swatch.is-selected {
  border-color: var(--mk-ink);
  box-shadow: 0 0 0 3px var(--mk-bg) inset, 0 0 0 4px var(--mk-ink) inset;
  /* Outer ring: use border. White halo via box-shadow inside */
}
.mk-swatch.is-selected .mk-swatch-dot { box-shadow: 0 0 0 2px var(--mk-bg), inset 0 0 0 1px rgba(0,0,0,.08); }

.mk-swatch-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 8px;
}
.mk-swatch-name { font-weight: 600; font-size: 17px; }
.mk-swatch-price { color: var(--mk-ink); font-weight: 500; }
.mk-swatch-desc { color: var(--mk-ink-soft); font-size: 14px; max-width: 56ch; }

/* ------ Read-more (collapsible descriptions) ------ */
.mk-readmore { position: relative; }
.mk-readmore.is-clamped .mk-readmore-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.15) 100%);
  mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.15) 100%);
}
@media (max-width: 767px) {
  .mk-readmore.is-clamped .mk-readmore-text { display: none; }
}
.mk-readmore-toggle {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--mk-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mk-readmore-toggle:hover { opacity: 0.75; color: #1f3a2e;}

/* ------ Cards ------ */
.mk-cards { display: grid; gap: 14px; }
.mk-card {
  position: relative;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-md);
  padding: 20px;
  cursor: pointer;
  transition: border-color 180ms var(--mk-ease), background 180ms var(--mk-ease), box-shadow 180ms var(--mk-ease);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
/* Allow text inside Read-more accordion content to remain selectable. */
.mk-card details[open], .mk-card details[open] * { user-select: text; -webkit-user-select: text; }
.mk-card:hover { border-color: var(--mk-line-strong); box-shadow: var(--mk-shadow-sm); }
.mk-card:focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 2px; }
.mk-card.is-selected {
  border-color: var(--mk-ink);
  background: #faf9f5;
}
.mk-card-static, .mk-card-locked { cursor: default; }
.mk-card-static:hover, .mk-card-locked:hover { box-shadow: none; border-color: var(--mk-line); }
.mk-card-sub { padding-left: 20px; }

.mk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  /* Reserve room for the absolute-positioned checkbox circle on the right
   * so the price never tucks under it. */
  padding-right: 42px;
}
.mk-card-title { font-size: 18px; font-weight: 600; }
.mk-card-price {
  font-size: 15px;
  color: var(--mk-ink);
  font-weight: 500;
  white-space: nowrap;
  padding-right: 32px;
}
/* Coming-soon items: muted "Coming soon" text in place of a price. The card
 * itself stays toggleable so users can still preview the floor-plan variants
 * the door options drive — it just reads as informational, not purchasable. */
.mk-card-price-soon {
  color: var(--mk-mute);
  font-style: italic;
  font-weight: 500;
  padding-right: 32px;
}
.mk-card-soon { background: #fafaf6; }
.mk-card-soon.is-selected { background: #f3eedf; border-color: var(--mk-line-strong); }
.mk-card-desc  { color: var(--mk-ink-soft); font-size: 14px; margin: 0 36px 8px 0; }
.mk-card-cta   { display: inline-block; color: var(--mk-ink); font-weight: 500; font-size: 14px; margin-top: 4px; }
.mk-card-cta:hover { color: var(--mk-accent); }

.mk-card-check {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--mk-line-strong);
  border-radius: 50%;
  background: #fff;
  transition: background 180ms var(--mk-ease), border-color 180ms var(--mk-ease);
}
.mk-card.is-selected .mk-card-check {
  background: var(--mk-ink);
  border-color: var(--mk-ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.mk-card-locked .mk-card-check { background: var(--mk-ink); border-color: var(--mk-ink); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>"); background-size: 14px 14px; background-repeat: no-repeat; background-position: center; }

.mk-card-more { margin-top: 8px; font-size: 13px; }
.mk-card-more summary { cursor: pointer; color: var(--mk-ink); font-weight: 500; list-style: none; }
.mk-card-more summary::-webkit-details-marker { display: none; }

/* Conditional region (bathroom add-ons) */
.mk-conditional {
  display: grid;
  gap: 14px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 220ms var(--mk-ease), opacity 220ms var(--mk-ease), margin-top 220ms var(--mk-ease);
}
.mk-conditional.is-open {
  /* Tall enough to fit bathroom add-ons + kitchen card + kitchen colors panel
   * even on long descriptions. The transition still feels right because the
   * browser interpolates from 0 to the actual content height, capped at this
   * ceiling. */
  max-height: 3000px;
  opacity: 1;
  margin-top: 14px;
}

/* Kitchen colors */
.mk-kitchen-colors {
  margin-top: 14px;
  padding: 16px 20px;
  background: #faf9f5;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-md);
  display: none;
}
.mk-kitchen-colors.is-visible { display: block; }
.mk-kitchen-label { font-size: 13px; font-weight: 600; color: var(--mk-mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.mk-swatches-kitchen { gap: 10px; }
.mk-kitchen-help { font-size: 13px; color: var(--mk-mute); margin: 12px 0 4px; }

/* ------ Section: exterior color section spacing tweaks ------ */
.mk-cards { margin-top: 4px; }
.mk-section .mk-cards + .mk-cards { margin-top: 14px; }
.mk-section-core .mk-card + .mk-card { margin-top: 14px; }
.mk-section-interior .mk-card + .mk-card { margin-top: 14px; }
.mk-section-extras .mk-card + .mk-card { margin-top: 14px; }

/* ------ Right-rail summary card ------ */
.mk-summary-card {
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-md);
  padding: 28px;
  margin-top: 24px;
}
@media (min-width: 1280px) {
  .mk-summary-card { position: sticky; top: 120px; }
}
.mk-summary-title { font-family: var(--mk-serif); font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.mk-summary-total { display: flex; flex-direction: column; padding-bottom: 20px; border-bottom: 1px solid var(--mk-line); margin-bottom: 18px; }
.mk-summary-total .mk-total-amount { font-family: var(--mk-serif); font-size: 28px; font-weight: 600; }
.mk-summary-total .mk-total-vat    { color: var(--mk-mute); font-size: 12px; }
.mk-summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-summary-links { margin-top: 28px; }
.mk-summary-links h3 { font-family: var(--mk-serif); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.mk-summary-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mk-summary-links a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ------ Practical info ------ */
.mk-practical { padding-top: 40px; border-top: 1px solid var(--mk-line); margin-top: 24px; }
.mk-practical-lead { font-size: 16px; color: var(--mk-ink-soft); margin: 0 0 32px; }
.mk-practical-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .mk-practical-grid { grid-template-columns: 1fr 1fr 1fr; } }
.mk-card-static { padding: 24px; }
.mk-card-static h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.mk-card-static p  { font-size: 14px; }

/* ------ 4 Steps ------ */
.mk-steps { margin-top: 64px; }
.mk-steps-grid {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .mk-steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; } }
@media (min-width: 1024px) { .mk-steps-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 36px; } }

.mk-step { padding: 0; }
.mk-step-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  margin-bottom: 14px;
}
.mk-step-num {
  font-family: var(--mk-sans);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--mk-ink);
  display: inline-block;
  margin: 0;
}
.mk-step h3 {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.mk-step p  { font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.mk-step-meta { font-size: 13px; color: var(--mk-ink); margin-top: 12px; }
.mk-step-meta strong { font-weight: 700; font-size: 14px; }
.mk-steps-foot { font-size: 12px; color: var(--mk-mute); margin-top: 32px; max-width: 920px; }

@media (max-width: 599px) {
  .mk-step h3 { font-size: 17px; }
}

/* ------ Soft warning shown inside cards that recommend Bathroom ------ */
.mk-card-warn {
  margin: 10px 0 4px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #7a4a00;
  background: #fff6e2;
  border: 1px solid #f1d7a3;
  border-radius: var(--mk-radius-sm);
}
.mk-card-warning { border-color: #f1d7a3; }

/* ------ Selected kitchen color preview ------ */
.mk-kitchen-color-preview { margin: 14px 0 0; border-radius: var(--mk-radius-md); overflow: hidden; background: #ececea; }
.mk-kitchen-color-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* ------ Per-option illustrative image inside option cards ------ */
.mk-card-image { margin: 12px 0 14px; border-radius: var(--mk-radius-md); overflow: hidden; background: #ececea; }
.mk-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* ------ Your MU30 promo ------ */
.mk-your-module {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .mk-your-module { grid-template-columns: minmax(0, 70fr) minmax(0, 30fr); gap: 48px; }
}
.mk-your-module-media { width: 100%; overflow: hidden; }
.mk-your-module-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-your-module-card {
  background: #f3f1ec;
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.mk-your-module-title { font-family: var(--mk-serif); font-size: 40px; font-weight: 700; margin: 0 0 32px; }
.mk-your-module-total { display: flex; flex-direction: column; padding-bottom: 20px; border-bottom: 1px solid var(--mk-line); margin-bottom: 24px; }
.mk-your-module-total .mk-total-amount { font-family: var(--mk-serif); font-size: 28px; font-weight: 600; }
.mk-your-module-total .mk-total-vat { color: var(--mk-mute); font-size: 12px; }
.mk-your-module-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-your-module-links { margin-top: 36px; }
.mk-your-module-links h3 { font-family: var(--mk-serif); font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.mk-your-module-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mk-your-module-links a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ------ Walkthrough ------ */
.mk-walkthrough { margin: 64px 0 0; }
.mk-walkthrough-trigger {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  background-size: cover;
  background-position: center;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.mk-walkthrough-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mk-serif);
  font-weight: 600;
  font-size: 64px;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
@media (max-width: 767px) { .mk-walkthrough-label { font-size: 32px; } .mk-walkthrough-trigger { aspect-ratio: 4/3; } }

/* ------ Modal ------ */
.mk-modal {
  position: fixed;
  inset: 0;
  z-index: 99999; /* must clear the theme's fixed header */
  display: none;
}
.mk-modal[aria-hidden="false"] { display: block; }
.mk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,18,.55);
}
.mk-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--mk-surface);
  border-radius: var(--mk-radius-lg);
  width: min(94vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--mk-shadow-lg);
}
/* Rich-summary modal: fixed header + footer, scrollable body. */
.mk-modal-panel-rich .mk-modal-header,
.mk-modal-panel-rich .mk-modal-footer { padding: 24px 32px; flex-shrink: 0; }
.mk-modal-panel-rich .mk-modal-header { border-bottom: 1px solid var(--mk-line); }
.mk-modal-panel-rich .mk-modal-footer { border-top: 1px solid var(--mk-line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mk-modal-panel-rich .mk-modal-body { padding: 24px 32px; overflow: auto; flex: 1 1 auto; }
.mk-modal-sub { margin: 6px 0 0; color: var(--mk-mute); font-size: 14px; }
.mk-modal-grand { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.mk-modal-grand-label { font-weight: 600; font-size: 14px; }
.mk-modal-grand-amount { font-family: var(--mk-serif); font-weight: 600; font-size: 24px; }
.mk-modal-grand-vat { color: var(--mk-mute); font-size: 12px; }

/* Sectioned summary list */
.mk-summary-section { margin: 0 0 28px; }
.mk-summary-section + .mk-summary-section { padding-top: 24px; border-top: 1px solid var(--mk-line); }
.mk-summary-section:last-child { margin-bottom: 0; }
.mk-summary-section-title {
  font-family: var(--mk-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--mk-mute);
}
.mk-summary-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.mk-summary-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-md);
  background: #fff;
  align-items: center;
  transition: border-color 180ms var(--mk-ease), box-shadow 180ms var(--mk-ease);
}
.mk-summary-item:hover { border-color: var(--mk-line-strong); box-shadow: var(--mk-shadow-sm); }
.mk-summary-item-media {
  width: 88px;
  aspect-ratio: 1;
  border-radius: var(--mk-radius-sm);
  overflow: hidden;
  background: #ececea;
}
/* High specificity to beat the global #mikuu-app img { height:auto !important }
 * defense rule. Without this the cover crop has nothing to crop into. */
#mikuu-app .mk-summary-item-media img,
.mk-modal .mk-summary-item-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  max-width: none !important;
}
.mk-summary-item-media-empty { background: repeating-linear-gradient(45deg, #f1efe9, #f1efe9 6px, #e8e6df 6px, #e8e6df 12px); }
.mk-summary-item-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-summary-item-label { font-weight: 600; font-size: 15px; color: var(--mk-ink); line-height: 1.3; }
.mk-summary-item-sub   { font-size: 12px; color: var(--mk-mute); line-height: 1.3; }
.mk-summary-item-price { font-weight: 600; font-size: 15px; color: var(--mk-ink); white-space: nowrap; padding-right: 8px; }
.mk-summary-item-soon  { color: var(--mk-mute); font-style: italic; font-weight: 500; font-size: 13px; }

/* Offer modal — two-column inside rich panel */
.mk-modal-panel-offer .mk-offer-stage { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.mk-modal-panel-offer .mk-modal-header { padding: 24px 32px; border-bottom: 1px solid var(--mk-line); flex-shrink: 0; }
.mk-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.mk-offer-summary-col { padding: 24px 28px; overflow: auto; border-right: 1px solid var(--mk-line); }
.mk-offer-summary-col .mk-modal-grand { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mk-line); }
.mk-offer-form-col { padding: 24px 28px; overflow: auto; }
.mk-offer-form-title { font-family: var(--mk-serif); font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.mk-offer-thanks { padding: 48px 32px; text-align: center; }

/* ------ Standalone /?mikuu_checkout=1 page ------ */
.mikuu-checkout { padding-top: 32px; }
.mk-checkout-header { padding: 0 0 24px; border-bottom: 1px solid var(--mk-line); margin-bottom: 28px; }
.mk-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-mute) !important;
  margin-bottom: 14px;
}
.mk-checkout-back:hover { color: var(--mk-ink) !important; }
.mk-checkout-back svg { stroke: currentColor; }
.mk-checkout-title { font-family: var(--mk-serif); font-size: 36px; font-weight: 600; margin: 0 0 6px; }
.mk-checkout-sub   { color: var(--mk-mute); font-size: 14px; margin: 0; }

.mk-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .mk-checkout-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
  .mk-checkout-form { position: sticky; top: 120px; }
}

.mk-checkout-summary { min-width: 0; }
.mk-checkout-grand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--mk-ink);
}
.mk-checkout-edit { display: inline-block; margin-top: 8px; }
@media (max-width: 767px) {
  .mk-checkout-grand { flex-wrap: wrap; }
  .mk-checkout-grand .mk-modal-grand-vat { flex-basis: 100%; }
}

.mk-checkout-form {
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-md);
  padding: 28px;
  background: #fff;
}
.mk-checkout-form-title { font-family: var(--mk-serif); font-size: 22px; font-weight: 600; margin: 0 0 18px; }

/* ======= Checkout form v2 (matches the Mikuu inquiry mock) ======= */
.mk-checkout-form-v2 {
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--mk-shadow-md);
}
.mk-checkout-form-v2 .mk-checkout-form-title {
  font-family: var(--mk-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 22px 0 6px;
  letter-spacing: -0.01em;
}
.mk-checkout-form-sub {
  color: var(--mk-mute);
  font-size: 14px;
  margin: 0 0 20px;
}

/* Price pill at the top */
.mk-form-pricepill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #f4efe5;
  border-radius: 12px;
}
.mk-form-pricepill-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mk-ink-soft);
  flex: 0 0 auto;
}
.mk-form-pricepill-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.mk-form-pricepill-amount {
  font-family: var(--mk-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--mk-ink);
  font-variant-numeric: tabular-nums;
}
.mk-form-pricepill-vat {
  font-size: 12px;
  color: var(--mk-mute);
  margin-top: 2px;
}

/* Segmented Private / Business switch */
.mk-form-segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #efece4;
  border-radius: 999px;
  padding: 4px;
  margin: 4px 0 6px;
  isolation: isolate;
}
.mk-form-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.mk-form-segmented label {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-ink-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: color 180ms var(--mk-ease);
  user-select: none;
}
.mk-form-segmented input:checked + label { color: var(--mk-ink); }
.mk-form-segmented input:focus-visible + label { outline: 2px solid var(--mk-accent); outline-offset: 2px; }
.mk-form-segmented-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform 220ms var(--mk-ease);
  z-index: 1;
}
.mk-form-segmented input#mk-cust-business:checked ~ .mk-form-segmented-thumb {
  transform: translateX(100%);
}

/* Required asterisk */
.mk-offer-form .mk-req { color: #c0392b; font-style: normal; font-weight: 700; }

/* Inputs */
.mk-checkout-form-v2 .mk-offer-form input[type="text"],
.mk-checkout-form-v2 .mk-offer-form input[type="email"],
.mk-checkout-form-v2 .mk-offer-form input[type="tel"],
.mk-checkout-form-v2 .mk-offer-form input[type="search"],
.mk-checkout-form-v2 .mk-offer-form textarea {
  padding: 13px 14px;
  border: 1px solid var(--mk-line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  transition: border-color 160ms var(--mk-ease), box-shadow 160ms var(--mk-ease);
}
.mk-checkout-form-v2 .mk-offer-form input:focus,
.mk-checkout-form-v2 .mk-offer-form textarea:focus {
  outline: none;
  border-color: var(--mk-cta);
  box-shadow: 0 0 0 3px rgba(31,58,46,.12);
}
.mk-checkout-form-v2 .mk-offer-form label > span { font-size: 13px; font-weight: 600; color: var(--mk-ink); }

/* "Use my location" — gold/accent link with target icon */
.mk-checkout-form-v2 .mk-form-link {
  color: var(--mk-accent);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}
.mk-checkout-form-v2 .mk-form-link:hover { color: var(--mk-cta); }

/* Consent card */
.mk-form-consent {
  background: #faf7f1;
  border: 1px solid #ece6d6;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--mk-ink-soft);
  line-height: 1.55;
}
.mk-form-consent p { margin: 0; color: var(--mk-ink-soft); }
.mk-form-consent p + p { margin-top: 10px; }
.mk-form-consent a { color: var(--mk-accent); text-decoration: underline; }

/* Marketing opt-in checkbox */
.mk-checkout-form-v2 .mk-form-check {
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mk-ink-soft);
}
.mk-checkout-form-v2 .mk-form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--mk-cta);
  flex: 0 0 auto;
}

/* Send request button */
.mk-btn-send {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 22px;
  border-radius: 12px;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(31,58,46,.18);
}
.mk-btn-send svg { transition: transform 180ms var(--mk-ease); }
.mk-btn-send:hover svg { transform: translateX(3px); }

/* Reassurance row */
.mk-form-reassurance {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--mk-ink-soft);
  grid-column: 1 / -1;
}
.mk-form-reassurance li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .mk-form-reassurance { justify-content: center; flex-wrap: nowrap; gap: 16px; font-size: 12px; }
  .mk-form-reassurance li { white-space: nowrap; flex: 0 0 auto; }
}
.mk-form-reassurance li svg:first-child { color: var(--mk-accent); }
.mk-form-reassurance li:nth-child(2) svg { color: var(--mk-cta); }

/* Mobile fine-tuning */
@media (max-width: 600px) {
  .mk-checkout-form-v2 { padding: 22px; border-radius: 14px; }
  .mk-checkout-title { font-size: 26px; }
  .mk-form-pricepill { padding: 14px 16px; flex-wrap: wrap; align-items: baseline; }
  .mk-form-pricepill-amount { font-size: 24px; }
  .mk-form-pricepill-right { display: contents; }
  .mk-form-pricepill-vat { flex-basis: 100%; text-align: left; margin-top: 6px; }
  .mk-checkout-form-v2 .mk-checkout-form-title { font-size: 22px; }
}

/* legacy table (left for old summary-card on the page) */
.mk-modal-panel-video { width: min(92vw, 1200px); padding: 0; background: #000; display: block; }
.mk-video-wrap { aspect-ratio: 16 / 9; }
.mk-video-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.mk-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--mk-line);
  background: #fff;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--mk-ink);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms var(--mk-ease), border-color 180ms var(--mk-ease);
}
.mk-modal-close:hover { background: var(--mk-bg); border-color: var(--mk-ink); }
.mk-modal-close svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
  flex-shrink: 0;
  color: #1a1a1a;
  stroke: #1a1a1a !important;
  fill: none !important;
}
.mk-modal-close svg line { stroke: #1a1a1a !important; }
.mk-modal-close:hover svg,
.mk-modal-close:hover svg line { stroke: #1a1a1a !important; }
.mk-modal-panel-video .mk-modal-close {
  color: #fff;
  background: rgba(0,0,0,.65);
  border-color: rgba(255,255,255,.35);
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.mk-modal-panel-video .mk-modal-close:hover {
  background: #fff;
  border-color: #fff;
}
.mk-modal-panel-video .mk-modal-close svg,
.mk-modal-panel-video .mk-modal-close svg line {
  stroke: #fff !important;
  color: #fff !important;
}
.mk-modal-panel-video .mk-modal-close:hover svg,
.mk-modal-panel-video .mk-modal-close:hover svg line {
  stroke: #1a1a1a !important;
}
.mk-modal-title { font-family: var(--mk-serif); font-size: 28px; font-weight: 600; margin: 0 0 16px; }

.mk-summary-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 14px; }
.mk-summary-table td { padding: 8px 0; border-bottom: 1px solid var(--mk-line); }
.mk-summary-table td:last-child { text-align: right; white-space: nowrap; }
.mk-summary-grand { display: flex; justify-content: space-between; padding: 10px 0 18px; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--mk-ink); margin-bottom: 18px; }
.mk-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.mk-modal-error { color: #b03a3a; font-size: 13px; margin: 8px 0 0; }
.mk-offer-thanks-msg { font-size: 16px; }
.mk-offer-ref { color: var(--mk-mute); font-size: 13px; }

/* Offer form */
.mk-offer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; }
.mk-offer-form .mk-form-full { grid-column: 1 / -1; }
.mk-offer-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mk-mute); }
.mk-offer-form input,
.mk-offer-form textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--mk-line-strong);
  border-radius: var(--mk-radius-sm);
  background: #fff;
  color: var(--mk-ink);
}
.mk-offer-form input:focus,
.mk-offer-form textarea:focus { outline: 2px solid var(--mk-accent); outline-offset: 0; border-color: var(--mk-accent); }
.mk-offer-form .mk-modal-actions { grid-column: 1 / -1; }
.mk-offer-form label > span { font-weight: 600; color: var(--mk-ink); font-size: 13px; }
.mk-offer-form .mk-form-label { display: block; font-weight: 600; color: var(--mk-ink); font-size: 13px; margin-bottom: 6px; }
.mk-offer-form .mk-form-group { display: flex; flex-direction: column; gap: 8px; }
.mk-offer-form .mk-form-search { position: relative; }
.mk-offer-form .mk-form-search input { width: 100%; padding-right: 40px; }
.mk-offer-form .mk-form-search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--mk-mute); pointer-events: none; }
.mk-form-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--mk-line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 260px; overflow-y: auto; z-index: 30;
  list-style: none; margin: 0; padding: 4px 0;
}
.mk-form-suggest[hidden] { display: none; }
.mk-form-suggest li { padding: 10px 14px; cursor: pointer; font-size: 14px; color: var(--mk-ink); line-height: 1.3; }
.mk-form-suggest li:hover, .mk-form-suggest li.is-active { background: #f4efe5; }
.mk-form-suggest li.is-empty { color: var(--mk-mute); cursor: default; }
.mk-form-suggest li.is-empty:hover { background: transparent; }
.mk-offer-form .mk-form-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--mk-accent, #1a6cff); font-size: 13px; font-weight: 600;
  align-self: flex-start;
}
.mk-offer-form .mk-form-link:hover { text-decoration: underline; }
.mk-offer-form .mk-form-check {
  flex-direction: row; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--mk-ink); line-height: 1.45;
}
.mk-offer-form .mk-form-check input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--mk-accent, #1a6cff); cursor: pointer;
}
.mk-offer-form .mk-form-check span { font-weight: 500; }
.mk-offer-form .mk-form-fineprint { color: var(--mk-mute); font-size: 13px; line-height: 1.55; margin: 0; }
.mk-offer-form .mk-form-fineprint a { color: var(--mk-accent, #1a6cff); text-decoration: underline; }
.mk-btn-block { width: 100%; justify-content: center; }
.mk-offer-form .mk-field-invalid input,
.mk-offer-form .mk-field-invalid textarea,
.mk-offer-form input.mk-field-invalid,
.mk-offer-form textarea.mk-field-invalid {
  border-color: #c0392b;
  background: #fff5f5;
  box-shadow: 0 0 0 1px #c0392b;
}
.mk-offer-form .mk-field-invalid > span,
.mk-offer-form .mk-field-invalid .mk-form-label { color: #c0392b; }
.mk-offer-form [data-mk-offer-error]:not([hidden]) {
  background: #fdecea;
  border: 1px solid #f5c2bd;
  color: #b03a3a;
  padding: 10px 12px;
  border-radius: var(--mk-radius-sm);
  font-size: 13px;
  margin: 4px 0 0;
}
@media (max-width: 600px) {
  .mk-offer-form { grid-template-columns: 1fr; }
}

/* The bottom .mk-pricebar now covers what the old mobile-only action bar
 * used to do, so the duplicate is hidden on every viewport. The element is
 * left in the markup as a fallback for environments without position:fixed. */
.mk-mobile-actions { display: none; }

/* ------ Responsive media tweaks ------ */
@media (max-width: 1023px) {
  .mk-gallery-floorplan { padding: 16px; }
}
@media (max-width: 1023px) {
  .mk-offer-grid { grid-template-columns: 1fr; }
  .mk-offer-summary-col { border-right: 0; border-bottom: 1px solid var(--mk-line); }
}
@media (max-width: 767px) {
  .mk-card { padding: 16px; }
  .mk-card-check { top: 16px; right: 16px; }
  .mk-modal-panel {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    top: 0; left: 0;
    transform: none;
  }
  .mk-modal-panel-rich .mk-modal-header,
  .mk-modal-panel-rich .mk-modal-footer,
  .mk-modal-panel-rich .mk-modal-body,
  .mk-offer-summary-col,
  .mk-offer-form-col { padding-left: 16px; padding-right: 16px; }
  .mk-modal-title { font-size: 22px; }
  .mk-summary-items { grid-template-columns: 1fr; }
  .mk-summary-item { grid-template-columns: 72px 1fr; }
  .mk-summary-item-media { width: 72px; }
  .mk-offer-form { grid-template-columns: 1fr; }
  .mk-modal-footer { justify-content: stretch; }
  .mk-modal-footer .mk-modal-actions { width: 100%; }
  .mk-modal-footer .mk-modal-actions .mk-btn { flex: 1; }
}

/* ------ A11y helpers ------ */
.mk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mikuu-configurator [role="checkbox"]:focus-visible,
.mikuu-configurator [role="radio"]:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 2px;
}

/* ------ Theme defense layer ------
 * The configurator runs inside arbitrary themes / page builders (Elementor,
 * LiteSpeed lazy-CSS, etc.) that may inject styles AFTER first paint. Every
 * rule below is anchored on `#mikuu-app` so the specificity (1,1,0+) beats
 * virtually any non-ID theme rule without further `!important`. We keep
 * `!important` only on button colors, where a single overridden background
 * would visually break the design (pink CTA on dark green, etc.).
 */

#mikuu-app .mk-shell { max-width: 1420px; margin-left: auto; margin-right: auto; }

/* Links inherit ink color, never the theme accent. */
#mikuu-app a,
#mikuu-app a:visited { color: var(--mk-ink); text-decoration: none; }
#mikuu-app a:hover { color: var(--mk-accent); }

/* Buttons: defeat theme link/button styling, including delayed JS-injected styles. */
#mikuu-app .mk-btn {
  display: inline-block;
  text-decoration: none !important;
  font-family: var(--mk-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  text-shadow: none;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
}
#mikuu-app .mk-btn-cta,
#mikuu-app .mk-btn-cta:link,
#mikuu-app .mk-btn-cta:visited {
  background-color: var(--mk-cta) !important;
  color: var(--mk-cta-ink) !important;
  border-color: var(--mk-cta) !important;
}
#mikuu-app .mk-btn-cta:hover,
#mikuu-app .mk-btn-cta:focus {
  background-color: var(--mk-cta-hover) !important;
  border-color: var(--mk-cta-hover) !important;
  color: var(--mk-cta-ink) !important;
}
#mikuu-app .mk-btn-outline,
#mikuu-app .mk-btn-outline:link,
#mikuu-app .mk-btn-outline:visited {
  background-color: transparent !important;
  color: var(--mk-ink) !important;
  border-color: var(--mk-line-strong) !important;
}
#mikuu-app .mk-btn-outline:hover,
#mikuu-app .mk-btn-outline:focus {
  border-color: var(--mk-ink) !important;
  color: var(--mk-ink) !important;
}

/* Price bar + headings — themes routinely override these. */
#mikuu-app .mk-pricebar-label,
#mikuu-app .mk-total-amount,
#mikuu-app .mk-summary-title,
#mikuu-app .mk-h2,
#mikuu-app .mk-hero-title,
#mikuu-app .mk-card-title { color: var(--mk-ink); }
#mikuu-app .mk-total-vat,
#mikuu-app .mk-card-desc { color: var(--mk-ink-soft); }

/* Images locked to their grid cell. */
#mikuu-app img { max-width: 100%; height: auto; }
#mikuu-app .mk-gallery-main img,
#mikuu-app .mk-gallery-interior img { width: 100%; }

/* 2-column grid re-asserted. minmax(0, ...) prevents grid blowout when a
 * wide child (image, terrace card with long word) tries to push out of the
 * cell — the symptom that makes "everything overlap after 1 second". */
#mikuu-app .mk-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) {
  #mikuu-app .mk-grid {
    grid-template-columns: minmax(0, 70fr) minmax(0, 30fr);
    gap: 64px;
    align-items: start;
  }
}

/* Cards: defend against floated/positioned theme overrides on <article>/<div>. */
#mikuu-app .mk-card {
  background: var(--mk-surface);
  float: none;
  width: auto;
  position: relative;
}

/* Section containers: themes sometimes apply position:absolute on children.
 * Re-assert normal flow on every block-level descendant inside #mikuu-app. */
#mikuu-app .mk-section,
#mikuu-app .mk-grid > * {
  position: relative;
}

/* ------ Reduced motion ------ */
@media (prefers-reduced-motion: reduce) {
  .mikuu-configurator *,
  .mikuu-configurator *::before,
  .mikuu-configurator *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------ Title font override (configurator + checkout) ------
 * Project decision: every heading/title uses the sans family — no serif. */
.mikuu-configurator h1,
.mikuu-configurator h2,
.mikuu-configurator h3,
.mikuu-configurator h4,
.mikuu-configurator h5,
.mikuu-configurator h6,
.mikuu-configurator .mk-h2,
.mikuu-configurator .mk-h2-bleed,
.mikuu-configurator .mk-hero-title,
.mikuu-configurator .mk-card-title,
.mikuu-configurator .mk-summary-title,
.mikuu-configurator .mk-summary-links h3,
.mikuu-configurator .mk-step-num,
.mikuu-configurator .mk-your-module-title,
.mikuu-configurator .mk-your-module-links h3,
.mikuu-configurator .mk-offer-form-title,
.mikuu-configurator .mk-checkout-title,
.mikuu-configurator .mk-checkout-form-title,
.mikuu-configurator .mk-checkout-summary-title,
.mikuu-configurator .mk-checkout-total-title,
.mikuu-configurator .mk-modal-title,
.mikuu-configurator .mk-modal-grand-amount,
.mikuu-configurator .mk-summary-total .mk-total-amount,
.mikuu-configurator .mk-your-module-total .mk-total-amount,
.mikuu-configurator .mk-form-pricepill-amount,
.mikuu-configurator .mk-checkout-grand .mk-modal-grand-amount,
.mikuu-configurator .mk-checkout-total-amount {
  font-family: var(--mk-sans) !important;
}

.mikuu-configurator .mk-h2 { padding-bottom: 10px; }

/* Checkout summary footer: total (left) + Edit configuration (right) on one row. */
.mk-checkout-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.mk-checkout-foot .mk-checkout-grand { margin-top: 0; flex: 1 1 auto; }
.mk-checkout-foot .mk-checkout-edit { margin-top: 0; flex: 0 0 auto; }
@media (max-width: 480px) {
  .mk-checkout-foot { flex-direction: column; align-items: stretch; }
  .mk-checkout-foot .mk-checkout-edit { width: 100%; justify-content: center; }
}

/* ------ Read-more popup modal ------ */
.mk-modal-panel-readmore {
  width: min(92vw, 640px);
  max-height: min(86vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  padding: 0;
  box-shadow: var(--mk-shadow-lg);
}
.mk-modal-panel-readmore .mk-modal-body {
  padding: 36px 36px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mk-modal-panel-readmore .mk-modal-title {
  font-family: var(--mk-sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mk-ink);
  margin: 0 0 16px;
  padding-right: 36px; /* room for the close button */
}
.mk-readmore-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mk-ink-soft);
}
.mk-readmore-content > *:first-child { margin-top: 0; }
.mk-readmore-content > *:last-child  { margin-bottom: 0; }
.mk-readmore-content p { margin: 0 0 14px; color: var(--mk-ink-soft); }
.mk-readmore-content ul,
.mk-readmore-content ol { margin: 0 0 14px 20px; padding: 0; }
.mk-readmore-content li { margin-bottom: 6px; }
.mk-readmore-content h2,
.mk-readmore-content h3,
.mk-readmore-content h4 {
  font-family: var(--mk-sans);
  font-weight: 700;
  color: var(--mk-ink);
  margin: 18px 0 8px;
  line-height: 1.3;
}
.mk-readmore-content h2 { font-size: 20px; }
.mk-readmore-content h3 { font-size: 17px; }
.mk-readmore-content h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.mk-readmore-content a { color: var(--mk-accent); text-decoration: underline; }
.mk-readmore-content strong { color: var(--mk-ink); }
.mk-readmore-content img { border-radius: 8px; margin: 8px 0; }
.mk-modal-panel-readmore .mk-modal-close {
  top: 14px;
  right: 14px;
}

/* "Read more" trigger button — styled link with arrow */
button.mk-card-more,
.mk-card-more {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px 0;
  margin-top: 4px;
  color: var(--mk-accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 160ms var(--mk-ease);
  position: relative;
  z-index: 1;
}
.mk-card-more:hover {
  color: var(--mk-cta);
}
.mk-card-more svg { transition: transform 160ms var(--mk-ease); }
.mk-card-more:hover svg { transform: translateX(3px); }
.mk-card-more:focus { outline: 2px solid var(--mk-accent); outline-offset: 2px; }
.mk-card-more:focus:not(:focus-visible) { outline: none; }

@media (max-width: 600px) {
  .mk-modal-panel-readmore { width: 94vw; border-radius: 14px; max-height: 88vh; }
  .mk-modal-panel-readmore .mk-modal-body { padding: 28px 22px 24px; }
  .mk-modal-panel-readmore .mk-modal-title { font-size: 22px; padding-right: 32px; }
  .mk-readmore-content { font-size: 14px; }
}

/* Read-more modal — header (kicker + title + price) */
.mk-readmore-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--mk-line);
}
.mk-readmore-kicker {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-accent);
}
.mk-readmore-head .mk-modal-title { margin: 0; padding-right: 0; }
.mk-readmore-price {
  font-family: var(--mk-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--mk-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .mk-readmore-head { grid-template-columns: 1fr; }
  .mk-readmore-price { font-size: 15px; }
}

/* Header-hide-on-scroll (all viewports): when the JS adds .mk-header-hidden
 * to <html>, slide the theme header off-screen and the price bar up to fill
 * the space it just vacated. */
.thim-ekit__header,
header[role="banner"],
.site-header,
#masthead,
.elementor-location-header {
  transition: transform 260ms cubic-bezier(.2,.8,.2,1) !important;
  will-change: transform;
}
html.mk-header-hidden .thim-ekit__header,
html.mk-header-hidden header[role="banner"],
html.mk-header-hidden .site-header,
html.mk-header-hidden #masthead,
html.mk-header-hidden .elementor-location-header {
  transform: translateY(-100%) !important;
}
.mk-pricebar {
  transition: transform 100ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
html.mk-header-hidden .mk-pricebar {
  transform: translateY(calc(-1 * var(--mk-header-h, 64px)));
}
/* Mobile WP admin bar is 46px tall; desktop 32px. The pricebar's top is
 * already offset by it (see admin-bar rules above), so when the header
 * hides we only need to slide it past the header height itself. */
html.mk-header-hidden.admin-bar .mk-pricebar {
  transform: translateY(calc(-1 * var(--mk-header-h, 64px)));
}

/* Two-column form rows: force 50/50 columns and full-width inputs so
 * First name / Surname (and Phone / Postal) line up regardless of theme
 * input resets that may impose a max-width. */
.mikuu-configurator .mk-offer-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.mikuu-configurator .mk-offer-form > label { min-width: 0 !important; width: 100% !important; }
.mikuu-configurator .mk-offer-form > label > input:not([type="checkbox"]):not([type="radio"]),
.mikuu-configurator .mk-offer-form > label > textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}
/* Marketing opt-in (and any other full-width check/radio row) must keep
 * its tiny native checkbox size — restore from the over-eager rule above. */
.mikuu-configurator .mk-offer-form .mk-form-check input[type="checkbox"],
.mikuu-configurator .mk-offer-form .mk-form-check input[type="radio"] {
  width: 18px !important;
  max-width: 18px !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
}
