/* GCR Catering — b0--04 / 2026-11-22
 * b0--01: first delivery. Customer page (.gcr-catering) and the wp-admin
 *   review page (.gcr-review).
 * b0--02: narrower quantity box on phones.
 * b0--03: customer page redrawn as three steps (Ahmad, 2026-11-22: "modern,
 *   snappy, to the point"): big pickup/delivery cards, day buttons, menu
 *   rows with +/- buttons, a total bar that stays at the bottom of the
 *   screen. The class .gcr-js is added by the script; without it the three
 *   parts simply follow each other.
 * b0--04: the total bar is fixed to the screen (sticky did not hold inside
 *   the Storefront theme). */

.gcr-catering { --gcr-red: #c62828; --gcr-ink: #1d1d1f; --gcr-soft: #6b6b70; --gcr-line: #e6e6ea; --gcr-bg: #f6f6f8;
	max-width: 680px; margin: 0 auto; color: var(--gcr-ink); font-size: 16px; line-height: 1.45; }
.gcr-catering *, .gcr-catering *::before, .gcr-catering *::after { box-sizing: border-box; }
.gcr-catering p { margin: 0 0 14px; }
.gcr-catering small { font-size: .82em; color: var(--gcr-soft); font-weight: 400; }
.gcr-catering [hidden] { display: none !important; }
.gcr-catering .gcr-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.gcr-catering .gcr-box { padding: 14px 16px; border-radius: 12px; margin: 0 0 18px; }
.gcr-catering .gcr-err { background: #fdecea; color: #8a1c1c; }
.gcr-catering .gcr-err ul { margin: 6px 0 0 18px; }

/* the 1 2 3 line */
.gcr-catering .gcr-steps { display: none; }
.gcr-catering.gcr-js .gcr-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.gcr-catering .gcr-steps li { flex: 1; margin: 0; padding: 0 0 8px; border-bottom: 3px solid var(--gcr-line); color: var(--gcr-soft); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s; }
.gcr-catering .gcr-steps li span { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: var(--gcr-line); color: var(--gcr-soft); font-size: 12px; margin-right: 4px; transition: background .2s, color .2s; }
.gcr-catering .gcr-steps li.gcr-on, .gcr-catering .gcr-steps li.gcr-past { border-color: var(--gcr-red); color: var(--gcr-ink); }
.gcr-catering .gcr-steps li.gcr-on span, .gcr-catering .gcr-steps li.gcr-past span { background: var(--gcr-red); color: #fff; }

.gcr-catering .gcr-step { margin: 0 0 36px; }
.gcr-catering.gcr-js .gcr-step { margin: 0; animation: gcr-in .22s ease-out; }
@keyframes gcr-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gcr-catering.gcr-js .gcr-step { animation: none; } }
.gcr-catering .gcr-title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 18px; color: var(--gcr-ink); }

/* pickup / delivery */
.gcr-catering .gcr-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.gcr-catering .gcr-card-radio { display: block; margin: 0; padding: 16px; border: 2px solid var(--gcr-line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s, transform .1s; }
.gcr-catering .gcr-card-radio:active { transform: scale(.98); }
.gcr-catering .gcr-card-radio input { position: absolute; opacity: 0; }
.gcr-catering .gcr-card-radio strong { display: block; font-size: 18px; }
.gcr-catering .gcr-card-radio small { display: block; }
.gcr-catering .gcr-card-radio.gcr-on, .gcr-catering .gcr-card-radio:has(input:checked) { border-color: var(--gcr-red); background: #fff5f5; }
.gcr-catering .gcr-card-radio:has(input:focus-visible) { outline: 2px solid var(--gcr-ink); outline-offset: 2px; }

/* day buttons */
.gcr-catering .gcr-days { display: none; }
.gcr-catering.gcr-js .gcr-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0 0 14px; }
.gcr-catering .gcr-day { padding: 8px 0; border: 2px solid var(--gcr-line); border-radius: 12px; background: #fff; color: var(--gcr-ink); cursor: pointer; text-align: center; font: inherit; line-height: 1.15; transition: border-color .15s, background .15s; }
.gcr-catering .gcr-day strong { display: block; font-size: 19px; }
.gcr-catering .gcr-day small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.gcr-catering .gcr-day:hover { border-color: #c9c9cf; background: #fff; color: var(--gcr-ink); }
.gcr-catering .gcr-day.gcr-on { border-color: var(--gcr-red); background: var(--gcr-red); color: #fff; }
.gcr-catering .gcr-day.gcr-on small { color: #fff; }

/* fields */
.gcr-catering .gcr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gcr-catering .gcr-fields .gcr-wide { grid-column: 1 / -1; }
.gcr-catering label { font-size: 14px; font-weight: 600; color: var(--gcr-ink); }
.gcr-catering .gcr-fields input, .gcr-catering .gcr-fields select, .gcr-catering .gcr-fields textarea {
	width: 100%; margin-top: 4px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--gcr-ink);
	background: var(--gcr-bg); border: 2px solid transparent; border-radius: 12px; box-shadow: none; min-height: 48px; -webkit-appearance: none; appearance: none; }
.gcr-catering .gcr-fields select { background-image: linear-gradient(45deg, transparent 50%, var(--gcr-soft) 50%), linear-gradient(135deg, var(--gcr-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.gcr-catering .gcr-fields input:focus, .gcr-catering .gcr-fields select:focus, .gcr-catering .gcr-fields textarea:focus { outline: none; border-color: var(--gcr-red); background: #fff; }
.gcr-catering .gcr-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; }
.gcr-catering .gcr-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gcr-red); flex: 0 0 auto; }
.gcr-catering .gcr-hint { font-size: 14px; color: var(--gcr-soft); }
.gcr-catering .gcr-hint a { color: var(--gcr-red); font-weight: 600; white-space: nowrap; }

/* buttons */
.gcr-catering .gcr-btn { display: inline-block; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--gcr-red); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.gcr-catering .gcr-btn:hover { background: #a31f1f; color: #fff; }
.gcr-catering .gcr-btn:active { transform: scale(.97); }
.gcr-catering .gcr-btn-ghost { background: var(--gcr-bg); color: var(--gcr-ink); }
.gcr-catering .gcr-btn-ghost:hover { background: var(--gcr-line); color: var(--gcr-ink); }
.gcr-catering .gcr-btn.gcr-busy { opacity: .6; pointer-events: none; }
.gcr-catering .gcr-nav { display: flex; gap: 10px; margin-top: 20px; }
.gcr-catering .gcr-nav .gcr-next, .gcr-catering .gcr-nav .gcr-submit { flex: 1; }
.gcr-catering .gcr-back, .gcr-catering .gcr-next { display: none; }
.gcr-catering.gcr-js .gcr-back, .gcr-catering.gcr-js .gcr-next { display: inline-block; }

/* menu */
.gcr-catering .gcr-tabs { display: none; }
.gcr-catering.gcr-js .gcr-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 6px; padding-bottom: 4px; scrollbar-width: none; }
.gcr-catering .gcr-tabs::-webkit-scrollbar { display: none; }
.gcr-catering .gcr-tabs a { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: var(--gcr-bg); color: var(--gcr-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.gcr-catering .gcr-tabs a:hover { background: var(--gcr-line); }
.gcr-catering .gcr-section { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gcr-soft); margin: 22px 0 8px; padding: 0; border: 0; scroll-margin-top: 60px; }
.gcr-catering .gcr-item { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0 0 8px; border: 2px solid var(--gcr-line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.gcr-catering .gcr-item.gcr-chosen { border-color: var(--gcr-red); background: #fff5f5; }
.gcr-catering .gcr-item-text { flex: 1 1 auto; min-width: 0; }
.gcr-catering .gcr-item-name { display: block; font-weight: 700; font-size: 16px; }
.gcr-catering .gcr-item-desc { display: block; font-size: 13.5px; color: var(--gcr-soft); margin-top: 2px; }
.gcr-catering .gcr-item-price { display: block; font-weight: 600; margin-top: 4px; }
.gcr-catering .gcr-item-qty { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.gcr-catering .gcr-item-qty button { display: none; }
.gcr-catering.gcr-js .gcr-item-qty button { display: block; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--gcr-bg); color: var(--gcr-ink); font-size: 22px; line-height: 1; font-weight: 400; cursor: pointer; transition: background .15s, transform .1s; }
.gcr-catering.gcr-js .gcr-item-qty button:active { transform: scale(.9); }
.gcr-catering.gcr-js .gcr-item-qty .gcr-plus { background: var(--gcr-red); color: #fff; }
.gcr-catering .gcr-item-qty input { width: 3.4em; padding: 6px 2px; text-align: center; font: inherit; font-weight: 700; border: 1px solid var(--gcr-line); border-radius: 8px; background: #fff; box-shadow: none; -moz-appearance: textfield; }
.gcr-catering.gcr-js .gcr-item-qty input { width: 2.4em; border: 0; background: transparent; }
.gcr-catering .gcr-item-qty input::-webkit-outer-spin-button, .gcr-catering .gcr-item-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gcr-catering.gcr-js .gcr-item:not(.gcr-chosen) .gcr-minus, .gcr-catering.gcr-js .gcr-item:not(.gcr-chosen) .gcr-item-qty input { display: none; }

/* the total bar at the bottom of the screen. Fixed, not sticky: the
   Storefront theme hides overflow on the page wrapper, which stops sticky.
   So no ancestor of the bar may have a transform. */
.gcr-catering.gcr-js .gcr-step[data-step="2"] { padding-bottom: 84px; }
.gcr-catering .gcr-bar { display: none; }
.gcr-catering.gcr-js .gcr-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(680px, calc(100% - 24px)); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 999px; background: var(--gcr-ink); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.gcr-catering .gcr-bar-total { flex: 1; text-align: right; line-height: 1.15; }
.gcr-catering .gcr-bar-total small { display: block; color: #c9c9cf; }
.gcr-catering .gcr-bar-total small.gcr-warn { color: #ffb4b4; font-weight: 700; }
.gcr-catering .gcr-bar-total strong { font-size: 18px; }
.gcr-catering .gcr-bar .gcr-btn { padding: 11px 20px; }
.gcr-catering .gcr-bar .gcr-btn-ghost { background: #3a3a3d; color: #fff; }

/* summary and the thank-you */
.gcr-catering .gcr-summary { margin: 0 0 20px; padding: 16px; border-radius: 14px; background: var(--gcr-bg); }
.gcr-catering .gcr-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 15px; }
.gcr-catering .gcr-sum-head { font-weight: 700; font-size: 16px; }
.gcr-catering .gcr-sum-sub { color: var(--gcr-soft); padding-bottom: 8px; }
.gcr-catering .gcr-sum-head + .gcr-sum-row:not(.gcr-sum-sub) { margin-top: 8px; }
.gcr-catering .gcr-sum-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--gcr-line); font-weight: 700; }
.gcr-catering .gcr-done { text-align: center; padding: 30px 10px; }
.gcr-catering .gcr-done-mark { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 32px; }
.gcr-catering .gcr-done h2 { font-size: 28px; font-weight: 700; margin: 0 0 10px; }

@media (max-width: 480px) {
	.gcr-catering .gcr-title { font-size: 24px; }
	.gcr-catering .gcr-day strong { font-size: 16px; }
	.gcr-catering .gcr-day small { font-size: 10px; }
	.gcr-catering .gcr-item { padding: 12px; gap: 8px; }
	.gcr-catering .gcr-bar .gcr-btn { padding: 11px 16px; }
}

/* wp-admin review page */
.gcr-review .gcr-stage { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.gcr-review .gcr-stage-new { background: #c62828; }
.gcr-review .gcr-stage-accepted { background: #b26a00; }
.gcr-review .gcr-stage-paid { background: #2e7d32; }
.gcr-review .gcr-stage-declined { background: #777; }
.gcr-review .gcr-card { background: #fff; border: 1px solid #c3c4c7; padding: 14px 18px; margin: 14px 0; max-width: 820px; }
.gcr-review .gcr-card h2 { margin-top: 0; }
.gcr-review table.gcr-lines { border-collapse: collapse; width: 100%; }
.gcr-review table.gcr-lines td, .gcr-review table.gcr-lines th { padding: 6px 8px; border-bottom: 1px solid #eee; text-align: left; }
.gcr-review table.gcr-lines .gcr-num { text-align: right; white-space: nowrap; }
.gcr-review input.gcr-qty { width: 5em; }
.gcr-review .gcr-actions .button { margin: 0 8px 8px 0; }
.gcr-review .gcr-decline { color: #b32d2e; border-color: #b32d2e; }
.gcr-review .gcr-sandbox { border-left: 4px solid #c62828; }
@media (max-width: 782px) {
	.gcr-review .gcr-hide-small { display: none; }
}

/* b0--12 (plugin): a closed day cannot be picked */
.gcr-catering .gcr-day[disabled]{opacity:.35;cursor:not-allowed;text-decoration:line-through}
.gcr-review .gcr-price-note{color:#b32d2e;font-weight:600}
.gcr-review textarea.gcr-closed{width:14em;max-width:100%;font-family:monospace}

/* b0--13: the screen of one order */
.gcr-review .gcr-card{border-radius:12px;border-color:#e2e2e6;box-shadow:0 1px 3px rgba(0,0,0,.05);padding:18px 22px}
.gcr-review .gcr-stage{padding:4px 11px;border-radius:999px}
.gcr-review .gcr-hero-top{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.gcr-review .gcr-hero-id{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#6b6b70}
.gcr-review .gcr-when{display:flex;align-items:center;gap:18px;padding:16px;border-radius:12px;background:#fff5f5}
.gcr-review .gcr-cal{flex:none;width:84px;border-radius:12px;overflow:hidden;background:#fff;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.gcr-review .gcr-cal-m{display:block;padding:4px 0;background:#c62828;color:#fff;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.gcr-review .gcr-cal-d{display:block;padding:6px 0 8px;font-size:38px;font-weight:700;line-height:1;color:#1d1d1f}
.gcr-review .gcr-cal-past .gcr-cal-m{background:#777}
.gcr-review .gcr-when-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.gcr-review .gcr-when-kind{align-self:flex-start;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#fff;background:#1d1d1f}
.gcr-review .gcr-kind-delivery{background:#1565c0}
.gcr-review .gcr-when-day{font-size:22px;font-weight:600;line-height:1.2;color:#1d1d1f}
.gcr-review .gcr-when-time{font-size:34px;font-weight:700;line-height:1.1;color:#c62828}
.gcr-review .gcr-when-time small{margin-left:8px;font-size:14px;font-weight:600;color:#6b6b70;white-space:nowrap}
.gcr-review .gcr-hero-addr{margin:12px 0 0;font-size:15px}
.gcr-review .gcr-who{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:16px 0 0}
.gcr-review .gcr-who-name{flex-basis:100%;font-size:18px}
.gcr-review .gcr-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;background:#f2f2f4;color:#1d1d1f;text-decoration:none;font-weight:600;word-break:break-all}
.gcr-review .gcr-chip:hover{background:#e6e6ea}
.gcr-review .gcr-note{margin:16px 0 0;padding:12px 14px;border-left:4px solid #f0b400;border-radius:8px;background:#fffbea}
.gcr-review .gcr-note strong{display:block;margin-bottom:2px;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#8a6d00}
.gcr-review .gcr-sent{margin:14px 0 0;font-size:12px;color:#8a8a90}
.gcr-review table.gcr-lines td,.gcr-review table.gcr-lines th{padding:10px 8px}
.gcr-review table.gcr-lines thead th{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#6b6b70}
.gcr-review table.gcr-lines td:first-child{font-weight:600}
.gcr-review table.gcr-lines .gcr-total th{border-bottom:0;font-size:16px}
@media (max-width:600px){
	.gcr-review .gcr-when{gap:12px;padding:12px}
	.gcr-review .gcr-cal{width:68px}
	.gcr-review .gcr-cal-d{font-size:30px}
	.gcr-review .gcr-when-day{font-size:18px}
	.gcr-review .gcr-when-time{font-size:28px}
}
.gcr-review .gcr-stage-cancelled{background:#555}
.gcr-review input.gcr-cal-link{width:100%;font-family:monospace;font-size:12px}

/* b0--18: orders typed in by hand */
.gcr-review .gcr-add{margin:14px 0 10px}
.gcr-review .gcr-src{display:inline-block;margin-left:6px;padding:1px 8px;border:1px solid #1d1d1f;border-radius:999px;font-size:11px;font-weight:600}
.gcr-review .gcr-m-row{display:flex;flex-wrap:wrap;gap:12px 16px;margin:0 0 14px}
.gcr-review .gcr-m-row label{flex:1 1 150px;font-weight:600}
.gcr-review .gcr-m-row label.gcr-m-wide{flex:2 1 280px}
.gcr-review .gcr-manual input[type=text],.gcr-review .gcr-manual input[type=tel],.gcr-review .gcr-manual input[type=email],.gcr-review .gcr-manual input[type=date],.gcr-review .gcr-manual input[type=time],.gcr-review .gcr-manual select,.gcr-review .gcr-manual textarea{width:100%;max-width:100%;margin-top:4px;font-weight:400}
.gcr-review .gcr-manual label{font-weight:600}
.gcr-review .gcr-manual small{font-weight:400;color:#6b6b70}
.gcr-review .gcr-m-qty{width:4em;white-space:nowrap;font-weight:700}
.gcr-review .gcr-m-h{margin:18px 0 6px}
.gcr-review .gcr-m-menu{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:6px 24px;margin:0 0 14px}
.gcr-review .gcr-m-sec h4{margin:10px 0 6px;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#6b6b70}
.gcr-review .gcr-manual label.gcr-m-item{display:flex;align-items:center;gap:10px;margin:0 0 6px;font-weight:400}
.gcr-review .gcr-manual .gcr-m-item input[type=number]{flex:none;width:4.5em;margin:0}
.gcr-review .gcr-manual .gcr-m-item input:not(:placeholder-shown)+span{font-weight:700}
.gcr-review .gcr-manual input[type=url]{width:100%;max-width:100%;margin-top:4px;font-weight:400}
.gcr-review tr.gcr-gone td{opacity:.55}
.gcr-review .gcr-gone-tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:#6b6b70;color:#fff;font-size:11px;font-weight:600}
