/* Banners own their complete frame, including controls added by the UI classifier.
   Copy shares the photo frame; fitting the artwork never creates a second row. */
:root body .chicona-banner[data-banner-kind]{
  --banner-height:320px;
  position:relative!important;display:block!important;isolation:isolate;
  height:var(--banner-height)!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;background:#f4f0e9;
}
:root body .chicona-banner[data-banner-kind] .chicona-banner-media{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-height:0!important;overflow:hidden;
}
:root body .chicona-banner[data-banner-kind] .chicona-banner-media img{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;
  object-fit:cover!important;object-position:var(--banner-position-desktop,50% 50%)!important;
}
:root body .chicona-banner[data-banner-fit-desktop="contain"] .chicona-banner-media img{object-fit:contain!important;}
:root body .chicona-banner[data-banner-kind] .chicona-banner-content{
  position:absolute!important;inset:0!important;margin:auto!important;
  display:flex!important;flex-direction:column;align-items:center!important;justify-content:safe center!important;
  width:min(420px,calc(100% - 40px))!important;height:fit-content!important;min-height:0!important;
  max-height:calc(100% - 32px)!important;overflow:auto;box-sizing:border-box;
  padding:18px 22px!important;gap:8px;text-align:center!important;
  background:rgba(255,253,249,.88)!important;border:1px solid rgba(255,255,255,.72)!important;
  border-radius:20px!important;box-shadow:0 12px 32px rgba(38,34,26,.10)!important;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:3;pointer-events:auto!important;
}
:root body .chicona-banner[data-banner-kind] .chicona-banner-content>div:not(.chicona-banner-actions){
  width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;text-shadow:none!important;
}
:root body .chicona-banner[data-banner-kind] .hero-title{
  margin:0!important;font-size:clamp(1.5rem,2.5vw,2rem)!important;line-height:1.25!important;
  overflow-wrap:anywhere!important;word-break:normal!important;color:#172019!important;text-shadow:none!important;
}
:root body .chicona-banner[data-banner-kind] .hero-sub{
  margin:6px 0 0!important;font-size:.925rem!important;line-height:1.6!important;
  max-width:58ch;color:#5b625b!important;text-shadow:none!important;overflow-wrap:anywhere;
}
:root body .chicona-banner[data-banner-kind] .chicona-banner-actions{
  display:flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;
  grid-template-columns:none!important;width:auto!important;gap:10px!important;margin:16px 0 0!important;
}
:root body .chicona-banner[data-banner-kind] .chicona-banner-button{
  display:inline-flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:130px!important;min-height:46px!important;max-width:100%!important;
  padding:11px 22px!important;border-radius:13px!important;font-weight:750!important;
  line-height:1.4!important;white-space:normal!important;text-decoration:none;overflow-wrap:anywhere;
}
:root body .chicona-banner[data-banner-kind] .chicona-banner-button.primary{background:#252923!important;color:#fff!important;border:1px solid #252923!important;}
:root body .chicona-banner[data-banner-kind] .chicona-banner-button.secondary{background:rgba(255,255,255,.92)!important;color:#70552b!important;border:1px solid #ab873f!important;}
:root body .chicona-banner[data-banner-kind] .chicona-banner-button:focus-visible{outline:3px solid #ab873f;outline-offset:3px;}
:root body .chicona-banner[data-banner-kind] [hidden]{display:none!important;}
:root body .chicona-banner[data-banner-kind] .sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
:root body .chicona-banner[data-banner-kind] :is(.bc-grad,.hero-grad-full,.hero-overlay){display:none!important;}

/* A compact overlay leaves the full-width photo as the main element. */
body[data-page-name="index"] #homeBanner #bcRoot{height:clamp(440px,35vw,580px)!important;min-height:0!important;max-height:none!important;overflow:hidden!important;}
body[data-page-name="index"] #homeBanner #bcTrack{position:absolute!important;inset:0!important;display:block!important;height:100%!important;min-height:0!important;}
body[data-page-name="index"] #homeBanner #bcTrack>.chicona-banner{position:absolute!important;inset:0!important;display:block!important;height:100%!important;min-height:0!important;}
body[data-page-name="index"] #homeBanner .chicona-banner .bc-box{
  inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:40px clamp(56px,6vw,114px)!important;align-items:flex-start!important;
  justify-content:center!important;text-align:start!important;background:none!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible;
  -webkit-backdrop-filter:none!important;pointer-events:none!important;
}
body[data-page-name="index"] #homeBanner .chicona-banner .bc-box>div{
  width:min(420px,40vw)!important;max-width:420px!important;max-height:100%;overflow:auto;
  padding:20px 24px!important;background:rgba(255,253,249,.87)!important;
  border:1px solid rgba(255,255,255,.74)!important;border-radius:22px!important;
  box-shadow:0 18px 48px rgba(38,34,26,.13)!important;backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;pointer-events:auto;
}
body[data-page-name="index"] #homeBanner .chicona-banner .hero-title{font-size:clamp(1.875rem,2.8vw,2.75rem)!important;line-height:1.12!important;}
body[data-page-name="index"] #homeBanner .chicona-banner .hero-kicker{margin:0 0 10px!important;font-size:.82rem!important;}
body[data-page-name="index"] #homeBanner .chicona-banner .hero-actions{justify-content:flex-start!important;}

/* The merchant logo is independent from its optional promotional text. */
body[data-page="vendor"] #venHero .chicona-banner{--store-banner-logo-size:76px;}
body[data-page="vendor"] #venHero .chicona-banner .hero-content{inset:auto 0 18px!important;width:min(520px,calc(100% - 32px))!important;min-height:0!important;gap:8px!important;padding:16px 20px!important;}
body[data-page="vendor"] #venHero .chicona-banner .hero-store-logo{width:var(--store-banner-logo-size)!important;height:var(--store-banner-logo-size)!important;min-width:0!important;flex-shrink:0;box-sizing:border-box;box-shadow:0 8px 24px #17201920!important;border-radius:20px!important;padding:6px!important;}
body[data-page="vendor"] #venHero .chicona-banner .hero-textbox{width:100%!important;max-width:100%!important;flex:0 0 auto!important;}
body[data-page="vendor"] #venHero .chicona-banner .hero-title{font-size:1.625rem!important;}
body[data-page="vendor"] #venHero .chicona-banner .chicona-banner-actions{margin-top:12px!important;}
/* A logo by itself needs a small identity tile, not an empty text card. */
body[data-page="vendor"] #venHero .chicona-banner[data-banner-has-promotion="false"]{--store-banner-logo-size:104px;}
body[data-page="vendor"] #venHero .chicona-banner[data-banner-has-promotion="false"] .hero-content{width:max-content!important;max-width:calc(100% - 32px)!important;padding:0!important;gap:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible;}
body[data-page="vendor"] #venHero .chicona-banner[data-banner-has-promotion="false"] .hero-store-logo{border:4px solid #fff!important;border-radius:24px!important;padding:8px!important;box-shadow:0 8px 24px #17201930!important;}
body[data-page="vendor"] #venHero .chicona-banner[data-banner-has-promotion="false"] .hero-content:has(>.hero-store-logo[hidden]){display:none!important;}

:root body .chicona-banner-preview[data-banner-kind]{--banner-height:300px;width:100%;box-shadow:0 8px 28px #1720190d;border:1px solid #ddd8ce;border-radius:16px;}
:root body .chicona-banner-preview[data-banner-kind] .hero-title{font-size:1.5rem!important;}
:root body .chicona-banner-preview[data-banner-kind] .hero-sub{font-size:.9rem!important;}
:root body .chicona-banner-preview[data-banner-kind] .chicona-banner-content{padding:18px!important;}
:root body .chicona-banner[data-banner-device="mobile"]{--banner-height:260px;}
:root body .chicona-banner[data-banner-device="mobile"] .chicona-banner-media img{object-fit:cover!important;object-position:var(--banner-position-mobile,50% 50%)!important;}
:root body .chicona-banner[data-banner-device="mobile"][data-banner-fit-mobile="contain"] .chicona-banner-media img{object-fit:contain!important;}

:root body .chicona-banner[data-banner-kind][data-banner-device="mobile"] .chicona-banner-content{width:calc(100% - 28px)!important;padding:16px!important;border-radius:20px!important;}
:root body .chicona-banner[data-banner-kind][data-banner-device="mobile"] .hero-title{font-size:1.5rem!important;}
:root body .chicona-banner[data-banner-kind][data-banner-device="mobile"] .hero-sub{font-size:.9rem!important;line-height:1.55!important;}
:root body .chicona-banner[data-banner-kind][data-banner-device="mobile"] .chicona-banner-actions{width:100%!important;gap:8px!important;margin-top:12px!important;}
:root body .chicona-banner[data-banner-kind][data-banner-device="mobile"] .chicona-banner-button{flex:1 1 120px!important;min-width:0!important;min-height:44px!important;padding:10px 12px!important;font-size:.9rem!important;}

@media(max-width:767px){
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"]){--banner-height:260px;}
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"]) .chicona-banner-media img{object-fit:cover!important;object-position:var(--banner-position-mobile,50% 50%)!important;}
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"])[data-banner-fit-mobile="contain"] .chicona-banner-media img{object-fit:contain!important;}
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"]) .chicona-banner-content{width:calc(100% - 28px)!important;padding:16px!important;border-radius:20px!important;}
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"]) .hero-title{font-size:1.5rem!important;}
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"]) .hero-sub{font-size:.9rem!important;line-height:1.55!important;}
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"]) .chicona-banner-actions{width:100%!important;gap:8px!important;margin-top:12px!important;}
  :root body .chicona-banner[data-banner-kind]:not([data-banner-device="desktop"]) .chicona-banner-button{flex:1 1 120px!important;min-width:0!important;min-height:44px!important;padding:10px 12px!important;font-size:.9rem!important;}
  body[data-page-name="index"] #homeBanner #bcRoot{height:460px!important;}
  body[data-page-name="index"] #homeBanner .chicona-banner .bc-box{width:100%!important;padding:20px 16px 60px!important;align-items:center!important;justify-content:flex-end!important;text-align:center!important;}
  body[data-page-name="index"] #homeBanner .chicona-banner .bc-box>div{width:100%!important;max-width:420px!important;max-height:100%;padding:16px 18px!important;border-radius:24px!important;}
  body[data-page-name="index"] #homeBanner .chicona-banner .hero-title{font-size:clamp(1.5rem,6.8vw,1.75rem)!important;line-height:1.14!important;}
  body[data-page-name="index"] #homeBanner .chicona-banner .hero-kicker{margin-bottom:10px!important;font-size:.76rem!important;}
  body[data-page-name="index"] #homeBanner .chicona-banner .hero-actions{justify-content:center!important;}
  body[data-page="vendor"] #venHero .chicona-banner{--store-banner-logo-size:64px;}
  body[data-page="vendor"] #venHero .chicona-banner[data-banner-has-promotion="false"]{--store-banner-logo-size:88px;}
  body[data-page="vendor"] #venHero .chicona-banner .hero-content{inset:auto 0 14px!important;padding:12px 14px!important;gap:6px!important;}
  body[data-page="vendor"] #venHero .chicona-banner .hero-title{font-size:1.375rem!important;}
  body[data-page="vendor"] #venHero .chicona-banner .hero-sub{font-size:.8125rem!important;line-height:1.45!important;}
  body[data-page="vendor"] #venHero .chicona-banner .chicona-banner-actions{margin-top:8px!important;}
}

/* Text-only fallbacks collapse naturally rather than reserving empty photo space. */
:root body .chicona-banner[data-banner-no-image="true"]{height:auto!important;}
:root body .chicona-banner[data-banner-no-image="true"] .chicona-banner-content{position:relative!important;inset:auto!important;margin:20px auto!important;max-height:none!important;}
body[data-page="vendor"] #venHero .chicona-banner[data-banner-no-image="true"] .hero-content{inset:auto!important;margin:16px auto!important;}
:root body .chicona-banner[data-banner-kind][data-banner-visible-content="false"] .chicona-banner-content,
body[data-page-name="index"] #homeBanner .chicona-banner[data-banner-visible-content="false"] .bc-box{width:0!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;}
body[data-page-name="index"] #homeBanner .chicona-banner[data-banner-visible-content="false"] .bc-box>div{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;}
@media(prefers-reduced-motion:reduce){.chicona-banner{transition:none!important;}}
