/* ==========================================================
   Kübler product configurator – theme on top of Bootstrap 5
   Design structure: Configurator_K58.pdf
     - white header, orange Kübler logo
     - light-grey product band: category (light, caps) + product (bold, caps)
     - rectangular tabs, flat square cards with thin grey border,
       orange border + orange radio when selected
     - orange buttons, "Your selections – summary" box on the right
   Font: Roboto Condensed (Kübler web font, CD manual)
   Previous style (configurator.kuebler.com look): _backup-live-style/
   All rules are scoped to .kc / .kc-* classes.
   ========================================================== */
:root {
  /* Colours taken from Configurator_K58.pdf */
  --kc-orange: #f36717;
  --kc-orange-hover: #d95910;
  --kc-orange-soft: #fff3eb;
  --kc-band: #f0efef;
  --kc-line: #b2b1b1;
  --kc-line-soft: #dcdbdb;
  --kc-text: #231f20;
  --kc-grey: #545557;
  --kc-muted: #8c8c8c;
  --kc-white: #fff;

  --kc-max: 1320px;   /* was 1040px – wider for the left step menu */
  --kc-gutter: 24px;
  --kc-trans: .15s ease;

  --kc-font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

/* ---------- Page ---------- */
.kc-body {
  background: var(--kc-white);
  color: var(--kc-text);
  font-family: var(--kc-font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.35;
}

.kc-container {
  max-width: calc(var(--kc-max) + 2 * var(--kc-gutter));
  margin: 0 auto;
  padding: 0 var(--kc-gutter);
}

/* ---------- Header: app style like configurator.kuebler.com, with the Kübler logo ---------- */
.kc-topnav 
{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--kc-white);
  border-bottom: 1px solid var(--kc-line-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.kc-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  padding: 0 32px;
}

.kc-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.kc-logo {
  display: block;
  flex: 0 0 auto;
  height: 30px;
  width: auto;
}

.kc-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--kc-line-soft);
  line-height: 1.15;
}

.kc-brand-name {
  color: var(--kc-text);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.kc-brand-sub {
  color: var(--kc-muted);
  font-size: 14px;
  font-weight: 300;
  white-space: nowrap;
}

.kc-topnav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* step pills */
.kc-pills {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--kc-line-soft);
  border-radius: 999px;
  background: var(--kc-white);
}

.kc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--kc-muted);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: background var(--kc-trans), color var(--kc-trans);
}

.kc-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kc-line);
}

.kc-pill[data-state="done"] {
  color: var(--kc-text);
}

.kc-pill[data-state="done"]::before {
  background: var(--kc-orange);
}

.kc-pill[data-state="current"] {
  background: var(--kc-orange);
  color: var(--kc-white);
  font-weight: 700;
}

.kc-pill[data-state="current"]::before {
  background: var(--kc-white);
}

/* language EN | DE */
.kc-lang {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
}

.kc-lang-link {
  padding: 4px 8px;
  color: var(--kc-muted);
  text-decoration: none;
}

.kc-lang-link + .kc-lang-link {
  border-left: 1px solid var(--kc-line);
}

.kc-lang-link:hover {
  color: var(--kc-text);
}

.kc-lang-link[aria-current="true"] {
  color: var(--kc-text);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .kc-topnav-inner {
    height: 60px;
    padding: 0 16px;
  }

  .kc-pills {
    display: none;
  }

  .kc-logo {
    height: 24px;
  }

  .kc-brand-text {
    margin-left: 12px;
    padding-left: 12px;
  }

  .kc-brand-name {
    font-size: 16px;
  }

  .kc-brand-sub {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .kc-brand-sub {
    display: none;
  }
}

/* ---------- Grey product band (wider than the content, like K58) ---------- */
.kc-band {
  max-width: calc(var(--kc-max) + 2 * var(--kc-gutter) + 2 * 100%);
  margin: 0px auto 0;
  background: var(--kc-band);
}

/* text lines up with the logo and the content below at every width */
.kc-band-inner {
  padding-top: 22px;
  padding-bottom: 24px;
}

.kc-band-cat {
  margin: 0;
  font-size: 28px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.2;
}

.kc-band-product {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.2;
}

/* ---------- Lead line + tabs ---------- */
.kc-main-wrap {
  padding-top: 26px;
  padding-bottom: 64px;
}

.kc-lead {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 300;
}

.kc-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kc-tabs::-webkit-scrollbar {
  display: none;
}

.kc-tab {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 9px 22px;
  border: 1px solid var(--kc-line);
  background: var(--kc-white);
  color: var(--kc-line);
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background var(--kc-trans), color var(--kc-trans), border-color var(--kc-trans);
}

.kc-tab[data-state="current"] {
  background: var(--kc-orange);
  border-color: var(--kc-orange);
  color: var(--kc-white);
}

.kc-tab[data-state="done"] {
  color: var(--kc-text);
}

.kc-tab:not([data-locked]):not([data-state="current"]):hover {
  border-color: var(--kc-orange);
  color: var(--kc-orange);
}

.kc-tab[data-locked] {
  cursor: default;
  pointer-events: none;
}

.kc-tab:focus-visible {
  outline: 2px solid var(--kc-orange);
  outline-offset: 2px;
}

/* Step 1 ("layout": "large" in the JSON) – like K58 page 1: no tabs, no summary, two large cards */
.kc[data-layout="large"] .kc-aside {
  display: none;
}

@media (min-width: 992px) {
  .kc[data-layout="large"] .kc-main {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* ---------- Section titles ("Version", "Your selections – summary") ---------- */
.kc-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.kc-title:focus {
  outline: none;
}

/* ---------- Step animation (added by JS) ---------- */
@keyframes kc-in-fwd {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes kc-in-back {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

.kc-panel.kc-enter-fwd {
  animation: kc-in-fwd .22s ease-out;
}

.kc-panel.kc-enter-back {
  animation: kc-in-back .22s ease-out;
}

/* ---------- Option cards (real radio inputs, styled labels) ---------- */
.kc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kc-grid-lg {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.kc-cell {
  position: relative;
  min-width: 0;
}

.kc-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* small card: picture top, name below, radio bottom right */
.kc-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "media media"
    "label dot";
  align-items: end;
  gap: 10px 8px;
  height: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--kc-line);
  background: var(--kc-white);
  cursor: pointer;
  transition: border-color var(--kc-trans);
}

.kc-tile:hover {
  border-color: var(--kc-grey);
}

.kc-tile-media {
  grid-area: media;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--kc-white);
}

.kc-tile-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kc-tile-label {
  grid-area: label;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

/* round radio, orange dot when selected */
.kc-tile-dot {
  grid-area: dot;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--kc-line);
  border-radius: 50%;
  background: var(--kc-white);
  transition: border-color var(--kc-trans), box-shadow var(--kc-trans);
}

.kc-radio:checked + .kc-tile {
  border-color: var(--kc-orange);
}

.kc-radio:checked + .kc-tile .kc-tile-dot {
  border-color: var(--kc-orange);
  box-shadow: inset 0 0 0 3.5px var(--kc-white), inset 0 0 0 10px var(--kc-orange);
}

.kc-radio:focus-visible + .kc-tile {
  outline: 2px solid var(--kc-orange);
  outline-offset: 3px;
}

/* large card (step 1): radio + name top left, picture right */
.kc-tile-lg {
  grid-template-columns: auto minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "dot label media";
  align-items: start;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
}

.kc-tile-lg .kc-tile-label {
  font-size: 17px;
  padding-top: 1px;
}

.kc-tile-lg .kc-tile-dot {
  width: 22px;
  height: 22px;
}

.kc-tile-lg .kc-tile-media {
  align-self: stretch;
  aspect-ratio: auto;
  height: 190px;
}

.kc-thumb-text {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
  color: var(--kc-grey);
}

.kc-thumb-missing {
  font-size: 12px;
  color: var(--kc-muted);
}

/* ---------- Review (order code tab) ---------- */
.kc-review {
  border-top: 1px solid var(--kc-line-soft);
}

.kc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--kc-line-soft);
}

.kc-thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 64px;
  padding: 4px;
  border: 1px solid var(--kc-line);
  background: var(--kc-white);
  overflow: hidden;
}

.kc-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kc-thumb .kc-thumb-text {
  font-size: 12px;
}

.kc-row-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kc-row-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--kc-grey);
}

.kc-row-value {
  font-size: 17px;
  font-weight: 500;
}

.kc-row-note {
  font-size: 13px;
  color: var(--kc-muted);
}

.kc-row-end {
  flex: 0 0 auto;
}

.kc-link {
  color: var(--kc-orange);
  font-weight: 400;
  text-decoration: none;
}

.kc-link:hover {
  color: var(--kc-orange-hover);
  text-decoration: underline;
}

/* order code panel – grey like the product band */
.kc-code-panel {
  margin-top: 28px;
  padding: 18px 22px 20px;
  background: var(--kc-band);
}

.kc-code-panel-label {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
}

.kc-codebar-code {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* ---------- Navigation + buttons ---------- */
.kc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
}

.kc-nav-spacer {
  flex: 1 1 auto;
}

.kc-nav-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.kc-nav-group[hidden],
.kc-nav [hidden] {
  display: none !important;
}

.kc-hint {
  font-size: 14px;
  color: var(--kc-muted);
}

.kc .btn {
  border-radius: 0;
  font-family: var(--kc-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 20px;
}

.kc-btn-accent {
  background: var(--kc-orange);
  border: 1.5px solid var(--kc-orange);
  color: var(--kc-white);
  border-radius: 0px;
}

.kc-btn-accent:hover,
.kc-btn-accent:focus-visible {
  background: var(--kc-orange-hover);
  border-color: var(--kc-orange-hover);
  color: var(--kc-white);
}

/* not yet clickable – grey outline like "choose your options" on K58 page 1 */
.kc .kc-btn-accent:disabled,
.kc .kc-btn-accent.disabled {
  background: var(--kc-white);
  border-color: var(--kc-line);
  color: var(--kc-line);
  opacity: 1;
}

.kc-btn-outline {
  background: var(--kc-white);
  border: 1px solid var(--kc-line);
  color: var(--kc-text);
  border-radius: 0px;
}

.kc-btn-outline:hover,
.kc-btn-outline:focus-visible {
  background: var(--kc-white);
  border-color: var(--kc-orange);
  color: var(--kc-orange);
}

.kc-reset {
  font-size: 15px;
  margin-right: 4px;
}

.kc-alert {
  margin-bottom: 20px;
  padding: 10px 14px;
  border-left: 4px solid var(--kc-orange);
  background: var(--kc-orange-soft);
  font-weight: 400;
}

/* ---------- Your selections – summary ---------- */
.kc-summary {
  border: 1px solid var(--kc-line);
  background: var(--kc-white);
  padding: 18px;
}

.kc-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin-bottom: 14px;
  color: var(--kc-muted);
  font-size: 13px;
}

.kc-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kc-summary-code {
  padding: 12px 0;
  border-top: 1px solid var(--kc-line-soft);
  border-bottom: 1px solid var(--kc-line-soft);
}

.kc-small-label {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--kc-grey);
}

.kc-code {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

.kc-seg-pending {
  color: var(--kc-line);
}

.kc-seg-chosen {
  color: var(--kc-orange);
}

@keyframes kc-pop {
  0% { opacity: .3; }
  100% { opacity: 1; }
}

.kc-seg.kc-pop {
  animation: kc-pop .28s ease-out;
}

.kc-sumlist {
  margin: 0;
}

.kc-sumrow {
  padding: 8px 0;
  border-bottom: 1px solid var(--kc-line-soft);
}

.kc-sumrow:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kc-sumrow dt {
  font-size: 13px;
  font-weight: 400;
  color: var(--kc-grey);
}

.kc-sumrow dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
}

.kc-sumrow dd.is-empty {
  font-weight: 300;
  color: var(--kc-muted);
}

.kc-sumrow dd.is-derived {
  font-weight: 400;
}

/* ---------- Toast ---------- */
.kc-toast-wrap {
  z-index: 1090;
}

.kc .toast {
  border-radius: 0;
  background: var(--kc-text);
  color: var(--kc-white);
  font-family: var(--kc-font);
  font-size: 15px;
  font-weight: 400;
}

/* fallback when Bootstrap's JS is not loaded */
.kc .toast.kc-toast-show {
  display: block;
  opacity: 1;
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 991.98px) {
  .kc-aside {
    margin-top: 40px;
  }

  /* the order code tab already lists every selection */
  .kc[data-layout="review"] .kc-aside {
    display: none;
  }
}

@media (max-width: 767.98px) {
  :root {
    --kc-gutter: 16px;
  }


  .kc-band {
    margin-top: 0;
  }

  .kc-band-inner {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .kc-band-cat {
    font-size: 18px;
  }

  .kc-band-product {
    font-size: 20px;
  }

  .kc-lead {
    font-size: 16px;
  }

  .kc-tabs {
    gap: 8px;
    margin: 0 calc(-1 * var(--kc-gutter)) 28px;
    padding: 0 var(--kc-gutter);
  }

  .kc-tab {
    min-width: 0;
    padding: 8px 14px;
    font-size: 15px;
  }

  .kc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .kc-grid-lg {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .kc-tile-lg {
    min-height: 0;
  }

  .kc-tile-lg .kc-tile-media {
    height: 130px;
  }

  .kc-tile-label {
    font-size: 14px;
  }

  .kc-thumb {
    width: 64px;
    height: 52px;
  }

  .kc-row-value {
    font-size: 15px;
  }

  .kc-codebar-code {
    font-size: 22px;
  }

  .kc-nav .btn {
    flex: 1 1 auto;
  }

  .kc-nav > [data-kc-back] {
    width: 100%;
  }

  .kc-nav-group {
    width: 100%;
  }

  .kc-nav-spacer {
    display: none;
  }
}

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

/* ==========================================================
   Order code step: button row + "Request quote" pop-up
   [← Back] [Start over] ............ [Copy order code] [Download datasheet] [Request quote]
   ========================================================== */
.kc-nav-review {
  display: contents;               /* children line up in the nav row */
}

.kc-nav-review .kc-reset {
  order: 1;
}

.kc-nav .kc-nav-spacer {
  order: 2;
}

.kc-nav-actions {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.kc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kc-btn-icon svg {
  flex: 0 0 auto;
}

/* ---------- pop-up ---------- */
.kc-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--kc-white);
  color: var(--kc-text);
  font-family: var(--kc-font);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.kc-modal::backdrop {
  background: rgba(35, 31, 32, .55);
}

.kc-modal[open] {
  animation: kc-modal-in .18s ease-out;
}

@keyframes kc-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.kc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--kc-line-soft);
}

.kc-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.kc-modal-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--kc-line-soft);
  background: var(--kc-white);
  color: var(--kc-grey);
  cursor: pointer;
}

.kc-modal-x:hover {
  border-color: var(--kc-orange);
  color: var(--kc-orange);
}

.kc-modal-body {
  padding: 20px 24px 24px;
}

.kc-q-intro {
  margin: 0 0 16px;
  font-weight: 300;
  color: var(--kc-grey);
}

/* product + order code */
.kc-q-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: end;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--kc-band);
}

.kc-q-small {
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--kc-grey);
}

.kc-q-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.kc-q-code {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* fields */
.kc-q-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.kc-q-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 14px;
  color: var(--kc-grey);
}

.kc-q-field abbr {
  color: var(--kc-orange);
  text-decoration: none;
}

.kc-q-field input,
.kc-q-field select {
  width: 100%;
  height: 35px;
  padding: 0 12px;
  border: 1px solid var(--kc-line);
  border-radius: 0;
  background: var(--kc-white);
  color: var(--kc-text);
  font: 400 16px var(--kc-font);
}

.kc-q-field input:focus,
.kc-q-field select:focus {
  outline: none;
  border-color: var(--kc-orange);
  box-shadow: 0 0 0 3px rgba(243, 103, 23, .18);
}

.kc-q-field [aria-invalid="true"] {
  border-color: #b42318;
}

.kc-q-error {
  font-size: 13px;
  color: #b42318;
}

.kc-q-general {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 4px solid #b42318;
  background: #fef3f2;
  color: #b42318;
}

.kc-q-privacy {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--kc-muted);
}

.kc-q-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* spam trap – hidden for people */
.kc-q-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* thank-you message */
.kc-q-done {
  text-align: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.kc-q-done-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--kc-orange);
}

.kc-q-done-icon::after {
  content: "";
  width: 20px;
  height: 10px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(2px, -2px);
}

.kc-q-done p {
  margin: 0 auto 18px;
  max-width: 400px;
  color: var(--kc-grey);
}

/* page without JavaScript (quote.php) */
.kc-q-pagecard {
  max-width: 620px;
  margin: 10px auto 0;
  padding: 26px 28px;
  border: 1px solid var(--kc-line);
}

.kc-q-page [data-kc-quote-close] {
  display: none;
}

@media (max-width: 767.98px) {
  .kc-nav-actions {
    flex-direction: column-reverse;   /* "Request quote" on top */
    width: 100%;
  }

  .kc-nav-actions .btn {
    width: 100%;
  }

  .kc-nav-review .kc-reset {
    order: 4;
    width: 100%;
    text-align: center;
  }

  .kc-q-fields,
  .kc-q-product {
    grid-template-columns: 1fr;
  }

  .kc-q-actions .btn {
    flex: 1 1 auto;
  }
}


/* ==========================================================
   Left step menu (like the K58I configurator)
   [Version 1/1] [Interface 0/1] ── [Order code  1 left]
   Desktop (≥ 1200 px): column on the left. Tablet/phone: the old tab row.
   ========================================================== */
.kc-tab-count,
.kc-tab-bar {
  display: none;
}

@media (min-width: 1200px) {
  .kc-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .kc-sidenav {
    position: sticky;
    top: 96px;
    flex-direction: column;
    gap: 0;
    margin: 0;
    overflow: visible;
  }

  .kc-sidenav .kc-tab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 12px;
    min-width: 0;
    padding: 14px 14px 0 16px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--kc-text);
    font-size: 17px;
    font-weight: 700;
    text-align: left;
  }

  .kc-sidenav .kc-tab[data-state="current"] {
    background: var(--kc-orange-soft);
    border-left-color: var(--kc-orange);
    color: var(--kc-text);
  }

  .kc-sidenav .kc-tab[data-locked] {
    color: var(--kc-muted);
  }

  .kc-sidenav .kc-tab:not([data-locked]):not([data-state="current"]):hover {
    color: var(--kc-orange);
    background: transparent;
  }

  .kc-sidenav .kc-tab-count {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--kc-grey);
  }

  .kc-sidenav .kc-tab-bar {
    display: block;
    grid-column: 1 / -1;
    height: 3px;
    margin-bottom: 0;
    background: var(--kc-line-soft);
  }

  .kc-sidenav .kc-tab-bar > span {
    display: block;
    height: 100%;
    background: var(--kc-orange);
    transition: width var(--kc-trans);
  }

  /* order code: own block under a divider, no bar */
  .kc-sidenav .kc-tab-code {
    margin-top: 12px;
    padding-top: 20px;
    padding-bottom: 14px;
    border-top: 1px solid var(--kc-line-soft);
    font-weight: 500;
  }

  .kc-sidenav .kc-tab-code[data-state="current"] {
    font-weight: 700;
  }
}

/* buttons at the top of the order code step */
.kc-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 22px;
}

@media (max-width: 767.98px) {
  .kc-review-actions {
    flex-direction: column-reverse;   /* Request quote on top */
  }

  .kc-review-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
