/* Customer area (CES_Portal) - sits inside the site theme. */
.ces-portal { --p-red: #B3122E; --p-ink: #1A1816; --p-muted: #6F675D; --p-cream: #FAF7F2; --p-line: #E6DFD4; background: var(--p-cream); padding: 28px 16px 60px; color: var(--p-ink); }
.ces-portal__wrap { max-width: 760px; margin: 0 auto; }
.ces-portal__head { text-align: center; margin-bottom: 18px; }
.ces-portal__head h1 { margin: 0; font-size: 30px; }
.ces-portal__eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--p-red); letter-spacing: .04em; }
.ces-portal__who { margin: 6px 0 0; font-size: 14px; color: var(--p-muted); }
.ces-portal__back { margin: 0 0 10px; }
.ces-portal a { color: var(--p-red); }
.ces-portal__notice { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.ces-portal__notice--ok { background: #e8f5ec; color: #1d5b32; }
.ces-portal__notice--warn { background: #fff3cd; color: #6b5200; }
.ces-card { background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 20px 18px; margin: 0 0 16px; box-shadow: 0 8px 24px rgba(26, 24, 22, .05); }
.ces-card h2 { font-size: 21px; margin: 0 0 12px; }
.ces-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ces-card__row h2 { margin: 0; }
.ces-card--help { text-align: center; background: transparent; box-shadow: none; border-style: dashed; }
.ces-card--help p { margin: 0; }
.ces-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #f2ede6; font-size: 13px; font-weight: 700; }
.ces-pill--confirmed, .ces-pill--paid { background: #e8f5ec; color: #1d5b32; }
.ces-pill--cancelled, .ces-pill--refunded { background: #f6e3e6; color: #8e0e24; }
.ces-dl { margin: 0; display: grid; gap: 8px; }
.ces-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; border-bottom: 1px solid #f1ebe3; padding-bottom: 8px; }
.ces-dl > div:last-child { border-bottom: 0; }
.ces-dl dt { color: var(--p-muted); font-size: 14px; }
.ces-dl dd { margin: 0; font-weight: 600; }
.ces-muted { color: var(--p-muted); font-size: 15px; }
.ces-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ces-money > div { background: var(--p-cream); border-radius: 12px; padding: 10px; text-align: center; }
.ces-money span { display: block; font-size: 13px; color: var(--p-muted); }
.ces-money strong { font-size: 19px; }
.ces-btn { display: inline-block; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2; }
.ces-btn--primary { background: var(--p-red); color: #fff !important; }
.ces-btn--primary:hover { background: #8E0E24; }
.ces-btn--ghost { background: #fff; color: var(--p-ink) !important; border-color: var(--p-line); }
.ces-btn--ghost:hover { border-color: var(--p-red); }
.ces-portal__login { display: grid; gap: 10px; max-width: 420px; }
.ces-portal input[type=email], .ces-portal input[type=text], .ces-portal input[type=number], .ces-portal input[type=time], .ces-portal textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--p-line); border-radius: 10px; padding: 11px 12px; font-size: 16px; font-family: inherit; background: #fff; }
/* Clipped, not offset: in RTL a far-left element widened the page to ~10,000px (phones crashed to a white page). */
.ces-portal .ces-hp, .ces-hp { position: absolute !important; top: 0; right: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; margin: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; } /* beat the 100%-wide input rule */
.ces-portal__login { position: relative; }
.ces-portal__list { display: grid; gap: 10px; }
.ces-portal__item { display: grid; gap: 2px; border: 1px solid var(--p-line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--p-ink) !important; }
.ces-portal__item:hover { border-color: var(--p-red); }
.ces-state { background: #f4efe8; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-weight: 600; }
.ces-state--ok { background: #e8f5ec; color: #1d5b32; }
.ces-state--warn { background: #fff3cd; color: #6b5200; }
.ces-chosen { margin: 0 0 14px; border: 1px solid var(--p-line); border-radius: 12px; padding: 10px 14px; }
.ces-chosen summary, .ces-history summary { cursor: pointer; font-weight: 700; }
.ces-chosen ul, .ces-history ul { margin: 10px 0 0; padding-inline-start: 18px; }
.ces-chosen li { margin-bottom: 6px; }
.ces-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 600; }
.ces-sec { border: 1px solid var(--p-line); border-radius: 14px; margin: 0 0 10px; background: #fff; }
.ces-sec > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; }
.ces-sec > summary::-webkit-details-marker { display: none; }
.ces-sec > summary::after { content: "+"; color: var(--p-red); font-size: 20px; }
.ces-sec[open] > summary::after { content: "\2212"; }
.ces-sec > summary > span:first-child { flex: 1; }
.ces-count { font-size: 13px; font-weight: 700; color: var(--p-muted); }
.ces-count.is-full { color: #1d5b32; }
.ces-count.is-over { color: #b26a00; }
.ces-dish.is-blocked { opacity: .5; }
.ces-dish.is-paid .ces-dish__name::after { content: " (בתוספת)"; font-weight: 400; font-size: 13px; color: #b26a00; }
.ces-extra-total { background: #fff3cd; color: #6b5200; border-radius: 12px; padding: 10px 14px; font-weight: 700; margin: 12px 0 0; }
.ces-dish.is-blocked label { cursor: not-allowed; }
.ces-limits { background: #f4efe8; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.ces-sec__note { margin: 0 16px 8px; color: var(--p-red); font-size: 14px; font-weight: 600; }
.ces-course { margin: 12px 16px 6px; font-size: 14px; color: var(--p-red); font-weight: 800; }
.ces-dish { margin: 0 10px 8px; border: 1px solid #efe8de; border-radius: 12px; padding: 10px 12px; transition: border-color .15s, background .15s; }
.ces-dish.is-on { border-color: var(--p-red); background: #fff8f8; }
.ces-dish label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ces-dish input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--p-red); flex: 0 0 auto; }
.ces-dish__body { display: grid; gap: 2px; }
.ces-dish__name { font-weight: 700; }
.ces-dish__desc { font-size: 14px; color: var(--p-muted); }
.ces-dish__warn { font-size: 13px; color: #b26a00; }
.ces-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: #eef5ea; color: #2f6b2a; font-size: 12px; font-weight: 700; vertical-align: middle; }
.ces-dish__note { display: none !important; margin-top: 8px; font-size: 15px !important; }
.ces-dish.is-on .ces-dish__note { display: block !important; }
.ces-portal.is-filtered .ces-dish--warn:not(.is-on) { display: none; }
.ces-field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; margin: 12px 0; }
.ces-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.ces-field--wide { grid-column: 1 / -1; }
.ces-actions { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%); padding: 14px 0 6px; }
.ces-history { margin-top: 14px; font-size: 14px; }
.ces-extra { margin: 14px 0 4px; border: 1px dashed var(--p-line); border-radius: 14px; padding: 12px 12px 4px; background: #fdfbf8; }
.ces-extra > summary { cursor: pointer; font-weight: 800; }
.ces-extra__title { margin: 14px 4px 8px; font-size: 16px; }
@media (max-width: 520px) {
	.ces-grid { grid-template-columns: 1fr; }
	.ces-dl > div { grid-template-columns: 90px 1fr; }
	.ces-money strong { font-size: 16px; }
}

.ces-accept { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-weight: 700; }
.ces-portal [hidden] { display: none !important; } /* shown only when there is something to approve */
.ces-accept input { width: 20px; height: 20px; accent-color: var(--p-red); flex: 0 0 auto; margin-top: 2px; }
.ces-accept.is-alert { color: #b3122e; }
.ces-chef-menu { border: 2px solid var(--p-red); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; background: #fff; }
.ces-chef-menu__title { margin: 0 0 8px; font-weight: 800; color: var(--p-red); }
.ces-chef-menu__body p { margin: 0 0 8px; }

.ces-chef-menu__intro { margin: 0 0 8px; }
.ces-cm__sec { font-size: 15px; color: var(--p-red); margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #eee3d8; }
.ces-cm li { margin: 0 0 8px; }
.ces-cm__course { font-size: 14px; color: #6b625a; margin: 10px 0 6px; }
.ces-actions--inline { position: static; background: none; padding: 12px 0 0; }

.ces-addons { border: 1px solid var(--p-line); border-radius: 12px; padding: 10px 14px 6px; margin: 12px 0; }
.ces-addons legend { font-weight: 800; padding: 0 6px; }
.ces-addon { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; flex-wrap: wrap; }
.ces-addon input { width: 18px; height: 18px; accent-color: var(--p-red); }

/* Login perks, jump nav, book again */
.ces-portal__perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ces-portal__perks li { position: relative; padding-inline-start: 24px; }
.ces-portal__perks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--p-red); font-weight: 800; }
.ces-jump { position: sticky; top: var(--mn-header-h, 64px); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px; margin: 0 0 12px; background: var(--p-cream); scrollbar-width: none; }
.ces-jump::-webkit-scrollbar { display: none; }
.ces-jump a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--p-line); color: var(--p-ink) !important; text-decoration: none; font-weight: 700; font-size: 14px; }
.ces-portal [id] { scroll-margin-top: calc(var(--mn-header-h, 64px) + 60px); }
.ces-card--again { text-align: center; background: #fff8f8; border-color: #f0d6da; }
.ces-again-inline { margin: 14px 0 0; text-align: center; }

/* Phones: full-width buttons, room for the theme's bottom bar, compact money boxes */
@media (max-width: 640px) {
	.ces-portal { padding: 18px 12px 40px; }
	.ces-portal__head h1 { font-size: 26px; }
	.ces-card { padding: 16px 14px; border-radius: 16px; }
	.ces-card h2 { font-size: 19px; }
	.ces-btn { width: 100%; text-align: center; padding: 14px 18px; }
	.ces-actions { bottom: calc(var(--mn-bar-h, 62px) + env(safe-area-inset-bottom, 0px)); flex-direction: column; }
	.ces-actions .ces-btn { width: 100%; }
	.ces-money { gap: 6px; }
	.ces-money > div { padding: 8px 4px; }
	.ces-money strong { font-size: 15px; white-space: nowrap; }
	.ces-dl > div { grid-template-columns: 80px 1fr; }
	.ces-sec > summary { padding: 14px 12px; font-size: 16px; }
	.ces-dish { margin: 0 6px 8px; padding: 12px 10px; }
	.ces-dish input[type=checkbox] { width: 24px; height: 24px; }
	.ces-addon { align-items: flex-start; }
	.ces-portal select, .ces-portal input, .ces-portal textarea { font-size: 16px; }
}

/* Sign in with Google */
.ces-portal__or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--p-muted); font-size: 14px; }
.ces-portal__or::before, .ces-portal__or::after { content: ""; flex: 1; height: 1px; background: var(--p-line); }
.ces-portal__google { display: flex; justify-content: center; min-height: 44px; }

.ces-portal__next { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: var(--p-red); }

/* Admin "view as the customer" bar */
.ces-viewas { position: sticky; top: var(--mn-header-h, 64px); z-index: 30; background: #1d2327; color: #fff; padding: 10px 16px; text-align: center; font-size: 14px; }
.ces-viewas a { color: #ffd76a !important; font-weight: 800; margin-inline-start: 6px; }

/* Receipts (Stripe, branded) */
.ces-receipts { margin-top: 14px; border-top: 1px solid var(--p-line); padding-top: 10px; }
.ces-receipts h3 { font-size: 16px; margin: 0 0 6px; }
.ces-receipts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ces-receipts li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--p-cream); border-radius: 10px; padding: 8px 12px; font-size: 15px; }
.ces-receipts a { font-weight: 700; }
