/* Every customer rule is gated by the Banner choice; Clean uses existing styles. */
body.storefront[data-bocado-header="banner"]{position:relative}
body.storefront[data-bocado-header="banner"]>header{display:flex;flex-wrap:nowrap;align-items:center;grid-template-columns:none;position:absolute;top:0;left:50%;transform:translateX(-50%);z-index:30;width:var(--bocado-banner-width,100%);min-width:min(100%,360px);max-width:calc(1320px * var(--bocado-banner-scale,1));margin:0;justify-content:flex-end;padding:10px 18px;background:transparent!important;border:0;box-sizing:border-box}
body.storefront[data-bocado-header="banner"]>header nav{grid-area:auto;flex:0 1 auto;margin-left:auto;justify-content:flex-end;flex-wrap:nowrap;max-width:calc(100% - 120px)}
body.storefront[data-bocado-header="banner"]>header>:is(.brand,.header-store-info){display:none}
body.storefront[data-bocado-header="banner"] .bocado-banner-header{box-sizing:border-box;width:var(--bocado-banner-width,100%);min-width:min(100%,360px);max-width:calc(1320px * var(--bocado-banner-scale,1));margin:0 auto 20px;background:#fff;border-radius:0 0 18px 18px;overflow:hidden;box-shadow:0 4px 18px #30202008}
body.storefront[data-bocado-header="banner"] .bocado-header-photo{position:relative;height:var(--bocado-banner-height,220px);border-radius:0 0 20px 20px;overflow:hidden;background:#252321}
body.storefront[data-bocado-header="banner"] .bocado-header-background{display:block;width:100%;height:100%;object-fit:cover}
body.storefront[data-bocado-header="banner"] .bocado-header-status{position:absolute;left:18px;top:16px;border-radius:9px;background:#fff;padding:6px 12px;color:#a82127;font-size:14px;font-weight:700;box-shadow:0 2px 10px #0002}
body.storefront[data-bocado-header="banner"] .bocado-header-status.is-open{color:#287744}
body.storefront[data-bocado-header="banner"] .bocado-header-detail{text-align:center;position:relative;padding:0 24px 20px}
body.storefront[data-bocado-header="banner"] .bocado-header-logo{width:105px;height:100px;margin:-48px auto 14px;position:relative;display:flex;align-items:center;justify-content:center;padding:8px;background:#fff;border-radius:24px;box-shadow:0 4px 16px #0002}
body.storefront[data-bocado-header="banner"] .bocado-header-logo img{width:100%;height:100%;object-fit:contain}
body.storefront[data-bocado-header="banner"] .bocado-header-detail h1{font:800 28px/1.25 'DM Sans',Arial,sans-serif;letter-spacing:-.6px;margin:0 0 8px;overflow-wrap:anywhere}
body.storefront[data-bocado-header="banner"] .bocado-header-location{font-size:14px;color:#77696a;margin:4px 0 12px;overflow-wrap:anywhere}
body.storefront[data-bocado-header="banner"] .bocado-header-times{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:10px 0}
body.storefront[data-bocado-header="banner"] .bocado-header-times>span{display:inline-flex;align-items:center;gap:8px;border:1px solid #e9e3dc;padding:8px 12px;border-radius:14px;font-size:14px;font-weight:650;white-space:nowrap}
body.storefront[data-bocado-header="banner"] :is(.bocado-header-times,.bocado-header-info) svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body.storefront[data-bocado-header="banner"] .bocado-header-times svg{color:var(--red)}
body.storefront[data-bocado-header="banner"] .bocado-header-hours{font-size:13px;color:#77696a;margin:8px 0 14px;overflow-wrap:anywhere}
body.storefront[data-bocado-header="banner"] .bocado-header-info{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;color:#342520;background:#f4f2ef;border:1px solid #ddd7d0;border-radius:10px;font-weight:500;padding:10px 14px;min-height:44px}
body.storefront[data-bocado-header="banner"] .bocado-header-dialog{width:min(520px,calc(100% - 24px))}
body.storefront[data-bocado-header="banner"] .bocado-header-dialog dt{font-weight:700;font-size:14px;margin-top:14px}
body.storefront[data-bocado-header="banner"] .bocado-header-dialog dd{margin:4px 0;font-size:14px;overflow-wrap:anywhere}
body.storefront[data-bocado-header="banner"]>main.shell{padding-top:0}
@media(max-width:650px){
 body.storefront[data-bocado-header="banner"]>header{padding:8px 12px}
 body.storefront[data-bocado-header="banner"] .bocado-header-photo{height:var(--bocado-banner-mobile-height,155px);border-radius:0 0 16px 16px}
 body.storefront[data-bocado-header="banner"] .bocado-header-logo{width:82px;height:78px;margin-top:-38px;border-radius:20px}
 body.storefront[data-bocado-header="banner"] .bocado-header-detail{padding:0 16px 16px}
 body.storefront[data-bocado-header="banner"] .bocado-header-detail h1{font-size:23px}
 body.storefront[data-bocado-header="banner"] .bocado-header-location{font-size:12px}
 body.storefront[data-bocado-header="banner"] .bocado-header-times{gap:6px}
 body.storefront[data-bocado-header="banner"] .bocado-header-times>span{font-size:12px;padding:8px;gap:5px}
 body.storefront[data-bocado-header="banner"] .bocado-header-times svg{width:19px;height:19px}
 body.storefront[data-bocado-header="banner"] .bocado-header-status{left:12px;top:12px;font-size:12px}
}
/* Administration stays inside the existing personalization form. */
#bocado-header-settings{padding:18px 0;margin-bottom:22px;border-bottom:1px solid #e9e3dc}
#bocado-header-settings h3{margin:8px 0 14px}
#bocado-header-settings :is(.bocado-design-choices,.bocado-header-media,.bocado-header-position,.bocado-header-deadlines,.bocado-header-dimensions){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#bocado-header-settings .bocado-design-choices>label{border:1px solid #ddd7d0;border-radius:12px;padding:12px;margin:0;background:#fff;cursor:pointer;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#bocado-header-settings .bocado-design-choices>label:has(input:checked){border-color:#ae2024;box-shadow:0 0 0 1px #ae2024}
#bocado-header-settings .bocado-design-choices small{flex-basis:100%;color:#77696a}
#bocado-header-settings .bocado-design-banner{flex:1;min-height:60px;display:grid;place-items:center;background:#242220 url('store-banner-v182.png') center/cover;border-radius:8px;color:#fff;text-shadow:0 1px 4px #000;font-weight:700}
#bocado-header-settings .bocado-design-clean{flex:1;min-height:60px;display:grid;place-items:center;border:1px solid #eee;background:#faf8f5;border-radius:8px;font-weight:700}
#bocado-header-settings .bocado-header-media{margin:16px 0}
#bocado-header-settings [data-header-preview]{display:block;width:100%;height:100px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:9px;margin-bottom:8px}
#bocado-header-settings [data-header-preview="background"]{object-fit:cover}
#bocado-header-settings input[type="file"]{font-size:12px;padding:8px;max-width:100%}
#bocado-header-settings input[type="range"]{padding:0;accent-color:#ae2024}
#bocado-header-settings .bocado-header-admin-preview{position:relative;margin:8px 0 40px;border-radius:12px}
#bocado-header-settings [data-header-cover]{display:block;width:100%;height:155px;object-fit:cover;border-radius:12px}
#bocado-header-settings [data-header-cover-logo]{position:absolute;bottom:-28px;left:calc(50% - 38px);width:76px;height:70px;object-fit:contain;padding:6px;background:white;border-radius:15px;border:1px solid #eee;box-shadow:0 3px 10px #0001}
#bocado-header-settings .bocado-header-deadlines>div{border:1px solid #e9e3dc;border-radius:12px;padding:12px}
#bocado-header-settings h4{margin:0 0 8px}
#bocado-header-settings .bocado-header-upload-status{font-size:13px;color:#77696a}
@media(max-width:650px){#bocado-header-settings :is(.bocado-header-media,.bocado-header-position,.bocado-header-deadlines,.bocado-header-dimensions){grid-template-columns:1fr}}

/* Previews use the real desktop and mobile heights, without resizing button styles. */
#bocado-header-settings .bocado-header-previews{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;margin:16px 0}
#bocado-header-settings .bocado-header-previews>div{min-width:0}
#bocado-header-settings .bocado-header-admin-preview{margin-left:auto;margin-right:auto;min-width:min(100%,360px)}
@media(max-width:650px){#bocado-header-settings .bocado-header-previews{grid-template-columns:1fr}}

/* Controle de cor para o visual Moderno no painel administrativo. */
#bocado-header-settings [data-app-color-settings]{margin:16px 0;padding:16px;border:1px solid #e9e3dc;border-radius:12px;background:#fff}
#bocado-header-settings [data-app-color-settings][hidden]{display:none!important}
#bocado-header-settings .bocado-app-color-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}
#bocado-header-settings .bocado-app-color-controls input[type=color]{height:42px;width:65px;padding:3px;cursor:pointer;border:1px solid #ded4d2;border-radius:10px}
#bocado-header-settings .bocado-app-color-hex{font:700 14px/1.4 monospace;color:#3b2a2a}
#bocado-header-settings .bocado-app-color-preview{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:12px 15px;min-height:64px;border:1px solid #ddd7d0;border-radius:12px;margin-bottom:8px}
#bocado-header-settings .bocado-app-color-preview span{font-size:14px}

/* V5: controle isolado do banner do cardapio Moderno. */
#bocado-header-settings [data-app-hero-settings]{margin:16px 0;padding:16px;border:1px solid #e9e3dc;border-radius:12px;background:#fff}
#bocado-header-settings [data-app-hero-settings][hidden]{display:none!important}
#bocado-header-settings .bocado-app-hero-admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:14px 0}
#bocado-header-settings .bocado-app-hero-admin-fields label{display:grid;gap:5px;min-width:0}
#bocado-header-settings .bocado-app-hero-admin-fields .outline{align-self:end;min-height:42px}
#bocado-header-settings .bocado-app-hero-admin-preview{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:2px;width:100%;aspect-ratio:8 / 3;max-height:260px;
  box-sizing:border-box;border-radius:14px;padding:5% 6%;overflow:hidden;
  color:#fff;background:#222 url('store-banner-v182.png') center/cover no-repeat;
  font-size:clamp(18px,4.4vw,30px);line-height:1.12;font-weight:800;
  text-shadow:0 2px 5px #0009;
}
#bocado-header-settings .bocado-app-hero-admin-preview>*{max-width:55%;overflow-wrap:anywhere}
#bocado-header-settings .bocado-app-hero-admin-preview em{color:#ffe440}
@media(max-width:650px){
  #bocado-header-settings .bocado-app-hero-admin-fields{grid-template-columns:1fr}
  #bocado-header-settings .bocado-app-hero-admin-preview{font-size:clamp(16px,4.7vw,24px)}
}
