:root{
  --mk-bg:#0b0b0f;
  --mk-panel: rgba(255,255,255,.10);
  --mk-line: rgba(255,255,255,.14);
  --mk-text: rgba(255,255,255,.92);
  --mk-muted: rgba(255,255,255,.68);

  --mk-accent1: rgba(255,213,74,.22);
  --mk-accent2: rgba(255,91,74,.20);
  --mk-radius: 18px;

  --mk-sticky-top: 86px;
}

*, *::before, *::after { box-sizing: border-box; }

.section{padding:48px 0; overflow: visible;}
.section--alt{background: rgba(255,255,255,.12); overflow: visible;}
.container{overflow: visible; transform: none;}

.sectionHead{margin-bottom:16px}
.sectionHead h2{margin:0 0 6px 0}
.sectionLead{margin:0;color:var(--mk-muted)}

.orderLayout{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:16px;
  align-items:start;
  overflow: visible;
}

.orderMain{min-width:0; overflow: visible;}

.menuCard{
  border:1px solid var(--mk-line);
  background: rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 14px;
}

.menuCard__head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:10px;
}

.menuTitle{margin:0; letter-spacing:.06em; font-weight:800;}
.menuHint{color:var(--mk-muted); font-size:.95rem;}
.menuEmpty{color:var(--mk-muted); padding:10px 0}
.menuGrid{display:grid; gap:10px}

.menuRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  border-radius: 16px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.menuRow.is-selected{
  border-color: rgba(255,213,74,.28);
  background:
    linear-gradient(135deg, rgba(255,213,74,.10), rgba(255,91,74,.08)),
    rgba(0,0,0,.22);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.menuRow__left{min-width:0}

.menuRow__nameLine{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.menuRow__name{
  font-weight:900;
  letter-spacing:.03em;
  min-width:0;
}

.menuRow__desc{color:var(--mk-muted); font-size:.95rem; margin-top:2px}

.menuRow__right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.menuRow__price{font-weight:900; min-width:48px; text-align:right;}
.menuRow__qty{display:flex; align-items:center; gap:8px;}
.qtyLabel{color:var(--mk-muted); font-weight:800; font-size:.9rem;}

/* ✅ Qty Control (+ / number / -) */
.qtyCtl{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
}

.qtyBtn{
  width:32px;
  height:32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 1000;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.qtyBtn:hover{opacity:.95}

.qtyValue{
  min-width: 26px;
  text-align:center;
  font-weight: 1000;
  color: rgba(255,255,255,.95);
  user-select:none;
}

.qtyHidden{display:none}

/* Icon Button (links hinter Name) */
.imgBtn.imgBtn--name{
  width:34px;
  height:34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.imgBtn.imgBtn--name:hover{opacity:.92}

.imgBtnPlaceholder{
  width:34px;
  height:34px;
  display:inline-block;
  flex: 0 0 auto;
  visibility: hidden;
}

/* Sticky Total */
.orderSide{
  position: sticky;
  top: var(--mk-sticky-top);
  align-self: start;
  overflow: visible;
}

.totalCard{
  border:1px solid var(--mk-line);
  background: rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}

.totalCard__top{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:8px;
}

.totalTitle{font-weight:900; letter-spacing:.06em}
.totalAmount{font-weight:1000; font-size:1.35rem}

.totalActions{display:flex; gap:10px; margin:10px 0 6px 0;}
.totalResetBtn{width:100%; justify-content:center; opacity:.95}

.totalNote{
  color:var(--mk-muted);
  font-size:.95rem;
  margin:8px 0 12px 0;
}

.totalItems{
  display:grid;
  gap:10px;
  margin-bottom:12px;
  max-height: calc(100vh - var(--mk-sticky-top) - 250px);
  overflow:auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.totalEmpty{
  color:var(--mk-muted);
  padding:10px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(0,0,0,.20);
}

/* Recap editierbar (2-zeilig) */
.sumLine{
  display:grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap:8px 10px;
  align-items:start;
  padding:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  width: 100%;
}

.sumLine__left{
  min-width: 0;
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.sumLine__name{
  font-weight:900;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}

.sumLine__meta{
  color:var(--mk-muted);
  font-size:.9rem;
  margin-top:4px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sumLine__mid{
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}

.sumLine__right{
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
}

.sumBtn{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  cursor:pointer;
}
.sumBtn:hover{opacity:.95}

.sumQty{
  width:48px;
  padding:8px 6px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  outline:none;
  text-align:center;
  font-weight:900;
}

.sumLine__price{font-weight:900}

.sumTrash{
  width:32px;
  height:32px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,91,74,.10);
  cursor:pointer;
}
.sumTrash:hover{opacity:.92}

.totalCTA{width:100%; justify-content:center}

/* Demande */
.formWrap{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:16px;
  align-items:start;
  overflow: visible;
}

.orderForm{
  border:1px solid var(--mk-line);
  background: rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 14px;
}

.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.formGrid .full{grid-column: 1 / -1}

.fieldLabel{display:block; font-weight:900; margin-bottom:6px}

.fieldInput{
  width:100%;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  outline:none;
}

/* ✅ Chrome/Edge autofill: empêche le fond blanc */
input.fieldInput:-webkit-autofill,
input.fieldInput:-webkit-autofill:hover,
input.fieldInput:-webkit-autofill:focus,
textarea.fieldInput:-webkit-autofill,
textarea.fieldInput:-webkit-autofill:hover,
textarea.fieldInput:-webkit-autofill:focus,
select.fieldInput:-webkit-autofill{
  -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  box-shadow: 0 0 0px 1000px rgba(255,255,255,.10) inset !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,.10) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ✅ États de validation (on garde le thème sombre) */
.fieldInput.is-valid{
  border-color: rgba(90,255,170,.55) !important;
  box-shadow: 0 0 0 3px rgba(90,255,170,.12);
}
.fieldInput.is-invalid{
  border-color: rgba(255,91,74,.65) !important;
  box-shadow: 0 0 0 3px rgba(255,91,74,.12);
}

.fieldError{
  min-height: 18px;
  margin-top: 6px;
  font-size: .92rem;
  color: rgba(255,91,74,.92);
}

.fieldInput--readonly{
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

select.fieldInput{
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 42px;
  background-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.85) 50%),
    linear-gradient(135deg, rgba(255,255,255,.85) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select.fieldInput option,
select.fieldInput optgroup{
  background: #0f1016;
  color: #ffffff;
}

.fieldInput:focus{
  border-color: rgba(255,213,74,.35);
  box-shadow: 0 0 0 3px rgba(255,213,74,.12);
}

.fieldHelp{color:var(--mk-muted); font-size:.92rem; margin-top:6px}

.mapsBtn{
  margin-top:10px;
  width:100%;
  justify-content:center;
}

.formActions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

.formMsg{
  margin-top:12px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.90);
  min-height: 20px;
  white-space: pre-line;
}
.formMsg--ok{border-color: rgba(90,255,170,.26); background: rgba(90,255,170,.10)}
.formMsg--error{border-color: rgba(255,91,74,.28); background: rgba(255,91,74,.10)}
.formMsg--info{border-color: rgba(255,255,255,.12); background: rgba(0,0,0,.22)}

.formRecap{
  position: sticky;
  top: var(--mk-sticky-top);
  align-self: start;
  overflow: visible;
}

.formRecap .recapCard{
  border:1px solid var(--mk-line);
  background: rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}

.recapTop{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:10px;
}

.recapTitle{font-weight:900; letter-spacing:.06em}
.recapAmount{font-weight:1000; font-size:1.25rem}
.recapList{display:grid; gap:10px}

/* Other sections */
.locGrid{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}

/* ✅ FIX: Standort-Box Text IMMER weiß */
.locCard{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
  color: rgba(255,255,255,.92);
}
.locTitle{font-weight:1000; color: rgba(255,255,255,.95)}
.locLabel{color:var(--mk-muted); margin-top:4px}

/* ✅ FIX: Button-Text "Voir l’emplacement" IMMER weiß */
.mapLink,
.locMapBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.10);
  font-weight: 900;

  color: rgba(255,255,255,.92) !important;
  text-decoration: none;
}
.mapLink:hover,
.locMapBtn:hover{
  opacity: .95;
  transform: translateY(-1px);
  transition: transform .12s ease;
}

.locLink{display:inline-block; margin-top:8px; font-weight:900}
.locMuted{margin-top:8px; color:var(--mk-muted)}

.infoGrid{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
.infoCard{border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.10); border-radius: 18px; padding: 12px}

.footer{padding:22px 0}
.footer__inner{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footerSmall{color:var(--mk-muted)}
.footerRight{display:flex;gap:12px;flex-wrap:wrap}

/* Mobile total bar */
.mobileTotalBar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(8,8,12,.92);
  border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}

.mobileTotalBar__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 10px 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.mobileTotalLabel{color:var(--mk-muted); font-weight:900; font-size:.9rem}
.mobileTotalValue{font-weight:1000; font-size:1.05rem}

.mobileTotalBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,213,74,.26);
  background: linear-gradient(135deg, rgba(255,213,74,.18), rgba(255,91,74,.18));
  font-weight:1000;
  min-width: 96px;
}

/* Lightbox */
.mkNoScroll{overflow:hidden}

.mkLightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mkLightbox__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.mkLightbox__panel{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(920px, 92vw);
  max-height: 88vh;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,10,14,.92);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  padding: 12px;
}

.mkLightbox__close{
  position:absolute;
  right:10px;
  top:10px;
  width:38px;
  height:38px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}

.mkLightbox__img{
  display:block;
  width:100%;
  height:auto;
  max-height: calc(88vh - 24px);
  object-fit: contain;
  border-radius: 16px;
  margin-top: 30px;
}

/* Map inside Lightbox */
.mkLightbox__mapWrap{
  margin-top: 46px;
  border-radius: 16px;
  overflow: hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}

.mkLightbox__map{
  width: 100%;
  height: min(70vh, 520px);
  border: 0;
  display:block;
}

.mkLightbox__mapLink{
  display:block;
  text-align:center;
  padding:10px 12px;
  font-weight:900;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}
.mkLightbox__mapLink:hover{opacity:.92}

/* Responsive */
@media (max-width: 1100px){
  .orderLayout{grid-template-columns: 1fr}
  .formWrap{grid-template-columns: 1fr}
  .orderSide{display:none}
  .formRecap{position: relative; top:auto}
}

@media (max-width: 900px){
  .locGrid{grid-template-columns: 1fr}
  .infoGrid{grid-template-columns: 1fr}
  .formGrid{grid-template-columns: 1fr}
  .section{padding:34px 0}
  body{padding-bottom: 64px}
}

/* ✅ Mobile Menübox: Menge unter Beschreibung, volle Breite */
@media (max-width: 700px){
  .menuRow{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Preis links, Mengenbereich rechts – ohne “space-between”-Luft */
  .menuRow__right{
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  .menuRow__price{
    min-width: 0;
    text-align: left;
    font-size: 1.05rem;
  }

  /* qty-Block nach rechts schieben und auf Inhalt schrumpfen */
  .menuRow__qty{
    margin-left: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0; /* wir packen Qté optisch in die Box */
  }

  /* Das alte Qté-Label draußen ausblenden (mobile) */
  .qtyLabel{
    display:none;
  }

  /* Mengenbox nur so breit wie Inhalt */
  .qtyCtl{
    width: fit-content;
    max-width: 100%;
    gap: 8px;
  }

  /* “Qté” in die Box rein, ohne HTML-Änderung */
  .qtyCtl::before{
    content: "Qté";
    color: var(--mk-muted);
    font-weight: 1000;
    font-size: .9rem;
    margin-right: 6px;
    letter-spacing: .02em;
    white-space: nowrap;
  }
}



/* -----------------------------
   Guided form (Axel Mode 😄)
   Rot = noch nicht dran
   Grün blinkend = als nächstes
   Grün stabil = erledigt
-------------------------------- */
@keyframes guideBlinkRed {
  0%,100% { box-shadow: 0 0 0 0 rgba(255, 80, 80, .0), 0 0 0 2px rgba(255, 80, 80, .28); border-color: rgba(255, 80, 80, .28); }
  50%     { box-shadow: 0 0 0 4px rgba(255, 80, 80, .10), 0 0 0 2px rgba(255, 80, 80, .45); border-color: rgba(255, 80, 80, .45); }
}

@keyframes guideBlinkGreen {
  0%,100% { box-shadow: 0 0 0 0 rgba(90, 255, 160, .0), 0 0 0 2px rgba(90, 255, 160, .55); border-color: rgba(90, 255, 160, .55); }
  50%     { box-shadow: 0 0 0 6px rgba(90, 255, 160, .14), 0 0 0 2px rgba(90, 255, 160, .9); border-color: rgba(90, 255, 160, .9); }
}

.fieldInput.guide-locked,
.commChoices.guide-locked{
  animation: guideBlinkRed 1.05s ease-in-out infinite;
}

.fieldInput.guide-next,
.commChoices.guide-next{
  animation: guideBlinkGreen 1.05s ease-in-out infinite;
}

.fieldInput.guide-done,
.commChoices.guide-done{
  border-color: rgba(90, 255, 160, .55) !important;
  box-shadow: 0 0 0 2px rgba(90, 255, 160, .35) !important;
}

.fieldInput.guide-optional{
  border-color: rgba(90, 255, 160, .25) !important;
  box-shadow: 0 0 0 2px rgba(90, 255, 160, .18) !important;
}

/* Das Emplacement-Textarea ist readonly und hat extra Klasse */
.fieldTextarea.guide-locked{ animation: guideBlinkRed 1.05s ease-in-out infinite; }
.fieldTextarea.guide-next{ animation: guideBlinkGreen 1.05s ease-in-out infinite; }
.fieldTextarea.guide-done{
  border-color: rgba(90, 255, 160, .55) !important;
  box-shadow: 0 0 0 2px rgba(90, 255, 160, .35) !important;
}


/* === Monkey Balanced Blur Upgrade === */

/* Slightly darker moon overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    pointer-events: none;
    z-index: -1;
}

/* Main Monkey video box keeps stronger blur */
.monkey-menu {
    backdrop-filter: blur(12px);
}

/* All other boxes get elegant lighter blur */
.box,
.card,
.panel,
.order-box,
.info-box,
[class*="box"]:not(.monkey-menu),
[class*="card"]:not(.monkey-menu) {
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.68);
}



/* === Click sound toggle (global) === */
.clickSoundToggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  margin-left:10px;
  border-radius:999px;
  border:1px solid rgba(255, 204, 0, 0.35);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color:#ffcc00;
  cursor:pointer;
  user-select:none;
  font-size:18px;
  line-height:1;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}
.clickSoundToggle:hover{ transform: translateY(-1px); border-color: rgba(255, 204, 0, 0.55); background: rgba(0,0,0,0.55); }
.clickSoundToggle:active{ transform: translateY(0px) scale(.98); }
.clickSoundToggle.is-off{ opacity: .75; filter: grayscale(10%); }

/* On small screens, align nicely in the mobile menu */
.clickSoundToggle--mobile{
  margin-left:0;
  margin-top:10px;
  width:44px;
  height:44px;
}




/* === Align Monkey video box with Prochain Emplacement === */
.topRow,
.headerRow,
.prochainRow,
.orderTopRow,
#topRow,
#headerRow {
  align-items: stretch;
}

.monkey-menu,
.monkeyMenuBox,
#monkeyMenuBox {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.monkey-menu .videoWrap,
.monkey-menu .videoContainer,
.monkey-menu video {
  flex: 0 0 auto;
}

.monkey-menu .monkeyMenuInner,
.monkey-menu .content {
  flex: 1 1 auto;
}

.monkey-menu video {
  width: 100%;
  height: auto;
  display: block;
}




/* === STRICT bottom alignment: Monkey Video & Prochain Emplacement === */

.topRow,
.headerRow,
.prochainRow,
.orderTopRow,
.rowTop,
.topSection {
    display: flex !important;
    align-items: stretch !important;
}

.prochain-emplacement,
.prochainBox,
#prochainEmplacement,
.monkey-menu,
.monkeyMenuBox,
#monkeyMenuBox {
    display: flex;
    flex-direction: column;
}

.prochain-emplacement > *,
.prochainBox > *,
#prochainEmplacement > *,
.monkey-menu > *,
.monkeyMenuBox > *,
#monkeyMenuBox > * {
    flex: 0 0 auto;
}

.prochain-emplacement,
.prochainBox,
#prochainEmplacement,
.monkey-menu,
.monkeyMenuBox,
#monkeyMenuBox {
    height: 100%;
}




/* === FIX10: Make [hidden] always hide product media (prevents empty video showing) === */
.mkLightbox__img[hidden],
.mkLightbox__video[hidden]{
  display:none !important;
}

