/* RAFYZO Restaurant theme layer.
 * Preset identity lives here. Dark/light contrast follows the resolved visual
 * scheme from PHP, so custom colors and legacy theme records stay readable.
 * Geometry remains in frontend.css.
 */

.px-restaurant-public .px-restaurant-cover{position:relative;overflow:hidden}
.px-restaurant-public .px-restaurant-cover.has-image::after{display:none!important;content:none!important}

.px-restaurant-public.px-restaurant-scheme-dark{color-scheme:dark}
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-shell{background:var(--px-restaurant-bg)!important;color:var(--px-restaurant-text)!important}

.px-restaurant-public.px-restaurant-scheme-dark button.px-restaurant-item,
.px-restaurant-public.px-restaurant-scheme-dark button.px-restaurant-item:hover,
.px-restaurant-public.px-restaurant-scheme-dark button.px-restaurant-item:focus,
.px-restaurant-public.px-restaurant-scheme-dark button.px-restaurant-item:focus-visible,
.px-restaurant-public.px-restaurant-scheme-dark button.px-restaurant-item:active{background:var(--px-restaurant-surface)!important;color:var(--px-restaurant-text)!important;border-color:color-mix(in srgb,var(--px-restaurant-text) 15%,transparent)!important;box-shadow:none!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-item-title strong,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-category-section h2,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-identity h1{color:var(--px-restaurant-text)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-item-content>small,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-category-section>header small,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-identity p{color:var(--px-restaurant-muted)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-contact>a,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-contact>button,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-order-history>button,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-last-order{background:var(--px-restaurant-dark-soft)!important;color:var(--px-restaurant-text)!important;border-color:color-mix(in srgb,var(--px-restaurant-text) 14%,transparent)!important}
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-contact span{background:color-mix(in srgb,var(--px-restaurant-accent) 16%,var(--px-restaurant-surface))!important;color:var(--px-restaurant-accent)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-footer{background:var(--px-restaurant-surface)!important;color:var(--px-restaurant-muted)!important;border-color:color-mix(in srgb,var(--px-restaurant-text) 13%,transparent)!important}
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-footer span{color:var(--px-restaurant-muted)!important}
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-footer strong{color:var(--px-restaurant-text)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-sheet>section,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-sheet>section,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-info-modal>section{background:var(--px-restaurant-surface)!important;color:var(--px-restaurant-text)!important;border-color:color-mix(in srgb,var(--px-restaurant-text) 12%,transparent)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-item,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-order-types span,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-checkout-fields input,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-checkout-fields textarea{background:var(--px-restaurant-dark-soft-2)!important;color:var(--px-restaurant-text)!important;border-color:color-mix(in srgb,var(--px-restaurant-text) 13%,transparent)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-head p,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-item-copy small,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-summary span,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-order-types legend,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-order-types small,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-checkout-fields label>span,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-order-submit small{color:var(--px-restaurant-muted)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-head h2,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-item-copy strong,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-summary strong,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-order-types b,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-order-submit strong{color:var(--px-restaurant-text)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-category-tabs button[data-restaurant-category-tab]>span{background:var(--px-restaurant-surface)!important;box-shadow:none}
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-scroll-arrow,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-scroll-arrow:hover,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-scroll-arrow:focus,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-scroll-arrow:active{background:var(--px-restaurant-dark-soft)!important;color:var(--px-restaurant-text)!important}
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-sheet-close,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-sheet-close:hover,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-sheet-close:focus,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-sheet-close:active{background:var(--px-restaurant-dark-soft)!important;color:var(--px-restaurant-text)!important}

.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-qty button,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-qty strong,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-item-qty button,
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-cart-item-qty b{color:#fff!important}

/* Preset identity details; these do not own general contrast. */
.px-restaurant-theme-bistro .px-restaurant-identity h1,.px-restaurant-theme-coffee .px-restaurant-identity h1{font-family:var(--px-restaurant-name-font,Georgia,"Times New Roman",serif);letter-spacing:-.25px}
.px-restaurant-theme-bistro .px-restaurant-item,.px-restaurant-theme-royal .px-restaurant-item,.px-restaurant-theme-riviera .px-restaurant-item{border-width:1px}
.px-restaurant-theme-olive .px-restaurant-category-track button,.px-restaurant-theme-mint .px-restaurant-category-track button,.px-restaurant-theme-midnight_lilac .px-restaurant-category-track button{border-radius:999px}
.px-restaurant-theme-terracotta .px-restaurant-cover,.px-restaurant-theme-berry .px-restaurant-cover,.px-restaurant-theme-teal_peach .px-restaurant-cover{height:210px}
.px-restaurant-theme-violet_mint .px-restaurant-category-track button{background:#b7f7d4;color:#4c1d95}
.px-restaurant-theme-riviera .px-restaurant-category-track button{background:#fff9e9}
.px-restaurant-theme-forest_lime .px-restaurant-category-track button{background:#343c15;color:#eaf7a5}
.px-restaurant-theme-forest_lime .px-restaurant-open-status.is-open{background:#3b4516;color:#e8f58d}
.px-restaurant-theme-teal_peach .px-restaurant-contact button,.px-restaurant-theme-teal_peach .px-restaurant-contact a{background:#fff8ef!important}

/* RAFYZO dark product sheet title visibility */
.px-restaurant-public.px-restaurant-scheme-dark .px-restaurant-sheet h2,
.px-restaurant-public.px-restaurant-scheme-dark [data-sheet-title] {
    color: #fff !important;
}
