/* Thea — online ordering overlay. Everything is namespaced with .ord- so it can't clash with the main site. */
[data-ord] { display: none !important; }
body.ord-lock { overflow: hidden; }

.ord-app { position: fixed; inset: 0; z-index: 3000; background: var(--cream, #FDF6EC); display: flex; flex-direction: column; color: var(--brown, #3D1F0D); font-family: var(--font-body, 'Lato', sans-serif); line-height: 1.45; }
.ord-app[hidden], .ord-modal[hidden], .ord-app [hidden] { display: none !important; }
.ord-app *, .ord-modal * { box-sizing: border-box; }
.ord-app button, .ord-app input, .ord-app select, .ord-app textarea, .ord-modal button, .ord-modal input, .ord-modal textarea { font: inherit; }

.ord-head { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--brown, #3D1F0D); color: #fff; }
.ord-head h2 { flex: 1; margin: 0; font-family: var(--font-heading, Georgia, serif); font-size: 1.25rem; font-weight: 600; color: #fff; }
.ord-iconbtn { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-weight: 700; }
.ord-iconbtn:hover { background: rgba(255,255,255,.25); }

.ord-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1rem; }
.ord-wrap { max-width: 860px; margin: 0 auto; }
.ord-foot { padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--cream-dark, #F5E6D0); box-shadow: 0 -4px 16px rgba(61,31,13,.08); }
.ord-foot:empty { display: none; }
.ord-foot .ord-wrap { display: flex; gap: .75rem; align-items: center; }

.ord-btn { border: 0; border-radius: 10px; padding: .8rem 1.2rem; font-weight: 700; cursor: pointer; background: var(--terra, #C1440E); color: #fff; transition: background .2s; }
.ord-btn:hover { background: var(--terra-dark, #9E360A); }
.ord-btn.block { width: 100%; }
.ord-btn.ghost { background: transparent; color: var(--terra, #C1440E); border: 2px solid var(--terra, #C1440E); }
.ord-btn.ghost:hover { background: rgba(193,68,14,.08); }
.ord-btn.sm { padding: .4rem .8rem; font-size: .9rem; border-radius: 8px; }
.ord-btn[disabled] { opacity: .5; cursor: not-allowed; }

.ord-banner { background: #fff3cd; border: 1px solid #f0d67a; color: #5c4400; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.ord-banner.bad { background: #fde7e4; border-color: #f0b5ad; color: #7a1f12; }

.ord-seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 2px solid var(--cream-dark, #F5E6D0); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 1rem; }
.ord-seg button { border: 0; background: transparent; padding: .7rem .5rem; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--brown-mid, #6B3A2A); }
.ord-seg button small { display: block; font-weight: 400; font-size: .78rem; opacity: .85; }
.ord-seg button.on { background: var(--terra, #C1440E); color: #fff; }
.ord-seg button[disabled] { opacity: .45; cursor: not-allowed; }

.ord-cats { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .75rem; position: sticky; top: -1rem; background: var(--cream, #FDF6EC); z-index: 2; margin: 0 -1rem 0.5rem; padding-left: 1rem; padding-right: 1rem; }
.ord-cats button { flex: none; border: 1px solid var(--cream-dark, #F5E6D0); background: #fff; border-radius: 999px; padding: .4rem .95rem; cursor: pointer; font-weight: 700; color: var(--brown-mid, #6B3A2A); white-space: nowrap; }
.ord-cats button.on { background: var(--brown, #3D1F0D); color: #fff; border-color: var(--brown, #3D1F0D); }

.ord-cat h3 { font-family: var(--font-heading, Georgia, serif); font-size: 1.4rem; margin: 1.2rem 0 .2rem; color: var(--brown, #3D1F0D); }
.ord-cat > p { margin: 0 0 .5rem; color: var(--warm-gray, #8C7B6E); font-size: .9rem; }
.ord-prod { display: flex; gap: .8rem; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; box-shadow: 0 1px 6px rgba(61,31,13,.07); cursor: pointer; }
.ord-prod:hover { box-shadow: 0 3px 12px rgba(61,31,13,.14); }
.ord-prod.off { opacity: .55; cursor: default; }
.ord-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.ord-prod .info { flex: 1; min-width: 0; }
.ord-prod .nm { font-weight: 700; }
.ord-prod .ds { font-size: .85rem; color: var(--warm-gray, #8C7B6E); }
.ord-prod .pr { font-weight: 700; color: var(--terra, #C1440E); white-space: nowrap; }
.ord-prod .add { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--terra, #C1440E); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ord-prod .tagline { font-size: .72rem; font-weight: 700; color: #2e7d32; text-transform: uppercase; margin-left: .3rem; }
.ord-sold { font-size: .8rem; font-weight: 700; color: #b3261e; white-space: nowrap; }

/* modal (product + errors) */
.ord-modal { position: fixed; inset: 0; z-index: 3100; background: rgba(30,15,5,.6); display: flex; align-items: flex-end; justify-content: center; }
.ord-sheet { background: #fff; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 1.2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .ord-modal { align-items: center; } .ord-sheet { border-radius: 20px; } }
.ord-sheet h3 { font-family: var(--font-heading, Georgia, serif); margin: 0 0 .2rem; font-size: 1.4rem; }
.ord-sheet .ds { color: var(--warm-gray, #8C7B6E); margin: 0 0 .8rem; font-size: .92rem; }
.ord-group { margin: .9rem 0; }
.ord-group legend, .ord-group > b { font-weight: 700; display: block; margin-bottom: .3rem; }
.ord-group .req { font-size: .75rem; color: #b3261e; font-weight: 700; margin-left: .4rem; }
.ord-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--cream-dark, #F5E6D0); border-radius: 10px; margin-bottom: .4rem; cursor: pointer; }
.ord-opt:has(input:checked) { border-color: var(--terra, #C1440E); background: rgba(193,68,14,.06); }
.ord-opt span { flex: 1; }
.ord-opt em { font-style: normal; color: var(--warm-gray, #8C7B6E); font-size: .9rem; }
.ord-sheet textarea, .ord-field input, .ord-field select, .ord-field textarea { width: 100%; padding: .65rem .8rem; border: 1px solid #d8c7b3; border-radius: 10px; background: #fff; color: var(--brown, #3D1F0D); }
.ord-sheet textarea:focus, .ord-field input:focus, .ord-field select:focus, .ord-field textarea:focus { outline: 2px solid var(--terra, #C1440E); outline-offset: 1px; }
.ord-qty { display: inline-flex; align-items: center; gap: .7rem; }
.ord-qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cream-dark, #F5E6D0); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--terra, #C1440E); font-weight: 700; }
.ord-qty b { min-width: 1.4rem; text-align: center; }
.ord-sheetfoot { display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.ord-error { color: #b3261e; font-weight: 600; margin: .5rem 0; }

/* basket + checkout */
.ord-card { background: #fff; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: 0 1px 6px rgba(61,31,13,.07); }
.ord-card h3 { font-family: var(--font-heading, Georgia, serif); margin: 0 0 .6rem; font-size: 1.2rem; }
.ord-line { display: flex; gap: .8rem; justify-content: space-between; align-items: flex-start; padding: .65rem 0; border-bottom: 1px dashed var(--cream-dark, #F5E6D0); }
.ord-line:last-child { border-bottom: 0; }
.ord-line .t { flex: 1; }
.ord-line .t small { display: block; color: var(--warm-gray, #8C7B6E); }
.ord-line .t .nt { color: var(--terra-dark, #9E360A); font-weight: 600; }
.ord-line .rt { text-align: right; white-space: nowrap; }
.ord-rm { background: none; border: 0; color: #b3261e; cursor: pointer; font-size: .8rem; padding: .2rem 0; }
.ord-sum { display: flex; justify-content: space-between; padding: .2rem 0; }
.ord-sum.total { font-weight: 800; font-size: 1.15rem; border-top: 2px solid var(--cream-dark, #F5E6D0); margin-top: .4rem; padding-top: .6rem; }
.ord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 560px) { .ord-grid { grid-template-columns: 1fr; } }
.ord-field { display: block; margin-bottom: .7rem; font-size: .88rem; font-weight: 700; color: var(--brown-mid, #6B3A2A); }
.ord-field input, .ord-field select, .ord-field textarea { margin-top: .25rem; font-weight: 400; }
.ord-note { font-size: .85rem; color: var(--warm-gray, #8C7B6E); margin: .3rem 0; }
.ord-ok { color: #2e7d32; font-weight: 700; } .ord-bad { color: #b3261e; font-weight: 700; }
.ord-radio { display: flex; gap: .6rem; align-items: center; margin: .4rem 0; font-weight: 600; cursor: pointer; }
.ord-radio input { width: auto; margin: 0; }
.ord-empty { text-align: center; padding: 3rem 1rem; color: var(--warm-gray, #8C7B6E); }

/* confirmation */
.ord-done { text-align: center; }
.ord-done .big { font-family: var(--font-heading, Georgia, serif); font-size: 2.2rem; margin: .2rem 0; }
.ord-steps { display: flex; justify-content: space-between; margin: 1.2rem 0; gap: .3rem; }
.ord-step { flex: 1; text-align: center; font-size: .75rem; color: var(--warm-gray, #8C7B6E); }
.ord-step i { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-dark, #F5E6D0); margin: 0 auto .3rem; line-height: 26px; font-style: normal; font-weight: 700; }
.ord-step.on { color: var(--brown, #3D1F0D); font-weight: 700; }
.ord-step.on i { background: var(--terra, #C1440E); color: #fff; }

/* ---- Neutralise the main site's global form/label styles inside the ordering UI ---- */
.ord-app label, .ord-modal label { letter-spacing: normal; }
.ord-app input[type="radio"], .ord-app input[type="checkbox"],
.ord-modal input[type="radio"], .ord-modal input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; padding: 0; margin: 0; border: initial; border-radius: 50%;
  accent-color: var(--terra, #C1440E); appearance: auto; background: initial;
}
.ord-app input[type="checkbox"], .ord-modal input[type="checkbox"] { border-radius: 4px; }
.ord-app select, .ord-modal select { appearance: auto; cursor: pointer; }
.ord-app textarea, .ord-modal textarea { min-height: 0; resize: vertical; }
.ord-app input:not([type="radio"]):not([type="checkbox"]), .ord-app select, .ord-app textarea,
.ord-modal textarea { font-size: 1rem; border: 1px solid #d8c7b3; padding: .65rem .8rem; border-radius: 10px; }
.ord-opt { font-size: 1rem; font-weight: 400; color: var(--brown, #3D1F0D); }
.ord-opt span { font-weight: 600; }
.ord-radio { font-size: 1rem; letter-spacing: normal; }
.ord-radio input { width: 20px; }
.ord-banner a { color: inherit; font-weight: 700; text-decoration: underline; }
.ord-rm { display: block; }
.ord-sheet .ord-rm { display: inline-block; }

/* Banner image shown at the top of the ordering page (uploaded in the admin panel) */
.ord-hero { display: block; width: 100%; height: clamp(150px, 34vw, 300px); object-fit: cover; border-radius: 14px; margin: 0 0 1rem; box-shadow: 0 2px 10px rgba(61,31,13,.15); background: var(--cream-dark, #F5E6D0); }

/* Offer (discount) styling */
.ord-banner.offer { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.ord-sum.ord-disc { color: #2e7d32; font-weight: 700; }

/* Collection/Delivery buttons when it can only be pre-ordered */
.ord-seg button.later small { color: #b26a00; font-weight: 700; }
.ord-seg button.on small { color: #fff; }
.ord-banner.info { background: #e8f1fb; border-color: #b6d0ee; color: #17406b; }

/* Basket: items can be tapped to change them */
.ord-line .t.editable { cursor: pointer; }
.ord-line .t.editable > b { text-decoration: underline; text-decoration-color: rgba(193,68,14,.35); text-underline-offset: 3px; }
.ord-acts { display: flex; gap: 1rem; align-items: center; }
.ord-edit { background: none; border: 0; color: var(--terra, #C1440E); cursor: pointer; font-size: .85rem; font-weight: 700; padding: .2rem 0; }
.ord-acts .ord-rm { display: inline-block; }

.ord-line .t small.ex { color: var(--brown, #3D1F0D); font-weight: 700; }

.ord-opt em { display: block; margin-top: .15rem; }
.ord-sheet-img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin: 0 0 .8rem; background: var(--cream-dark, #F5E6D0); }
