/* Paiement resto — mobile d'abord. Sélecteurs doublés (.rck .x) pour ne pas
   subir les styles du thème sur les boutons et les champs. */
html, body.rck-body { margin: 0; padding: 0; background: #141414; }
.rck {
  /* Valeurs de secours : la vraie palette (fond + accent Elementor) est
     ajoutée par rck_palette_css(). */
  --rck-accent: #B8400F; --rck-on-accent: #FFFFFF;
  --rck-bg: #141414; --rck-card: #232323; --rck-soft: #2A2A2A; --rck-ink: #F5F5F5; --rck-muted: #A3A3A3;
  --rck-line: #363636; --rck-line-2: #4E4E4E; --rck-ok: #7BD493; --rck-bad: #FF8A80; --rck-warn: #F5B84A;
  --rck-tint: color-mix(in srgb, var(--rck-accent) 16%, var(--rck-card));
  --rck-field: #FFFFFF; --rck-field-ink: #1C1917;
  box-sizing: border-box; max-width: 520px; min-height: 100vh; margin: 0 auto;
  padding: 0 16px calc(110px + env(safe-area-inset-bottom, 0px));
  background: var(--rck-bg); color: var(--rck-ink);
  font-family: var(--eco-body, 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif); font-size: 15px; line-height: 1.45;   /* police de texte du restaurant */
  -webkit-font-smoothing: antialiased;
}
.rck *, .rck *::before, .rck *::after { box-sizing: border-box; }
.rck :where(button, input, textarea, a) { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; box-shadow: none; }
.rck .rck-loading, .rck-noscript { text-align: center; color: #8F8F8F; padding: 60px 20px; font-family: system-ui, sans-serif; }

.rck .rck-head { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; }
.rck .rck-back { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--rck-card); border: 1px solid var(--rck-line);
  display: flex; align-items: center; justify-content: center; color: var(--rck-ink); text-decoration: none; }
.rck .rck-h1 { margin: 0; font-family: var(--rck-font-h, var(--eco-head, 'Montserrat', system-ui, sans-serif)); font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.3px; color: var(--rck-ink); }
.rck .rck-muted { color: var(--rck-muted); margin: 0; }

.rck .rck-card { background: var(--rck-card); border-radius: 18px; padding: 16px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.rck .rck-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rck .rck-h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--rck-ink); font-family: inherit; }
.rck .rck-num { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--rck-ink); color: var(--rck-bg);
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.rck .rck-link { background: none; border: 0; padding: 0; color: var(--rck-accent); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.rck .rck-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rck .rck-line small { display: block; color: var(--rck-muted); font-size: 13px; }

/* Choix : cartes et lignes sélectionnables */
.rck .rck-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rck .rck-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 12px; text-align: left;
  background: var(--rck-card); color: var(--rck-ink); border: 1px solid var(--rck-line); border-radius: 13px; cursor: pointer; }
.rck .rck-choice:hover { border-color: var(--rck-line-2); }
.rck .rck-choice.on { border: 2px solid var(--rck-accent); background: var(--rck-tint); padding: 9px 11px; }
.rck .rck-choice .grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rck .rck-choice b { font-weight: 700; }
.rck .rck-choice .sub { color: var(--rck-muted); font-size: 13px; }
.rck .rck-choice .price { font-weight: 600; white-space: nowrap; }
.rck .rck-choice.big { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; }
.rck .rck-choice.big.on { padding: 13px; }
.rck .rck-radio { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 2px solid var(--rck-line-2); background: transparent; position: relative; }
.rck .on > .rck-radio, .rck .on .rck-radio { border-color: var(--rck-accent); }
.rck .on > .rck-radio::after, .rck .on .rck-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--rck-accent); }

.rck .rck-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; background: var(--rck-soft); border-radius: 12px; color: var(--rck-muted); }
.rck .rck-search input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; outline: none; color: var(--rck-ink); font-size: 16px; padding: 0; }

.rck .rck-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rck .rck-pill { height: 50px; border-radius: 12px; border: 1px solid var(--rck-line); background: var(--rck-card); color: var(--rck-ink);
  font-weight: 600; font-size: 14px; cursor: pointer; text-transform: capitalize; }
.rck .rck-pill.on { background: var(--rck-ink); border-color: var(--rck-ink); color: var(--rck-bg); font-weight: 700; }
.rck .rck-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rck .rck-slot { height: 46px; border-radius: 10px; border: 1px solid var(--rck-line); background: var(--rck-card); color: var(--rck-ink);
  font-weight: 600; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.rck .rck-slot.on { background: var(--rck-accent); border-color: var(--rck-accent); color: var(--rck-on-accent); font-weight: 700; }
.rck .rck-planner { border: 2px solid var(--rck-accent); background: var(--rck-tint); border-radius: 13px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }

.rck .rck-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--rck-ink); }
.rck .rck-field input, .rck .rck-field textarea, .rck .rck-field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--rck-line); border-radius: 12px;
  background-color: var(--rck-field); color: var(--rck-field-ink); font-size: 16px; font-weight: 700; font-family: inherit; outline: none; }
.rck .rck-field input::placeholder { color: #8A8077; }
.rck .rck-field select { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.rck .rck-field select:invalid, .rck .rck-field select option[disabled] { color: #8A8077; }
.rck .rck-field select option { color: #1C1917; background: #FFFFFF; }
.rck .rck-field textarea { resize: none; min-height: 84px; }
.rck .rck-field input:focus, .rck .rck-field textarea:focus, .rck .rck-field select:focus { border-color: var(--rck-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rck-accent) 18%, transparent); }
.rck .rck-field .hint { color: var(--rck-muted); font-weight: 400; }
.rck .rck-field.err input, .rck .rck-field.err textarea, .rck .rck-field.err select { border-color: var(--rck-bad); }
.rck .rck-field .msg, .rck .rck-msg { color: var(--rck-bad); font-weight: 600; font-size: 13px; }

.rck .rck-rows { gap: 9px; }
.rck .rck-row { display: flex; justify-content: space-between; gap: 12px; }
.rck .rck-row > span:first-child { color: var(--rck-muted); }
.rck .rck-total { padding-top: 10px; border-top: 1px dashed var(--rck-line); font-size: 18px; font-weight: 700; }
.rck .rck-total > span:first-child { color: var(--rck-ink); }
/* Remise d'un code promo dans les totaux */
.rck .rck-row-off > span:last-child { color: var(--rck-ok); font-weight: 700; white-space: nowrap; }

/* Code promo (1.65.0) : un champ et son bouton sur une ligne ; les codes appliqués au-dessus. */
.rck .rck-coupon { display: flex; gap: 8px; }
.rck .rck-coupon input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--rck-line); border-radius: 12px;
  background-color: var(--rck-field); color: var(--rck-field-ink); font-size: 16px; font-weight: 700; font-family: inherit; text-transform: uppercase; outline: none; }
.rck .rck-coupon input::placeholder { color: #8A8077; text-transform: none; font-weight: 600; }
.rck .rck-coupon input:focus { border-color: var(--rck-accent); }
.rck .rck-coupon button { flex: 0 0 auto; height: 50px; padding: 0 18px; border: 1px solid var(--rck-accent); border-radius: 12px; background: transparent; color: var(--rck-accent);
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rck .rck-coupon button:active { background: var(--rck-tint); }
.rck .rck-coupon button:disabled { opacity: .6; cursor: default; }
.rck .rck-coupon-on { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--rck-soft); font-size: 14px; }
.rck .rck-coupon-on > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--rck-ink); }
.rck .rck-coupon-on svg { flex: 0 0 auto; color: var(--rck-ok); }
.rck .rck-coupon-on b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rck .rck-coupon-on button { flex: 0 0 auto; border: 0; background: none; color: var(--rck-muted); font-size: 13.5px; font-weight: 600; font-family: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }

/* Confirmation du numéro : apparaît quand le client tape son numéro. */
.rck .rck-field[data-confirm-wrap] { animation: rck-in .2s ease-out; }
.rck .rck-field .hint.ok { color: var(--rck-ok); font-weight: 700; }
@keyframes rck-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rck .rck-points { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--rck-tint); color: var(--rck-accent); font-size: 13.5px; font-weight: 700; }
.rck .rck-note { padding: 12px 14px; border-radius: 13px; background: color-mix(in srgb, var(--rck-warn) 14%, var(--rck-card)); color: var(--rck-warn); font-size: 14px; }
.rck .rck-errors { padding: 12px 14px; border-radius: 13px; background: color-mix(in srgb, var(--rck-bad) 14%, var(--rck-card)); color: var(--rck-bad); font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.rck .rck-errors ul { margin: 0; padding-left: 18px; }
.rck .rck-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.rck .rck-terms input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--rck-accent); }

/* Barre de commande fixée en bas */
.rck .rck-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--rck-bg); border-top: 1px solid var(--rck-line);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.rck .rck-bar-inner { max-width: 488px; margin: 0 auto; }
.rck .rck-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 18px; border: 0;
  border-radius: 16px; background: var(--rck-accent); color: var(--rck-on-accent); font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.rck .rck-btn:hover { filter: brightness(1.06); color: var(--rck-on-accent); }
.rck .rck-btn[disabled] { opacity: .6; cursor: default; }
.rck .rck-btn-ghost { background: var(--rck-card); color: var(--rck-ink); border: 1px solid var(--rck-line); font-size: 15px; min-height: 52px; }
.rck .rck-btn-ghost:hover { color: var(--rck-ink); }
.rck .rck-btn-wa { background: #1F7A4D; color: #FFFFFF; font-size: 16px; }
.rck .rck-spin { width: 18px; height: 18px; border: 2.5px solid color-mix(in srgb, currentColor 40%, transparent); border-top-color: currentColor; border-radius: 50%; animation: rck-spin .8s linear infinite; }
@keyframes rck-spin { to { transform: rotate(360deg); } }

/* Confirmation */
.rck.rck-received { padding-top: 36px; padding-bottom: 32px; }
.rck .rck-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 18px; }
.rck .rck-badge-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--rck-accent); color: var(--rck-on-accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--rck-accent) 14%, transparent); margin-bottom: 14px; }
.rck .rck-badge-icon.bad { background: var(--rck-bad); box-shadow: 0 0 0 12px rgba(180,35,24,.12); }
.rck .rck-lead { margin: 4px 0 0; max-width: 320px; font-size: 16px; }
.rck .rck-lead.rck-warn { color: var(--rck-warn); }
.rck .rck-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rck .rck-step { display: flex; align-items: center; gap: 12px; color: var(--rck-muted); }
.rck .rck-step-dot { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; border: 2px solid var(--rck-line); display: flex; align-items: center; justify-content: center; }
.rck .rck-step-label { flex: 1 1 auto; }
.rck .rck-step-note { font-size: 13px; }
.rck .rck-step.done { color: var(--rck-ink); }
.rck .rck-step.done .rck-step-dot { background: var(--rck-ok); border-color: var(--rck-ok); color: var(--rck-bg); }
.rck .rck-step.current { color: var(--rck-ink); font-weight: 700; }
.rck .rck-step.current .rck-step-dot { border: 3px solid var(--rck-accent); }
.rck .rck-step.current .rck-step-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rck-accent); }
.rck .rck-step.current .rck-step-note { color: var(--rck-accent); font-weight: 700; }
.rck .rck-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.rck .rck-center { align-items: center; text-align: center; padding: 28px 18px; }

/* Quand ? : jour et heure côte à côte */
.rck .rck-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }

/* Éléments masqués par le script (sections, lignes) : priorité sur les display des cartes. */
.rck [hidden] { display: none !important; }

/* Écosystème : commande programmée (suivi) et paiement quand le restaurant est fermé */
.rck .rck-sched { background: color-mix(in srgb, var(--rck-accent, #c0392b) 14%, var(--rck-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rck-accent, #c0392b) 40%, transparent); }
.rck .rck-sched p { margin: 0; line-height: 1.5; }
.rck .rck-note-later { line-height: 1.5; }

/* ── Suggestions « À ajouter à votre commande » (1.37.0) ──────────────
   Une rangée qui défile sur le côté : les plats qui vont avec la commande.
   Elle sort de la marge de la carte à droite, pour montrer qu'il y en a d'autres. */
.rck .rck-sug { gap: 12px; }
.rck .rck-sug-row { display: flex; gap: 10px; margin-right: -16px; padding: 0 16px 2px 0; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rck .rck-sug-row::-webkit-scrollbar { display: none; }
.rck .rck-sug-item { flex: 0 0 108px; width: 108px; display: flex; flex-direction: column; gap: 4px; scroll-snap-align: start; }
.rck .rck-sug-img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--rck-soft); margin-bottom: 4px; }
.rck .rck-sug-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rck .rck-sug-item b { font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--rck-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.rck .rck-sug-price { font-size: 13px; color: var(--rck-muted); font-variant-numeric: tabular-nums; }
.rck .rck-sug-add { margin-top: 4px; min-height: 38px; padding: 0 6px; border: 1px solid var(--rck-accent); border-radius: 11px; background: transparent; color: var(--rck-accent);
  font-size: 13.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.rck .rck-sug-add:active { background: var(--rck-tint); }
.rck .rck-sug-add:disabled { opacity: .6; cursor: default; }
