/* OWDEX Food QA8 — auditoria transversal da interface.
 * Complementa food-fluent-r7.css, cuja base foi derivada do Account R29 F2.
 * NÃO substitui regras de negócio nem layouts semânticos próprios (carrossel,
 * mapa, QR, capas, banner ou documentos). Só padroniza superfícies/controles.
 */
body.owdex-r7{
 --food-ui-surface:var(--r7-surface,#fff);
 --food-ui-canvas:var(--r7-bg,#f7f8fa);
 --food-ui-text:var(--r7-ink,#20242b);
 --food-ui-secondary:var(--r7-muted,#596476);
 --food-ui-stroke:var(--r7-line,#e3e7eb);
 --food-ui-primary:var(--r7-blue,#1764c0);
 --food-ui-primary-hover:var(--r7-blue-strong,#1253a5);
 --food-ui-tint:var(--r7-soft,#f0f5fc);
 --food-ui-radius:9px;
 --food-ui-radius-control:5px;
 --food-ui-shadow:var(--r7-shadow,0 1px 3px rgba(18,29,45,.045));
}
body.owdex-r7 #app {color:var(--food-ui-text);font-family:'Segoe UI Variable','Segoe UI',system-ui,-apple-system,sans-serif;line-height:1.5;min-width:0;}
body.owdex-r7 #app :where(.admin-main,.shop-intro,.marketplace-page,.food-account-r5,.account-area,.login-page,.courier-page,.food-landing,.food-landing-header) {min-width:0;}
body.owdex-r7 #app :where(.admin-main,.account-area,.food-account-r5,.shop-intro,.marketplace-page) :is(h1,h2,h3,h4) {font-family:inherit;letter-spacing:-.02em;font-weight:625;overflow-wrap:break-word;}
body.owdex-r7 #app :is(.admin-card,.ops-card,.metric,.report-card,.catalog-card,.feature-panel,.food-chat,.delivery-hero,.food-settings-section,.food-account-r5-panel,.food-account-r5-hero,.account-card,.account-panel,.table-wrap,.food-shared-public-card,.food-filter-sheet,.food-map-dialog,.food-address-picker,.courier-box,.courier-order,.tracking-card,.checkout-panel,.checkout-card,.food-campaign-card,.food-campaign-panel) {border-radius:var(--food-ui-radius)!important;border-color:var(--food-ui-stroke)!important;box-shadow:var(--food-ui-shadow)!important;min-width:0;}
body.owdex-r7 #app :is(.marketplace-grid,.admin-panels,.ops-grid,.profile-grid,.delivery-admin-grid,.messages-admin-grid,.metric-grid,.catalog-layout,.food-account-r5,.account-area) > * {min-width:0;}
body.owdex-r7 #app :where(.field,.form-field,.settings-field,.food-form-field,.account-field,.checkout-field) {min-width:0;max-width:100%;}
body.owdex-r7 #app :where(.field,.form-field,.settings-field,.food-form-field,.account-field,.checkout-field) :is(label,.field-label) {color:var(--food-ui-text);font-size:12px;font-weight:600;letter-spacing:0;line-height:1.45;}
body.owdex-r7 #app :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {min-width:0;max-width:100%;border-radius:var(--food-ui-radius-control)!important;border-color:#cbd4df!important;background:#fff!important;color:var(--food-ui-text)!important;box-shadow:none!important;font-family:'Segoe UI Variable','Segoe UI',system-ui,sans-serif!important;}
body.owdex-r7 #app :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea):where(:focus,:focus-visible) {border-color:var(--food-ui-primary)!important;outline:2px solid #1764c028!important;outline-offset:0!important;box-shadow:0 0 0 1px #1764c033!important;}
body.owdex-r7 #app :where(input,textarea,select)::placeholder {color:#7e8999;opacity:1;}
body.owdex-r7 #app :where(.btn,button.primary,button.secondary,a.btn,.food-register-cta,.food-r7-jump) {border-radius:var(--food-ui-radius-control)!important;box-shadow:none!important;transform:none!important;font-family:'Segoe UI Variable','Segoe UI',system-ui,sans-serif!important;font-weight:600!important;letter-spacing:0!important;}
body.owdex-r7 #app :where(.btn.primary,button.primary,a.btn.primary,.food-register-cta) {color:#fff!important;background:var(--food-ui-primary)!important;border-color:var(--food-ui-primary)!important;}
body.owdex-r7 #app :where(.btn.primary,button.primary,a.btn.primary,.food-register-cta):hover:not(:disabled) {background:var(--food-ui-primary-hover)!important;border-color:var(--food-ui-primary-hover)!important;}
body.owdex-r7 #app :where(.btn.light,.btn.ghost,button.secondary,a.btn.light,.food-r7-jump) {color:var(--food-ui-primary-hover)!important;background:#fff!important;border-color:#d0dae6!important;}
body.owdex-r7 #app :where(.btn.light,.btn.ghost,button.secondary,a.btn.light,.food-r7-jump):hover:not(:disabled) {background:var(--food-ui-tint)!important;}
body.owdex-r7 #app :is(button,a,[role="button"],input,select,textarea,summary):focus-visible {outline:2px solid var(--food-ui-primary)!important;outline-offset:3px!important;}
body.owdex-r7 #app :where(.btn,button,[role="button"]) :is(svg,img) {flex-shrink:0;}
/* Componentes legados com seletores de alta especificidade ainda alteravam
 * o raio (10px) e a tonalidade (azul #176fea) em login/conta/admin. O escopo
 * adicional traz de volta exatamente os valores do Fluent R7/Account. */
body.owdex-r7 #app :is(.login-page,.food-account-r5,.account-area,.admin-shell,.shop-intro,.marketplace-page) :is(.btn,button.primary,button.secondary,a.btn,.food-register-cta) {
 border-radius:var(--food-ui-radius-control)!important;
 box-shadow:none!important;transform:none!important;
}
body.owdex-r7 #app :is(.login-page,.food-account-r5,.account-area,.admin-shell,.shop-intro,.marketplace-page) :is(.btn.primary,button.primary,a.btn.primary,.food-register-cta) {
 color:#fff!important;background:var(--food-ui-primary)!important;border-color:var(--food-ui-primary)!important;
}
body.owdex-r7 #app :is(.login-page,.food-account-r5,.account-area,.admin-shell,.shop-intro,.marketplace-page) :is(.btn.primary,button.primary,a.btn.primary,.food-register-cta):hover:not(:disabled) {
 background:var(--food-ui-primary-hover)!important;border-color:var(--food-ui-primary-hover)!important;
}
body.owdex-r7 #app :is(.login-page,.food-account-r5,.account-area,.admin-shell,.shop-intro,.marketplace-page) :is(.btn.light,.btn.ghost,.btn.secondary) {
 border-color:#d0dae6!important;background:#fff!important;color:var(--food-ui-primary-hover)!important;
}
/* Filtros, abas, tabelas e navegação sem 'pílulas' arredondadas gigantes. */
body.owdex-r7 #app :where(.category-tabs button,.chat-tabs button,.account-tabs button,.food-market-category,.food-qa3-quick-chip,.food-qa3-carousel-arrow,.food-filter-trigger,.tab-button,.filter-chip) {border-radius:var(--food-ui-radius-control)!important;box-shadow:none!important;transform:none!important;}
body.owdex-r7 #app :where(.category-tabs button.active,.chat-tabs button.active,.account-tabs button.active,.filter-chip.active,.food-qa3-quick-chip.selected,.food-market-category.selected) {background:var(--food-ui-tint)!important;border-color:#a9c5e9!important;color:var(--food-ui-primary-hover)!important;}
body.owdex-r7 #app :where(.table-wrap,.table-responsive,.order-table-wrap,.ops-table-wrap) {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;}
body.owdex-r7 #app :where(.order-table,.admin-table,table.data-table) {border-collapse:collapse;max-width:100%;}
body.owdex-r7 #app :where(.order-table,.admin-table,table.data-table) :is(th,td) {border-color:var(--food-ui-stroke)!important;vertical-align:middle;}
body.owdex-r7 #app :where(.order-table,.admin-table,table.data-table) th {background:#f7f9fc!important;color:#4c5e73;font-size:12px;font-weight:650;}
body.owdex-r7 #app :where(.status-pill,.badge,.pill) {border-radius:var(--food-ui-radius-control)!important;letter-spacing:0;}
/* Modais, cart e popovers mantêm suas regras de posicionamento e estado. */
body.owdex-r7 #app :where(.dialog,.sidepanel,.cart-panel,.food-filter-sheet,.food-address-picker,.address-picker-dialog,.food-map-dialog,.food-quick-search-sheet) {border-color:var(--food-ui-stroke)!important;border-radius:var(--food-ui-radius)!important;}
body.owdex-r7 #app :where(.dialog,.cart-panel,.sidepanel,.address-picker-dialog) :is(.dialog-header,.modal-header,.panel-title,.drawer-header) {border-color:var(--food-ui-stroke)!important;}
/* Imagens: nunca estourar o card, e não destruir foto de produto/capa escolhida pelo restaurante. */
body.owdex-r7 #app :where(.marketplace-card,.product-card,.food-account-r5-panel,.admin-card,.food-landing-step,.food-landing-feature-grid) img {max-width:100%;}
body.owdex-r7 #app :where(.marketplace-card,.product-card,.food-account-r5-panel,.admin-card,.food-landing-step,.food-landing-feature-grid) {overflow-wrap:break-word;}
body.owdex-r7 #app .marketplace-page .marketplace-grid .marketplace-card.food-qa3-card {border-color:var(--food-ui-stroke)!important;border-radius:var(--food-ui-radius)!important;box-shadow:var(--food-ui-shadow)!important;transition:border-color .14s,box-shadow .14s!important;}
body.owdex-r7 #app .marketplace-page .marketplace-grid .marketplace-card.food-qa3-card:hover {border-color:#acc6e6!important;box-shadow:0 3px 10px #172e4b13!important;}
body.owdex-r7 #app .shop-intro .product-card {border-radius:var(--food-ui-radius)!important;}
body.owdex-r7 #app .food-qa3-quick-chip.selected {box-shadow:none!important;}
/* Cobertura específica de áreas que tinham heranças de bordas/sombras promocionais. */
body.owdex-r7 #app :where(.food-chat,.chat-messages,.chat-bubble,.chat-order-button,.courier-hero,.courier-order,.tracking-card,.food-quick-card) {border-radius:var(--food-ui-radius)!important;}
body.owdex-r7 #app :where(.chat-messages,.chat-ended,.food-quick-card) {background:#f7f9fc!important;border-color:var(--food-ui-stroke)!important;}
body.owdex-r7 #app :where(.food-settings-section,.report-card,.food-account-r5-panel,.admin-card) :is(h2,h3) {letter-spacing:-.018em;}
/* Não retira significado visual de erro/alerta/sucesso nem altera fotos, QR ou mapas. */
@media(max-width:900px){
 body.owdex-r7 #app :where(.admin-main,.account-area,.shop-intro,.marketplace-page) {max-width:100%;}
 body.owdex-r7 #app :where(.admin-panels,.ops-grid,.profile-grid,.delivery-admin-grid,.messages-admin-grid,.catalog-layout) {min-width:0;}
 body.owdex-r7 #app :where(.admin-top-right,.food-account-r5-panel .row) {flex-wrap:wrap;}
}
@media(max-width:680px){
 body.owdex-r7 #app :where(.admin-main,.food-account-r5,.account-area,.shop-intro,.marketplace-page) {min-width:0;}
 body.owdex-r7 #app :where(.admin-card,.ops-card,.food-chat,.food-account-r5-panel,.account-card,.checkout-card,.courier-box) {max-width:100%;}
 body.owdex-r7 #app :where(.btn,button.primary,button.secondary,a.btn) {max-width:100%;white-space:normal;}
 body.owdex-r7 #app :where(.order-row,.chat-order-button,.food-account-consent,.food-quick-card) {overflow-wrap:anywhere;}
 body.owdex-r7 #app :where(.table-wrap,.table-responsive,.order-table-wrap,.ops-table-wrap) {max-width:calc(100vw - 32px);}
}
@media(prefers-reduced-motion:reduce){
 body.owdex-r7 #app :where(.btn,.marketplace-card,.product-card,.food-landing-step,.food-landing-feature-grid>article) {transition:none!important;animation:none!important;}
}
