/*
 * Layout zapasowy stron restauracji (templates/public_layout.html.twig):
 * menu, koszyk, opcje dania, zamówienie, podziękowanie, status zamówienia,
 * /regulamin i /prywatnosc, gdy restauracja nie ma opublikowanej strony.
 *
 * Zastępuje Tailwinda z CDN (cdn.tailwindcss.com), który wysyłał dane gościa
 * do zewnętrznego serwera przed jakąkolwiek zgodą. Zawiera WYŁĄCZNIE klasy
 * używane przez szablony public/restaurant/* — w wartościach jak w Tailwindzie
 * 3 (odstępy co 0.25rem, paleta slate/amber/red/rose/emerald/blue) — oraz
 * podzbiór klas Bootstrapa ze strony statusu zamówienia (order_status).
 * Nowa klasa w tych szablonach = dopisz ją tutaj.
 */

/* ---------- Podstawa ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid #e2e8f0; }
html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1e293b;
  background: linear-gradient(to bottom, #fff, #f8fafc);
}
:root { --brand: #2563eb; --brand-text: #fff; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; line-height: 1.25; }
h5 { font-size: 1.125rem; font-weight: 600; }
a { color: inherit; text-decoration: inherit; }
main a:not([class]) { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button, [type="button"], [type="submit"] { cursor: pointer; background: transparent; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
input, select, textarea { background: #fff; max-width: 100%; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); }
textarea { min-height: 5rem; }
fieldset { margin: 0; }
legend { padding: 0 0.25rem; font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
small { font-size: 0.875em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Domyślny wygląd gołych elementów formularza i przycisków (koszyk: „Usuń”, „Edytuj”). */
form button:not([class]) {
  border: 1px solid #cbd5e1; border-radius: 0.5rem; padding: 0.25rem 0.75rem;
  font-size: 0.875rem; background: #fff;
}
form button:not([class]):hover { background: #f8fafc; }

/* ---------- Szkielet layoutu ---------- */
.sz-pomin {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 60;
  padding: 0.5rem 1rem; border-radius: 0.5rem; background: #0f172a; color: #fff;
}
.sz-pomin:focus { top: 0.5rem; }
.sz-naglowek {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: saturate(1.4) blur(6px);
}
.sz-naglowek__wnetrze, .sz-tresc, .sz-stopka__wnetrze {
  width: 100%; max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem;
}
.sz-naglowek__wnetrze { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sz-marka { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.sz-marka__logo { height: 2.5rem; width: auto; max-width: 8rem; object-fit: contain; }
.sz-marka__nazwa { font-size: 1.125rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-naglowek__akcje { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; flex-shrink: 0; }
.sz-naglowek__link, .sz-jezyk {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.75rem; border-radius: 0.75rem; border: 1px solid transparent;
}
.sz-naglowek__link:hover, .sz-jezyk:hover { background: #f1f5f9; }
.sz-naglowek__link--koszyk { border-color: #cbd5e1; }
.sz-jezyk { font-weight: 600; color: #475569; cursor: pointer; }
.sz-jezyki { position: relative; }
.sz-jezyki > summary { list-style: none; }
.sz-jezyki > summary::-webkit-details-marker { display: none; }
.sz-jezyki__lista {
  position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 20; min-width: 10rem;
  margin: 0; padding: 0.35rem; list-style: none; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 0.75rem; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}
.sz-jezyki__lista a { display: block; padding: 0.45rem 0.75rem; border-radius: 0.5rem; }
.sz-jezyki__lista a:hover { background: #f1f5f9; }
.sz-jezyki__lista a[aria-current] { font-weight: 600; color: var(--brand, #2563eb); }
.sz-tresc { flex: 1 0 auto; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.sz-komunikat { margin-bottom: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid; }
.sz-komunikat--sukces { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.sz-komunikat--info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.sz-komunikat--blad { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.sz-stopka { border-top: 1px solid #e2e8f0; background: #fff; padding: 2rem 0; font-size: 0.875rem; color: #475569; }
.sz-stopka__wnetrze { display: grid; gap: 1rem; }
.sz-stopka__firma { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.sz-stopka__firma strong { color: #1e293b; }
.sz-stopka__firma a:hover { color: var(--brand); text-decoration: underline; }
.sz-stopka__ranedo { font-size: 0.75rem; color: #64748b; }
.sz-stopka__ranedo a { text-decoration: underline; }
.sz-stopka__ranedo svg { display: inline-block; vertical-align: -3px; }

/* Wspólne bloki prawne (te same klasy co w szablonach — site-forms.css). */
.stopka-prawna { font-size: 0.8125rem; line-height: 1.5; }
.stopka-prawna p { margin: 0 0 4px; }
.stopka-prawna__linki { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.stopka-prawna__linki a { text-decoration: underline; text-underline-offset: 2px; }
.sprzedawca-zamowienia { font-size: 0.8125rem; line-height: 1.5; margin: 12px 0 0; overflow-wrap: anywhere; }
.sprzedawca-zamowienia p { margin: 0 0 6px; }
.sprzedawca-zamowienia a { color: inherit; text-decoration: underline; }
.dokument-gosci h2 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 0.75rem; }
.dokument-gosci h3 { font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.dokument-gosci p { margin: 0 0 0.75rem; }
.dokument-gosci ol, .dokument-gosci ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }
.dokument-gosci li { margin-bottom: 0.4rem; }
.dokument-gosci a { color: var(--brand); text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- Narzędzia w stylu Tailwinda ---------- */
.container { width: 100%; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.w-full { width: 100%; }

.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex, .d-flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center, .align-items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between, .justify-content-between { justify-content: space-between; }
.justify-center, .justify-content-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold, .fw-semibold { font-weight: 600; }
.font-bold, .fw-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.italic, .fst-italic { font-style: italic; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right, .text-end { text-align: right; }
.line-through { text-decoration: line-through; }
.underline { text-decoration: underline; }

.text-white { color: #fff; }
.text-slate-500, .text-muted { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-amber-800 { color: #92400e; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-rose-800 { color: #9f1239; }
.text-emerald-800 { color: #065f46; }
.text-blue-800 { color: #1e40af; }

.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-900 { background-color: #0f172a; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-red-50 { background-color: #fef2f2; }
.bg-rose-50 { background-color: #fff1f2; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-\[var\(--brand\)\] { background-color: var(--brand); color: var(--brand-text); }

.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.last\:border-0:last-child { border-width: 0; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-amber-200 { border-color: #fde68a; }
.border-amber-300 { border-color: #fcd34d; }
.border-red-300 { border-color: #fca5a5; }
.border-rose-200 { border-color: #fecdd3; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-blue-200 { border-color: #bfdbfe; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Linki-przyciski (px-4 py-2 rounded-xl …) — szablony nie dają im display. */
a.rounded-xl, button.rounded-xl, a.rounded-lg { display: inline-block; line-height: 1.25rem; transition: filter 0.15s, background-color 0.15s; }
a.bg-\[var\(--brand\)\]:hover, button.bg-\[var\(--brand\)\]:hover:not(:disabled), a.bg-slate-900:hover { filter: brightness(1.1); }
a.border-slate-300:hover, button.border-slate-300:hover { background-color: #f8fafc; }
input.border, select.border, textarea.border { border-color: #cbd5e1; }

/* Karty dań w menu (grid md:grid-cols-3) — przycisk na dole karty. */
.grid > .rounded-2xl { display: flex; flex-direction: column; }
.grid > .rounded-2xl > a.rounded-xl { margin-top: auto; align-self: flex-start; }

@media (min-width: 640px) {
  .sz-naglowek__wnetrze, .sz-tresc, .sz-stopka__wnetrze { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:justify-end { justify-content: flex-end; }
}
@media (min-width: 1024px) {
  .sz-naglowek__wnetrze, .sz-tresc, .sz-stopka__wnetrze { padding-left: 2rem; padding-right: 2rem; }
}

/* ---------- Podzbiór Bootstrapa (public/restaurant/order_status) ---------- */
.row { display: flex; flex-wrap: wrap; margin-left: -0.75rem; margin-right: -0.75rem; }
.row > * { width: 100%; max-width: 100%; padding-left: 0.75rem; padding-right: 0.75rem; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 768px) { .col-md-10 { flex: 0 0 auto; width: 83.333%; } }
@media (min-width: 992px) { .col-lg-8 { flex: 0 0 auto; width: 66.667%; } }
.h4 { font-size: 1.375rem; font-weight: 700; }
.fs-6 { font-size: 0.9rem; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; }
.card-header, .card-footer { padding: 1rem 1.25rem; background: #fff; }
.card-header { border-bottom: 1px solid #e2e8f0; }
.card-footer { border-top: 1px solid #e2e8f0; }
.card-body { padding: 1.25rem; }
.badge {
  display: inline-block; padding: 0.3em 0.75em; border-radius: 9999px;
  font-weight: 600; line-height: 1.2; color: #fff; background: #64748b; white-space: nowrap;
}
.bg-info { background-color: #0ea5e9; }
.bg-primary { background-color: var(--brand); }
.bg-warning { background-color: #fbbf24; }
.bg-success { background-color: #16a34a; }
.bg-secondary { background-color: #64748b; }
.bg-danger { background-color: #dc2626; }
.text-dark { color: #0f172a; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table th, .table td { padding: 0.5rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.table th.text-end, .table td.text-end { text-align: right; }
.table th.text-center, .table td.text-center { text-align: center; }
.table-sm th, .table-sm td { padding: 0.35rem 0.5rem; }
.table-light th, .table-light td { background: #f8fafc; }
.btn {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 0.75rem;
  border: 1px solid transparent; line-height: 1.25rem; text-align: center;
}
.btn-outline-primary { border-color: var(--brand); color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); color: var(--brand-text); }

/* Pakiet B: alkohol tylko w lokalu, zgoda na dane o alergii, program lojalnościowy. */
.alkohol-tylko-w-lokalu { display: inline-block; margin: 0.5rem 0 0; padding: 0.3rem 0.75rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.85rem; font-weight: 600; line-height: 1.3; opacity: 0.85; }
.alkohol-18 { display: inline-block; padding: 0 0.4rem; border-radius: 4px; background: #b91c1c; color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.5; }
.zgoda-alergii { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.5rem; font-size: 0.875rem; }
.zgoda-alergii input { margin-top: 0.2rem; flex: 0 0 auto; }
.lojalnosc-przy-zamowieniu { font-size: 0.875rem; margin: 0 0 0.75rem; }
