/* Pizza Boom Core – theme-independent components. Themes can restyle via the
   --pb-* custom properties. */
:root {
	--pb-black: #080808;
	--pb-charcoal: #111111;
	--pb-card: #171513;
	--pb-red: #c90016;
	--pb-gold: #ffc928;
	--pb-cream: #f6ebd5;
	--pb-white: #ffffff;
	--pb-muted: #b9b9b9;
	--pb-green: #25d366;
	--pb-radius: 14px;
	--pb-line: rgba(255, 201, 40, .35);
}

.pb-link { background: none; border: 0; padding: 0; color: var(--pb-gold); text-decoration: underline; cursor: pointer; font: inherit; }
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .7em 1.25em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.1; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.pb-btn:hover { transform: translateY(-1px); }
.pb-btn--gold { background: var(--pb-gold); color: #1a1200; }
.pb-btn--gold:hover { background: #ffd755; color: #1a1200; }
.pb-btn--wa { background: var(--pb-green); color: #fff; }
.pb-btn--wa-outline { background: transparent; color: var(--pb-white); border-color: rgba(37, 211, 102, .6); font-weight: 600; padding: .55em .9em; }
.pb-btn--wa-outline svg { color: var(--pb-green); }
.pb-btn:focus-visible, .pb-link:focus-visible { outline: 3px solid var(--pb-gold); outline-offset: 2px; }

.pb-status { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .2em .6em; border-radius: 999px; text-transform: uppercase; }
.pb-status.is-open { background: rgba(37, 211, 102, .15); color: #4ee38a; }
.pb-status.is-closed { background: rgba(201, 0, 22, .18); color: #ff6b7a; }

/* ---------- Location dialog ---------- */
.pb-loc { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 1px solid var(--pb-line); border-radius: 18px; padding: 24px; background: var(--pb-charcoal); color: var(--pb-white); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: auto; }
.pb-loc::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.pb-loc[open] { animation: pb-pop .2s ease-out; }
@keyframes pb-pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.pb-loc__close-form { position: absolute; right: 12px; top: 10px; margin: 0; }
.pb-loc__close { background: none; border: 0; color: var(--pb-muted); font-size: 28px; cursor: pointer; line-height: 1; }
.pb-loc h2 { margin: 0 0 14px; font-size: 1.35rem; color: var(--pb-white); padding-right: 30px; }
.pb-loc__modes { display: inline-flex; background: #000; border: 1px solid var(--pb-line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.pb-loc__mode { background: none; border: 0; color: var(--pb-white); padding: .5em 1.3em; border-radius: 999px; font-weight: 700; cursor: pointer; }
.pb-loc__mode.is-active { background: var(--pb-gold); color: #1a1200; }
.pb-loc__actions { display: grid; gap: 10px; }
.pb-loc__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: .75em 1em; font-weight: 700; border: 1px solid var(--pb-line); background: #000; color: var(--pb-white); cursor: pointer; }
.pb-loc__btn--primary { background: var(--pb-gold); border-color: var(--pb-gold); color: #1a1200; }
.pb-loc__addr { display: flex; gap: 8px; margin: 0; }
.pb-loc__addr input { flex: 1; min-width: 0; border-radius: 10px; border: 1px solid #333; background: #0b0b0b; color: #fff; padding: .75em .9em; font-size: 16px; }
.pb-loc.is-pickup .pb-loc__addr, .pb-loc.is-pickup [data-pb-geolocate] { display: none; }
.pb-loc.no-geo .pb-loc__addr, .pb-loc.no-geo [data-pb-geolocate] { display: none; }
.pb-loc__msg { min-height: 1.2em; margin: 12px 0 0; color: var(--pb-muted); font-size: .92rem; }
.pb-loc__msg.is-error { color: #ff8c97; }
.pb-loc__warn { background: rgba(201, 0, 22, .15); border: 1px solid rgba(201, 0, 22, .5); color: #ffd1d6; padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.pb-loc__addr-found { color: var(--pb-muted); font-size: .85rem; margin: 6px 0; }
.pb-loc__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pb-loc__item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #2a2622; border-radius: 12px; background: #0d0c0b; }
.pb-loc__item.is-recommended { border-color: var(--pb-gold); box-shadow: 0 0 0 1px var(--pb-gold) inset; }
.pb-loc__item.is-disabled { opacity: .55; }
.pb-loc__info { display: grid; gap: 3px; min-width: 0; }
.pb-loc__sub { color: var(--pb-muted); font-size: .82rem; }
.pb-loc__badge { justify-self: start; background: var(--pb-red); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.pb-loc__nozone { color: #ff8c97; font-size: .8rem; text-align: right; }
.pb-loc__privacy { color: #7d7d7d; font-size: .75rem; margin: 14px 0 0; }
@media (max-width: 480px) {
	.pb-loc { padding: 18px; }
	.pb-loc__item { flex-direction: column; align-items: stretch; }
	.pb-loc__item .pb-loc__btn { width: 100%; }
}

/* ---------- Floating WhatsApp ---------- */
.pb-wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; }
.pb-wa__btn { width: 58px; height: 58px; border-radius: 50%; background: var(--pb-green); display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .4); transition: transform .2s; }
.pb-wa__btn:hover { transform: scale(1.06); }
.pb-wa__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pb-wa__label { background: #fff; color: #111; font-weight: 600; font-size: .85rem; padding: .45em .5em .45em .9em; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); display: inline-flex; align-items: center; gap: 4px; }
.pb-wa__label[hidden] { display: none; }
.pb-wa__label { transition: opacity .35s, transform .35s; transform-origin: right center; }
.pb-wa.is-folded .pb-wa__label { opacity: 0; transform: translateX(12px) scale(.9); pointer-events: none; }
.pb-wa.is-folded:hover .pb-wa__label, .pb-wa.is-folded:focus-within .pb-wa__label { opacity: 1; transform: none; pointer-events: auto; }
.pb-wa__dismiss { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px; }
/* Keep clear of WooCommerce checkout/cart actions and mobile bars. */
.woocommerce-checkout .pb-wa__label, .woocommerce-cart .pb-wa__label { display: none; }
@media (max-width: 768px) { .pb-wa { bottom: calc(84px + env(safe-area-inset-bottom)); right: 12px; } .pb-wa__label { display: none; } .pb-wa__btn { width: 52px; height: 52px; } }

/* ---------- Toast ---------- */
.pb-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--pb-charcoal); color: #fff; border: 1px solid var(--pb-gold); padding: 12px 18px; border-radius: 12px; z-index: 100; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100vw - 32px); }
.pb-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Branch cards ---------- */
.pb-branches { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pb-branch { background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); overflow: hidden; color: var(--pb-white); display: flex; flex-direction: column; }
.pb-branch__media { position: relative; aspect-ratio: 16/9; background: #000; }
.pb-branch__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-branch__placeholder { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 140, 40, .55), rgba(120, 20, 10, .7) 55%, #120806), radial-gradient(circle at 70% 20%, rgba(255, 210, 120, .7), transparent 45%); }
.pb-branch__placeholder::after { content: ""; position: absolute; inset: auto 0 0; height: 60%; background: no-repeat center bottom / 100% auto url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='%23110604' d='M0 120V70h20V50h10v-8h8v8h10v20h30V40h8V28l6-8 6 8v12h8v30h40V45h12V30h10v-6h6v6h10v15h12v25h30V55h14V40l8-10 8 10v15h14v15h40V58h10v-8h8v8h10v12h20v50z'/%3E%3C/svg%3E"); }
.pb-branch__pin { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--pb-red); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.pb-branch__media .pb-status { position: absolute; right: 10px; top: 12px; backdrop-filter: blur(4px); background: rgba(0, 0, 0, .6); }
.pb-branch__body { padding: 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.pb-branch__name { margin: 0; font-size: 1.1rem; color: var(--pb-white); }
.pb-branch__addr { margin: 0; color: var(--pb-muted); font-size: .9rem; }
.pb-branch__meta { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--pb-cream); }
.pb-branch__distance { color: var(--pb-gold); font-weight: 700; }
.pb-branch__hours, .pb-branch__phone { margin: 0; font-size: .88rem; color: var(--pb-muted); }
.pb-branch__phone a { color: var(--pb-gold); }
.pb-branch__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pb-branch__actions .pb-btn--gold { flex: 1; }
.pb-branch__more { font-size: .82rem; color: var(--pb-muted); }

/* ---------- Checkout & cart ---------- */
.pb-checkout-branch, .pb-cart-branch { border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 16px 18px; margin: 0 0 24px; background: rgba(255, 201, 40, .06); }
.pb-checkout-branch__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pb-checkout-branch__eyebrow { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.pb-checkout-branch__name { font-size: 1.15rem; margin-right: 8px; }
.pb-checkout-branch__addr { display: block; font-size: .85rem; opacity: .75; margin-top: 2px; }
.pb-checkout-branch__warn { margin: 12px 0 0; font-size: .88rem; color: #b45309; }
.pb-fulfilment { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pb-fulfilment legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pb-fulfilment__opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(128, 128, 128, .35); border-radius: 12px; padding: 12px; cursor: pointer; }
.pb-fulfilment__opt:has(input:checked) { border-color: var(--pb-gold); box-shadow: 0 0 0 1px var(--pb-gold) inset; }
.pb-fulfilment__opt small { display: block; opacity: .75; }
.pb-unavailable { color: #ff8c97; font-weight: 600; }
.pb-includes { margin: 8px 0 16px; padding-left: 1.2em; }
.pb-choice { display: grid; gap: 4px; margin: 0 0 12px; }
.pb-choice select { padding: .6em; border-radius: 8px; }

/* ---------- Thank you ---------- */
.pb-thanks { border: 2px solid var(--pb-gold); border-radius: var(--pb-radius); padding: 22px; margin: 0 0 28px; text-align: center; }
.pb-thanks h2 { margin-top: 0; }
.pb-thanks__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.pb-thanks__hint { font-size: .8rem; opacity: .7; margin: 0; }

/* ---------- Tracking ---------- */
.pb-track { max-width: 860px; margin: 0 auto; }
.pb-track__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--pb-line); padding-bottom: 14px; }
.pb-track__eyebrow { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; opacity: .7; }
.pb-track__number { margin: 0; font-size: 2rem; }
.pb-track__date { margin: 0; opacity: .7; font-size: .9rem; }
.pb-track__status { background: var(--pb-gold); color: #1a1200; font-weight: 800; padding: .5em 1em; border-radius: 999px; }
.pb-track__status.is-cancelled { background: var(--pb-red); color: #fff; }
.pb-timeline { list-style: none; padding: 0; margin: 26px 0 8px; display: grid; grid-template-columns: repeat(var(--steps, 6), 1fr); gap: 0; counter-reset: s; }
.pb-timeline li { position: relative; text-align: center; font-size: .82rem; padding-top: 38px; opacity: .45; }
.pb-timeline li::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; background: transparent; z-index: 1; }
.pb-timeline li::after { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px; background: currentColor; opacity: .4; }
.pb-timeline li:first-child::after { display: none; }
.pb-timeline li.is-done { opacity: 1; color: var(--pb-gold); }
.pb-timeline li.is-done::before { background: var(--pb-gold); }
.pb-timeline li.is-current::before { box-shadow: 0 0 0 6px rgba(255, 201, 40, .25); animation: pb-pulse 1.6s infinite; }
.pb-timeline time { display: block; font-size: .72rem; opacity: .8; }
@keyframes pb-pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 201, 40, 0); } }
@media (max-width: 640px) {
	.pb-timeline { grid-template-columns: 1fr; gap: 14px; }
	.pb-timeline li { text-align: left; padding: 0 0 0 38px; }
	.pb-timeline li::before { left: 11px; top: 0; }
	.pb-timeline li::after { left: 10px; top: -14px; width: 3px; height: 16px; }
}
.pb-track__eta { font-weight: 700; font-size: 1.05rem; }
.pb-track__map { height: 300px; border-radius: var(--pb-radius); overflow: hidden; margin: 12px 0; border: 1px solid var(--pb-line); }
.pb-track__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.pb-track__card { border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 16px 18px; }
.pb-track__card h3 { margin: 0 0 8px; font-size: 1rem; }
.pb-track__items { list-style: none; margin: 0; padding: 0; }
.pb-track__items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(128, 128, 128, .3); }
.pb-track__items small { display: block; opacity: .7; }
.pb-track__total { font-weight: 800; font-size: 1.1rem; margin: 10px 0 0; }
.pb-track__contact { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-track__updated { font-size: .75rem; opacity: .6; text-align: right; }
.pb-track__form input { width: 100%; padding: .7em; border-radius: 8px; }
.pb-track--lookup { max-width: 460px; }
.pb-policy-note { background: rgba(255, 201, 40, .12); border-left: 4px solid var(--pb-gold); padding: 8px 12px; }
.pb-pin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pb-pin__btn { color: inherit; }
.pb-pin__status { font-size: .85rem; opacity: .8; }
.pb-pin.is-set .pb-pin__status { color: #25d366; opacity: 1; }
.pb-share { border: 1px dashed var(--pb-line); border-radius: var(--pb-radius); padding: 14px 16px; margin: 14px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.pb-share p { margin: 0; font-size: .9rem; }
.pb-share.is-on { border-color: #25d366; border-style: solid; }
.pb-rider { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--pb-gold); border-radius: var(--pb-radius); padding: 14px 16px; margin: 14px 0; background: rgba(255, 201, 40, .07); }
.pb-rider__icon { font-size: 2rem; line-height: 1; }
.pb-rider__info { display: grid; flex: 1; min-width: 160px; }
.pb-rider__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.pb-rider__info strong { font-size: 1.15rem; }
.pb-rider__phone { opacity: .85; }
.pb-rider__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-busy { border: 2px solid #25d366; border-radius: var(--pb-radius); padding: 16px 18px; margin: 14px 0; background: rgba(37, 211, 102, .08); }
.pb-busy__title { font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; }
.pb-busy p { margin: 0 0 12px; }

/* Tracking: pay by cash or QR */
.pb-payopts { margin-top: 12px; padding: 12px; border: 1px dashed rgba(255, 201, 40, .45); border-radius: 12px; font-size: .9rem; }
.pb-payopts p { margin: 0 0 8px; }
.pb-payopts__title { font-weight: 700; color: #ffc928; }
.pb-payopts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pb-payopts li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.pb-payopts li small { grid-column: 2; opacity: .75; }

/* Checkout: how will you pay? */
.pb-paypref { margin: 0 0 20px; padding: 16px; border: 1px solid rgba(255, 201, 40, .35); border-radius: var(--pb-radius, 14px); display: grid; gap: 10px; }
.pb-paypref legend { padding: 0 6px; font-weight: 700; font-size: 1.05rem; }
.pb-paypref__opt { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; padding: 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; cursor: pointer; }
.pb-paypref__opt:has(input:checked) { border-color: #ffc928; background: rgba(255, 201, 40, .08); }
.pb-paypref__opt input { accent-color: #ffc928; width: 18px; height: 18px; margin: 0; }
.pb-paypref__icon { font-size: 1.4rem; line-height: 1; }
.pb-paypref__opt strong, .pb-paypref__opt small { display: block; }
.pb-paypref__opt small { opacity: .75; font-size: .82rem; }
.pb-paypref__note { margin: 0; font-size: .82rem; opacity: .75; }
