/* ============================================================================
   OrderCity — Personalize a loja › Template Menu
   Escolha do modelo do cardapio + identidade visual + blocos do template,
   com previa ao vivo do celular do cliente. Tudo com os tokens do tema.
   ============================================================================ */
.tpl-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:14px; }
.tpl-title { margin:0; font-size:1.28rem; letter-spacing:-.01em; color:var(--dark,#14312B); display:flex; align-items:center; gap:9px; }
.tpl-title svg { width:21px; height:21px; color:var(--primary,#0E7A66); flex:none; }
.tpl-sub { margin:5px 0 0; font-size:.86rem; line-height:1.5; color:var(--gray,#6B7A76); max-width:62ch; }
.tpl-head-actions { display:flex; gap:9px; flex-wrap:wrap; }

.tpl-btn { display:inline-flex; align-items:center; gap:7px; border:1px solid transparent; border-radius:11px;
  padding:9px 15px; font-size:.855rem; font-weight:700; font-family:inherit; cursor:pointer; text-decoration:none;
  transition:transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease; white-space:nowrap; }
.tpl-btn svg { width:16px; height:16px; flex:none; }
.tpl-btn:active { transform:translateY(1px); }
.tpl-btn.is-primary { background:var(--primary,#0E7A66); color:#fff; box-shadow:0 8px 20px -10px rgba(14,122,102,.75); }
.tpl-btn.is-primary:hover { background:var(--primary-strong,#0B6154); }
.tpl-btn.is-primary[disabled] { opacity:.55; cursor:default; box-shadow:none; }
.tpl-btn.is-ghost { background:var(--surface,#fff); border-color:var(--border,#E4E5D9); color:var(--dark,#14312B); }
.tpl-btn.is-ghost:hover { border-color:var(--primary,#0E7A66); color:var(--primary,#0E7A66); }
.tpl-btn.is-quiet { background:transparent; border-color:transparent; color:var(--gray,#6B7A76); padding:7px 10px; }
.tpl-btn.is-quiet:hover { color:var(--dark,#14312B); background:var(--surface,#fff); }
.tpl-btn.is-danger { background:#fff; border-color:#F3D2CC; color:#B4392A; }
.tpl-btn.is-danger:hover { background:#FDF2F0; }

.tpl-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.tpl-chip { display:inline-flex; align-items:center; gap:7px; background:var(--primary-soft,#E7F2ED); color:var(--primary,#0E7A66);
  border-radius:999px; padding:5px 12px; font-size:.775rem; font-weight:700; }
.tpl-chip svg { width:13px; height:13px; }

.tpl-layout { display:grid; grid-template-columns:minmax(0,1fr) 356px; gap:20px; align-items:start; }
.tpl-col { display:flex; flex-direction:column; gap:16px; min-width:0; }

/* ------------------------------------------------------------------ cartoes */
.tpl-card { background:var(--surface,#fff); border:1px solid var(--border,#E4E5D9); border-radius:16px; padding:18px 20px 20px;
  box-shadow:0 1px 2px rgba(16,24,40,.04); }
.tpl-card-head { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.tpl-card-head h4 { margin:0; font-size:1rem; color:var(--dark,#14312B); letter-spacing:-.005em; }
.tpl-card-head p { margin:3px 0 0; font-size:.8rem; color:var(--gray,#6B7A76); line-height:1.45; }
.tpl-step { width:26px; height:26px; flex:none; border-radius:9px; background:var(--primary-soft,#E7F2ED); color:var(--primary,#0E7A66);
  font-size:.82rem; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.tpl-badge { margin-left:auto; flex:none; font-size:.68rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  padding:4px 9px; border-radius:999px; background:#EDF6F2; color:#1B7A5C; border:1px solid #CFE7DC; }
.tpl-badge.is-off { background:#F3F4F2; color:#6B7A76; border-color:#E3E5DF; }

/* template ativo */
.tpl-active { display:flex; gap:14px; align-items:center; padding:12px; border:1px solid var(--border,#E4E5D9);
  border-radius:13px; background:linear-gradient(180deg,#FBFCFA,#FFFFFF); }
.tpl-active-thumb { width:96px; height:68px; flex:none; border-radius:10px; overflow:hidden; position:relative;
  background:linear-gradient(135deg,#173B35,#2C6E5C); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
.tpl-active-thumb::after { content:''; position:absolute; inset:auto 8px 8px 8px; height:7px; border-radius:4px; background:rgba(255,255,255,.55); }
.tpl-active-thumb span { position:absolute; top:10px; left:10px; width:34%; height:6px; border-radius:4px; background:rgba(255,255,255,.8); }
.tpl-active-info { min-width:0; }
.tpl-active-info strong { display:block; font-size:.95rem; color:var(--dark,#14312B); }
.tpl-active-info p { margin:3px 0 7px; font-size:.79rem; color:var(--gray,#6B7A76); line-height:1.45; }
.tpl-pills { display:flex; gap:6px; flex-wrap:wrap; }
.tpl-pill { font-size:.7rem; font-weight:700; color:var(--dark,#14312B); background:#F2F4F1; border-radius:999px; padding:3px 9px; }
.tpl-card-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:13px; }
.tpl-hint { font-size:.755rem; color:var(--gray,#6B7A76); }

/* --------------------------------------------------------------- identidade */
.tpl-ident { display:grid; grid-template-columns:1.35fr .9fr; gap:14px; }
.tpl-upload { border:1px dashed var(--border,#DADCD2); border-radius:13px; padding:10px; background:#FCFDFB; }
.tpl-upload.is-logo { display:flex; flex-direction:column; }
.tpl-upload-label { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.tpl-upload-label b { font-size:.8rem; color:var(--dark,#14312B); }
.tpl-upload-label span { font-size:.7rem; color:var(--gray,#6B7A76); }
.tpl-thumb { position:relative; border-radius:9px; overflow:hidden; background:#EEF1EC; display:flex; align-items:center; justify-content:center; }
.tpl-thumb.is-cover { height:96px; }
.tpl-thumb.is-logo { height:82px; }
.tpl-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.tpl-thumb.is-logo img { object-fit:contain; padding:6px; background:#fff; }
.tpl-thumb .tpl-empty { font-size:.72rem; color:#96A29D; text-align:center; padding:8px; line-height:1.4; }
.tpl-thumb-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.tpl-upload input[type=file] { display:none; }
.tpl-help { font-size:.72rem; color:var(--gray,#6B7A76); margin:7px 0 0; line-height:1.45; }

.tpl-row { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:15px 0; border-top:1px solid var(--ocux-hairline,#EFF0E6); }
.tpl-row:first-of-type { border-top:0; padding-top:2px; }
.tpl-row-main { min-width:0; }
.tpl-row-main b { display:block; font-size:.87rem; color:var(--dark,#14312B); }
.tpl-row-main p { margin:3px 0 0; font-size:.78rem; color:var(--gray,#6B7A76); line-height:1.45; }
.tpl-row.is-column { display:block; }

/* cores */
.tpl-colors { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tpl-sw { position:relative; display:inline-flex; flex-direction:column; align-items:center; gap:6px; padding:8px 10px;
  border:1px solid var(--border,#E4E5D9); border-radius:12px; background:#fff; cursor:pointer; font-family:inherit; min-width:82px; }
.tpl-sw i { width:24px; height:24px; border-radius:50%; display:block; box-shadow:inset 0 0 0 2px rgba(255,255,255,.85), 0 1px 4px rgba(0,0,0,.14); }
.tpl-sw span { font-size:.68rem; font-weight:700; color:var(--gray,#6B7A76); }
.tpl-sw.is-on { border-color:var(--primary,#0E7A66); box-shadow:0 0 0 2px var(--primary-soft,#E7F2ED); }
.tpl-sw.is-on span { color:var(--primary,#0E7A66); }
.tpl-sw.is-custom { min-width:104px; }
.tpl-sw input[type=color] { width:24px; height:24px; border:0; padding:0; background:transparent; cursor:pointer; border-radius:50%; }
.tpl-hex { display:flex; align-items:center; gap:8px; margin-top:10px; font-size:.75rem; color:var(--gray,#6B7A76); }
.tpl-hex code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.75rem; background:#F2F4F1; border-radius:6px; padding:2px 7px; color:var(--dark,#14312B); }

/* switch */
.tpl-switch { position:relative; width:46px; height:26px; flex:none; border:0; border-radius:999px; background:#E1E4DC; cursor:pointer;
  transition:background .18s ease; padding:0; }
.tpl-switch::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.22); transition:transform .18s ease; }
.tpl-switch[aria-checked=true] { background:var(--primary,#0E7A66); }
.tpl-switch[aria-checked=true]::after { transform:translateX(20px); }

/* campos */
.tpl-field { margin-top:12px; }
.tpl-field label { display:block; font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--gray,#6B7A76); margin-bottom:6px; }
.tpl-input, .tpl-select, .tpl-textarea { width:100%; padding:10px 12px; border:1px solid var(--border,#E4E5D9); border-radius:10px;
  font-size:.86rem; font-family:inherit; color:var(--dark,#14312B); background:#fff; }
.tpl-input:focus, .tpl-select:focus, .tpl-textarea:focus { outline:2px solid var(--primary-soft,#E7F2ED); outline-offset:1px; border-color:var(--primary,#0E7A66); }
.tpl-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.tpl-seg { display:inline-flex; gap:3px; padding:3px; background:#F1F3EE; border-radius:11px; }
.tpl-seg button { border:0; background:transparent; padding:7px 13px; border-radius:8px; font-size:.79rem; font-weight:700;
  color:var(--gray,#6B7A76); cursor:pointer; font-family:inherit; }
.tpl-seg button.is-on { background:#fff; color:var(--dark,#14312B); box-shadow:0 1px 3px rgba(16,24,40,.14); }
.tpl-items { display:flex; gap:7px; flex-wrap:wrap; margin-top:10px; }
.tpl-item-chip { display:inline-flex; align-items:center; gap:6px; background:#F4F6F2; border:1px solid #E6E9E1; border-radius:999px;
  padding:5px 6px 5px 11px; font-size:.76rem; font-weight:700; color:var(--dark,#14312B); }
.tpl-item-chip button { width:18px; height:18px; border:0; border-radius:50%; background:#DDE2D8; color:#43514B; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; font-size:.8rem; line-height:1; }
.tpl-item-chip button:hover { background:#C9D1C4; }
.tpl-empty-note { font-size:.76rem; color:var(--gray,#6B7A76); background:#FBFCFA; border:1px dashed var(--border,#E4E5D9);
  border-radius:10px; padding:10px 12px; margin-top:9px; }

/* barra de salvar */
.tpl-savebar { position:sticky; bottom:12px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  background:var(--dark,#14312B); color:#fff; border-radius:14px; padding:12px 16px; box-shadow:0 16px 34px -18px rgba(9,26,21,.6); }
.tpl-savebar b { display:block; font-size:.86rem; }
.tpl-savebar span { font-size:.75rem; opacity:.75; }
.tpl-savebar .tpl-btn.is-primary { background:#fff; color:var(--dark,#14312B); box-shadow:none; }
.tpl-savebar .tpl-btn.is-primary:hover { background:#F0F5F2; }

/* ------------------------------------------------------------------ previa */
.tpl-preview { position:sticky; top:14px; background:var(--surface,#fff); border:1px solid var(--border,#E4E5D9); border-radius:16px;
  padding:16px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.tpl-preview-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.tpl-preview-head h4 { margin:0; font-size:.88rem; color:var(--dark,#14312B); display:flex; align-items:center; gap:6px; }
.tpl-preview-head h4 svg { width:15px; height:15px; color:var(--primary,#0E7A66); }
.tpl-preview-head a { font-size:.74rem; font-weight:700; color:var(--primary,#0E7A66); text-decoration:none; }
.tpl-preview-head a:hover { text-decoration:underline; }
.tpl-phone { background:#16211E; border-radius:26px; padding:8px; box-shadow:0 24px 48px -26px rgba(9,26,21,.65); }
.tpl-phone-screen { background:#fff; border-radius:19px; overflow:hidden; height:492px; display:flex; flex-direction:column; }
.tpl-preview-note { margin:10px 2px 0; font-size:.715rem; color:var(--gray,#6B7A76); line-height:1.45; text-align:center; }

/* conteudo do celular */
.tplm-scroll { overflow-y:auto; flex:1; scrollbar-width:thin; }
.tplm-scroll::-webkit-scrollbar { width:5px; }
.tplm-scroll::-webkit-scrollbar-thumb { background:#DDE1DA; border-radius:3px; }
.tplm-cover { position:relative; height:96px; background-size:cover; background-position:center; }
.tplm-cover::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.42)); }
.tplm-brand { padding:0 12px; margin-top:-22px; position:relative; display:flex; align-items:flex-end; gap:9px; }
.tplm-logo { width:44px; height:44px; border-radius:13px; background:#fff; border:2px solid #fff; box-shadow:0 4px 12px rgba(9,26,21,.18);
  display:flex; align-items:center; justify-content:center; overflow:hidden; flex:none; font-size:1rem; }
.tplm-logo img { width:100%; height:100%; object-fit:contain; padding:3px; }
.tplm-name { min-width:0; padding-bottom:2px; }
.tplm-name b { display:block; font-size:.83rem; color:#17231F; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tplm-name span { font-size:.66rem; font-weight:700; }
.tplm-search { margin:9px 12px 0; display:flex; align-items:center; gap:6px; background:#F3F5F2; border-radius:9px; padding:6px 9px;
  font-size:.68rem; color:#94A09B; }
.tplm-search svg { width:12px; height:12px; }
.tplm-cats { display:flex; gap:6px; overflow-x:auto; padding:9px 12px 2px; scrollbar-width:none; }
.tplm-cats::-webkit-scrollbar { display:none; }
.tplm-cat { flex:none; font-size:.66rem; font-weight:700; padding:4px 9px; border-radius:999px; background:#F2F4F1; color:#5C6B66; }
.tplm-cat.is-on { color:#fff; }
.tplm-sect { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding:11px 12px 5px; }
.tplm-sect b { font-size:.76rem; color:#17231F; }
.tplm-sect span { font-size:.6rem; color:#98A29E; }
.tplm-hscroll { display:flex; gap:8px; overflow-x:auto; padding:0 12px 6px; scrollbar-width:none; }
.tplm-hscroll::-webkit-scrollbar { display:none; }
.tplm-mini { flex:none; width:110px; border-radius:10px; border:1px solid #EDEFEA; overflow:hidden; background:#fff; }
.tplm-mini .ph { height:60px; background:#F0F2EE; display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.tplm-mini .ph img { width:100%; height:100%; object-fit:cover; }
.tplm-mini .tx { padding:5px 7px 7px; }
.tplm-mini .tx b { display:block; font-size:.63rem; color:#20302B; line-height:1.25; height:2.5em; overflow:hidden; }
.tplm-mini .tx i { font-style:normal; font-size:.65rem; font-weight:800; }
.tplm-list { padding:2px 12px 10px; display:flex; flex-direction:column; gap:8px; }
.tplm-prod { display:flex; gap:8px; align-items:center; padding:7px; border:1px solid #EDEFEA; border-radius:10px; }
.tplm-prod .ph { width:42px; height:42px; border-radius:8px; background:#F0F2EE; display:flex; align-items:center; justify-content:center; overflow:hidden; flex:none; font-size:1rem; }
.tplm-prod .ph img { width:100%; height:100%; object-fit:cover; }
.tplm-prod .tx { min-width:0; flex:1; }
.tplm-prod .tx b { display:block; font-size:.66rem; color:#20302B; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tplm-prod .tx span { font-size:.6rem; color:#98A29E; }
.tplm-prod .pr { font-size:.68rem; font-weight:800; }
.tplm-nav { display:flex; border-top:1px solid #EDEFEA; background:#fff; }
.tplm-nav div { flex:1; padding:7px 0 6px; text-align:center; font-size:.53rem; color:#98A29E; font-weight:700; }
.tplm-nav div svg { display:block; margin:0 auto 2px; width:15px; height:15px; }
.tplm-nav div.is-on { color:#17231F; }
.tplm-closed { margin:8px 12px 0; background:#FDF3F1; border:1px solid #F5D9D2; color:#A93B27; border-radius:8px; padding:5px 8px; font-size:.6rem; font-weight:700; text-align:center; }

/* ------------------------------------------------------------------ modais */
.tpl-modal { position:fixed; inset:0; z-index:2000; background:rgba(9,26,21,.5); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center; padding:18px; }
.tpl-modal[hidden] { display:none; }
.tpl-modal-box { width:100%; max-width:860px; max-height:90vh; background:var(--surface,#fff); border-radius:18px; display:flex; flex-direction:column;
  overflow:hidden; box-shadow:0 32px 70px -34px rgba(9,26,21,.55); }
.tpl-modal-box.is-narrow { max-width:520px; }
.tpl-modal-head { display:flex; align-items:flex-start; gap:12px; padding:16px 20px; border-bottom:1px solid var(--ocux-hairline,#EFF0E6); }
.tpl-modal-head h3 { margin:0; font-size:1rem; color:var(--dark,#14312B); }
.tpl-modal-head p { margin:3px 0 0; font-size:.78rem; color:var(--gray,#6B7A76); }
.tpl-modal-x { margin-left:auto; width:32px; height:32px; border:0; border-radius:9px; background:transparent; color:var(--gray,#6B7A76);
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.tpl-modal-x:hover { background:#F3F5F2; color:var(--dark,#14312B); }
.tpl-modal-body { padding:18px 20px 22px; overflow-y:auto; }
.tpl-modal-foot { padding:12px 20px; border-top:1px solid var(--ocux-hairline,#EFF0E6); display:flex; justify-content:flex-end; gap:9px; }

/* galeria */
.tpl-gal { display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:14px; }
.tpl-gal-card { border:1px solid var(--border,#E4E5D9); border-radius:13px; overflow:hidden; background:#fff; cursor:pointer;
  text-align:left; padding:0; font-family:inherit; transition:transform .14s ease, box-shadow .18s ease, border-color .18s ease; }
.tpl-gal-card:hover { transform:translateY(-2px); box-shadow:0 12px 26px -18px rgba(9,26,21,.45); }
.tpl-gal-card.is-on { border-color:var(--primary,#0E7A66); box-shadow:0 0 0 2px var(--primary-soft,#E7F2ED); }
.tpl-gal-art { height:104px; position:relative; overflow:hidden; }
.tpl-gal-art .l1 { position:absolute; left:10px; top:12px; width:38%; height:7px; border-radius:4px; background:rgba(255,255,255,.85); }
.tpl-gal-art .l2 { position:absolute; left:10px; top:25px; width:60%; height:5px; border-radius:4px; background:rgba(255,255,255,.55); }
.tpl-gal-art .c { position:absolute; left:10px; bottom:10px; display:flex; gap:5px; }
.tpl-gal-art .c i { width:22px; height:22px; border-radius:6px; background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.35); }
.tpl-gal-art .tag { position:absolute; right:8px; top:8px; font-size:.6rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.04em; background:rgba(255,255,255,.92); color:#17231F; border-radius:999px; padding:3px 8px; }
.tpl-gal-tx { padding:11px 12px 13px; }
.tpl-gal-tx b { display:block; font-size:.85rem; color:var(--dark,#14312B); }
.tpl-gal-tx p { margin:3px 0 0; font-size:.73rem; color:var(--gray,#6B7A76); line-height:1.4; }

/* seletor de produtos */
.tpl-pick { display:flex; flex-direction:column; gap:8px; }
.tpl-pick label { display:flex; align-items:center; gap:10px; padding:9px 11px; border:1px solid var(--border,#E4E5D9);
  border-radius:10px; cursor:pointer; font-size:.83rem; }
.tpl-pick label:hover { border-color:var(--primary,#0E7A66); }
.tpl-pick .nm { flex:1; min-width:0; color:var(--dark,#14312B); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tpl-pick .pr { font-weight:800; color:var(--gray,#6B7A76); font-size:.78rem; }
.tpl-pick input { accent-color:var(--primary,#0E7A66); width:16px; height:16px; }

/* ------------------------------------------------------------------ responsivo */
@media (max-width:1180px) {
  .tpl-layout { grid-template-columns:minmax(0,1fr) 320px; }
  .tpl-phone-screen { height:452px; }
}
@media (max-width:980px) {
  .tpl-layout { grid-template-columns:1fr; }
  .tpl-preview { position:static; order:-1; }
  .tpl-phone { max-width:330px; margin:0 auto; }
  .tpl-phone-screen { height:420px; }
}
@media (max-width:760px) {
  .tpl-ident { grid-template-columns:1fr; }
  .tpl-grid2 { grid-template-columns:1fr; }
  .tpl-card { padding:16px 15px 17px; }
  .tpl-savebar { position:static; }
}
@media (max-width:520px) {
  .tpl-head-actions { width:100%; }
  .tpl-head-actions .tpl-btn { flex:1; justify-content:center; }
  .tpl-active { flex-direction:column; align-items:flex-start; }
  .tpl-active-thumb { width:100%; height:78px; }
  .tpl-sw { min-width:74px; padding:7px 8px; }
  .tpl-gal { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .tpl-btn, .tpl-gal-card, .tpl-switch, .tpl-switch::after { transition:none; }
  .tpl-gal-card:hover { transform:none; }
}

/* ------------------------------------------------------------------ extras */
.tplm-coupon { display:flex; align-items:center; gap:6px; margin:9px 12px 0; border:1px solid #E4E5D9; border-radius:9px;
  padding:5px 9px; font-size:.615rem; font-weight:700; line-height:1.3; }
.tplm-coupon svg { flex:none; }
.tplm-coupon b { font-weight:800; }
.tplm-empty { margin:6px 12px 0; border:1px dashed #E4E5D9; border-radius:9px; padding:10px; text-align:center;
  font-size:.64rem; color:#98A29E; }

/* aviso flutuante (salvar / upload) */
.tpl-toast { position:fixed; left:50%; bottom:26px; transform:translate(-50%,14px); z-index:2100; max-width:min(92vw,420px);
  background:#14312B; color:#fff; font-size:.83rem; font-weight:600; line-height:1.4; padding:11px 17px; border-radius:12px;
  box-shadow:0 18px 40px -20px rgba(9,26,21,.7); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; text-align:center; }
.tpl-toast.is-on { opacity:1; transform:translate(-50%,0); }

@media (max-width:760px) {
  .tpl-toast { bottom:16px; }
}

/* ------------------------------------------------------- modelos do cardapio */
.tpl-models { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.tpl-model { display:flex; flex-direction:column; gap:9px; padding:13px; border:1px solid var(--border,#E4E5D9);
  border-radius:13px; background:linear-gradient(180deg,#FCFDFB,#FFFFFF); min-width:0; }
.tpl-model-top { display:flex; align-items:center; gap:8px; min-width:0; }
.tpl-model-ic { width:30px; height:30px; flex:none; border-radius:9px; display:inline-flex; align-items:center; justify-content:center;
  background:var(--primary-soft,#E7F2ED); color:var(--primary,#0E7A66); }
.tpl-model-ic svg { width:16px; height:16px; }
.tpl-model-top b { font-size:.9rem; color:var(--dark,#14312B); letter-spacing:-.005em; min-width:0; }
.tpl-model-tag { margin-left:auto; flex:none; font-size:.63rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  padding:3px 7px; border-radius:999px; background:#F2F4F1; color:var(--gray,#6B7A76); }
.tpl-model p { margin:0; font-size:.76rem; line-height:1.45; color:var(--gray,#6B7A76); }
.tpl-model-table { display:flex; align-items:center; gap:8px; }
.tpl-model-table label { font-size:.72rem; font-weight:700; color:var(--dark,#14312B); }
.tpl-model-table input { width:72px; padding:6px 8px; border:1px solid var(--border,#E4E5D9); border-radius:8px;
  font:inherit; font-size:.78rem; color:var(--dark,#14312B); background:#fff; }
.tpl-model-table input:focus { outline:none; border-color:var(--primary,#0E7A66); box-shadow:0 0 0 3px var(--primary-soft,#E7F2ED); }
.tpl-model-link { display:flex; align-items:center; gap:6px; }
.tpl-model-link input { flex:1; min-width:0; padding:7px 9px; border:1px solid var(--border,#E4E5D9); border-radius:8px;
  background:#FBFCFA; font:inherit; font-size:.71rem; color:var(--gray,#6B7A76); text-overflow:ellipsis; }
.tpl-model-copy { flex:none; border:1px solid var(--border,#E4E5D9); background:#fff; color:var(--dark,#14312B);
  border-radius:8px; padding:6px 9px; font:inherit; font-size:.72rem; font-weight:700; cursor:pointer; }
.tpl-model-copy:hover { border-color:var(--primary,#0E7A66); color:var(--primary,#0E7A66); }
.tpl-model-foot { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:auto; }
.tpl-model-foot .tpl-btn { padding:6px 10px; font-size:.75rem; }
.tpl-model-hint { font-size:.69rem; color:var(--gray,#6B7A76); }
@media (max-width: 1180px) { .tpl-models { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .tpl-models { grid-template-columns:1fr; } }

/* ------------------------------------------------------------------ card padrao */
/* O cardapio publico aparece como o primeiro modelo da galeria (template padrao). */
.tpl-gal-card.is-default { border-style:dashed; border-color:rgba(14,122,102,.45); }
.tpl-gal-card.is-default .tpl-gal-tx { padding-bottom:12px; }
.tpl-gal-open { display:inline-flex; align-items:center; gap:5px; margin-top:8px; font-size:.72rem; font-weight:800;
  color:var(--primary,#0E7A66); text-decoration:none; border-radius:7px; padding:2px 0; }
.tpl-gal-open:hover, .tpl-gal-open:focus-visible { text-decoration:underline; }
.tpl-gal-card.is-default.is-on { border-style:solid; }
.tpl-model-flag { margin-left:auto; font-size:.6rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  color:var(--primary,#0E7A66); background:var(--primary-soft,#E7F2ED); border:1px solid rgba(14,122,102,.22);
  border-radius:999px; padding:2px 8px; }

/* ------------------------------------------------------- QR code da mesa */
.tpl-model-qr { display:flex; gap:12px; align-items:center; margin:2px 0 10px; padding:10px; border-radius:11px;
  background:var(--light,#F7F8F5); border:1px solid var(--border,#E4E5D9); }
.tpl-model-qr canvas { width:88px; height:88px; flex:none; border-radius:8px; background:#fff;
  border:1px solid var(--border,#E4E5D9); padding:3px; }
.tpl-model-qr-tx { min-width:0; }
.tpl-model-qr-tx b { display:block; font-size:.78rem; color:var(--dark,#14312B); }
.tpl-model-qr-tx span { display:block; font-size:.7rem; line-height:1.35; color:var(--gray,#6B7A76); margin:2px 0 7px; }
.tpl-model-qr-actions { display:flex; flex-wrap:wrap; gap:6px; }
.tpl-model-qr-actions .tpl-btn { padding:4px 9px; font-size:.68rem; }
@media (max-width:520px) {
  .tpl-model-qr { flex-direction:column; align-items:flex-start; }
}
