/* =====================================================
   Nomiss Reserveringssysteem — Widget CSS
   ===================================================== */

/* ── Variabelen (override via JS via inline style op .nr-widget) */
:root {
  --nr-kleur: #1a1a1a;
  --nr-radius: 12px;
  --nr-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Floating button ── */
#nr-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99990;
  background: var(--nr-kleur);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0 22px;
  height: 52px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--nr-font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
#nr-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
#nr-fab.nr-fab--links {
  right: auto;
  left: 28px;
}
#nr-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Overlay ── */
#nr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99991;
  backdrop-filter: blur(2px);
  animation: nr-fade-in 0.2s ease;
}
#nr-overlay.nr-open { display: block; }

@keyframes nr-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Popup widget ── */
#nr-widget {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 99992;
  width: 480px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  font-family: var(--nr-font);
  overflow: hidden;
  display: none;
  animation: nr-slide-up 0.25s cubic-bezier(0.34,1.3,0.64,1);
  max-height: 88vh;
  overflow-y: auto;
}
#nr-widget.nr-open { display: block; }
#nr-widget.nr-fab--links {
  right: auto;
  left: 28px;
}

@keyframes nr-slide-up {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Widget header ── */
.nr-header {
  background: var(--nr-kleur);
  color: #fff;
  padding: 20px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nr-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.nr-header p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.8;
}
#nr-sluiten {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
#nr-sluiten:hover { background: rgba(255,255,255,0.25); }

/* ── Steps indicator ── */
.nr-steps {
  display: flex;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.nr-step-tab {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 500;
  color: #bbb;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nr-step-tab.actief {
  color: var(--nr-kleur);
  border-bottom-color: var(--nr-kleur);
}
.nr-step-tab.klaar { color: #3a9a5c; }

/* ── Form body ── */
.nr-body { padding: 22px; }

.nr-stap { display: none; }
.nr-stap.actief { display: block; }

/* ── Velden ── */
.nr-veld {
  margin-bottom: 16px;
}
.nr-veld label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nr-veld input,
.nr-veld select,
.nr-veld textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--nr-font);
  color: #111;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.nr-veld input:focus,
.nr-veld select:focus,
.nr-veld textarea:focus {
  border-color: var(--nr-kleur);
}
.nr-veld textarea { resize: vertical; min-height: 80px; }
.nr-veld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── Gasten teller ── */
.nr-gasten-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 14px;
}
.nr-gasten-btn {
  background: #f5f5f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  color: #333;
}
.nr-gasten-btn:hover { background: #eaeaea; }
.nr-gasten-num {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

/* ── Tijdslot knoppen ── */
.nr-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.nr-slot {
  padding: 10px 6px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  color: #111;
}
.nr-slot:hover:not(.nr-slot--vol) {
  border-color: var(--nr-kleur);
  background: var(--nr-kleur);
  color: #fff;
}
.nr-slot.geselecteerd {
  border-color: var(--nr-kleur);
  background: var(--nr-kleur);
  color: #fff;
}
.nr-slot--vol {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.nr-slots-leeg {
  font-size: 14px;
  color: #888;
  text-align: center;
  padding: 16px 0;
}
.nr-slots-loading {
  text-align: center;
  padding: 16px 0;
  color: #888;
  font-size: 14px;
}

/* ── Navigatie knoppen ── */
.nr-nav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.nr-btn {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--nr-font);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.nr-btn--primary {
  background: var(--nr-kleur);
  color: #fff;
}
.nr-btn--primary:hover { opacity: 0.88; }
.nr-btn--secondary {
  background: #f2f2f2;
  color: #333;
}
.nr-btn--secondary:hover { background: #e8e8e8; }
.nr-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Samenvatting ── */
.nr-samenvatting {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}
.nr-samenvatting-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}
.nr-samenvatting-row span:first-child { color: #777; }
.nr-samenvatting-row span:last-child { font-weight: 600; }

/* ── Successcherm ── */
.nr-succes {
  text-align: center;
  padding: 32px 22px;
}
.nr-succes-icon {
  width: 64px;
  height: 64px;
  background: #edfbf3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}
.nr-succes h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #111;
}
.nr-succes p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ── Fout ── */
.nr-fout {
  background: #fff3f3;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #c00;
  margin-bottom: 12px;
  display: none;
}
.nr-fout.nr-zichtbaar { display: block; }

/* ── Scrollbar in widget ── */
#nr-widget::-webkit-scrollbar { width: 4px; }
#nr-widget::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* ── Mobiel ── */
@media (max-width: 480px) {
  #nr-widget {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
  }
  #nr-fab { bottom: 20px; right: 20px; }
  #nr-fab.nr-fab--links { left: 20px; right: auto; }
}

/* =====================================================
   v3.1 — Tabs, Acties, Cadeaubon, Welkomst
   ===================================================== */

/* ── Tab navigatie ── */
.nr-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
}
.nr-tab {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 13px 6px 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--nr-font);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nr-tab:hover { color: rgba(255,255,255,0.88); background: rgba(255,255,255,0.07); }
.nr-tab.actief {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
}
.nr-tab-icon { font-size: 20px; line-height: 1; }
.nr-tab-label { font-size: 10px; letter-spacing: 0.06em; }

/* ── Tab content ── */
.nr-tab-content { display: none; }
.nr-tab-content.actief { display: block; }

.nr-tab-loading, .nr-tab-leeg {
  text-align: center;
  padding: 32px 22px;
  color: #999;
  font-size: 14px;
}

/* ── Acties tab ── */
#nr-tab-acties { padding: 0 0 8px; }

.nr-actie-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.nr-actie-card:first-child { border-top: none; }
.nr-actie-card:last-child { border-bottom: none; }

.nr-actie-foto {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.nr-actie-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nr-actie-card:hover .nr-actie-foto img { transform: scale(1.04); }

/* Gradient overlay op foto */
.nr-actie-foto::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  pointer-events: none;
}

.nr-actie-prijs-overlay {
  position: absolute;
  bottom: 12px;
  left: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  z-index: 2;
  background: rgba(0,0,0,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.nr-actie-body { padding: 16px 18px 18px; }
.nr-actie-naam {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}
.nr-actie-prijs {
  display: none;
}
.nr-actie-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* ── Cadeaubon tab ── */
.nr-bon-intro {
  padding: 22px 20px 14px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.nr-bon-intro h4 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: #111;
}
.nr-bon-intro p {
  margin: 0;
  font-size: 14px;
  color: #777;
  line-height: 1.55;
}
.nr-bon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 16px 20px;
}
.nr-bon-card {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  cursor: pointer;
}
.nr-bon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
  border-color: var(--nr-kleur);
}
.nr-bon-foto {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #f0f0f0;
}
.nr-bon-foto img { width:100%; height:100%; object-fit:cover; display:block; transition: transform 0.3s; }
.nr-bon-card:hover .nr-bon-foto img { transform: scale(1.05); }
.nr-bon-foto--leeg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nr-bon-bedrag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.nr-bon-bedrag--groot {
  position: static;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nr-bon-info {
  padding: 14px 14px 16px;
}
.nr-bon-info strong { font-size: 14px; font-weight: 700; color: #111; display: block; margin-bottom: 5px; }
.nr-bon-info p { font-size: 12px; color: #888; margin: 0 0 10px; line-height: 1.5; }

/* ── Bon checkout ── */
.nr-bon-checkout { padding: 16px; }
.nr-bon-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--nr-font);
  box-sizing: border-box;
  margin-top: 4px;
  outline: none;
  transition: border-color 0.15s;
}
.nr-bon-input:focus { border-color: var(--nr-kleur); }
textarea.nr-bon-input { resize: vertical; min-height: 72px; }

/* ── Knop variant gecentreerd ── */
.nr-btn--center { display: block; max-width: 200px; margin: 0 auto; }

/* ── Welkomst popup animatie ── */
@keyframes nr-welkomst-in {
  from { opacity:0; transform:scale(0.95) translateY(12px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
#nr-welkomst-popup { animation: nr-welkomst-in 0.28s cubic-bezier(0.34,1.1,0.64,1); }
