/* Public demo of an ordering template: label, cart and checkout on top of the template's own design. */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 7px 16px; background: #1f1235; color: #fff; font-size: .85rem; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: #dc2626; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: demo-pulse 1.6s ease-in-out infinite; }
@keyframes demo-pulse { 50% { opacity: .35; } }
.demo-provider { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.demo-bar-cta { padding: 3px 12px; border-radius: 999px; background: #fff; color: #1f1235; font-weight: 700; text-decoration: none; white-space: nowrap; }
.demo-bar-cta:hover, .demo-bar-cta:focus-visible { background: #ede9fe; }
.demo-bar-showcase { position: fixed; top: 0; left: 0; right: 0; z-index: 1031; height: 42px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
.demo-bar-showcase ~ .site-nav, .demo-bar-showcase ~ .site-header { top: 42px; }
.demo-bar-showcase ~ .navbar.sticky-top { top: 42px !important; margin-top: 42px; }
.demo-bar-showcase ~ :is(.skip-link, .skip):focus { top: 46px; z-index: 1032; }
.demo-bar-showcase + .top { margin-top: 42px; }
.demo-bar-showcase + .top + .header { top: 42px; }
.demo-bar-showcase ~ .header > .navbar.fixed-top { top: 42px; }
.demo-bar-showcase ~ .header:has(> .navbar.fixed-top) + :is(section, nav) { margin-top: 42px; }
.demo-bar-showcase ~ main { padding-top: 42px; }

.site-main > .container.section { padding-left: 20px; padding-right: 20px; }
.demo-card { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.demo-card > .product, .demo-card > .card { flex: 1; }
.demo-card[hidden] { display: none; }
.demo-card .card-image.demo-photo, .product-image.demo-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.demo-price { font-weight: 700; color: var(--site-primary); }
.demo-price s { margin-left: 6px; font-weight: 400; color: var(--site-muted); }
.demo-add { width: 100%; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--site-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.demo-add:hover:not(:disabled), .demo-add:focus-visible { filter: brightness(.92); }
.demo-add:disabled { background: #e5e7eb; color: #4b5563; cursor: not-allowed; }
.demo-buy { max-width: 320px; margin: 18px auto 0; padding: 0 20px; }
.demo-buy .demo-price { display: block; margin-bottom: 8px; font-size: 1.3rem; }
.demo-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.demo-filter { min-height: 36px; padding: 6px 14px; border: 1px solid var(--site-border); border-radius: 999px; background: #fff; color: var(--site-text); font: inherit; font-size: .9rem; cursor: pointer; }
.demo-filter[aria-pressed="true"] { border-color: var(--site-primary); background: var(--site-primary); color: #fff; }

.demo-cart-button { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--site-primary); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 10px 28px rgba(31, 18, 53, .32); cursor: pointer; }
.demo-count { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--site-primary); font-size: .8rem; text-align: center; }
.demo-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(15, 10, 30, .55); }
.demo-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; display: flex; flex-direction: column; width: min(420px, 100%); background: #fff; color: #1f2937; box-shadow: -12px 0 36px rgba(15, 10, 30, .25); outline: 0; }
.demo-drawer[hidden], .demo-backdrop[hidden] { display: none; }
.demo-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; }
.demo-drawer-head h2 { margin: 0; font-size: 1.2rem; }
.demo-icon { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3f4f6; color: #1f2937; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.demo-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px 22px; }
.demo-lines { margin: 0; padding: 0; list-style: none; }
.demo-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.demo-line-name { font-weight: 600; overflow-wrap: anywhere; }
.demo-line-total { font-weight: 700; white-space: nowrap; }
.demo-qty { display: inline-flex; align-items: center; gap: 4px; }
.demo-qty button { width: 34px; height: 34px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; font-size: 1rem; cursor: pointer; }
.demo-qty span { min-width: 26px; text-align: center; font-weight: 600; }
.demo-remove { justify-self: end; border: 0; background: none; color: #b91c1c; font: inherit; font-size: .85rem; cursor: pointer; }
.demo-empty { color: #6b7280; }
.demo-total { display: flex; justify-content: space-between; margin: 14px 0; font-size: 1.1rem; }
.demo-form label { display: block; margin-bottom: 10px; font-size: .88rem; font-weight: 600; }
.demo-form input, .demo-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; font: inherit; font-weight: 400; }
.demo-form [aria-invalid="true"] { border-color: #dc2626; }
.demo-error { margin: 0 0 10px; color: #b91c1c; font-size: .88rem; }
.demo-actions { display: grid; gap: 8px; }
.demo-send { min-height: 46px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.demo-whatsapp { background: #128c4a; }
.demo-email { background: #1f1235; }
.demo-send:hover, .demo-send:focus-visible { filter: brightness(1.12); }
.demo-result { margin-top: 12px; padding: 12px; border-radius: 10px; background: #f0fdf4; }
.demo-result p { margin: 0 0 8px; font-size: .9rem; font-weight: 600; }
.demo-result pre { max-height: 220px; margin: 0 0 8px; padding: 10px; overflow: auto; border-radius: 8px; background: #fff; color: #1f2937; font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-link { padding: 0; border: 0; background: none; color: #5b21b6; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.demo-private { margin: 12px 0 0; color: #6b7280; font-size: .8rem; }
body.demo-locked { overflow: hidden; }
@media (max-width: 560px) {
    .demo-bar-text { display: none; }
    .demo-bar { justify-content: space-between; }
    .demo-cart-button { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .demo-dot { animation: none; } }

/* Dark mode of the demo's own parts. */
html[data-theme=dark] .demo-price { color: var(--site-link); }
html[data-theme=dark] .demo-filter:not([aria-pressed="true"]) { background: var(--site-surface); }
html[data-theme=dark] .demo-add:disabled { background: #334155; color: #cbd5e1; }
html[data-theme=dark] .demo-drawer { background: var(--site-surface); color: var(--site-text); }
html[data-theme=dark] :is(.demo-drawer-head, .demo-line) { border-color: var(--site-border); }
html[data-theme=dark] .demo-icon { background: #334155; color: var(--site-text); }
html[data-theme=dark] :is(.demo-qty button, .demo-form input, .demo-form textarea, .demo-result pre) { border-color: #475569; background: var(--site-background); color: var(--site-text); }
html[data-theme=dark] :is(.demo-empty, .demo-private) { color: var(--site-muted); }
html[data-theme=dark] :is(.demo-remove, .demo-error) { color: #fca5a5; }
html[data-theme=dark] .demo-email { background: #5b21b6; }
html[data-theme=dark] .demo-result { background: #14301f; }
html[data-theme=dark] .demo-link { color: #c4b5fd; }
