/* Pizza Time v3.5: website + staff visual theme. Only active when user opts in. */
html[data-pt-theme="dark"] {
  color-scheme:dark;
  --ink:#f4f2ec;
  --ink-soft:#c8c5c1;
  --cream:#151820;
  --paper:#262b36;
  --line:#434955;
  --muted:#abb1bc;
  --red:#ff735b;
  --red-dark:#e85945;
  --gold:#e4bc79;
  --green:#78cc91;
  --white:#242a35;
  --pt-map-cream:#222832;
  --pt-map-border:#966b39;
}
/* In both themes: compact, accessible, brand-consistent toggle. */
.pt-theme-switch {
  flex:0 0 auto; display:inline-flex; justify-content:center; align-items:center;
  gap:7px; border:1px solid var(--line,#e7dece); border-radius:999px;
  min-height:41px; padding:8px 12px; margin:0;
  background:var(--cream,#fbf7ef); color:var(--ink,#201e1b);
  font:700 12px/1.2 var(--sans,Arial,sans-serif);
  cursor:pointer; white-space:nowrap;
}
.pt-theme-switch:hover{border-color:var(--red,#d83727)}
.pt-theme-switch:focus-visible{outline:3px solid #267acc;outline-offset:3px}
.pt-theme-glyph{font-size:21px;line-height:1}
.site-header .pt-theme-switch{margin-left:auto}
.admin-header .pt-theme-switch{margin-left:auto}
.admin-header .pt-theme-switch + #logout-button{margin-left:0}
@media(max-width:680px) {
  .site-header .pt-theme-switch,.admin-header .pt-theme-switch {
    min-width:41px; min-height:41px; padding:7px; margin-left:auto;
  }
  .site-header .pt-theme-caption,.admin-header .pt-theme-caption{display:none}
  .site-header .pt-theme-switch + .nav-toggle{margin-left:0}
  .admin-header .pt-theme-switch + #logout-button{margin-left:3px}
}
@media print {.pt-theme-switch{display:none!important}}

/* Public site surfaces */
html[data-pt-theme="dark"] body,
html[data-pt-theme="dark"] .admin-body{background:#151820!important;color:#f4f2ec!important}
html[data-pt-theme="dark"] .site-header,
html[data-pt-theme="dark"] .admin-header,
html[data-pt-theme="dark"] .main-nav{background:#191e27!important;color:#f4f2ec!important;border-color:#3d4552}
html[data-pt-theme="dark"] .main-nav a,
html[data-pt-theme="dark"] .nav-toggle,
html[data-pt-theme="dark"] .header-cart{color:#f4f2ec}
html[data-pt-theme="dark"] .availability-strip{background:#242a33;color:#ded9d0;border-color:#424956}
html[data-pt-theme="dark"] .product-card,
html[data-pt-theme="dark"] .empty-cart,
html[data-pt-theme="dark"] .cart-summary,
html[data-pt-theme="dark"] .checkout-form,
html[data-pt-theme="dark"] .confirmation-detail,
html[data-pt-theme="dark"] .allergen-card,
html[data-pt-theme="dark"] .install-app-dialog,
html[data-pt-theme="dark"] .modal-card{background:#222732!important;color:#f4f2ec!important;border-color:#414957!important}
html[data-pt-theme="dark"] .product-visual,
html[data-pt-theme="dark"] .admin-product-thumb,
html[data-pt-theme="dark"] .site-image-preview{background:#2d333e!important}
html[data-pt-theme="dark"] .product-info,
html[data-pt-theme="dark"] .cart-item,
html[data-pt-theme="dark"] .summary-line,
html[data-pt-theme="dark"] .hours-row{border-color:#414955!important}
html[data-pt-theme="dark"] .restaurant-cta,
html[data-pt-theme="dark"] .rule-summary,
html[data-pt-theme="dark"] .pt-location-shell,
html[data-pt-theme="dark"] .setup-notice code{background:#232a35!important;color:#eeebe6!important}
html[data-pt-theme="dark"] .pt-location-copy p,
html[data-pt-theme="dark"] .info-grid p,
html[data-pt-theme="dark"] .checkout-form label,
html[data-pt-theme="dark"] .legal p{color:#c8c5c1}
html[data-pt-theme="dark"] .pt-location-map{background:#2d3440}
html[data-pt-theme="dark"] .pt-menu-page,
html[data-pt-theme="dark"] .category-tabs a{color:#f0eeea!important;border-color:#434955!important}
html[data-pt-theme="dark"] .pt-menu-page.active,
html[data-pt-theme="dark"] .category-tabs a.active{background:#3d4754!important;color:#fff!important}
html[data-pt-theme="dark"] .pt-card-controls > .pt-additions-v27 > summary,
html[data-pt-theme="dark"] .pt-additions-v27 > summary{
  background:#30313b!important;color:#ffb79c!important;border-color:#626272!important;
}
html[data-pt-theme="dark"] .pt-card-controls > .pt-additions-v27[open] > summary,
html[data-pt-theme="dark"] .pt-additions-v27[open] > summary{background:#383038!important;border-color:#f28b71!important}
html[data-pt-theme="dark"] .pt-card-controls > .pt-additions-v27 > .pt-additions-options,
html[data-pt-theme="dark"] .pt-additions-v27 .pt-additions-options{
  background:#252b35!important;color:#edece9!important;border-color:#4b5260!important;
}
html[data-pt-theme="dark"] .pt-additions-heading,
html[data-pt-theme="dark"] .product-extra-option,
html[data-pt-theme="dark"] .product-extra-option span,
html[data-pt-theme="dark"] .pt-no-additions{color:#e7e3dd!important}
html[data-pt-theme="dark"] .product-extra-option small,
html[data-pt-theme="dark"] .pt-selected-count{color:#ffb199!important}
html[data-pt-theme="dark"] .product-extra-option:hover{background:#343b47!important}
html[data-pt-theme="dark"] .pt-card-add-v27,
html[data-pt-theme="dark"] .qty-control button,
html[data-pt-theme="dark"] .quantity-direct,
html[data-pt-theme="dark"] .pt-card-qty-v27{
  background:#1b2029!important;color:#f7f7f4!important;border-color:#5d6571!important;
}
html[data-pt-theme="dark"] .pt-mini-cart-panel,
html[data-pt-theme="dark"] #pt-mini-cart-panel{background:#232832!important;color:#f7f4ec!important;border-color:#4a5360!important}
html[data-pt-theme="dark"] .pt-mini-cart-item,
html[data-pt-theme="dark"] .pt-mini-cart-head{border-color:#444c58!important}
html[data-pt-theme="dark"] .pt-mini-cart-item small{color:#bfc3cc}
html[data-pt-theme="dark"] .pt-mini-cart-actions a:not(.pt-mini-checkout){background:#303845;color:#f8f7f3;border-color:#58606c}
html[data-pt-theme="dark"] .site-footer{background:#0d1118!important;border-color:#5a4d39}
html[data-pt-theme="dark"] .toast{background:#323b48;color:#fff}

/* Inputs, switches, accessibility: both public and staff pages */
html[data-pt-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-pt-theme="dark"] textarea,
html[data-pt-theme="dark"] select,
html[data-pt-theme="dark"] .admin-card input:not([type="checkbox"]),
html[data-pt-theme="dark"] .admin-login input,
html[data-pt-theme="dark"] .filter-row input,
html[data-pt-theme="dark"] .filter-row select{
  background:#181d26!important;color:#f8f7f3!important;border-color:#505a68!important;
}
html[data-pt-theme="dark"] input::placeholder,
html[data-pt-theme="dark"] textarea::placeholder{color:#a5aebe}
html[data-pt-theme="dark"] input[type="checkbox"],
html[data-pt-theme="dark"] input[type="radio"]{accent-color:#ff735b}
html[data-pt-theme="dark"] .button-dark{background:#414b59!important;color:#fff!important;border-color:#4a5665}
html[data-pt-theme="dark"] .button-cream{background:#2c323d!important;color:#fff!important}

/* Staff panel */
html[data-pt-theme="dark"] .admin-body .admin-login form,
html[data-pt-theme="dark"] .admin-body .admin-card,
html[data-pt-theme="dark"] .admin-body .admin-product,
html[data-pt-theme="dark"] .admin-body .site-image-card,
html[data-pt-theme="dark"] .admin-body .filter-row,
html[data-pt-theme="dark"] .admin-body .staff-filters,
html[data-pt-theme="dark"] .admin-body .staff-print-queue,
html[data-pt-theme="dark"] .admin-body .staff-extra-actions,
html[data-pt-theme="dark"] .admin-body .staff-stat,
html[data-pt-theme="dark"] .admin-body .no-results,
html[data-pt-theme="dark"] .admin-body .staff-empty,
html[data-pt-theme="dark"] .admin-body .archive-intro,
html[data-pt-theme="dark"] .admin-body .admin-mode{
  background:#242a35!important;color:#f5f2ec!important;border-color:#454d59!important;
}
html[data-pt-theme="dark"] .admin-body .admin-tabs{background:#1d232e!important;border-color:#424b57!important}
html[data-pt-theme="dark"] .admin-body .admin-tabs :is(button,a){background:transparent!important;color:#cdd1d7!important}
html[data-pt-theme="dark"] .admin-body .admin-tabs :is(button,a).active,
html[data-pt-theme="dark"] .admin-body .admin-tabs :is(button,a):hover{background:#374151!important;color:#fff!important}
html[data-pt-theme="dark"] .admin-body .admin-tabs :is(button,a).active{border-color:#ff735b!important}
html[data-pt-theme="dark"] .admin-body .order-card,
html[data-pt-theme="dark"] .admin-body .order-card[data-order-state]{
  --order-wash:#252c36!important;
  --order-pill:#333b46;
  --order-ink:#f4f3ee;
  background:#252c36!important;
  color:#f4f3ee!important;
  border-top-color:#4a5360;
  border-right-color:#4a5360;
  border-bottom-color:#4a5360;
}
html[data-pt-theme="dark"] .order-card .order-meta,
html[data-pt-theme="dark"] .order-card .order-total,
html[data-pt-theme="dark"] .order-card .order-head small,
html[data-pt-theme="dark"] .order-card .order-items{color:#f1f0ee!important}
html[data-pt-theme="dark"] .order-card .order-pickup,
html[data-pt-theme="dark"] .order-card .status-badge{color:#f1f0ec!important;background:#38414d!important;border-color:#5d6672}
html[data-pt-theme="dark"] .order-card .order-notes,
html[data-pt-theme="dark"] .staff-quick-help,
html[data-pt-theme="dark"] .pt-daily-stats>div,
html[data-pt-theme="dark"] .admin-switch{background:#303744!important;color:#f0eeea!important}
html[data-pt-theme="dark"] .admin-body :is(.staff-filters,.staff-print-queue,.staff-extra-actions) summary,
html[data-pt-theme="dark"] .admin-body .admin-card p,
html[data-pt-theme="dark"] .admin-body .archive-card-note,
html[data-pt-theme="dark"] .admin-body .staff-stat strong,
html[data-pt-theme="dark"] .admin-body .filter-row label,
html[data-pt-theme="dark"] .admin-body .admin-login label{color:#dedbd5!important}
html[data-pt-theme="dark"] .admin-body :is(.order-actions,.print-actions,.product-controls,.addition-row,.category-row) button:not(.button-red),
html[data-pt-theme="dark"] .admin-body .order-actions select,
html[data-pt-theme="dark"] .admin-body .pt-global-addition-row button{
  background:#313948!important;color:#f3f2ed!important;border-color:#56606e!important;
}
html[data-pt-theme="dark"] .admin-body .pt-featured-manager,
html[data-pt-theme="dark"] .admin-body .pt-featured-manager>span{
  background:#313844!important;color:#f4f1e9!important;border-color:#59616b!important;
}
html[data-pt-theme="dark"] .admin-body .pt-featured-manager p{color:#c6c9cf!important}
html[data-pt-theme="dark"] .admin-body .admin-product .pt-featured-star{background:#47402e!important;color:#ffdc87!important}
html[data-pt-theme="dark"] .admin-body .admin-product .pt-featured-star.is-featured{background:#6b4e1f!important;color:#ffe29d!important}
html[data-pt-theme="dark"] .admin-body .pt-print-alert{background:#49322e!important;color:#ffe0d7!important}
html[data-pt-theme="dark"] .admin-body .order-card .order-payment[data-paid="true"],
html[data-pt-theme="dark"] .admin-body .orders-live-status{color:#8de2a5!important}
@media print{html[data-pt-theme="dark"]{color-scheme:light}}
