@font-face {
  font-family: Nunito;
  src: url("Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
:root { font: 17px/1.35 Nunito, system-ui, sans-serif; color: #082e2e; background: #deeee8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0 auto; max-width: 36rem; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; position: relative;
  background: radial-gradient(ellipse at 10% 2%, #ecfff9 0, transparent 45%), linear-gradient(145deg,#afeedd,#dffaf2 65%,#bcefe2);
}
main { padding: 0 .9rem .7rem; overflow-y: auto; min-height: 0; flex: 1; }
header { position: sticky; top: 0; z-index: 1; flex: none; padding: max(.55rem, env(safe-area-inset-top)) .9rem .35rem; text-align: center; background: #d6f6eb; }
h1 { text-align: center; }
.brand { font-size: 1.65rem; line-height: 1.1; font-weight: 950; letter-spacing: -.045em; }
.brand::after { content: ""; display: inline-block; width: .5em; height: .8em; vertical-align: top; background: url(rays.webp) no-repeat center / contain; }
h1 { position: relative; margin: .4rem 0 1.3rem; font-size: clamp(1.7rem, 7vw, 2.45rem); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
h1::after { content: ""; position: absolute; width: 4.2rem; height: .21rem; background: #ff7357; border-radius: 95% 80% 40% 80%; bottom: -.45rem; left: calc(50% - 2.1rem); }
#bill { width: fit-content; min-width: min(86%, 100%); max-width: 100%; margin: 0 auto 1.2rem; padding: .65rem 1rem; background: #f5fffbde; border-radius: 1.3rem; text-align: center; }
#bill strong, #bill small, #table-total { display: block; }
#tip-included { font-size: .86rem; font-weight: 600; white-space: nowrap; }
#table-total { font-size: clamp(2.1rem, 9vw, 3rem); color: #cc4833; line-height: 1.13; font-weight: 950; letter-spacing: -.04em; }
small { font-size: .86rem; }
form, article { border-radius: 1rem; background: #fff; padding: .7rem .85rem; }
form { max-width: 26rem; margin: 1.5rem auto; }
form label { display: block; font-weight: 800; }
button, input, select, summary { font: inherit; min-height: 44px; }
button, summary { cursor: pointer; font-weight: 850; }
button { border: 0; border-radius: .65rem; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #975300; outline-offset: 2px; }
input, select { width: 100%; border: 1px solid #809f92; border-radius: .5rem; padding: .4rem; color: inherit; background: white; }
form input { margin: .45rem 0; }
form button, #confirm { width: 100%; background: #00655f; color: white; padding: .65rem; }
#confirm.confirmed { background: #dce4df; color: #355048; opacity: 1; }
article { display: flex; justify-content: space-between; align-items: center; gap: .45rem; margin: .45rem 0; }
article h2 { font-size: 1.1rem; line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
article small { color: #44615d; }
.switch { display: flex; flex-shrink: 0; gap: .3rem; }
.switch button { background: white; border: 2px solid currentColor; padding: .28rem .52rem; }
.no { color: #b32d35; } .yes { color: #117340; }
.no[aria-pressed=true] { background: #bb3037; color: white; border-color: #bb3037; }
.yes[aria-pressed=true] { background: #117943; color: white; border-color: #117943; }
footer { border-radius: 1.55rem 1.55rem 0 0; background: #fffaef; padding: .55rem 1rem max(.75rem,env(safe-area-inset-bottom)); max-height: 53%; overflow-y: auto; flex-shrink: 0; box-shadow: 0 -3px 20px #00554c18; }
.handle { width: 2.5rem; height: .26rem; border-radius: 5px; background: #acbdb3; margin: 0 auto .45rem; }
.dish-details { display: flex; align-items: center; min-width: 0; gap: .45rem; }
.dish-icon { display: block; width: 2.6rem; aspect-ratio: 1; flex: none; background: white url(catalogo-platos.webp) no-repeat; background-size: 400% 900%; }
.amount,.stepper { display: flex; align-items: center; gap: .65rem; }
.stepper { border: 1px solid #78ae9f; border-radius: .7rem; gap: 0; overflow: hidden; }
.stepper button { background: #d9f4e9; border-radius: 0; color: #07534c; width: 3rem; font-size: 1.35rem; }
.amount { justify-content: space-between; flex-wrap: wrap; background: #d9f5e9; border-radius: .7rem; margin: .55rem 0; padding: .35rem .75rem; font-size: 1.1rem; }
#amount { color: #bc402c; font-weight: 950; font-size: 1.65rem; }
#notice { margin: 0; flex-shrink: 0; font-size: .85rem; color: #15493f; background: #fffaef; text-align: center; }
#notice:not(:empty) { padding: .3rem .75rem; }
dialog { width: min(24rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 0; border-radius: 1.2rem; padding: 0; color: inherit; background: #fffaef; box-shadow: 0 12px 45px #123a3840; }
dialog::backdrop { background: #123a386b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.join-sharing { margin: .65rem 0 1rem; }
.join-sharing legend { margin-bottom: .45rem; font-weight: 850; }
.binary { display: flex; gap: .55rem; }
.binary label { display: flex; align-items: center; justify-content: center; flex: 1; gap: .4rem; min-height: 44px; padding: .25rem .5rem; cursor: pointer; border: 2px solid currentColor; border-radius: .75rem; font-weight: 900; }
.binary input { appearance: none; flex: none; width: 1rem; height: 1rem; min-height: 0; padding: 0; margin: 0; background: transparent; border: 2px solid currentColor; border-radius: 50%; }
.binary input:checked { background: radial-gradient(circle, currentColor 0 36%, transparent 42%); }
.binary label:focus-within { outline: 3px solid #975300; outline-offset: 2px; }
.binary label:has(input:checked) { color: white; }
.binary .no:has(input:checked) { background: #bd4339; border-color: #bd4339; }
.binary .yes:has(input:checked) { background: #117943; border-color: #117943; }
#sharing-preference { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: .75rem; padding: .35rem .65rem; background: transparent; color: #123c36; text-align: left; }
.switch-track { flex: none; display: flex; align-items: center; width: 52px; height: 30px; padding: 3px; border-radius: 20px; background: #8b9593; }
.switch-track::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0003; }
#sharing-preference[aria-checked=true] .switch-track { background: #00816f; }
#sharing-preference[aria-checked=true] .switch-track::before { transform: translateX(22px); }
@media (prefers-reduced-motion: no-preference) { .switch-track::before { transition: transform .15s ease; } }
#my-breakdown { display: block; margin: 0 .65rem .45rem; color: #34564e; }
#quantity-dialog { background: white; }
#quantity-form { padding: 1.15rem; margin: 0; text-align: center; }
#quantity-title { margin: 0; line-height: 1.15; font-size: 1.55rem; }
#quantity-title:focus { outline: none; }
#quantity-dish { margin: .6rem 0 .85rem; overflow-wrap: anywhere; font-weight: 800; }
#quantity-dish .dish-icon { width: 4.6rem; margin: 0 auto .3rem; }
#quantity-form .stepper { width: fit-content; margin: .25rem auto; }
#quantity-form .stepper button { margin: 0; padding: 0; }
#chosen-quantity { width: 3.6rem; text-align: center; font-weight: 850; margin: 0; border: 0; border-radius: 0; appearance: textfield; }
#chosen-quantity::-webkit-inner-spin-button { appearance: none; }
#sharing-step { display: grid; gap: .45rem; margin-block: .65rem; }
#sharing-step fieldset { display: flow-root; padding: .3rem 0; border-bottom: 1px solid #dbe9e3; }
#sharing-step legend:not(.sr-only) { float: left; display: grid; align-items: center; min-height: 44px; margin-right: .55rem; text-align: left; font-weight: 850; }
.shared-target { clear: both; padding-top: .5rem; text-align: left; font-size: .85rem; }
#dialog-note { margin: .45rem 0; color: #8a342b; }
#dialog-note:empty { display: none; }
.dialog-actions { display: flex; flex-direction: column-reverse; gap: .25rem; margin-top: .85rem; }
#dismiss-quantity { color: white; background: #bb3037; }
#quantity-step:not([hidden]) ~ .dialog-actions #apply-quantity { background: #117943; }
@media (min-width: 620px) { body { box-shadow: 0 0 45px #1253411a; } }
@media (max-width: 355px) { main { padding-inline: .5rem; } article { flex-wrap: wrap; } .switch { margin-left: auto; } }
@media (max-height: 420px) { body { height: auto; min-height: 100dvh; } main, footer { overflow: visible; max-height: none; } }

