/* Galeria pública compartilhada — MenuFacile */
.mf-gallery-host{position:relative!important;overflow:hidden}
.mf-gallery-controls{position:absolute;left:50%;bottom:12px;z-index:24;display:flex;align-items:center;justify-content:center;gap:7px;transform:translateX(-50%);pointer-events:none;max-width:calc(100% - 24px)}
.mf-gallery-dot{display:block;width:8px;height:8px;border:1px solid rgba(15,23,42,.22);border-radius:999px;background:rgba(255,255,255,.78);box-shadow:0 1px 5px rgba(15,23,42,.22);transition:width .18s ease,background .18s ease,border-color .18s ease}
.mf-gallery-dot.is-active{width:23px;background:#1237c5;border-color:#1237c5}
.mf-gallery-arrow{position:absolute;top:50%;z-index:25;display:grid;width:40px;height:40px;padding:0;place-items:center;transform:translateY(-50%);border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#1237c5;box-shadow:0 6px 20px rgba(15,23,42,.22);font:900 25px/1 Arial,sans-serif;cursor:pointer}
.mf-gallery-arrow:hover{background:#fff}.mf-gallery-arrow:active{transform:translateY(-50%) scale(.96)}
.mf-gallery-prev{left:12px}.mf-gallery-next{right:12px}
.mf-gallery-tip{position:absolute;left:50%;bottom:37px;z-index:24;max-width:calc(100% - 24px);padding:6px 11px;transform:translateX(-50%);border-radius:999px;background:rgba(15,23,42,.76);color:#fff;font:800 10px/1.2 Inter,Arial,sans-serif;white-space:nowrap;pointer-events:none}

/* X do modal sempre no canto superior direito. */
html body .mf-produto-modal .mf-produto-card>.mf-produto-close,
html body .mf-store-product-modal .mf-store-product-x,
html body .mf-store-product-modal .mf-store-product-close,
html body button.mf-produto-close{
  position:absolute!important;top:12px!important;right:12px!important;left:auto!important;inset-inline-start:auto!important;inset-inline-end:12px!important;z-index:80!important;margin:0!important
}

/* Remove apenas a barra comprida dos ícones sociais. */
html body .mf-social-wrap,
html body .social-links,
html body .social-icons,
html body .mf-public-socials,
html body .mf-store-socials{
  background:transparent!important;border:0!important;box-shadow:none!important
}
html body .mf-social-wrap>a,
html body .social-links>a,
html body .social-icons>a,
html body .mf-public-socials>a,
html body .mf-store-socials>a{flex:0 0 auto}

/* Botões do checkout equilibrados em telas pequenas. */
@media(max-width:768px){
  body.menu-produtos #modalCarrinho .mf-checkout-step-actions,
  body.menu-produtos #modalCarrinho .carrinho-actions,
  body.menu-produtos #modalCarrinho .modal-actions{gap:8px!important}
  body.menu-produtos #modalCarrinho .mf-checkout-step-actions>button,
  body.menu-produtos #modalCarrinho .carrinho-actions>button,
  body.menu-produtos #modalCarrinho button[onclick*="pagamento" i],
  body.menu-produtos #modalCarrinho button[onclick*="Pagamento"]{
    min-width:0!important;min-height:40px!important;height:auto!important;padding:9px 8px!important;font-size:11px!important;line-height:1.18!important;white-space:normal!important;overflow-wrap:anywhere!important
  }
  .mf-gallery-arrow{display:none!important}
  .mf-gallery-tip{display:block!important}
}
@media(min-width:769px){.mf-gallery-tip{display:none!important}}

/* Gerenciador de até cinco fotos no painel administrativo. */
.mf-admin-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(118px,1fr));gap:10px;margin-top:10px}
.mf-admin-photo-card{min-width:0;padding:9px;border:1px solid #dfe6ef;border-radius:14px;background:#f8fafc}
.mf-admin-photo-card>strong{display:block;margin-bottom:7px;color:#344054;font:850 11px/1.2 Inter,Arial,sans-serif}
.mf-admin-photo-card input[type="text"],.mf-admin-photo-card input:not([type]){width:100%;min-width:0;height:36px;margin:0 0 7px;padding:0 9px;border:1px solid #d5dee9;border-radius:9px;background:#fff;font-size:10px}
.mf-admin-photo-preview{position:relative;display:grid;width:100%;aspect-ratio:4/3;margin-bottom:7px;place-items:center;overflow:hidden;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;color:#98a2b3;font-size:10px;text-align:center}
.mf-admin-photo-preview img{display:none;width:100%;height:100%;object-fit:cover}.mf-admin-photo-preview.has-image img{display:block}.mf-admin-photo-preview.has-image span{display:none}
.mf-admin-photo-actions{display:grid;grid-template-columns:1fr auto;gap:5px}.mf-admin-photo-actions button{min-height:32px;padding:0 8px;border:0;border-radius:8px;font:800 10px/1 Inter,Arial,sans-serif;cursor:pointer}.mf-admin-photo-upload{background:#1237c5;color:#fff}.mf-admin-photo-remove{background:#fff0ef;color:#d92d20}
.mf-admin-photo-status{min-height:15px;margin-top:5px;color:#667085;font:750 9px/1.2 Inter,Arial,sans-serif}
body.mf-ds-cardapio details.mf-translate-advanced{display:none!important}
@media(max-width:900px){.mf-admin-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.mf-admin-photo-grid{grid-template-columns:1fr}}

/* Indicador de múltiplas fotos diretamente nos cards públicos. */
.mf-gallery-card-host{position:relative!important}
.mf-gallery-card-controls{position:absolute;z-index:18;display:flex;align-items:center;justify-content:center;gap:6px;transform:translate(-50%,-50%);pointer-events:none}
.mf-gallery-card-dot{display:block;width:7px;height:7px;border:1px solid rgba(15,23,42,.24);border-radius:999px;background:rgba(255,255,255,.86);box-shadow:0 1px 5px rgba(15,23,42,.28);transition:width .18s ease,background .18s ease,border-color .18s ease}
.mf-gallery-card-dot.is-active{width:19px;background:#1237c5;border-color:#1237c5}
.mf-gallery-dot.active{width:23px;background:#1237c5;border-color:#1237c5}
@media(max-width:768px){.mf-gallery-card-controls{gap:5px}.mf-gallery-card-dot{width:6px;height:6px}.mf-gallery-card-dot.is-active{width:17px}}


/* v5 — controles corretos por dispositivo: celular usa deslize; computador mantém setas. */
@media (max-width:768px), (hover:none) and (pointer:coarse){
  html body .mf-gallery-host > .mf-gallery-arrow,
  html body #mfProdutoModalFinal .mf-gallery-arrow,
  html body .mf-store-product-modal .mf-gallery-arrow,
  html body .mf-produto-modal .mf-gallery-arrow{display:none!important;visibility:hidden!important;pointer-events:none!important}
  html body .mf-gallery-host > .mf-gallery-tip,
  html body #mfProdutoModalFinal .mf-gallery-tip,
  html body .mf-store-product-modal .mf-gallery-tip,
  html body .mf-produto-modal .mf-gallery-tip{display:block!important}
}
@media (min-width:769px) and (hover:hover) and (pointer:fine){
  html body .mf-gallery-host > .mf-gallery-arrow{display:grid!important;visibility:visible!important;pointer-events:auto!important}
  html body .mf-gallery-host > .mf-gallery-tip{display:none!important}
}
