/* Personalização v168: nomes permitidos pelo servidor. */
:root{--bocado-custom-accent:#ae2024}
body[data-bocado-theme="wine"]{--bocado-custom-accent:#8c4248}
body[data-bocado-theme="terracotta"]{--bocado-custom-accent:#a65a43}
body[data-bocado-theme="blue"]{--bocado-custom-accent:#315c68}
body[data-bocado-theme="green"]{--bocado-custom-accent:#3d6654}
body[data-bocado-theme="classic"]{--bocado-custom-accent:#ae2024}
/* No tema classic não sobrescrever as regras originais de botões do cliente. */
body[data-bocado-theme]:not([data-bocado-theme="classic"]){--red:var(--bocado-custom-accent)}
body[data-bocado-theme]:not([data-bocado-theme="classic"]) input[type="checkbox"],
body[data-bocado-theme]:not([data-bocado-theme="classic"]) input[type="radio"]{accent-color:var(--bocado-custom-accent)}
/* Personalizar apenas os botões selecionados de categorias e preços, nunca todos os botões. */
body[data-bocado-theme]:not([data-bocado-theme="classic"]) .categories button.active{background-color:var(--bocado-custom-accent);border-color:var(--bocado-custom-accent);color:#fff}
body[data-bocado-theme]:not([data-bocado-theme="classic"]) .price{color:var(--bocado-custom-accent)}
body[data-bocado-images="contain"] #products .card img{object-fit:contain!important;background:#f7f7f7}
body[data-bocado-images="cover"] #products .card img{object-fit:cover!important}

/* v174: theme accents win over legacy fixed colors; status colors remain independent. */
body[data-bocado-theme="classic"]{--bocado-custom-soft:#fff0ec}
body[data-bocado-theme="wine"]{--bocado-custom-soft:#f4eded}
body[data-bocado-theme="terracotta"]{--bocado-custom-soft:#f6eeeb}
body[data-bocado-theme="blue"]{--bocado-custom-soft:#eaf0f1}
body[data-bocado-theme="green"]{--bocado-custom-soft:#ecf0ee}
body[data-bocado-theme]{--red:var(--bocado-custom-accent)!important;--v156-red:var(--bocado-custom-accent)!important}
@media screen {
body[data-bocado-theme]:has(.pdv-shell) .pdv-catalog .price{color:var(--bocado-custom-accent)!important}
body[data-bocado-theme]:not([data-bocado-theme="classic"]) #categories button.active{background:var(--bocado-custom-soft)!important;color:var(--bocado-custom-accent)!important;border-color:var(--bocado-custom-accent)!important}
body[data-bocado-theme]:not([data-bocado-theme="classic"]) #categories .active .category-drawing{background:var(--bocado-custom-accent)!important;color:#fff!important}
body:is(.storefront,:has(.pdv-shell))[data-bocado-theme]:not([data-bocado-theme="classic"]) .price{color:var(--bocado-custom-accent)!important}
body:is(.storefront,:has(.pdv-shell))[data-bocado-theme]:not([data-bocado-theme="classic"]) .cardfoot button{background:var(--bocado-custom-soft)!important;color:var(--bocado-custom-accent)!important;border-color:var(--bocado-custom-accent)!important}
body:is(.storefront,:has(.pdv-shell))[data-bocado-theme]:not([data-bocado-theme="classic"]) .cardfoot button:hover{background:var(--bocado-custom-soft)!important;filter:brightness(.96)}
body.storefront[data-bocado-theme]:not([data-bocado-theme="classic"]) :is(.start-order,#checkout,#mobilecheckout){background:var(--bocado-custom-accent)!important;color:#fff!important}
body[data-bocado-theme]:not([data-bocado-theme="classic"]) :is(#modes,#paymentchoices,#pdvpaymentoptions) label:has(input:checked){background:var(--bocado-custom-soft)!important;border-color:var(--bocado-custom-accent)!important;color:#342520!important}
body[data-bocado-theme]:has(.pdv-shell) :is(#pdvopenclientsearch,#pdvrecentorders){background:var(--bocado-custom-accent)!important;border-color:var(--bocado-custom-accent)!important;color:#fff!important}
body[data-bocado-theme]:has(.pdv-shell) :is(.pdv-customer>h2,.pdv-menu-search h2,#cart .carttitle h2,.pdv-payment>h2):before{background:var(--bocado-custom-accent)!important}
body[data-bocado-theme]:has(.pdv-shell) :is(#pdvclearcustomer,#addpayment,.quantity button){color:var(--bocado-custom-accent)!important}
body[data-bocado-theme]:not([data-bocado-theme="classic"]) :is(input,select,textarea):focus-visible{outline-color:var(--bocado-custom-accent)!important}
}

/* Optional independent storefront colors, validated by the server as hex values. */
body.storefront[data-bocado-custom-design="true"] header{background:var(--design-logo-background)!important}
body.storefront[data-bocado-custom-design="true"] header :is(button,.textbutton,.customer-menu summary){color:var(--design-header)!important}
body.storefront[data-bocado-custom-design="true"] #products .categorytitle{background:var(--design-group-background)!important;color:var(--design-group-text)!important}
body.storefront[data-bocado-custom-design="true"] :is(.intro,#announcement){background:var(--design-welcome-background)!important;color:var(--design-welcome-text)!important}
body.storefront[data-bocado-custom-design="true"] .intro :is(h1,p,strong,.intro-guide){color:var(--design-welcome-text)!important}
