@charset "UTF-8";
/**
 * Kitchen Visualiser — scoped styles.
 *
 * Authored as flat, valid CSS (theming via CSS custom properties rather than
 * SCSS nesting/variables) so this source and the Prepros-compiled
 * kitchen-visualiser.css stay identical. Everything is scoped under .kv-tool /
 * body.kv-page to avoid leaking into the global stylesheet.
 */
/* ---------- Full-screen: hide site chrome ---------- */
body.kv-page {
  overflow: hidden;
}

body.kv-page #site_header,
body.kv-page #site-footer,
body.kv-page .sidebar-overlay {
  display: none !important;
}

body.kv-page #site_main {
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- Root ---------- */
.kv-tool {
  --kv-red: #b2173b;
  --kv-navy: #1b2436;
  --kv-text: #333;
  --kv-sub: #888;
  --kv-border: #e8e8e8;
  --kv-drawer-bg: rgba(255, 255, 255, 0.94);
  --kv-radius: 20px;
  --kv-pad: 32px;
  --kv-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #d8d2cc;
  color: var(--kv-text);
  font-family: var(--font-primary, "Gilroy", "Helvetica Neue", Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}

/* Keyboard focus ring (mouse clicks stay clean via :focus-visible). */
.kv-tool button:focus-visible {
  outline: 2px solid var(--kv-red);
  outline-offset: 2px;
}

/* ---------- Hero stage (crossfade) ---------- */
.kv-stage {
  position: absolute;
  inset: 0;
}

.kv-hero {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  -webkit-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.kv-hero.is-active {
  opacity: 1;
}

/* ---------- Top bar ---------- */
.kv-topbar {
  position: absolute;
  top: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 15;
}

.kv-save-exit {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  background: var(--kv-red);
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 16px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-transition: background 0.2s ease, -webkit-transform 0.2s ease;
  transition: background 0.2s ease, -webkit-transform 0.2s ease;
  transition: background 0.2s ease, transform 0.2s ease;
  transition: background 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
}

.kv-save-exit:hover {
  background: #93122f;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

/* Current-selection chip (top-left). Kept in sync by kitchen-visualiser.js. */
.kv-selected {
  position: absolute;
  top: 24px; /* level with the Save & Exit button, floating off the top edge */
  left: 0; /* flush to the left edge; rounded on the right (tab against the edge) */
  z-index: 15;
  max-width: min(62vw, 460px);
  padding: 18px 26px;
  background: #fff;
  color: var(--kv-text);
  font-size: 17px;
  line-height: 1.2;
  border-radius: 0 14px 14px 0;
  -webkit-box-shadow: var(--kv-shadow);
          box-shadow: var(--kv-shadow);
  /* Two stacked lines now, so the truncation moves onto each line individually. */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
  overflow: hidden;
  /* It is a link now, so it has to be clickable — .kv-ui sits above it and covers it while
     a modal is open, which is what keeps it inert behind the overlay. */
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.kv-selected-name,
.kv-selected-finishes {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A step down from the range and colour: smaller, lighter, and never competing with it. */
.kv-selected-finishes {
  font-size: 13px;
  color: var(--kv-sub);
  letter-spacing: 0.3px;
}

.kv-selected:hover,
.kv-selected:focus-visible {
  color: var(--kv-red);
  text-decoration: underline;
}

/* ---------- UI layer ---------- */
/* Above .kv-topbar and .kv-selected (both z-index 15): .kv-ui is a stacking context, so the
   modal overlay inside it can only outrank them if .kv-ui itself does. Keeps the topbar and
   the selection chip under the modal's dim, and unclickable, while a modal is open. */
.kv-ui {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.kv-dock {
  position: absolute;
  left: 50%;
  bottom: 0;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 0 16px;
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
  transition: transform 0.35s ease, -webkit-transform 0.35s ease;
}

/* Collapsed: keep the drawer header visible, collapse only the body. */
.kv-dock.is-collapsed {
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.kv-collapse {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 0;
  background: #fff;
  -webkit-box-shadow: var(--kv-shadow);
          box-shadow: var(--kv-shadow);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 16px;
  color: var(--kv-text);
  pointer-events: auto;
  -ms-flex-item-align: end;
      align-self: flex-end;
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
  transition: transform 0.35s ease, -webkit-transform 0.35s ease;
}

.kv-dock.is-collapsed .kv-collapse {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

/* ---------- Drawer / bottom sheet ---------- */
.kv-drawer {
  width: 100%;
  /* Expanded: frosted + whiter so content reads easily. */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--kv-radius) var(--kv-radius) 0 0;
  -webkit-box-shadow: var(--kv-shadow);
          box-shadow: var(--kv-shadow);
  /* No horizontal padding: children inset themselves so the swatch slider can bleed to the edges. */
  padding: 22px 0 28px;
  pointer-events: auto;
  text-align: center;
  -webkit-transition: background 0.35s ease, backdrop-filter 0.35s ease;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.kv-drawer-header {
  padding: 0 var(--kv-pad);
}

/* Collapsed: lighter glass, but still legible (not too transparent). */
.kv-dock.is-collapsed .kv-drawer {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.kv-drawer-title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--kv-text);
}

/* Header stays visible when collapsed; body holds the collapsible content. */
.kv-drawer-body {
  overflow: hidden;
  max-height: 65vh;
  opacity: 1;
  padding-top: 20px;
  -webkit-transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.35s ease;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.35s ease;
}

.kv-dock.is-collapsed .kv-drawer-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  pointer-events: none;
}

/* Summary view — two big options */
.kv-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 28px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 var(--kv-pad);
}

.kv-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  max-width: 130px;
}

.kv-option-circle {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  border: 2px solid var(--kv-border);
  background-color: #fff;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-transition: -webkit-box-shadow 0.2s ease;
  transition: -webkit-box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}

.kv-option:hover .kv-option-circle {
  -webkit-box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kv-border);
          box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kv-border);
}

.kv-option-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--kv-text);
}

.kv-option-value {
  font-size: 11px;
  color: var(--kv-sub);
}

/* Panel views (range / colour) */
.kv-panel-head {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr auto 1fr;
  grid-template-columns: 1fr auto 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0;
}

.kv-back {
  -ms-grid-column-align: start;
      justify-self: start;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--kv-text);
}

.kv-panel-title {
  font-size: 22px;
  font-weight: 400;
}

.kv-toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 20px;
  padding: 0 var(--kv-pad);
}

.kv-toggle button {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 13px;
  color: var(--kv-text);
  cursor: pointer;
  -webkit-transition: border-color 0.2s ease, background 0.2s ease;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-transform: capitalize;
}

.kv-toggle button:hover {
  background: rgba(0, 0, 0, 0.04);
}

.kv-toggle button.is-active {
  border-color: var(--kv-text);
}

.kv-toggle button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Horizontal swatch row */
.kv-swatches {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  /* Lead-in on the left; no right padding so the row bleeds off the edge. */
  padding: 6px 0 10px var(--kv-pad);
  -ms-scroll-snap-type: x proximity;
      scroll-snap-type: x proximity;
  scroll-padding-left: var(--kv-pad);
  scrollbar-width: thin;
  /* Keep sideways swipes inside the row (no page bounce/back-gesture). */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.kv-swatches::-webkit-scrollbar {
  height: 6px;
}

.kv-swatches::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Desktop click-and-drag panning (JS adds .is-dragging while a mouse drag is in progress). */
.kv-swatches {
  cursor: -webkit-grab;
  cursor: grab;
}

.kv-swatches.is-dragging {
  cursor: -webkit-grabbing;
  cursor: grabbing;
  -ms-scroll-snap-type: none;
      scroll-snap-type: none; /* 1:1 panning without snap tug; snapping resumes on release */
  scroll-behavior: auto;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.kv-swatches.is-dragging .kv-swatch {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.kv-swatch {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 84px;
  scroll-snap-align: start;
}

.kv-swatch-media {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  border: 2px solid var(--kv-border);
  background-color: #eee;
  background-size: cover;
  background-position: center;
  -webkit-transition: -webkit-box-shadow 0.2s ease;
  transition: -webkit-box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
  position: relative;
}

/* Loading spinner over the clicked swatch while its (large) hero image loads. */
.kv-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.65);
  border-top-color: var(--kv-navy);
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
          box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  -webkit-animation: kv-spin 0.7s linear infinite;
          animation: kv-spin 0.7s linear infinite;
  z-index: 4;
}

@-webkit-keyframes kv-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes kv-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.kv-swatch:hover .kv-swatch-media {
  -webkit-box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--kv-border);
          box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--kv-border);
}

.kv-swatch.is-selected .kv-swatch-media {
  -webkit-box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kv-red);
          box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kv-red);
}

.kv-swatch-name {
  font-size: 11px;
  color: var(--kv-text);
  text-align: center;
  line-height: 1.3;
}

/* Tall enough to read the panel detail — the point of the thumbnail. Width follows the
   door aspect the images are shot at (roughly 3:4). */
.kv-swatch--range {
  width: 140px;
}

.kv-swatch--range .kv-swatch-media {
  width: 119px;
  height: 160px;
  border-radius: 10px;
}

.kv-swatch--range .kv-swatch-name {
  font-weight: 600;
}

/* Unavailable swatch — this range doesn't offer the colour (or the range lacks the current
   colour): fade it and overlay a centered grey "N/A". Still clickable — see pickColour()/
   pickRange() for the select-anyway behaviour. */
.kv-swatch--unavailable .kv-swatch-media {
  position: relative;
  overflow: hidden;
}
.kv-swatch--unavailable .kv-swatch-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  z-index: 1;
}
.kv-swatch--unavailable .kv-swatch-media::after {
  content: "N/A";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--kv-text);
}
.kv-swatch--unavailable .kv-swatch-name {
  opacity: 0.6;
}

/* ---------- Save & Exit modal ---------- */
.kv-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(20, 20, 20, 0.4);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 24px;
  pointer-events: auto;
}

.kv-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: min(760px, 94vw);
  padding: 44px 40px 36px;
  -webkit-box-shadow: var(--kv-shadow);
          box-shadow: var(--kv-shadow);
}

.kv-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 48px;
  height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: transparent;
  border: 0;
  font-size: 40px;
  cursor: pointer;
  color: var(--kv-text);
  line-height: 1;
}

.kv-modal-title {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 28px;
}

.kv-modal-cards {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 16px auto 16px 1fr;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.kv-card {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 26px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  gap: 12px;
}

.kv-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 18px;
  color: var(--kv-text);
}

.kv-card-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.kv-card-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.kv-card-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.kv-card-list li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  font-size: 13px;
}

.kv-card-list i {
  color: var(--kv-navy);
}

/* the save/share card carries two buttons; kv-btn sets margin-top:auto to bottom-align a
   lone button, so the wrapper takes that job and the pair stay together */
.kv-card-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
  margin-top: auto;
  width: 100%;
}

.kv-card-actions .kv-btn {
  margin-top: 0;
}

/* ---------- Share + Email me the link screens ---------- */
.kv-screen {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 24px;
}

.kv-screen-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--kv-text);
}

.kv-share-targets {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kv-share-target {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 18px 8px;
  background: #f5f5f5;
  border-radius: 12px;
  color: var(--kv-text);
  text-decoration: none;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

.kv-share-target:hover {
  background: #ececec;
}

.kv-share-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--kv-navy);
  border-radius: 26px;
  color: #fff;
  font-size: 22px;
}

.kv-share-label {
  font-size: 13px;
}

.kv-share-copy {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 12px;
}

.kv-share-url {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-width: 120px;
  font-size: 13px;
  color: var(--kv-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* .kv-btn sets width:100% and is declared after this block, so it needs out-specifying
   or it starves the URL preview beside it */
.kv-share-copy .kv-share-copy-btn {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: auto;
  padding: 14px 24px;
  margin-top: 0;
}

.kv-email-form-slot {
  padding: 24px;
  background: #f5f5f5;
  border-radius: 20px;
  text-align: left;
}

/* Form 29 places Send as a submit *field* at half width beside the email field, so the
   footer is empty and the button carries GF 2.9's gform-button--white classes rather than
   gform_button. Target the input itself and align it to the foot of its grid cell. */
.kv-email-form-slot .gform_footer {
  display: none;
}

/* Form 29 sets both the email field and the Send button to half width, which puts them side
   by side in GF's 12-column grid. Stack them at every width instead. GF's own
   .gfield--width-half rule loads after the theme's, so this has to out-specify it. */
.kv-email-form-slot .gform_wrapper.gravity-theme .gform_fields > .gfield {
  grid-column: 1/-1;
}

.kv-email-form-slot .gravity-theme input.gform-button[type=submit],
.kv-email-form-slot input[type=submit] {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 48px;
  /* GF's own stylesheets load after the theme's and gform-button--white sets background-color
     as a longhand, so the shorthand alone loses. Override the longhand explicitly. */
  background-color: var(--kv-navy) !important;
  background-image: none;
  border: 0;
  border-radius: 8px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.kv-email-form-slot .gravity-theme input.gform-button[type=submit]:hover,
.kv-email-form-slot input[type=submit]:hover {
  background-color: #11172a !important;
}

.kv-or {
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  color: var(--kv-sub);
  font-size: 13px;
}

.kv-btn {
  margin-top: auto;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 15px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}

.kv-btn:hover {
  opacity: 0.9;
}

.kv-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.kv-btn--dark {
  background: var(--kv-navy);
  color: #fff;
}

.kv-btn--red {
  background: var(--kv-red);
  color: #fff;
}

.kv-btn--dark-outline {
  background: #fff;
  color: var(--kv-navy);
  border: 2px solid var(--kv-navy);
}

.kv-btn i {
  margin-right: 8px;
}

.kv-btn--ghost {
  background: #fff;
  color: var(--kv-text);
  border: 1px solid var(--kv-border);
  margin-top: 24px;
  letter-spacing: 1px;
}

/* ---------- Book Appointment sub-flow (within the Save & Exit modal) ---------- */
/* One modal holding all three steps at once. Completed steps collapse to a summary line
   carrying the value that was chosen, and act as the back affordance. */
.kv-modal--book {
  /* wider than the default modal — the retailer grid needs two 385px cards side by side */
  width: min(880px, 94vw);
  max-width: none;
  padding: 32px 40px 40px;
  border-radius: 16px;
  text-align: left;
  /* The journey outgrows short viewports — landscape phones, small laptop windows — so cap
     its height everywhere and let the step list scroll, rather than overflowing off-screen. */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
}

/* Header row: Back, title and Close share one line. Back and Close are given matching
   min-widths so the title centres against the row rather than against the leftover space. */
.kv-book-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Back and Close are matched 48px squares either side of the title, so the title centres and
   the two icons optically align. Back is chevron-only at every width — the label threw the
   icon off centre by the flex gap it left behind. */
.kv-book-header .kv-book-back,
.kv-book-header .kv-modal-close {
  position: static;
  /* the <=640px panel-header rule absolutely positions .kv-back with translateY(-50%);
     resetting position alone leaves the transform, which lifts the chevron by half its height */
  -webkit-transform: none;
          transform: none;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0;
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.kv-book-header .kv-book-back .kv-back-label {
  display: none;
}

.kv-book-header .kv-book-back i {
  font-size: 20px;
  line-height: 1;
}

.kv-book-header .kv-modal-close {
  font-size: 32px;
}

.kv-book-title {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 28px;
  color: #1a1a1a;
  text-align: center;
}

.kv-book-steps {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 0;
  gap: 32px;
  margin: 0;
  padding-left: 30px;
  overflow-y: auto;
  list-style: decimal;
}

.kv-book-step {
  color: rgba(26, 26, 26, 0.36);
}

.kv-book-step.is-active {
  color: #1a1a1a;
}

.kv-book-step-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}

button.kv-book-step-head {
  cursor: pointer;
}

.kv-book-step-label {
  font-size: 24px;
}

.kv-book-step-value {
  color: #1a1a1a;
  font-weight: 400;
}

.kv-book-step-tick {
  color: var(--kv-red);
  font-size: 14px;
}

.kv-book-step-body {
  margin-top: 24px;
}

.kv-book-card {
  padding: 36px 32px;
  background: #f5f5f5;
  border-radius: 12px;
}

.kv-book-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #161616;
  border-radius: 8px;
}

.kv-book-search-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  font-size: 16px;
  color: var(--kv-text);
}

.kv-book-search-input::-webkit-input-placeholder {
  color: rgba(53, 59, 63, 0.7);
}

.kv-book-search-input::-moz-placeholder {
  color: rgba(53, 59, 63, 0.7);
}

.kv-book-search-input:-ms-input-placeholder {
  color: rgba(53, 59, 63, 0.7);
}

.kv-book-search-input::-ms-input-placeholder {
  color: rgba(53, 59, 63, 0.7);
}

.kv-book-search-input::placeholder {
  color: rgba(53, 59, 63, 0.7);
}

.kv-book-search-input:focus {
  outline: none;
}

.kv-book-search-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 20px;
  color: #000;
  cursor: pointer;
}

.kv-book-search-submit {
  margin-top: 16px;
}

.kv-book-error {
  color: var(--kv-red);
  font-size: 13px;
  margin: 12px 0 0;
}

.kv-book-loading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 20px 0;
}

.kv-book-loading .kv-spinner {
  position: static;
  margin: 0;
  width: 36px;
  height: 36px;
  border-width: 4px;
  border-top-color: var(--kv-red);
}

.kv-book-retailers {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.kv-book-retailer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
  padding: 16px 30px;
  background: none;
  border: 1px solid rgba(33, 35, 46, 0.09);
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
  -webkit-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}

.kv-book-retailer:hover {
  border-color: rgba(33, 35, 46, 0.35);
}

.kv-book-retailer.is-selected {
  padding: 15px 29px; /* hold the outer box steady against the 2px selected border */
  border-width: 2px;
  border-color: var(--kv-red);
}

.kv-book-retailer-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.kv-book-retailer-name {
  min-width: 0;
  font-size: 18px;
  color: #2f3535;
}

.kv-book-retailer-distance {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2f3535;
  white-space: nowrap;
}

.kv-book-retailer-distance b {
  font-weight: 700;
}

.kv-book-retailer-address {
  font-size: 14px;
  line-height: 1.6;
  color: #2f3535;
}

.kv-book-retailer-badge {
  -ms-flex-item-align: start;
      align-self: flex-start;
  background: var(--kv-navy);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
}

.kv-book-form-slot {
  padding: 16px 0;
  text-align: left;
}

/* Gravity Forms owns the submit button, so restyle it in place rather than adding a second one.
   The theme styles it via `.gform_wrapper .gform_footer input[type=submit]`, so match that
   specificity or the navy default wins. */
.kv-book-form-slot .gform_footer {
  margin: 24px 0 0;
  padding: 0;
}

.kv-book-form-slot .gform_footer input.gform_button[type=submit] {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 52px;
  background: var(--kv-red);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.kv-book-form-slot .gform_footer input.gform_button[type=submit]:hover {
  background: #8e1230;
}

@media (max-width: 700px) {
  /* --- Booking journey becomes a bottom sheet ---------------------------------
     The journey outgrows the stage on a phone (step 3 is ~880px against an 844px
     viewport), and only its inner panels scrolled, which put the submit button out
     of reach. Pin it to the bottom, let the step list be the single scroll region,
     and keep the header out of that scroller so Back/Close stay reachable. */
  .kv-modal-overlay--book {
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    padding: 0;
  }
  /* .kv-modal.kv-modal--book, not .kv-modal--book: the 640px block below restyles
     .kv-modal and would otherwise win on source order and re-add the sheet's padding. */
  .kv-modal.kv-modal--book {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh; /* dvh so a collapsing mobile URL bar doesn't clip the sheet */
    padding: 0;
    border-radius: 16px 16px 0 0;
  }
  .kv-book-header {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    gap: 4px;
    margin: 0;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(33, 35, 46, 0.09);
  }
  .kv-book-title {
    font-size: 18px;
  }
  /* the step list is the sheet's body, and the only thing that scrolls */
  .kv-book-steps {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-height: 0;
    gap: 20px;
    padding: 20px 32px 24px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-scroll-chaining: none;
        overscroll-behavior: contain;
  }
  /* stack the value under its label — side by side they collapse into two narrow columns */
  .kv-book-step-head {
    display: block;
  }
  .kv-book-step-label {
    display: block;
    font-size: 17px;
  }
  /* the head is no longer a flex row, so the tick needs its own gap */
  .kv-book-step-tick {
    margin-left: 8px;
  }
  .kv-book-step-body {
    margin-top: 16px;
  }
  .kv-share-targets {
    -ms-grid-columns: (minmax(0, 1fr))[2];
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kv-share-copy {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    gap: 12px;
  }
  .kv-share-copy-btn {
    width: 100%;
  }
  .kv-email-form-slot {
    padding: 20px 16px;
  }
  .kv-email-form-slot input:not([type=submit]) {
    font-size: 16px;
  }
  .kv-book-card {
    padding: 20px 16px;
  }
  .kv-book-retailers {
    -ms-grid-columns: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .kv-book-retailer {
    padding: 14px 18px;
  }
  .kv-book-retailer.is-selected {
    padding: 13px 17px;
  }
  .kv-book-retailer-top {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 4px 12px;
  }
  .kv-book-retailer-name {
    font-size: 16px;
  }
  .kv-book-form-slot {
    padding: 20px 0;
    border-radius: 20px;
  }
  /* the privacy-policy consent runs to several lines — shrink it so it doesn't dominate */
  .kv-book-form-slot .gfield_consent_label {
    font-size: 12px;
    line-height: normal;
  }
  /* iOS zooms the page when a focused field is under 16px */
  .kv-book-form-slot input:not([type=submit]),
  .kv-book-form-slot textarea,
  .kv-book-form-slot select {
    font-size: 16px;
  }
}
/* ---------- Empty state ---------- */
.kv-empty {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background: #f3f0ec;
}

.kv-empty-title {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
}

.kv-empty-hint {
  font-size: 13px;
  color: var(--kv-sub);
  max-width: 460px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .kv-tool {
    --kv-pad: 18px;
  }
  .kv-topbar {
    padding: 14px 14px;
  }
  .kv-drawer {
    padding: 18px 0 22px;
  }
  .kv-options {
    gap: 20px;
  }
  .kv-selected {
    top: 14px;
    font-size: 13px;
    padding: 12px 16px;
    max-width: 55vw;
  }
  /* Minimise fully collapses the drawer on mobile — only the round expand button remains. */
  .kv-dock.is-collapsed {
    padding-bottom: 16px;
  }
  .kv-dock.is-collapsed .kv-drawer {
    background: transparent;
    backdrop-filter: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    padding: 0;
  }
  .kv-dock.is-collapsed .kv-drawer-header {
    display: none;
  }
  /* Panel header on mobile: chevron-only back pinned left, title centred in the drawer. */
  .kv-panel-head {
    display: block;
    position: relative;
    text-align: center;
  }
  .kv-back {
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    gap: 0;
  }
  .kv-back-label {
    display: none;
  }
  .kv-panel-title {
    font-size: 16px;
    white-space: nowrap;
  }
  .kv-drawer-title {
    font-size: 18px;
  }
  /* Smaller swatches on mobile. */
  .kv-swatch {
    width: 66px;
    gap: 6px;
  }
  .kv-swatch-media {
    width: 58px;
    height: 58px;
    border-radius: 29px;
  }
  /* Still enlarged, but short of the desktop 160 — the drawer sits over the hero here. */
  .kv-swatch--range {
    width: 112px;
  }
  .kv-swatch--range .kv-swatch-media {
    width: 97px;
    height: 130px;
    border-radius: 8px;
  }
  .kv-swatch-name {
    font-size: 10px;
  }
  .kv-swatches {
    gap: 16px;
  }
  .kv-modal {
    padding: 36px 20px 24px;
  }
  .kv-modal-cards {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .kv-or {
    display: none;
  }
  /* the envelope/calendar circles are decorative — drop them to buy vertical space */
  .kv-card-icon {
    display: none;
  }
}
/* Respect the visitor's motion preference: state changes become instant. */
@media (prefers-reduced-motion: reduce) {
  .kv-tool,
  .kv-tool *,
  .kv-tool *::before,
  .kv-tool *::after {
    -webkit-transition-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
    -webkit-animation-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
  }
}
/*# sourceMappingURL=kitchen-visualiser.css.map */