:root {
    color-scheme: light;
    --ink: #20211f;
    --muted: #70716d;
    --paper: #f5f4f0;
    --white: #fff;
    --line: #deded8;
    --red: #c72e25;
    --red-dark: #a9231c;
    --yellow: #f5c748;
    --green: #35734f;
    --display: 'Oswald', Impact, sans-serif;
    --body: 'DM Sans', sans-serif;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
html, body { touch-action: pan-x pan-y; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--red); color: white; font: 700 15px var(--display); letter-spacing: 0; }
.brand-name { font: 700 18px var(--display); letter-spacing: 0; line-height: 1.05; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; }
.brand-location { color: var(--muted); font-size: 11px; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.text-link { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 5px; background: var(--red); color: white; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.button:hover { background: var(--red-dark); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button.secondary:hover { background: #eeede8; }
.button.small { min-height: 36px; padding-inline: 12px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 354px; margin: 30px 0 22px; overflow: hidden; border-radius: 8px; background: var(--red); color: white; animation: enter .55s ease both; }
.hero-copy { align-self: center; padding: 42px clamp(28px, 5vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 510px; margin: 17px 0 13px; font: 600 clamp(42px, 5vw, 62px)/.98 var(--display); letter-spacing: 0; }
.hero-copy>p { max-width: 390px; margin-bottom: 23px; color: #ffe9e5; font-size: 14px; line-height: 1.65; }
.hero .button { background: var(--yellow); color: var(--ink); }
.hero .button:hover { background: #ffda65; }
.hero-photo { position: relative; min-height: 280px; background: #741b15; }
.hero-photo img { width: 100%; height: 100%; min-height: 354px; display: block; object-fit: cover; object-position: left center; }
.hero-photo::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(199, 46, 37, .34), transparent 43%); pointer-events: none; }
.hero-stamp { position: absolute; z-index: 1; right: 20px; bottom: 20px; padding: 11px 14px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 42px 0 19px; }
.section-kicker { margin-bottom: 5px; color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.catalog-head h2 { margin-bottom: 0; font: 600 34px/1.1 var(--display); letter-spacing: 0; }
.connection { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.connection::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d4a43b; }
.connection.online::before { background: #3a9b62; }
.connection.error::before { background: var(--red); }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-carousel { flex: 1 1 auto; min-width: 0; visibility: visible; }
.category-carousel .splide__track { overflow: hidden; }
.category-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.category-list .splide__slide { width: max-content; }
.category-carousel:not(.is-initialized) .splide__track { overflow-x: auto; overflow-y: hidden; padding-inline: 72px; scrollbar-width: none; }
.category-carousel:not(.is-initialized) .splide__track::-webkit-scrollbar { display: none; }
.category-carousel:not(.is-initialized) .category-list { width: max-content; gap: 8px; }
.category-button { flex: 0 0 auto; min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.category-button:hover { color: var(--ink); }
.category-button.active { border-color: var(--ink); background: var(--ink); color: white; }
.search-box { flex: 0 0 230px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.search-box span { color: var(--muted); font-size: 18px; }
.search-box input { width: 100%; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; font-size: 12px; }
.menu-meta { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 12px; color: var(--muted); font-size: 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 46px; }
.menu-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); animation: enter .35s ease both; }
.menu-photo { position: relative; aspect-ratio: 1.35; overflow: hidden; background: #e5e1d8; }
.menu-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.menu-card:hover .menu-photo img { transform: scale(1.04); }
.menu-photo .photo-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #e6d6c0, #f2eee5); color: #825b3d; font: 600 13px var(--display); text-transform: uppercase; }
.availability { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 2px; background: var(--green); color: white; font-size: 10px; font-weight: 700; }
.menu-content { padding: 14px; }
.menu-category { margin-bottom: 6px; color: var(--red); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.menu-content h3 { margin-bottom: 5px; font: 600 20px/1.12 var(--display); letter-spacing: 0; }
.menu-description { min-height: 36px; margin-bottom: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.menu-price { padding-top: 11px; border-top: 1px solid #ecebe6; font-size: 15px; font-weight: 700; }
.menu-order-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.menu-order-row .menu-price { min-width: 0; padding-top: 0; border-top: 0; }
.quantity-control { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.quantity-control button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; }
.quantity-control button:hover { border-color: var(--ink); }
.quantity-value { min-width: 18px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-dock { position: fixed; z-index: 8; right: 20px; bottom: max(18px, env(safe-area-inset-bottom)); left: 20px; width: min(520px, calc(100% - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-inline: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 8px 30px #1113; }
.cart-dock[hidden] { display: none; }
.cart-dock-summary { display: grid; gap: 2px; min-width: 0; }
.cart-dock-summary span { color: var(--muted); font-size: 11px; }
.cart-dock-summary strong { font-size: 15px; }
.cart-dock .button { flex: 0 0 auto; }
.cart-lines { display: grid; gap: 8px; max-height: 25vh; overflow-y: auto; margin-bottom: 16px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line-main { min-width: 0; }
.cart-line-main strong, .cart-line-main span { display: block; }
.cart-line-main strong { overflow-wrap: anywhere; font-size: 13px; }
.cart-line-main span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.cart-total-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ink); font-size: 14px; }
.delivery-note { margin: -5px 0 18px; color: var(--muted); font-size: 11px; }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fulfillment-option { display: flex; align-items: center; gap: 8px; min-height: 42px; margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 12px; cursor: pointer; }
.fulfillment-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fulfillment-option input { accent-color: var(--red); }
.field input[type="date"], .field input[type="time"] { width: 100%; }
.checkout-actions { justify-content: flex-end; }
.checkout-empty { padding: 14px 0; color: var(--muted); font-size: 13px; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; min-height: 210px; padding: 26px; border: 1px dashed #c8c6be; border-radius: 6px; text-align: center; }
.empty-state h3 { margin-bottom: 7px; font: 600 23px var(--display); }
.empty-state p { max-width: 410px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 5px 0 38px; padding: 25px 28px; border-left: 4px solid var(--yellow); background: #e8e7e1; }
.contact-band h2 { margin-bottom: 4px; font: 600 23px var(--display); }
.contact-band p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
footer { padding: 19px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; }
dialog { width: min(680px, calc(100% - 28px)); max-height: min(86vh, 800px); padding: 0; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 22px 80px #1115; }
dialog::backdrop { background: #161715a6; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog-shell { padding: 24px; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 20px; }
.dialog-top h2 { margin-bottom: 4px; font: 600 28px var(--display); }
.dialog-top p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); font-size: 19px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label, .field-label { font-size: 11px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); outline-color: var(--red); font-size: 13px; }
.field textarea { min-height: 76px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 10px; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.notice { min-height: 18px; margin: 10px 0 0; color: var(--red-dark); font-size: 12px; }
#toast { position: fixed; z-index: 10; right: 20px; bottom: 20px; max-width: min(400px, calc(100% - 40px)); padding: 12px 15px; border-radius: 4px; background: var(--ink); color: white; font-size: 12px; box-shadow: 0 8px 30px #1113; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
#toast.visible { opacity: 1; transform: translateY(0); }
.skeleton { min-height: 280px; border-radius: 6px; background: linear-gradient(100deg, #e9e8e2 30%, #f3f2ee 45%, #e9e8e2 60%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position-x: -200%; } }

@media (max-width: 850px) {
    .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-carousel:not(.is-initialized) .splide__track { padding-inline: 40px; }
    .hero { min-height: 320px; }
    .hero-photo img { min-height: 320px; }
}

@media (max-width: 620px) {
    body.cart-active { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    .wrap { width: min(100% - 28px, 480px); }
    .site-header { height: 66px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-name { font-size: 16px; }
    .brand-location { font-size: 10px; }
    .header-actions { gap: 8px; }
    .header-actions .text-link { display: none; }
    .header-actions .button { min-height: 38px; padding-inline: 11px; font-size: 11px; }
    .hero { grid-template-columns: 1fr; margin-top: 18px; }
    .hero-copy { padding: 29px 25px 25px; }
    .hero h1 { max-width: 340px; font-size: 47px; }
    .hero-copy>p { max-width: 340px; font-size: 12px; }
    .hero-photo { min-height: 190px; max-height: 220px; }
    .hero-photo img { min-height: 220px; max-height: 220px; object-position: center 42%; }
    .hero-photo::after { background: linear-gradient(0deg, rgba(199, 46, 37, .22), transparent 65%); }
    .hero-stamp { right: 12px; bottom: 12px; }
    .catalog-head { align-items: start; flex-direction: column; margin-top: 30px; gap: 10px; }
    .catalog-head h2 { font-size: 31px; }
    .catalog-tools { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
    .search-box { flex-basis: auto; }
    .category-carousel:not(.is-initialized) .category-list { gap: 6px; }
    .category-carousel:not(.is-initialized) .splide__track { padding-inline: 16px; }
    .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .menu-content { padding: 11px; }
    .menu-content h3 { font-size: 18px; }
    .menu-order-row { align-items: flex-start; flex-direction: column; }
    .menu-order-row .menu-price { font-size: 13px; }
    .menu-description { min-height: 48px; font-size: 10px; }
    .contact-band { align-items: start; flex-direction: column; padding: 20px; }
    .footer-inner { flex-direction: column; }
    .dialog-shell { padding: 18px; }
    .cart-dock { right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); min-height: 62px; padding: 9px 10px; }
    .cart-dock .button { min-height: 44px; padding-inline: 11px; font-size: 12px; }
    dialog { width: 100%; max-height: calc(100vh - 8px); max-height: calc(100dvh - env(safe-area-inset-top) - 8px); margin: auto 0 0; overflow-y: auto; border-radius: 10px 10px 0 0; }
    .fulfillment-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .fulfillment-option { min-height: 40px; gap: 6px; padding: 7px 8px; font-size: 11px; }
    .fulfillment-option input { flex: 0 0 auto; margin: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .quantity-control { gap: 10px; }
    .quantity-control button { width: 44px; height: 44px; }
    .checkout-actions .button { width: 100%; min-height: 46px; }
    .dialog-shell { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.checkout-dialog {
    width: min(760px, calc(100% - 32px));
    height: min(88dvh, 860px);
    max-height: 88vh;
    max-height: 88dvh;
    overflow: hidden;
    border-radius: 10px;
}

.checkout-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0;
}

.checkout-top {
    flex: 0 0 auto;
    margin: 0;
    padding: 22px 28px 17px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.checkout-top h2 {
    font-size: 26px;
}

.checkout-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.checkout-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px 28px 24px;
    scrollbar-gutter: stable;
}

.checkout-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
}

.checkout-section-heading h3 {
    margin: 0;
    font: 600 18px/1.2 var(--display);
}

.checkout-section-heading > span {
    color: var(--muted);
    font-size: 11px;
}

.cart-lines {
    max-height: min(190px, 24dvh);
    margin: 0;
    padding-inline: 1px;
}

.checkout-dialog .cart-line {
    gap: 14px;
    padding: 10px 0;
}

.checkout-dialog .cart-line-main {
    flex: 1 1 auto;
}

.checkout-dialog .cart-line-main strong {
    font-size: 14px;
}

.checkout-dialog .cart-line-main span {
    line-height: 1.45;
}

.checkout-dialog .quantity-control {
    gap: 7px;
}

.checkout-dialog .quantity-control button {
    width: 36px;
    height: 36px;
}

.checkout-total-line {
    align-items: center;
    margin-top: 8px;
    padding: 13px 0 10px;
    border-top-color: var(--line);
    font-size: 14px;
}

.checkout-total-line strong:last-child {
    color: var(--red);
    font-size: 21px;
    white-space: nowrap;
}

.delivery-note {
    margin: 0 0 21px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.checkout-details-heading {
    margin-bottom: 13px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.checkout-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
}

.checkout-form .field {
    min-width: 0;
    gap: 7px;
}

.checkout-form .field label,
.checkout-form .field-label {
    display: block;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.35;
}

.checkout-form .optional-label {
    margin-left: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.checkout-form .field input:not([type="radio"]),
.checkout-form .field textarea,
.checkout-form .field select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d7d7d1;
    border-radius: 6px;
    background: var(--white);
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 1px 2px #11100808;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.checkout-form .field input::placeholder,
.checkout-form .field textarea::placeholder {
    color: #92938e;
    opacity: 1;
}

.checkout-form .field input:focus,
.checkout-form .field textarea:focus {
    border-color: var(--red);
    outline: 3px solid #c72e251c;
    outline-offset: 1px;
}

.checkout-form .field textarea {
    min-height: 92px;
    resize: vertical;
}

.checkout-form #customerAddress,
.checkout-form #deliveryAddress {
    min-height: 96px;
}

.checkout-form #orderNote {
    min-height: 84px;
}

.checkout-form .field input[type="date"],
.checkout-form .field input[type="time"] {
    display: block;
    min-height: 48px;
    padding: 9px 10px;
    font-size: 15px;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.checkout-form .field input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.checkout-form .field input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0;
}

.checkout-dialog .fulfillment-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.fulfillment-option {
    display: grid;
    grid-template-columns: 17px 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 78px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.checkout-form .field .fulfillment-option {
    display: grid;
}

.fulfillment-option:hover {
    border-color: #c9c9c2;
}

.fulfillment-option:has(input:checked) {
    border-color: var(--red);
    background: #fff5f3;
    box-shadow: inset 0 0 0 1px var(--red);
}

.fulfillment-option input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    border: 1.5px solid #a9aaa4;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
}

.fulfillment-option input::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    content: "";
    transform: scale(0);
    transition: transform .12s ease;
}

.fulfillment-option input:checked {
    border-color: var(--red);
}

.fulfillment-option input:checked::before {
    transform: scale(1);
}

.fulfillment-option input:focus-visible {
    outline: 3px solid #c72e2530;
    outline-offset: 2px;
}

.fulfillment-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    background: #f5f4f0;
    color: var(--red);
}

.fulfillment-icon svg {
    width: 22px;
    height: 22px;
}

.fulfillment-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.fulfillment-copy strong {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.fulfillment-copy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.checkout-remaining-line {
    align-self: end;
    align-items: center;
    min-height: 48px;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.checkout-remaining-line strong:last-child {
    color: var(--ink);
    white-space: nowrap;
}

.checkout-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin: 0;
    padding: 14px 28px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--white);
}

.checkout-actions .button {
    min-width: 220px;
    min-height: 48px;
    border-radius: 6px;
    font-size: 14px;
}

.checkout-actions .button:focus-visible,
.checkout-top .icon-button:focus-visible {
    outline: 3px solid #c72e2530;
    outline-offset: 2px;
}

@media (max-width: 620px) {
    .checkout-dialog {
        width: 100%;
        height: min(94dvh, 860px);
        max-height: calc(100dvh - env(safe-area-inset-top) - 6px);
        margin: auto 0 0;
        border-radius: 12px 12px 0 0;
    }

    .checkout-top {
        gap: 10px;
        padding: 17px 18px 14px;
    }

    .checkout-top h2 {
        font-size: 24px;
    }

    .checkout-top p {
        max-width: 250px;
        line-height: 1.45;
    }

    .checkout-scroll {
        padding: 15px 18px 20px;
        scrollbar-gutter: auto;
    }

    .cart-lines {
        max-height: min(155px, 22dvh);
    }

    .checkout-form .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .checkout-form .field.full {
        grid-column: auto;
    }

    .fulfillment-options {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .fulfillment-option {
        grid-template-columns: 17px 36px minmax(0, 1fr);
        min-height: 68px;
        padding: 10px 12px;
    }

    .fulfillment-copy strong {
        font-size: 13px;
    }

    .fulfillment-copy small {
        font-size: 11px;
    }

    .checkout-remaining-line {
        min-height: 44px;
    }

    .checkout-actions {
        padding: 11px 18px max(12px, env(safe-area-inset-bottom));
    }

    .checkout-actions .button {
        width: 100%;
        min-width: 0;
        min-height: 50px;
    }
}

@media (max-width: 380px) {
    .checkout-top {
        padding-inline: 15px;
    }

    .checkout-scroll {
        padding-inline: 15px;
    }

    .checkout-actions {
        padding-inline: 15px;
    }

    .checkout-dialog .cart-line {
        gap: 8px;
    }

    .checkout-dialog .quantity-control {
        gap: 5px;
    }

    .checkout-dialog .quantity-control button {
        width: 34px;
        height: 38px;
    }

    .checkout-form .field input[type="date"],
    .checkout-form .field input[type="time"] {
        font-size: 16px;
    }
}
