/* Nestor ordering runtime — cart, chooser modal and checkout injected on
   mirrored ordering/catering pages. Every class is nl-ord- prefixed and the
   whole tree is self-styled (own font stack, colors, resets) so it neither
   depends on nor leaks into the imported site's CSS. Mobile-first. */

.nl-ord-fab,
.nl-ord-overlay,
.nl-ord-toast {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #1c1d2e;
  box-sizing: border-box;
}
.nl-ord-overlay *,
.nl-ord-fab *,
.nl-ord-toast * { box-sizing: border-box; font-family: inherit; }

/* floating cart button */
.nl-ord-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 2147480000;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #1c1d2e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nl-ord-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.nl-ord-fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  padding: 0 5px; border-radius: 11px; background: #b5541c; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}

/* count badge on the captured header cart button */
.nl-ord-hdr-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; background: #b5541c; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  pointer-events: none;
}

/* toast */
.nl-ord-toast {
  position: fixed; right: 18px; bottom: 84px; z-index: 2147481500;
  background: #1c1d2e; color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nl-ord-toast-show { opacity: 1; transform: none; }

/* overlay + drawer */
.nl-ord-overlay {
  position: fixed; inset: 0; z-index: 2147481000;
  background: rgba(13, 14, 36, .6);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
  display: flex; justify-content: flex-end;
}
.nl-ord-overlay.nl-ord-open { opacity: 1; visibility: visible; }
html.nl-ord-lock, html.nl-ord-lock body { overflow: hidden !important; }

.nl-ord-drawer {
  width: 100%; max-width: 420px; height: 100%; background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .3);
  transform: translateX(24px); transition: transform .22s ease;
}
.nl-ord-overlay.nl-ord-open .nl-ord-drawer { transform: none; }

/* chooser modal (centered card) */
.nl-ord-modal-overlay { justify-content: center; align-items: center; padding: 16px; }
.nl-ord-modal {
  width: 100%; max-width: 440px; max-height: 88vh; background: #fff;
  border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 60px rgba(0, 0, 0, .4);
}

/* shared chrome */
.nl-ord-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid #e8e8ee; flex: 0 0 auto;
}
.nl-ord-title { font-size: 18px; font-weight: 700; }
.nl-ord-close {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f0f0f4; color: #1c1d2e; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.nl-ord-close:hover { background: #e2e2ea; }
.nl-ord-body { padding: 16px 18px; overflow-y: auto; flex: 1 1 auto; }

/* cart lines */
.nl-ord-empty { text-align: center; padding: 32px 8px; }
.nl-ord-empty-main { margin: 0 0 6px; font-weight: 600; }
.nl-ord-empty-hint { margin: 0; color: #6b6c7e; font-size: 14px; }

.nl-ord-lines { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.nl-ord-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid #eeeef2;
}
.nl-ord-line-info { min-width: 0; }
.nl-ord-line-name { font-weight: 600; }
.nl-ord-line-variant { font-size: 14px; color: #4c4d60; }
.nl-ord-line-mod { font-size: 13px; color: #6b6c7e; }
.nl-ord-line-remove {
  margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #b5541c; font-size: 13px; text-decoration: underline;
}
.nl-ord-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.nl-ord-line-price { font-weight: 600; white-space: nowrap; }

/* qty stepper */
.nl-ord-qty { display: inline-flex; align-items: center; gap: 2px; }
.nl-ord-qty-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid #d8d8e0;
  background: #fff; cursor: pointer; font-size: 16px; line-height: 1; color: #1c1d2e;
  display: inline-flex; align-items: center; justify-content: center;
}
.nl-ord-qty-btn:disabled { opacity: .35; cursor: default; }
.nl-ord-qty-num { min-width: 28px; text-align: center; font-weight: 600; }
.nl-ord-qty-row { display: flex; align-items: center; justify-content: space-between; }

/* rows / totals */
.nl-ord-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; }
.nl-ord-row-strong { font-weight: 700; font-size: 16px; border-top: 1px solid #eeeef2; margin-top: 6px; padding-top: 10px; }
.nl-ord-totals { margin: 16px 0 4px; }

/* buttons */
.nl-ord-primary {
  display: block; width: 100%; margin-top: 14px; padding: 13px 16px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: #1c1d2e; color: #fff; font-size: 16px; font-weight: 600;
  transition: background .15s ease;
}
.nl-ord-primary:hover { background: #2e2f45; }
.nl-ord-primary:disabled { opacity: .6; cursor: default; }
.nl-ord-back {
  padding: 0 0 10px; border: 0; background: none; cursor: pointer;
  color: #4c4d60; font-size: 14px;
}

/* fulfillment picker (pickup vs catering) */
.nl-ord-fulfill-btn {
  display: block; width: 100%; margin-bottom: 10px; padding: 14px 16px;
  border: 1px solid #d8d8e0; border-radius: 10px; background: #fff;
  cursor: pointer; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nl-ord-fulfill-btn:hover { border-color: #1c1d2e; }
.nl-ord-fulfill-on { border-color: #1c1d2e; box-shadow: inset 0 0 0 1px #1c1d2e; }
.nl-ord-fulfill-name { display: block; font-size: 16px; font-weight: 700; color: #1c1d2e; }
.nl-ord-fulfill-hint { display: block; margin-top: 2px; font-size: 13px; color: #6b6c7e; }

/* checkout form */
.nl-ord-section { margin: 18px 0 8px; font-size: 15px; font-weight: 700; }
.nl-ord-form .nl-ord-section:first-child { margin-top: 0; }
.nl-ord-field { display: block; margin-bottom: 10px; }
.nl-ord-label { display: block; margin-bottom: 4px; font-size: 13px; color: #4c4d60; }
.nl-ord-input {
  width: 100%; padding: 10px 12px; border: 1px solid #d8d8e0; border-radius: 8px;
  background: #fff; color: #1c1d2e; font-size: 15px;
}
.nl-ord-input:focus { outline: 2px solid #1c1d2e; outline-offset: 0; border-color: #1c1d2e; }
textarea.nl-ord-input { min-height: 72px; resize: vertical; }

/* tips */
.nl-ord-tips { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-ord-tip-btn {
  padding: 8px 14px; border: 1px solid #d8d8e0; border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 14px; color: #1c1d2e;
}
.nl-ord-tip-on { background: #1c1d2e; color: #fff; border-color: #1c1d2e; }
.nl-ord-tip-custom { margin-top: 10px; }

/* option groups (modal) */
.nl-ord-group { margin-bottom: 16px; }
.nl-ord-group-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.nl-ord-group-hint { margin-left: 8px; font-weight: 400; font-size: 12px; color: #b5541c; }
.nl-ord-opt {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer;
}
.nl-ord-opt input { margin: 0; accent-color: #1c1d2e; width: 16px; height: 16px; flex: 0 0 auto; }
.nl-ord-opt-name { flex: 1 1 auto; min-width: 0; }
.nl-ord-opt-price { color: #4c4d60; font-size: 14px; white-space: nowrap; }

/* allowRepeats option rows — per-option quantity steppers */
.nl-ord-opt-rep { cursor: default; }
.nl-ord-opt-qty { flex: 0 0 auto; }
.nl-ord-opt-qty .nl-ord-qty-btn { width: 26px; height: 26px; font-size: 14px; }
.nl-ord-opt-qty .nl-ord-qty-num { min-width: 22px; }

/* payment + notices */
.nl-ord-pay { margin-top: 6px; }
.nl-ord-card { min-height: 44px; }
.nl-ord-card-failed { color: #a33; font-size: 14px; }
.nl-ord-note { margin: 8px 0; color: #4c4d60; font-size: 14px; }
.nl-ord-ts { margin-top: 10px; }
.nl-ord-error {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  background: #fbeaea; color: #8c2f2f; font-size: 14px;
}

/* confirmation */
.nl-ord-confirm { text-align: center; padding: 18px 4px; }
.nl-ord-confirm-title { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.nl-ord-confirm-num, .nl-ord-confirm-when { margin: 0 0 10px; }
.nl-ord-confirm .nl-ord-label { margin-bottom: 2px; }

@media (min-width: 640px) {
  .nl-ord-fab { right: 26px; bottom: 26px; }
  .nl-ord-toast { right: 26px; bottom: 94px; }
}
