:root {
  --nori-panel: #100c09;
  --nori-panel-soft: #19110c;
  --nori-gold: #d6a95f;
  --nori-gold-light: #f4d494;
  --nori-cream: #fff7e8;
}

.chef-launcher.nori-launcher {
  right: 18px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: auto;
  display: grid;
  width: 128px;
  min-height: 146px;
  max-width: 128px;
  justify-items: center;
  gap: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.chef-launcher.nori-launcher:hover,
.chef-launcher.nori-launcher:focus-visible {
  border: 0;
  box-shadow: none;
  transform: translateY(-3px);
}

.nori-launcher .nori-bot {
  width: 124px;
}

.nori-launcher-copy {
  position: absolute;
  right: 92px;
  bottom: 48px;
  display: grid;
  width: max-content;
  max-width: 190px;
  gap: 1px;
  padding: 8px 11px;
  border: 1px solid rgba(244, 212, 148, 0.35);
  border-radius: 14px 14px 4px 14px;
  color: #f6ead9;
  background: rgba(15, 10, 7, 0.94);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.42);
  text-align: left;
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.nori-launcher-copy strong {
  color: var(--nori-gold-light);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.nori-launcher-copy span {
  font-size: 0.7rem;
  font-weight: 760;
  white-space: nowrap;
}

.nori-launcher-copy.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateX(8px);
}

.chef-assistant.nori-assistant {
  right: 20px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(410px, calc(100vw - 40px));
  height: min(650px, calc(100dvh - 36px));
  max-height: min(650px, calc(100dvh - 36px));
  grid-template-rows: auto auto minmax(92px, 1fr) auto auto auto;
  border-color: rgba(244, 212, 148, 0.35);
  border-radius: 27px;
  background:
    radial-gradient(circle at 50% 0, rgba(214, 169, 95, 0.2), transparent 31%),
    linear-gradient(180deg, #1a120d 0%, var(--nori-panel) 58%, #090706 100%);
}

.nori-assistant .chef-header {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 8px;
  padding: 13px 14px 11px;
}

.nori-title-wrap {
  min-width: 0;
}

.nori-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nori-online::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66d59a;
  box-shadow: 0 0 12px rgba(102, 213, 154, 0.8);
  content: "";
}

.nori-header-control {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(214, 169, 95, 0.26);
  border-radius: 50%;
  color: #ead7b4;
  background: rgba(214, 169, 95, 0.08);
  cursor: pointer;
}

.nori-header-control:hover,
.nori-header-control:focus-visible,
.nori-header-control.is-muted {
  border-color: rgba(244, 212, 148, 0.58);
  color: var(--nori-gold-light);
  background: rgba(214, 169, 95, 0.16);
}

.nori-header-control svg,
.nori-mic-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nori-voice-picker { position: relative; }

.nori-voice-menu[hidden] { display: none; }

.nori-voice-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 9px);
  right: -46px;
  display: grid;
  width: 218px;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(244, 212, 148, 0.32);
  border-radius: 16px;
  background: rgba(13, 9, 7, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.nori-voice-menu button {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #eadbc3;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nori-voice-menu button:hover,
.nori-voice-menu button:focus-visible,
.nori-voice-menu button.is-active {
  border-color: rgba(244, 212, 148, 0.34);
  background: rgba(214, 169, 95, 0.12);
}

.nori-voice-menu button strong { color: var(--nori-gold-light); font-size: 0.78rem; }
.nori-voice-menu button span { color: rgba(255, 247, 232, 0.68); font-size: 0.68rem; }

.nori-assistant .chef-reset {
  width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 0;
}

.nori-assistant .chef-reset::before {
  font-size: 1.05rem;
  content: "↻";
}

.nori-panel-hero {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  overflow: hidden;
  border-bottom: 0;
  background: transparent;
}

.nori-panel-hero::after {
  display: none;
}

.nori-panel-hero .nori-bot {
  z-index: 1;
  width: 86px;
  margin-top: 0;
}

.nori-status {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 10px;
  left: auto;
  max-width: 52%;
  margin: 0;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(214, 169, 95, 0.18);
  border-radius: 999px;
  color: rgba(244, 212, 148, 0.78);
  background: rgba(9, 7, 6, 0.62);
  font-size: 0.68rem;
  font-weight: 760;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nori-assistant .chef-messages {
  padding: 12px 14px 10px;
}

.nori-checkout-review[hidden] {
  display: none;
}

.nori-checkout-review {
  max-height: 310px;
  overflow-y: auto;
  padding: 0 14px 12px;
  scrollbar-color: rgba(214, 169, 95, 0.38) transparent;
}

.nori-review-card,
.nori-review-empty {
  padding: 13px;
  border: 1px solid rgba(244, 212, 148, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.nori-review-head,
.nori-review-stats,
.nori-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.nori-review-head h3 {
  margin: 0;
  color: var(--nori-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.nori-review-edit {
  padding: 0;
  border: 0;
  color: var(--nori-gold-light);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.nori-review-lines {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.nori-review-lines li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #ded1bf;
  font-size: 0.7rem;
}

.nori-review-lines em { color: #e4ceff; font-size: 0.66rem; font-style: normal; }

.chef-adjustments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.nori-review-lines strong {
  flex: 0 0 auto;
  color: var(--nori-gold-light);
}

.nori-review-stats {
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid rgba(214, 169, 95, 0.14);
  border-bottom: 1px solid rgba(214, 169, 95, 0.14);
  color: #bfae98;
  font-size: 0.68rem;
}

.nori-review-stats strong {
  margin-left: auto;
  color: var(--nori-gold-light);
}

.nori-review-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.nori-review-field {
  display: grid;
  gap: 4px;
}

.nori-review-field:nth-child(3),
.nori-review-field:nth-child(4),
.nori-review-field:nth-child(5) {
  grid-column: 1 / -1;
}

.nori-review-field span {
  color: #b8aa98;
  font-size: 0.64rem;
  font-weight: 800;
}

.nori-review-field input,
.nori-review-field textarea {
  width: 100%;
  min-height: 35px;
  padding: 7px 9px;
  border: 1px solid rgba(214, 169, 95, 0.22);
  border-radius: 10px;
  outline: 0;
  color: #fff8ed;
  background: rgba(0, 0, 0, 0.2);
  font: inherit;
  font-size: 0.72rem;
  resize: vertical;
}

.nori-review-field input:focus,
.nori-review-field textarea:focus {
  border-color: var(--nori-gold);
}

.nori-review-field [aria-invalid="true"] {
  border-color: #df7770;
}

.nori-review-actions {
  margin-top: 11px;
  flex-wrap: wrap;
}

.nori-review-confirm,
.nori-review-whatsapp {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #1b1209;
  background: linear-gradient(145deg, var(--nori-gold-light), var(--nori-gold));
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.nori-review-whatsapp {
  color: #082411;
  background: linear-gradient(145deg, #6fe99d, #25d366);
}

.nori-review-confirmed {
  margin: 0 0 7px;
  color: #bfe8cb;
  font-size: 0.68rem;
  line-height: 1.42;
}

.nori-assistant .chef-form {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px 12px max(11px, env(safe-area-inset-bottom));
}

.nori-mic-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(214, 169, 95, 0.3);
  border-radius: 50%;
  color: #ead7b4;
  background: rgba(214, 169, 95, 0.09);
  cursor: pointer;
}

.nori-mic-button.is-active {
  color: #1b1209;
  background: var(--nori-gold-light);
  box-shadow: 0 0 0 5px rgba(244, 212, 148, 0.12);
}

@media (max-width: 620px) {
  .chef-launcher.nori-launcher {
    right: 7px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: auto;
    width: 94px;
    min-height: 108px;
    max-width: 94px;
  }

  body.has-mobile-cart .chef-launcher.nori-launcher {
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 72px);
  }

  .nori-launcher .nori-bot {
    width: 91px;
  }

  .nori-launcher-copy {
    right: 70px;
    bottom: 34px;
    max-width: 158px;
    padding: 6px 9px;
  }

  .nori-launcher-copy span {
    font-size: 0.64rem;
  }

  .chef-assistant.nori-assistant {
    right: 7px;
    bottom: max(7px, env(safe-area-inset-bottom));
    left: 7px;
    width: auto;
    height: min(740px, calc(100dvh - 14px));
    max-height: min(740px, calc(100dvh - 14px));
    grid-template-rows: auto auto minmax(74px, 1fr) auto auto auto;
    border-radius: 22px;
  }

  .nori-assistant .chef-header {
    padding: 10px;
  }

  .nori-assistant .chef-header h2 {
    font-size: 1.08rem;
  }

  .nori-online {
    margin-top: 2px;
    font-size: 0.68rem;
  }

  .nori-header-control,
  .nori-assistant .chef-reset,
  .nori-assistant .chef-close {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .nori-panel-hero {
    min-height: 78px;
  }

  .nori-panel-hero .nori-bot {
    width: 72px;
  }

  .nori-assistant .chef-messages {
    padding: 10px;
  }

  .nori-checkout-review {
    padding: 0 10px 10px;
  }

  .nori-assistant .chef-quick-prompts {
    padding: 0 10px 9px;
  }

  .nori-assistant .chef-form {
    padding: 9px 10px max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 350px) {
  .nori-assistant .chef-reset {
    display: none;
  }

  .nori-review-fields {
    grid-template-columns: 1fr;
  }

  .nori-review-field {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nori-launcher-copy,
  .chef-assistant.nori-assistant,
  .chef-launcher.nori-launcher {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
