/* Avaliações e fidelidade no cabeçalho. Estilos exclusivos do visual Moderno. */
.bocado-store-rating[hidden]{display:none!important}
.bocado-store-rating{border:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important;cursor:pointer;display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;padding:1px 0!important;min-width:0;white-space:nowrap;line-height:1.1}
.bocado-store-rating-star{color:#e6ac00;font-size:24px;line-height:1;display:inline-flex;align-items:center}.bocado-store-rating-star svg{width:25px;height:25px;fill:currentColor;stroke:currentColor}
/* Use the existing 3-D loyalty artwork for the storefront rating star. */
body.storefront[data-bocado-header="app"] > header .bocado-store-rating-star{
  display:inline-block!important;
  width:25px!important;height:25px!important;flex:0 0 25px!important;
  font-size:0!important;line-height:0!important;color:transparent!important;
  background:url('bocado-icon-star-3d.png') center / contain no-repeat!important;
}
body.storefront[data-bocado-header="app"] > header .bocado-store-rating-star svg{display:none!important}
.bocado-store-rating-value{font-size:17px;font-weight:800}
.bocado-store-rating small{font-size:11px;color:inherit;opacity:.8;font-weight:600}
body.storefront[data-bocado-header="app"] #customerpoints .bocado-loyalty-medal{display:block!important;width:36px!important;height:38px!important;max-width:none!important;object-fit:contain!important;flex:0 0 36px!important;vertical-align:middle;margin:0!important}

/* Estrutura: a coluna esquerda contém a logo e a nota em fluxo vertical.
   Isso remove a dependência de sobreposição/posicionamento absoluto. */
body.storefront[data-bocado-header="app"] > header{
  display:grid!important;
  grid-template-columns:minmax(126px,42%) minmax(0,1fr)!important;
  grid-template-rows:minmax(66px,auto) minmax(30px,auto) auto!important;
  grid-template-areas:"brand actions" "brand hello" "status status"!important;
  align-items:center!important;
  align-content:start!important;
  column-gap:8px!important;
  row-gap:2px!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}
body.storefront[data-bocado-header="app"] > header > .bocado-brand-rating-stack{
  grid-area:brand!important;
  grid-column:1!important;
  grid-row:1 / span 2!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:1px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
}
body.storefront[data-bocado-header="app"] > header > .bocado-brand-rating-stack > .brand{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:min(100%,104px)!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
}
body.storefront[data-bocado-header="app"] > header > .bocado-brand-rating-stack > .brand img{
  display:block!important;
  width:100%!important;
  max-width:104px!important;
  max-height:68px!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:left center!important;
}
body.storefront[data-bocado-header="app"] > header > .bocado-brand-rating-stack > .bocado-store-rating:not([hidden]){
  display:inline-flex!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  align-self:flex-start!important;
  justify-self:start!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  grid-area:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  z-index:auto!important;
}
body.storefront[data-bocado-header="app"] > header > nav{
  grid-area:actions!important;
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  justify-self:end!important;
  align-self:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  position:static!important;
  transform:none!important;
}
body.storefront[data-bocado-header="app"] > header > .bocado-app-welcome{
  display:block!important;
  grid-area:hello!important;
  grid-column:2!important;
  grid-row:2!important;
  justify-self:end!important;
  align-self:center!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:right!important;
  position:static!important;
  transform:none!important;
}
body.storefront[data-bocado-header="app"] > header > .bocado-app-welcome > strong{
  display:block!important;
  grid-area:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:clamp(14px,3.8vw,19px)!important;
  line-height:1.2!important;
}
body.storefront[data-bocado-header="app"] > header > .bocado-app-status-row{
  display:flex!important;
  grid-area:status!important;
  grid-column:1 / -1!important;
  grid-row:3!important;
  min-width:0!important;
  width:100%!important;
  position:static!important;
  transform:none!important;
}
body.storefront[data-bocado-header="app"] #customerpoints{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  height:auto!important;
  white-space:nowrap!important;
}
/* The medal replaces the old star in the points balance. */
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star,
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star::before,
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star::after,
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star svg,
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star img{
  display:none!important;
  content:none!important;
  background:none!important;
  width:0!important;
  height:0!important;
  flex:0 0 0!important;
  margin:0!important;
  padding:0!important;
}
body.storefront[data-bocado-header="app"] #customerpoints .bocado-loyalty-medal{order:-1!important}
body.storefront[data-bocado-header="app"] #customerpoints strong{font-size:13px!important;line-height:1.2!important}
body.storefront[data-bocado-header="app"] #customerpoints small{font-size:11px!important;line-height:1.2!important}

@media(max-width:370px){
  body.storefront[data-bocado-header="app"] > header{
    grid-template-columns:minmax(118px,43%) minmax(0,1fr)!important;
    column-gap:6px!important;
  }
  body.storefront[data-bocado-header="app"] > header > .bocado-brand-rating-stack > .brand,
  body.storefront[data-bocado-header="app"] > header > .bocado-brand-rating-stack > .brand img{max-width:96px!important}
  body.storefront[data-bocado-header="app"] .bocado-store-rating-star{width:22px!important;height:22px!important;flex-basis:22px!important}
  body.storefront[data-bocado-header="app"] .bocado-store-rating small{font-size:10px!important}
  body.storefront[data-bocado-header="app"] #customerpoints .bocado-loyalty-medal{width:32px!important;height:34px!important;flex-basis:32px!important}
}

/* Janela das avaliações. */
.bocado-reviews-dialog{
  box-sizing:border-box;position:fixed!important;left:50%!important;top:50%!important;
  right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;
  margin:0!important;border:0;border-radius:20px;max-width:680px;width:min(92vw,680px);
  max-height:84dvh;padding:0;background:#fff;color:#272121;
  box-shadow:0 14px 46px #0004;overflow:hidden
}
.bocado-reviews-dialog::backdrop{background:#1e131399}
.bocado-reviews-top{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;padding:19px 22px;border-bottom:1px solid #ece5e5}
.bocado-reviews-top h2{font-size:clamp(17px,4.5vw,21px);margin:0;color:#302222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bocado-reviews-close{flex:0 0 38px;border:0!important;background:#f6eded!important;color:#76202b!important;font-size:25px;width:38px;height:38px;padding:0;border-radius:50%;cursor:pointer}
.bocado-reviews-content{max-height:calc(84dvh - 78px);overflow-y:auto;padding:20px 22px 24px;overscroll-behavior:contain}
.bocado-reviews-summary{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:2px 9px;text-align:center;margin:0 0 18px;padding:4px 0 14px;border-bottom:1px solid #f0e8e8}
.bocado-reviews-summary strong{font-size:34px;line-height:1.1;color:#9b1624}
.bocado-reviews-summary-star{display:block;width:34px;height:34px;object-fit:contain}
.bocado-reviews-summary span{grid-column:1 / -1;color:#666;font-size:13px}
.bocado-reviews-card{border:1px solid #eadede;border-radius:14px;padding:15px 16px;margin:11px 0;background:#fff}
.bocado-reviews-card strong{font-size:14px}.bocado-reviews-card p{margin:8px 0;overflow-wrap:anywhere;line-height:1.45}.bocado-reviews-card small{color:#666}
.bocado-reviews-stars{color:#dba600;letter-spacing:1px;font-size:19px;margin-top:7px}.bocado-reviews-reply{background:#faf1f2;border-left:3px solid #a41a29;padding:9px}
@media(max-width:760px){
  .bocado-reviews-dialog{width:min(calc(100vw - 24px),640px);max-height:86dvh;border-radius:20px}
  .bocado-reviews-top{padding:16px 18px;gap:8px}
  .bocado-reviews-content{max-height:calc(86dvh - 70px);padding:17px 18px 22px}
  .bocado-reviews-summary strong{font-size:31px}
  .bocado-reviews-summary-star{width:31px;height:31px}
  .bocado-reviews-card{padding:14px}
}
