/* RoilabDelivery — web. Neutro a propósito: hereda tipografía y color del tema; el acento sale de
   --rld-accent / --rld-accent-ink (Ajustes → General). Mínimo 14 px en todo el texto. */
:root { --rld-radius: 14px; --rld-line: rgba(0,0,0,.14); --rld-soft: rgba(0,0,0,.05); --rld-muted: rgba(0,0,0,.62); }

/* ───────── Checkout: ¿Cómo lo quieres? ───────── */
.rld-fulfil { border: 1px solid var(--rld-line); border-radius: var(--rld-radius); padding: 24px; margin: 0 0 28px; position: relative; }
.rld-fulfil.is-loading { opacity: .6; pointer-events: none; }
.rld-fulfil .rld-fulfil__title { margin: 0 0 16px !important; }  /* Breakdance Woo le pone margin 0 con más especificidad */
.rld-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.rld-service { position: relative; cursor: pointer; margin: 0; }
.rld-service input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rld-service__box { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--rld-line); border-radius: var(--rld-radius); font-weight: 700; font-size: 16px; transition: border-color .15s, background .15s; }
.rld-service svg, .rld-single-service svg, .rld-table-pill svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rld-service input:checked + .rld-service__box { border-color: var(--rld-accent); background: var(--rld-accent); color: var(--rld-accent-ink); }
.rld-service input:focus-visible + .rld-service__box { outline: 3px solid var(--rld-accent); outline-offset: 2px; }
.rld-single-service, .rld-table-pill { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin: 0 0 14px; }
.rld-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.rld-row .form-row { margin: 0; padding: 0; width: auto; float: none; }
.rld-row [hidden] { display: none !important; }
.rld-row select { width: 100%; min-height: 48px; font-size: 16px; }
.rld-pickup-address, .rld-hint { margin: 14px 0 0; font-size: 15px; color: var(--rld-muted); }
.rld-notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #fef3c7; color: #78350f; font-size: 15px; }
.rld-min { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--rld-soft); font-size: 15px; line-height: 1.4; }
.rld-min[hidden] { display: none !important; }
.rld-min.is-short { background: #fef3c7; color: #78350f; }
.rld-min.is-short * { color: inherit; }
.rld-min--cart { margin: 0 0 14px; }
.rld-svc-pickup .rld-addr-field, .rld-svc-table .rld-addr-field, .rld-svc-none .rld-addr-field { display: none !important; }

/* ───────── Propinas y ofertas ───────── */
/* Van dentro del resumen del pedido, que muchos temas pintan de oscuro: tarjeta clara con colores
   propios para que se lean siempre. */
.rld-tip, .rld-bumps { background: #fff !important; color: #111827 !important; border-radius: var(--rld-radius); padding: 16px 18px !important; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* Especificidad alta a propósito: los temas suelen forzar el color de `#order_review .amount/small`. */
.rld-tip *, .rld-bumps *,
html body #order_review .rld-tip.rld-tip.rld-tip *, html body #order_review .rld-bumps.rld-bumps.rld-bumps *,
html body .rld-tip.rld-tip.rld-tip *, html body .rld-bumps.rld-bumps.rld-bumps * { color: #111827 !important; }
html body .rld-tip.rld-tip.rld-tip .rld-pill input:checked + span, html body .rld-tip.rld-tip.rld-tip .rld-pill input:checked + span *,
html body #order_review .rld-tip.rld-tip.rld-tip .rld-pill input:checked + span, html body #order_review .rld-tip.rld-tip.rld-tip .rld-pill input:checked + span * { color: var(--rld-accent-ink) !important; }
html body .rld-bumps.rld-bumps.rld-bumps del, html body .rld-bumps.rld-bumps.rld-bumps del * { color: #6b7280 !important; }
.rld-tip { display: none; border: 0; margin: 0 0 22px; }
.rld-svc-pickup .rld-tip-for-pickup, .rld-svc-delivery .rld-tip-for-delivery, .rld-svc-table .rld-tip-for-table { display: block; }
.rld-tip legend { float: left; width: 100%; font-weight: 700; font-size: 16px; margin-bottom: 10px; padding: 0; }
.rld-tip__opts { clear: both; }
.rld-tip__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rld-pill { position: relative; margin: 0; cursor: pointer; }
.rld-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rld-pill span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; min-width: 76px; padding: 6px 14px; border: 1.5px solid var(--rld-line); border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.15; }
.rld-pill small { font-weight: 500; font-size: 14px; opacity: .8; }
.rld-pill input:checked + span { background: var(--rld-accent); color: var(--rld-accent-ink); border-color: var(--rld-accent); }
.rld-pill input:focus-visible + span { outline: 3px solid var(--rld-accent); outline-offset: 2px; }
.rld-tip__custom { margin: 10px 0 0; }
.rld-tip__custom input { width: 110px; min-height: 44px; font-size: 16px; }
.rld-bumps { margin: 0 0 22px; }
.rld-bumps__title { font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.rld-bump { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--rld-line); border-radius: var(--rld-radius); margin: 0 0 8px; cursor: pointer; }
.rld-bump:has(input:checked) { border-style: solid; border-color: var(--rld-accent); }
.rld-bump__check { -webkit-appearance: checkbox !important; appearance: checkbox !important; width: 22px !important; height: 22px !important; margin: 0 !important; flex: none; accent-color: var(--rld-accent); background: none !important; border: 0 !important; }
.rld-bump__price { font-weight: 700; }
.rld-bump__img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.rld-bump__body { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.rld-bump__name { font-weight: 700; }
.rld-bump__text { color: var(--rld-muted); font-size: 14px; }
.rld-bump__price del { opacity: .6; margin-right: 4px; }

/* ───────── Página de gracias ───────── */
.rld-thanks { background: var(--rld-accent); color: var(--rld-accent-ink); border-radius: var(--rld-radius); padding: 32px; margin: 0 0 28px; }
.rld-thanks p { margin: 0 0 10px; }
.rld-thanks__label { font-weight: 700; font-size: 16px; opacity: .9; }
.rld-thanks__when { font-size: clamp(28px, 6vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.rld-thanks__where { font-size: 17px; }
.rld-thanks .rld-btn { background: var(--rld-accent-ink); color: var(--rld-accent) !important; }
.rld-order-line { font-size: 16px; }

/* ───────── Botón base ───────── */
.rld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--rld-accent); color: var(--rld-accent-ink) !important; font-weight: 700; font-size: 16px; text-decoration: none !important; cursor: pointer; }
.rld-btn:hover { filter: brightness(1.08); }
.rld-btn:disabled, .rld-btn.is-busy { opacity: .6; cursor: progress; }

/* ───────── Pausa y mesa ───────── */
.rld-pause-banner, .rld-table-banner { position: sticky; bottom: 0; z-index: 9990; padding: 12px 16px; text-align: center; font-size: 15px; font-weight: 600; }
.rld-pause-banner { background: #b91c1c; color: #fff; }
.rld-table-banner { background: var(--rld-accent); color: var(--rld-accent-ink); }
.rld-table-banner a { color: inherit; text-decoration: underline; margin-left: 10px; font-weight: 500; }

/* ───────── Etiquetas y alérgenos ───────── */
.rld-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rld-label { display: inline-block; background: var(--rld-label, #16a34a); border-radius: 999px; padding: 3px 10px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.rld-info__h { font-weight: 700; margin: 0 0 8px; }
.rld-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.rld-chip { display: inline-block; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; background: var(--rld-soft); }
.rld-chip--al { background: #fde68a; color: #111; }
.rld-info__traces { font-size: 15px; color: var(--rld-muted); }
.rld-nutrition { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 15px; }
.rld-nutrition th, .rld-nutrition td { padding: 6px 0; border-bottom: 1px solid var(--rld-line); text-align: left; font-weight: 500; }
.rld-nutrition td { text-align: right; }
.rld-nutrition .is-sub th { padding-left: 16px; color: var(--rld-muted); }
.rld-allergen-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rld-allergen-table { border-collapse: collapse; font-size: 14px; min-width: 760px; }
.rld-allergen-table th, .rld-allergen-table td { border: 1px solid var(--rld-line); padding: 6px; text-align: center; }
.rld-allergen-table tbody th { text-align: left; white-space: nowrap; font-weight: 600; }
.rld-allergen-table thead th { vertical-align: bottom; height: 120px; }
.rld-allergen-table thead th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.rld-allergen-table .is-yes { font-size: 18px; color: #b91c1c; }
.rld-allergen-table .is-trace { font-size: 18px; color: #b45309; }
.rld-allergen-legend { font-size: 14px; color: var(--rld-muted); }

/* ───────── Extras en la ficha ───────── */
.rld-addons { margin: 0 0 20px; display: flex; flex-direction: column; gap: 18px; width: 100%; }
.rld-addon { border: 0; padding: 0; margin: 0; min-width: 0; }
.rld-addon.is-invalid .rld-addon__name { color: #b91c1c; }
.rld-addon__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; margin: 0 0 8px; padding: 0; }
.rld-addon__req, .rld-addon__opt, .rld-addon__hint { font-size: 14px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--rld-soft); }
.rld-addon__req { background: #fee2e2; color: #991b1b; }
.rld-addon__options { display: flex; flex-direction: column; gap: 6px; }
.rld-addon__option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--rld-line); border-radius: 12px; cursor: pointer; font-size: 15px; margin: 0; }
.rld-addon__option:has(input:checked) { border-color: var(--rld-accent); box-shadow: inset 0 0 0 1px var(--rld-accent); }
.rld-addon__option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.rld-addon__option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--rld-accent); }
.rld-addon__label { flex: 1; }
.rld-addon__price { font-weight: 700; white-space: nowrap; }
.rld-addon select, .rld-addon__text { width: 100%; min-height: 48px; font-size: 16px; }
/* Indicaciones por plato */
.rld-item-note { margin: 0 0 20px; width: 100%; }
/* Temas que ponen el formulario de la ficha en fila (cantidad + botón): el cuadro baja a su propia línea. */
form.cart:has(> .rld-item-note), form.cart:has(> .rld-addons) { flex-wrap: wrap; }
form.cart > .rld-item-note, form.cart > .rld-addons { flex: 0 0 100%; order: -1; }
.rld-item-note__label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.rld-item-note__text { display: block; width: 100%; min-height: 72px; padding: 10px 14px; font: inherit; font-size: 16px; line-height: 1.4; border: 1.5px solid var(--rld-line); border-radius: 12px; background: #fff; color: inherit; resize: vertical; box-sizing: border-box; }
.rld-item-note__text:focus { outline: none; border-color: var(--rld-accent); box-shadow: 0 0 0 3px var(--rld-soft); }
.rld-item-note__hint { margin: 6px 0 0; font-size: 14px; opacity: .8; }
.rld-addons__total { margin: 0; font-size: 16px; }
.rld-addons__error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fee2e2; color: #991b1b; font-size: 15px; font-weight: 600; }

/* ───────── Carta ───────── */
/* min-width:0 — dentro de un contenedor flex (Breakdance, Elementor…) la fila de categorías sin
   saltos estiraría la carta hasta su ancho mínimo y desbordaría en móvil. */
.rld-menu { --rld-cols: 3; min-width: 0; width: 100%; max-width: 100%; }
.rld-menu__nav { position: sticky; top: var(--rld-sticky-top, 0px); z-index: 20; background: var(--rld-nav-bg, #fff); margin: 0 0 24px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.rld-menu__nav::-webkit-scrollbar { display: none; }
.rld-menu__nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rld-menu__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--rld-line); font-size: 15px; font-weight: 700; text-decoration: none; color: inherit; white-space: nowrap; }
.rld-menu__nav a.is-active, .rld-menu__nav a:hover { background: var(--rld-accent); color: var(--rld-accent-ink); border-color: var(--rld-accent); }
.rld-menu__cat { scroll-margin-top: 90px; margin: 0 0 48px; }
.rld-menu__cat-title { margin: 0 0 6px; }
.rld-menu__cat-desc { margin: 0 0 18px; color: var(--rld-muted); }
.rld-menu__grid { display: grid; grid-template-columns: repeat(var(--rld-cols), minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) { .rld-menu__grid { grid-template-columns: repeat(min(var(--rld-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .rld-menu__grid { grid-template-columns: 1fr; gap: 14px; } }
.rld-card { display: flex; flex-direction: column; border: 1px solid var(--rld-line); border-radius: var(--rld-radius); overflow: hidden; background: var(--rld-card-bg, transparent); }
.rld-card.is-out { opacity: .6; }
.rld-card__open { all: unset; display: flex; flex-direction: column; flex: 1; cursor: pointer; }
.rld-card__open:focus-visible { outline: 3px solid var(--rld-accent); outline-offset: -3px; }
.rld-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rld-soft); }
.rld-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.rld-card:hover .rld-card__img { transform: scale(1.03); }
.rld-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 8px; }
.rld-card__title { font-weight: 800; font-size: 19px; line-height: 1.2; }
.rld-card__desc { font-size: 15px; line-height: 1.45; color: var(--rld-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rld-card__timed { font-size: 14px; font-weight: 600; color: #b45309; }
.rld-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 16px; }
.rld-card__price { font-weight: 800; font-size: 17px; }
.rld-card__add.button, .rld-card__add { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px !important; border-radius: 999px !important; background: var(--rld-accent) !important; color: var(--rld-accent-ink) !important; border: 0 !important; font-weight: 700 !important; font-size: 15px !important; text-decoration: none !important; cursor: pointer; }
.rld-card__add.loading { opacity: .6; }
.rld-card__add.added::after { content: ' ✓'; }
.rld-card + .added_to_cart, .rld-card__foot .added_to_cart { display: none !important; }
.rld-card__soldout { font-size: 14px; font-weight: 700; color: #b91c1c; }
.rld-empty { color: var(--rld-muted); }

/* ───────── Panel lateral ───────── */
html.rld-lock { overflow: hidden; }
.rld-drawer[hidden] { display: none; }
.rld-drawer { position: fixed; inset: 0; z-index: 100000; }
.rld-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.rld-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--rld-drawer-bg, #fff); color: var(--rld-drawer-ink, #111); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; outline: none; overscroll-behavior: contain; scroll-padding-bottom: 110px; }
.rld-drawer.is-open .rld-drawer__overlay { opacity: 1; }
.rld-drawer.is-open .rld-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .rld-drawer__panel, .rld-drawer__overlay { transition: none; } }
.rld-drawer__close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.2); font-size: 18px; cursor: pointer; }
.rld-drawer__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rld-drawer__content { padding: 22px 24px 120px; clear: both; }
.rld-drawer__media + .rld-drawer__content { clear: none; }
.rld-drawer__title { margin: 0 0 6px; font-size: 26px; line-height: 1.15; }
.rld-drawer__price { font-size: 19px; font-weight: 800; margin: 6px 0 12px; }
.rld-drawer__desc { font-size: 16px; line-height: 1.55; }
.rld-drawer__form { margin: 18px 0 0; }
.rld-drawer .rld-addons__total { display: none; }
.rld-drawer__buy { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 14px 0; background: var(--rld-drawer-bg, #fff); }
.rld-drawer__submit { flex: 1; }
.rld-qty { display: flex; align-items: center; border: 1.5px solid var(--rld-line); border-radius: 999px; height: 52px; }
.rld-qty__btn { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: inherit; }
.rld-qty input { width: 40px; border: 0 !important; background: transparent !important; text-align: center; font-weight: 800; font-size: 17px; padding: 0 !important; -moz-appearance: textfield; box-shadow: none !important; }
.rld-qty input::-webkit-inner-spin-button, .rld-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rld-drawer__msg { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fee2e2; color: #991b1b; font-weight: 600; font-size: 15px; }
.rld-drawer__info { margin: 18px 0 0; border-top: 1px solid var(--rld-line); padding-top: 14px; }
.rld-drawer__info summary { font-weight: 700; font-size: 17px; cursor: pointer; margin: 0 0 10px; }
.rld-drawer__skeleton { height: 60vh; margin: 70px 24px; border-radius: var(--rld-radius); background: linear-gradient(90deg, var(--rld-soft) 25%, rgba(0,0,0,.09) 50%, var(--rld-soft) 75%); background-size: 200% 100%; animation: rld-sk 1.2s infinite; }
@keyframes rld-sk { to { background-position: -200% 0; } }

/* ───────── Botón flotante ───────── */
.rld-fab { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9989; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 10px; border-radius: 999px; background: var(--rld-accent); color: var(--rld-accent-ink) !important; font-weight: 700; font-size: 16px; text-decoration: none !important; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.rld-fab.is-empty { display: none; }
.rld-fab__count { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 999px; background: var(--rld-accent-ink); color: var(--rld-accent); font-weight: 800; }
.rld-lock .rld-fab { display: none; }
.rld-addon__label small.rld-addon__al { display: block; font-size: 14px; font-weight: 500; color: #92400e; margin-top: 2px; }
