/* Full-width sheets shared by the approved restaurant demos and themes. */
dialog.md-demo-dialog,
dialog.tc-dialog {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  inset: auto 0 0;
  margin: 0;
  border-radius: 24px 24px 0 0;
}
#modal-producto,
#modal-carrito,
#modal-whatsapp { padding: 0; align-items: flex-end; }
:is(#modal-producto, #modal-carrito, #modal-whatsapp) > .relative {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 24px 24px 0 0;
}
.md-demo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit;
  font: inherit;
  text-align: left;
  vertical-align: middle;
  cursor: pointer;
}
.md-demo-trigger svg { flex: none; }
.md-demo-trigger:focus-visible,
.md-demo-dialog :focus-visible { outline: 3px solid #176b58; outline-offset: 4px; }
.md-demo-dialog {
  border: 0;
  padding: 28px;
  max-height: calc(100svh - 32px);
  overflow: auto;
  background: #fff;
  color: #16253c;
  box-shadow: 0 24px 80px #0a142433;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}
.md-demo-dialog::backdrop { background: #0a1424a6; backdrop-filter: blur(3px); }
.md-demo-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.md-demo-dialog__brand { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.md-demo-dialog__accent { color: #b94410; }
.md-demo-dialog__close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: #f1f4f8; color: #596a81; cursor: pointer;
}
.md-demo-dialog h2 {
  max-width: 330px; margin: 24px 0 12px;
  font-size: 26px; line-height: 1.2; letter-spacing: -.04em; font-weight: 800;
}
.md-demo-dialog__description { margin: 0 0 20px; color: #596a81; font-size: 15px; line-height: 1.6; }
.md-demo-dialog__offer { margin: 0 0 18px; padding-top: 19px; border-top: 1px solid #e4e8ee; font-size: 14px; line-height: 1.7; }
.md-demo-dialog__offer strong { display: block; }
.md-demo-dialog__offer span { color: #596a81; }
.md-demo-dialog__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 14px; border-radius: 12px;
  background: #b94410; color: #fff; text-decoration: none; font-size: 15px; font-weight: 700;
}
.md-demo-dialog__cta svg { flex: none; }
.md-demo-dialog__cta:hover { background: #9f370c; }
.md-demo-dialog__secondary {
  display: block; width: 100%; min-height: 44px; margin-top: 10px;
  border: 0; border-radius: 12px; background: transparent; color: #596a81;
  font: inherit; font-size: 14px; cursor: pointer;
}
.md-demo-dialog__secondary:hover { background: #f1f4f8; }
.md-demo-dialog[open] { animation: md-demo-enter 220ms cubic-bezier(.22, 1, .36, 1); }
@keyframes md-demo-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 639px) {
  .md-demo-dialog { padding: 24px 24px max(24px, env(safe-area-inset-bottom)); }
  .md-demo-dialog h2 { margin-top: 22px; font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .md-demo-dialog[open] { animation: none; } }
