/* ===== Banners promocionais (cardápio e pré-visualização do painel) ===== */
.bn { --bn: #d7261e; --bn2: #761510; --bn3: #e66a63; position: relative; overflow: hidden; border-radius: 18px; color: #fff;
  min-height: 158px; display: flex; align-items: center; padding: 1.15rem 1.3rem; isolation: isolate;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bn-clica { cursor: pointer; }
.bn-clica:active { transform: scale(.995); }

/* estilos */
.bn-gradiente { background: radial-gradient(circle at 88% 18%, var(--bn3) 0, transparent 42%), linear-gradient(125deg, var(--bn) 0%, var(--bn2) 100%); }
.bn-escuro { background: radial-gradient(circle at 90% 50%, color-mix(in srgb, var(--bn) 55%, transparent) 0, transparent 55%), linear-gradient(125deg, #1a1d26, #0b0d12); }
.bn-claro { background: linear-gradient(125deg, color-mix(in srgb, var(--bn) 10%, #fff), color-mix(in srgb, var(--bn) 26%, #fff)); color: #1f2430; }

/* decoração: círculos e pontinhos */
.bn-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 78% 120%, rgba(255,255,255,.14) 0 34%, transparent 34.5%),
    radial-gradient(circle at 98% -10%, rgba(255,255,255,.10) 0 22%, transparent 22.5%),
    radial-gradient(rgba(255,255,255,.18) 1.4px, transparent 1.6px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%); mask-image: linear-gradient(100deg, transparent 35%, #000 75%); }
.bn-claro .bn-deco { background:
    radial-gradient(circle at 78% 120%, color-mix(in srgb, var(--bn) 18%, transparent) 0 34%, transparent 34.5%),
    radial-gradient(color-mix(in srgb, var(--bn) 30%, transparent) 1.4px, transparent 1.6px) 0 0 / 16px 16px; }

.bn-txt { position: relative; z-index: 1; max-width: 100%; }
.bn-com-ilu .bn-txt { max-width: 58%; }
@media (max-width: 600px) { .bn-com-ilu .bn-txt { max-width: 62%; } .bn-com-ilu:not(.bn-grande) .bn-ilu { width: 40%; right: -9%; } }
.bn-selo { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 800; padding: .22rem .65rem;
  border-radius: 30px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); margin-bottom: .55rem; }
.bn-escuro .bn-selo { background: var(--bn); border-color: transparent; }
.bn-claro .bn-selo { background: var(--bn); color: #fff; border-color: transparent; }
.bn-titulo { display: block; font-size: clamp(1.2rem, 4.6vw, 2.05rem); font-weight: 800; line-height: 1.08; letter-spacing: -.015em;
  text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.18); }
.bn-claro .bn-titulo { text-shadow: none; }
.bn-sub { display: block; margin-top: .4rem; font-size: clamp(.8rem, 2.4vw, .98rem); opacity: .92; line-height: 1.3; }
.bn-btn { display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem; background: #fff; color: var(--bn2); font-weight: 700;
  font-size: .9rem; border-radius: 30px; padding: .48rem 1.05rem; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.bn-escuro .bn-btn, .bn-claro .bn-btn { background: var(--bn); color: #fff; }

/* foto do produto ao lado */
.bn-ilu { position: absolute; right: -3%; top: 50%; width: min(40%, 250px); aspect-ratio: 1; transform: translateY(-50%) rotate(-8deg); z-index: 0; }
.bn-ilu img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 18px 40px rgba(0,0,0,.35); border: 5px solid rgba(255,255,255,.85); }

/* arte pronta enviada pela loja */
.bn-arte { padding: 0; min-height: 0; display: block; background: #111; }
.bn-arte img { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.bn-arte-btn { position: absolute; left: 1rem; bottom: .9rem; }

/* versão grande (janela ao entrar) */
.bn-grande { min-height: 300px; padding: 1.8rem 1.6rem; align-items: flex-end; border-radius: 22px; }
.bn-grande .bn-titulo { font-size: clamp(1.7rem, 7vw, 2.6rem); }
.bn-grande.bn-com-ilu { align-items: flex-start; padding-bottom: 46%; }
.bn-grande.bn-com-ilu .bn-txt { max-width: 100%; }
.bn-grande .bn-ilu { top: auto; bottom: -6%; right: 50%; transform: translateX(50%) rotate(-6deg); width: min(58%, 300px); }
.bn-grande.bn-arte img { aspect-ratio: 4 / 5; }

/* carrossel do topo do cardápio */
.bn-carrossel { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding: .2rem 0; }
.bn-carrossel::-webkit-scrollbar { display: none; }
.bn-slide { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 900px) { .bn-carrossel.bn-varios .bn-slide { flex-basis: calc(50% - .4rem); } }
.bn-pontos { display: flex; justify-content: center; gap: 6px; margin-top: .55rem; }
.bn-pontos button { width: 7px; height: 7px; border-radius: 10px; border: 0; padding: 0; background: var(--linha, #ccc); transition: width .25s, background .25s; }
.bn-pontos button.on { width: 20px; background: var(--cor, #d7261e); }

/* janela (popup) */
.bn-modal .modal-content { background: transparent; border: 0; box-shadow: none; }
.bn-modal .bn { box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.bn-fechar { position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.45); color: #fff; font-size: 1.1rem; display: grid; place-items: center; }
.bn-modal .bn-depois { display: block; margin: .8rem auto 0; color: #fff; background: none; border: 0; text-decoration: underline; opacity: .9; }

/* pré-visualização no painel */
.bn-previa-wrap .bn { min-height: 140px; }
.bn-previa-sticky { position: sticky; top: -16px; z-index: 5; background: var(--bs-body-bg, #fff); padding: .5rem 0; }

/* ===== janela em tela cheia (arte vertical) ===== */
.bn-tela-dialog { max-width: min(460px, calc(100vw - 20px)); margin: 10px auto; }
.bn-tela .modal-content { background: transparent; border: 0; }
.bn-tela-card { position: relative; overflow: hidden; border-radius: 24px; background: var(--cartao, #fff); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.bn-tela-img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 130px); object-fit: cover; object-position: top center; }
.bn-tela-rodape { padding: 12px; background: var(--cartao, #fff); }
.bn-tela-cta { width: 100%; border: 0; border-radius: 16px; padding: .95rem 1rem; font-size: 1.1rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--cor, #d7261e), color-mix(in srgb, var(--cor, #d7261e) 70%, #000));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cor, #d7261e) 40%, transparent); }
.bn-tela-cta:active { transform: scale(.98); }
.bn-tela-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(17,17,17,.78); color: #fff; font-size: 1.15rem; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.bn-fita { position: absolute; top: 26px; left: -46px; z-index: 3; width: 190px; transform: rotate(-45deg); text-align: center;
  background: #10b981; color: #fff; font-weight: 800; font-size: .95rem; padding: .35rem 0; box-shadow: 0 4px 12px rgba(0,0,0,.25);
  letter-spacing: .01em; }
.bn-modal.bn-tela .modal-backdrop, .modal-backdrop.show { --bs-backdrop-opacity: .65; }
@media (max-width: 480px) { .bn-tela-dialog { margin: 8px auto; } .bn-tela-img { max-height: calc(100dvh - 104px); } }

/* miniatura no painel */
.bn-vert-thumb { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.15); flex: 0 0 auto; }

/* =====================================================================
   Editor de banners (painel)
   ===================================================================== */
.ed-corpo { overflow-x: hidden; }
.ed-corpo img { max-width: 100%; }
.secao-tit { font-weight: 700; margin: .25rem 0 .75rem; display: flex; align-items: center; gap: .4rem; }

/* cartões de tipo */
.tipos-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 767px) { .tipos-grade { grid-template-columns: 1fr; } }
.tipo-card { display: flex; gap: 1rem; align-items: center; text-align: left; border: 2px solid var(--dlv-linha, #e3e5ea); background: var(--dlv-card, #fff);
  border-radius: 16px; padding: 1rem; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tipo-card:hover { border-color: var(--dlv-cor); box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.tc-txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tc-txt b { font-size: 1rem; }
.tc-txt small { color: var(--bs-secondary-color); line-height: 1.3; }
.tc-txt em { font-style: normal; font-size: .75rem; color: var(--dlv-cor); font-weight: 600; }
/* mini celular */
.mt-cel { position: relative; flex: 0 0 64px; height: 112px; border-radius: 12px; border: 3px solid #1f2430; background: #f4f5f8; overflow: hidden;
  display: flex; flex-direction: column; gap: 5px; padding: 0 0 6px; }
.mt-capa { height: 18px; background: #1f2430; }
.mt-l { height: 9px; margin: 0 6px; border-radius: 3px; background: #dfe2e8; }
.mt-l.curta { width: 60%; }
.mt-faixa { height: 26px; margin: 0 5px; border-radius: 5px; }
.mt-faixa.arte { background: linear-gradient(120deg, #f97316, #b91c1c); }
.mt-faixa.texto { background: linear-gradient(120deg, var(--dlv-cor, #d7261e), #3b0a08); display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 5px; }
.mt-faixa.texto i { display: block; height: 3px; width: 70%; background: #fff; border-radius: 2px; opacity: .9; }
.mt-faixa.texto i + i { width: 45%; opacity: .6; }
.mt-pop { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; flex-direction: column; justify-content: center; padding: 8px 5px; gap: 3px; }
.mt-pop-img { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(160deg, #fb923c, #c2410c); }
.mt-pop-btn { height: 12px; border-radius: 0 0 6px 6px; background: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 20px var(--dlv-cor, #d7261e); }

/* grade do editor: formulário + celular */
.ed-grade { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.75rem; align-items: start; }
.ed-previa { position: sticky; top: 0; }
@media (max-width: 991px) {
  .ed-grade { grid-template-columns: 1fr; }
  .ed-previa { position: static; order: -1; }
}
.ed-tipo-atual { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; padding: .55rem .8rem; border-radius: 10px; background: var(--dlv-col, #f1f2f5); margin-bottom: 1rem; }
.ed-tipo-atual span { font-weight: 700; }
.ed-tipo-atual small { color: var(--bs-secondary-color); }

/* área de soltar a imagem */
.soltar { display: block; cursor: pointer; border: 2px dashed var(--dlv-linha, #cfd3da); border-radius: 14px; padding: 1.1rem; transition: border-color .15s, background .15s; margin: 0; }
.soltar:hover, .soltar.sobre { border-color: var(--dlv-cor); background: color-mix(in srgb, var(--dlv-cor) 6%, transparent); }
.soltar-vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .6rem 0; }
.soltar-vazio i { font-size: 2.2rem; color: var(--dlv-cor); }
.soltar-vazio span { color: var(--bs-secondary-color); font-size: .9rem; }
.soltar-vazio em { font-style: normal; font-size: .78rem; color: var(--bs-secondary-color); margin-top: .25rem; }
.soltar-cheio { display: flex; gap: .9rem; align-items: center; }
.soltar-cheio img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: #eee; }
.soltar-cheio > span { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.soltar-cheio b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.soltar-cheio small { color: var(--bs-secondary-color); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip { border: 1.5px solid var(--dlv-linha, #d5d9e0); background: transparent; color: inherit; border-radius: 30px; padding: .28rem .8rem; font-size: .85rem; }
.chip.on { border-color: var(--dlv-cor); background: var(--dlv-cor); color: #fff; }
.chip-livre { width: 150px; border-radius: 30px; }
.cor-bola { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.15); padding: 0; }
.cor-bola.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bs-body-color); }
details.quando { border: 1px solid var(--dlv-linha, #e3e5ea); border-radius: 12px; padding: .6rem .85rem; }
details.quando summary { cursor: pointer; font-size: .9rem; }

/* celular da prévia: a tela tem o tamanho real (390×780) e é reduzida em escala */
.ed-celular { --k: .66; width: calc(390px * var(--k) + 16px); height: calc(780px * var(--k) + 16px); margin: 0 auto; padding: 8px;
  border-radius: 34px; background: #111; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
@media (max-width: 991px) { .ed-celular { --k: .5; } }
.ed-tela { width: 390px; height: 780px; transform: scale(var(--k)); transform-origin: 0 0; position: relative; overflow: hidden; border-radius: 40px;
  background: #f7f7f9; color: #1f2430; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ed-app { height: 100%; overflow: hidden; }
.ed-capa { display: flex; align-items: center; gap: 12px; color: #fff; padding: 46px 16px 18px; }
.ed-capa b { font-size: 19px; display: block; }
.ed-capa small { color: #c8ccd6; font-size: 12px; }
.ed-aberto { background: #1f9d55; color: #fff; border-radius: 20px; padding: 1px 8px; margin-right: 6px; }
.ed-logo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.ed-logo img { width: 100%; height: 100%; object-fit: cover; }
.ed-busca { margin: 12px 16px 0; background: #fff; border: 1px solid #eceef2; border-radius: 10px; padding: 9px 12px; color: #8a91a3; font-size: 14px; }
.ed-slot { padding: 14px 16px 0; }
.ed-slot:empty { display: none; }
.ed-sec { font-weight: 700; font-size: 17px; padding: 16px 16px 8px; }
.ed-item { display: flex; gap: 12px; align-items: center; margin: 0 16px 10px; background: #fff; border: 1px solid #eceef2; border-radius: 14px; padding: 12px; }
.ed-item span { flex: 1; min-width: 0; }
.ed-item b { display: block; font-size: 15px; }
.ed-item small { color: #6b7280; }
.ed-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.ed-pop { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; padding: 10px; }
.ed-pop .bn-tela-card { width: 100%; }
.ed-tela .bn-tela-img { max-height: 650px; width: 100%; height: auto; object-fit: cover; object-position: top center; }
.ed-sem-img { aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #9aa2b1;
  background: repeating-linear-gradient(45deg, #f1f2f5 0 12px, #e8eaef 12px 24px); font-size: 15px; }
.ed-sem-img i { font-size: 44px; }
.ed-sem-img.faixa { aspect-ratio: 12 / 5; border-radius: 18px; }
/* tamanhos de texto como num celular de verdade (o painel é mais largo que o celular) */
.ed-tela .bn-titulo { font-size: 19.2px; }
.ed-tela .bn-sub { font-size: 12.8px; }
.ed-tela .bn-com-ilu .bn-txt { max-width: 62%; }
.ed-tela .bn-com-ilu .bn-ilu { width: 40%; right: -9%; }

/* lista */
.bn-item.desligado { opacity: .55; }
.bn-item-previa { padding: .75rem .75rem 0; }
.bn-item-previa .bn { min-height: 130px; }
.bn-item-vert { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: #eee; }
.bn-item-vert img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mini-fita { position: absolute; top: 14px; left: -34px; width: 130px; transform: rotate(-45deg); text-align: center; background: #10b981; color: #fff; font-weight: 800; font-size: .72rem; padding: .2rem 0; }
.tc-txt .badge { align-self: flex-start; }
.ed-tela .bn-tela-cta { display: block; text-align: center; }
.chip-livre[hidden] { display: none; }

/* selo de preço automático nos banners de arte (v39) */
.bn-arte { position: relative; }
.bn-preco { position: absolute; left: 4%; bottom: 8%; z-index: 2; background: var(--bn, #d7261e); color: #fff; font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1rem, 4.4vw, 1.7rem); line-height: 1; padding: .42em .85em; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.35); pointer-events: none; }
.bn-grande .bn-preco { font-size: clamp(1.2rem, 3vw, 2rem); }
.bn-preco-alto { bottom: 24%; }
