.drm-menu,
.drm-menu * {
    box-sizing: border-box;
}

.drm-menu {
    --ink: #161616;
    --muted: #71717a;
    --line: #e4e4e7;
    --accent: #dc2626;
    --category-overlay: #000000;
    --category-text: #ffffff;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 42px;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.drm-menu [hidden] {
    display: none !important;
}

.drm-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.drm-menu-title {
    min-width: 0;
}

.drm-menu-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.drm-menu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.drm-menu button,
.drm-primary {
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    background: var(--accent);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.drm-call-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-height: 54px;
    border-radius: 999px;
    padding: 0;
    color: #fff;
    background: var(--accent);
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent), transparent 72%);
}

.drm-call-fab svg {
    width: 22px;
    height: 22px;
}

.drm-cart-fab {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px !important;
    padding: 0 !important;
    white-space: nowrap;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent), transparent 72%);
}

.drm-cart-fab svg {
    width: 24px;
    height: 24px;
}

.drm-cart-fab span {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 0 6px;
    color: var(--accent);
    background: #fff;
    font-size: 12px;
    font-weight: 950;
}

.drm-category-grid,
.drm-products-grid {
    display: grid;
    gap: 18px;
}

.drm-category-grid {
    grid-template-columns: 1fr;
    width: 100%;
}

.drm-category-tile {
    position: relative;
    display: grid;
    min-height: 220px;
    width: 100%;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #18181b;
}

.drm-category-tile::before {
    position: absolute;
    inset: 0;
    content: "";
    background: color-mix(in srgb, var(--category-overlay), transparent 58%);
    z-index: 1;
}

.drm-category-tile img,
.drm-category-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.drm-category-bg {
    background: linear-gradient(135deg, #18181b, #52525b);
}

.drm-category-tile > span:not(.drm-category-bg) {
    position: relative;
    z-index: 2;
    max-width: 90%;
    color: var(--category-text);
    font-family: "Satisfy", "Brush Script MT", cursive;
    font-size: 40px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .58);
    -webkit-text-stroke: .35px color-mix(in srgb, var(--category-text), #000 22%);
}

.drm-products-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.drm-products-head h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
}

.drm-back,
.drm-back-icon {
    color: var(--ink) !important;
    background: #f4f4f5 !important;
}

.drm-back-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    padding: 0 !important;
    border-radius: 8px;
    font-size: 28px !important;
    line-height: 1;
}

.drm-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drm-product {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    min-height: 170px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.drm-product img,
.drm-product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    background: #f4f4f5;
}

.drm-product > div {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.drm-product h3,
.drm-product p {
    margin: 0;
}

.drm-product-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.drm-product-title span,
.drm-cart-preorder {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 9px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.drm-product-title span {
    flex: 0 0 auto;
    margin-top: 2px;
}

.drm-product p {
    color: var(--muted);
}

.drm-product-option {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.drm-product-options {
    display: grid;
    gap: 10px;
}

.drm-product-option select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 750;
}

.drm-bundle-options {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fafafa;
}

.drm-bundle-choice {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.drm-bundle-choice + .drm-bundle-choice {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.drm-bundle-choice legend {
    margin-bottom: 2px;
    padding: 0;
    color: var(--ink);
    font-weight: 900;
}

.drm-bundle-choice legend small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.drm-bundle-choice label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
}

.drm-bundle-choice input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--accent);
}

.drm-product-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.drm-allergen-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid color-mix(in srgb, var(--allergen), #fff 60%);
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--allergen);
    background: color-mix(in srgb, var(--allergen), #fff 90%);
    font-size: 12px;
    font-weight: 800;
}

.drm-allergen-badge svg {
    width: 14px;
    height: 14px;
}

.drm-product footer,
.drm-total,
.drm-cart-head,
.drm-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drm-product footer button {
    padding: 10px 14px;
}

.drm-cart,
.drm-checkout {
    position: fixed;
    z-index: 99998;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.drm-cart {
    top: 0;
    right: 0;
    display: none !important;
    grid-template-rows: auto 1fr auto;
    width: min(420px, 94vw);
    height: 100vh;
    border-left: 1px solid var(--line);
}

.drm-cart.is-open {
    display: grid !important;
}

.drm-cart-head,
.drm-cart footer,
.drm-checkout form {
    padding: 20px;
}

.drm-cart-head {
    border-bottom: 1px solid var(--line);
}

.drm-cart-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
}

.drm-cart-head button {
    color: var(--ink);
    background: #f4f4f5;
}

[data-cart-lines] {
    overflow: auto;
    padding: 12px 20px;
}

.drm-cart-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.drm-cart-category {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.drm-cart-line > div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drm-cart-line small,
.drm-client-alert {
    color: var(--muted);
}

.drm-cart-info {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.drm-cart-info strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.drm-cart-info em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.drm-cart-info small {
    white-space: nowrap;
}

.drm-cart-line img,
.drm-cart-thumb {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: #f4f4f5;
}

.drm-cart-line button {
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ink);
    background: #f4f4f5;
}

.drm-cart footer {
    display: grid;
    gap: 14px;
    border-top: 1px solid var(--line);
}

.drm-promo-box {
    display: grid;
    gap: 6px;
}

.drm-promo-box label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.drm-promo-box label > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.drm-promo-box input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    text-transform: uppercase;
}

.drm-promo-box button {
    padding: 10px 12px;
}

.drm-promo-box small {
    color: #15803d;
    font-weight: 750;
}

.drm-promo-box small.is-error {
    color: #b91c1c;
}

.drm-auto-promo,
.drm-promo-question {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.drm-auto-promo {
    color: #15803d;
    font-weight: 800;
}

.drm-promo-question {
    display: grid;
    gap: 10px;
}

.drm-checkout {
    inset: 0;
    display: none !important;
    place-items: center;
    padding: 18px;
    background: rgba(24, 24, 27, 0.55);
}

.drm-checkout.is-open {
    display: grid !important;
}

.drm-checkout form {
    position: relative;
    display: grid;
    gap: 20px;
    width: min(820px, 96vw);
    max-height: 92vh;
    overflow: auto;
    border-radius: 8px;
    padding: 28px;
    background: #fff;
}

.drm-checkout label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.drm-field {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.2;
}

.drm-field-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink);
}

.drm-field-label b {
    color: #ef4444;
    font: inherit;
}

[data-table-label] {
    color: var(--muted);
    font-size: .86em;
    font-weight: 850;
}

.drm-checkout input,
.drm-checkout textarea,
.drm-checkout select {
    width: 100%;
    appearance: none;
    border: 2px solid #d8dee8;
    border-radius: 8px;
    outline: 0;
    padding: 14px 15px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.drm-input-wrap {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    border: 2px solid #b9bec7;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.drm-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 86%);
}

.drm-input-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--ink);
}

.drm-input-wrap input,
.drm-input-wrap select {
    width: 100% !important;
    min-width: 0;
    max-width: none;
    min-height: 54px;
    border: 0 !important;
    border-radius: 0;
    padding: 0 !important;
    box-shadow: none !important;
}

.drm-address-field .drm-input-wrap input {
    font-size: 16px;
    text-overflow: clip;
}

.drm-input-wrap input:focus,
.drm-input-wrap select:focus {
    border: 0 !important;
    box-shadow: none !important;
}

.drm-input-wrap input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.drm-checkout input:focus,
.drm-checkout textarea:focus,
.drm-checkout select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 86%);
}

.drm-choice label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.drm-choice label.is-disabled {
    cursor: not-allowed;
    opacity: .45;
    filter: grayscale(1);
}

.drm-checkout-title {
    display: grid;
    gap: 16px;
    padding-right: 52px;
}

.drm-checkout-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
}

.drm-stepper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.drm-stepper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 14px;
    color: var(--muted);
    background: #f4f4f5;
    font-weight: 850;
}

.drm-stepper span svg,
.drm-step-arrow {
    width: 18px;
    height: 18px;
}

.drm-stepper span.is-active {
    color: #fff;
    background: var(--accent);
}

.drm-step-arrow {
    color: var(--muted);
}

.drm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.drm-form-grid label:first-child {
    grid-column: 1 / -1;
}

.drm-delivery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 18px;
}

.drm-checkout [data-checkout-step] {
    display: grid;
    gap: 12px;
}

.drm-address-field {
    position: relative;
}

.drm-address-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.drm-address-suggestions button {
    width: 100%;
    border-radius: 0;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    text-align: left;
    font-weight: 650;
    white-space: normal;
    overflow-wrap: anywhere;
}

.drm-address-suggestions button:hover {
    background: #f4f4f5;
}

.drm-checkout label.drm-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.drm-privacy-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    accent-color: var(--accent);
}

.drm-privacy-check a {
    color: var(--accent);
    font-weight: 900;
}

.drm-checkout-summary {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fafafa;
}

.drm-checkout-summary h3,
.drm-payment-box h3 {
    margin: 0;
}

.drm-checkout-summary h3 {
    font-size: 18px;
}

.drm-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.drm-payment-box {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #f8fafc;
}

.drm-payment-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drm-payment-box h3 svg {
    width: 21px;
    height: 21px;
    color: #16a34a;
}

.drm-payment-box p {
    margin: 0;
    color: var(--muted);
}

.drm-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.drm-payment-method {
    cursor: pointer;
}

.drm-payment-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.drm-payment-method > span {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    min-height: 104px;
    align-content: center;
    border: 2px solid #d8dee8;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.drm-payment-method input:checked + span {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 82%);
}

.drm-payment-method svg {
    grid-row: 1 / 3;
    width: 26px;
    height: 26px;
    align-self: center;
    color: var(--accent);
}

.drm-payment-method strong,
.drm-payment-method small {
    display: block;
}

.drm-payment-method small {
    color: var(--muted);
}

.drm-card-brands {
    display: flex;
    grid-column: 2;
    grid-row: 3;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    color: #172554;
}

.drm-card-brand {
    display: inline-flex;
    min-width: 34px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.drm-card-brand--visa { color: #1434cb; font-size: 13px; font-style: italic; }
.drm-card-brand--mastercard { position: relative; min-width: 34px; overflow: hidden; }
.drm-card-brand--mastercard i { position: absolute; width: 15px; height: 15px; border-radius: 50%; }
.drm-card-brand--mastercard i:first-child { left: 5px; background: #eb001b; }
.drm-card-brand--mastercard i:nth-child(2) { right: 5px; background: #f79e1b; opacity: .95; }
.drm-card-brand--mastercard span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); }
.drm-card-brand--apple { padding: 0 5px; color: #111; font-size: 12px; }
.drm-card-brand--google { padding: 0 5px; color: #3c4043; font-size: 11px; }
.drm-card-brand--google em { margin-right: 2px; color: #4285f4; font-size: 15px; font-style: normal; font-weight: 900; }

.drm-cash-payment {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    color: #166534;
    background: #f0fdf4;
}

.drm-cash-payment[hidden] {
    display: none;
}

.drm-cash-payment > svg {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.drm-cash-payment h3,
.drm-cash-payment p {
    margin: 0;
}

.drm-cash-payment p {
    margin-top: 3px;
    color: #15803d;
}

.drm-secure-row,
.drm-payment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.drm-secure-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #166534;
    background: #dcfce7;
    font-size: 12px;
    font-weight: 900;
}

.drm-secure-row svg {
    width: 15px;
    height: 15px;
}

.drm-payment-actions {
    justify-content: space-between;
}

.drm-checkout-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0 !important;
    color: var(--ink) !important;
    background: #f4f4f5 !important;
}

.drm-checkout-close svg {
    width: 22px;
    height: 22px;
}

.drm-client-alert {
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    background: #fef2f2;
}

.drm-service-status {
    margin-bottom: 18px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 13px 15px;
    color: #991b1b;
    background: #fef2f2;
    font-weight: 850;
}

.drm-menu-composer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, .45);
}

.drm-menu-composer.is-open {
    display: grid;
}

.drm-menu-composer-card {
    position: relative;
    width: min(900px, calc(100vw - 44px));
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}

.drm-composer-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 500px;
}

.drm-composer-media {
    background: #f4f4f5;
}

.drm-composer-media img,
.drm-composer-media > div {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.drm-composer-body {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 44px 34px 30px;
}

.drm-composer-body h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
}

.drm-composer-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drm-composer-alert {
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 14px;
    color: #991b1b;
    background: #fef2f2;
    font-weight: 850;
}

.drm-composer-steps button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
}

.drm-composer-steps button span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #f4f4f5;
}

.drm-composer-steps button.is-active {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent), #fff 60%);
    background: color-mix(in srgb, var(--accent), #fff 92%);
}

.drm-composer-steps button.is-active span {
    color: #fff;
    background: var(--accent);
}

.drm-composer-choice {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
    background: #fff;
}

.drm-composer-choice legend {
    font-size: 24px;
}

.drm-composer-choice label {
    font-size: 21px;
}

.drm-composer-choice input {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
}

.drm-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
}

.drm-composer-footer strong {
    font-size: 28px;
    line-height: 1;
}

.drm-composer-footer > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.drm-composer-footer .drm-primary {
    border-radius: 12px;
    padding: 15px 24px;
    font-size: 20px;
}

.drm-menu button:disabled,
.drm-primary:disabled,
.drm-menu select:disabled,
.drm-menu input:disabled,
.drm-menu textarea:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 820px) {
    .drm-menu-composer {
        padding: 16px;
    }

    .drm-menu-composer-card {
        width: min(680px, calc(100vw - 32px));
        max-height: 88vh;
    }

    .drm-category-grid,
    .drm-products-grid {
        grid-template-columns: 1fr;
    }

    .drm-product {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .drm-category-tile {
        min-height: 170px;
    }

    .drm-payment-methods {
        grid-template-columns: 1fr;
    }

    .drm-category-tile > span:not(.drm-category-bg) {
        font-size: 36px;
    }

    .drm-form-grid,
    .drm-delivery-grid {
        grid-template-columns: 1fr;
    }

    .drm-stepper {
        grid-template-columns: 1fr;
    }

    .drm-step-arrow {
        display: none;
    }

    .drm-composer-layout {
        grid-template-columns: 1fr;
    }

    .drm-composer-media,
    .drm-composer-media img,
    .drm-composer-media > div {
        min-height: 190px;
        max-height: 240px;
    }

    .drm-composer-body {
        padding: 28px 20px 22px;
    }

    .drm-composer-choice legend {
        font-size: 20px;
    }

    .drm-composer-choice label {
        font-size: 18px;
    }

    .drm-composer-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .drm-composer-footer > div,
    .drm-composer-footer .drm-primary,
    .drm-composer-footer .drm-back {
        width: 100%;
    }
}

/* Desktop: the cart sheet also adapts to the number of product lines. */
@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart {
        bottom: 70px;
        height: auto;
        max-height: calc(100vh - 94px);
        grid-template-rows: auto auto auto;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        max-height: none;
        overflow-y: visible;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="true"] {
        height: min(500px, calc(100vh - 94px));
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="true"] [data-cart-lines] {
        max-height: none;
    }
}

/* Final override: two products fit naturally; the third product enables scrolling. */
@media (max-width: 820px) {
    #drm-app.drm-menu .drm-cart[data-cart-scroll="false"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }

    #drm-app.drm-menu .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        max-height: none !important;
        overflow-y: visible;
    }
}

@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        max-height: none !important;
        overflow-y: visible;
    }
}

/* Final desktop position: the popup touches the sticky cart bar. */
@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart {
        position: fixed !important;
        top: auto !important;
        right: auto !important;
        bottom: 62px !important;
        left: 50% !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
    }
    #drm-app.drm-menu .drm-sticky-cart { bottom: 18px !important; }
}

/* Desktop: anchor the open cart directly above the bottom cart bar. */
@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart {
        position: fixed !important;
        top: auto !important;
        right: auto !important;
        bottom: 62px !important;
        left: 50% !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
    }

    #drm-app.drm-menu .drm-sticky-cart {
        bottom: 18px !important;
    }
}

/* One or two products must remain fully visible; scrolling starts with the third. */
@media (max-width: 820px) {
    #drm-app.drm-menu .drm-cart[data-cart-scroll="false"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }

    #drm-app.drm-menu .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        overflow-y: visible;
        max-height: none !important;
    }
}

@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        overflow-y: visible;
        max-height: none !important;
    }
}

/* Desktop product dialogs keep their action reachable when a product has many options. */
@media (min-width: 821px) {
    .drm-product-modal-card {
        height: min(90dvh, 760px);
        max-height: min(90dvh, 760px);
        overflow: hidden;
    }

    .drm-product-modal-card > [data-product-modal-content] {
        min-height: 0;
    }

    .drm-product-modal-body {
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .drm-product-modal-card.no-image .drm-product-modal-body {
        height: 100%;
        box-sizing: border-box;
    }
}

.drm-menu .drm-confirmation-customer,
.drm-menu .drm-confirmation-payment {
    display: grid;
    width: 100%;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--drm-soft-ink, #756d66);
    background: var(--drm-surface-soft, #fbf7f2);
    text-align: left;
}
.drm-menu .drm-confirmation-customer span,
.drm-menu .drm-confirmation-payment span { display: flex; align-items: flex-start; gap: 8px; }
.drm-menu .drm-confirmation-customer svg,
.drm-menu .drm-confirmation-payment svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--drm-primary, #bd4a2e); }

/* QR Menu checkout refresh. This layer only applies to the general checkout;
 * the table session/payment views use their own components. */
.drm-menu .drm-checkout {
    top: var(--drm-header-height, 0px);
    height: calc(100vh - var(--drm-header-height, 0px));
    height: calc(100dvh - var(--drm-header-height, 0px));
    padding: 18px;
}

.drm-menu .drm-stepper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr minmax(0, 1fr) 1fr minmax(0, 1fr) 1fr minmax(0, 1fr);
    align-items: start;
    gap: 0;
    overflow: visible;
}

.drm-menu .drm-stepper > span {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 6px;
    padding: 0;
    color: var(--drm-soft-ink, #756d66);
    background: transparent;
    font-weight: 700;
    text-align: center;
}

.drm-menu .drm-stepper > span > b {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--drm-border, #e8ded5);
    border-radius: 50%;
    color: var(--drm-soft-ink, #756d66);
    background: var(--drm-paper, #fffefa);
}

.drm-menu .drm-stepper > span > b svg { width: 18px; height: 18px; }
.drm-menu .drm-stepper > span > small { max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.drm-menu .drm-stepper > span.is-active,
.drm-menu .drm-stepper > span.is-complete { color: var(--drm-primary, #bd4a2e); background: transparent; }
.drm-menu .drm-stepper > span.is-active > b,
.drm-menu .drm-stepper > span.is-complete > b { border-color: var(--drm-primary, #bd4a2e); color: #fff; background: var(--drm-primary, #bd4a2e); }
.drm-menu .drm-stepper > span.is-complete > b svg { display: none; }
.drm-menu .drm-stepper > span.is-complete > b::after { content: '✓'; font-size: 15px; font-weight: 900; }
.drm-menu .drm-step-arrow { align-self: center; width: 100%; height: 2px; margin-top: 0; color: var(--drm-border, #e8ded5); background: var(--drm-border, #e8ded5); }
.drm-menu .drm-step-arrow svg { display: none; }
.drm-menu .drm-step-label-short { display: none; }

.drm-menu .drm-choice { display: grid; gap: 12px; align-items: stretch; }
.drm-menu .drm-choice-card {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--drm-border, #e8ded5);
    border-radius: 16px;
    color: var(--drm-ink, #171717);
    background: var(--drm-paper, #fffefa);
    cursor: pointer;
}
.drm-menu .drm-choice-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drm-menu .drm-choice-card > svg { width: 28px; height: 28px; color: var(--drm-soft-ink, #756d66); }
.drm-menu .drm-choice-card > span { display: grid; gap: 4px; }
.drm-menu .drm-choice-card strong { font-size: 18px; }
.drm-menu .drm-choice-card small { color: var(--drm-soft-ink, #756d66); font-weight: 500; }
.drm-menu .drm-choice-card .drm-choice-check { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--drm-border, #e8ded5); border-radius: 50%; color: #fff; }
.drm-menu .drm-choice-card .drm-choice-check svg { display: none; width: 13px; height: 13px; }
.drm-menu .drm-choice-card:has(input:checked) { border-color: var(--drm-primary, #bd4a2e); background: var(--drm-primary-soft, #fff2ec); }
.drm-menu .drm-choice-card:has(input:checked) > svg { color: var(--drm-primary, #bd4a2e); }
.drm-menu .drm-choice-card:has(input:checked) .drm-choice-check { border-color: var(--drm-primary, #bd4a2e); background: var(--drm-primary, #bd4a2e); }
.drm-menu .drm-choice-card:has(input:checked) .drm-choice-check svg { display: block; }

.drm-menu .drm-promo-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--drm-ink, #171717); background: transparent; font-weight: 700; text-align: left; }
.drm-menu .drm-promo-toggle span { color: var(--drm-primary, #bd4a2e); font-size: 13px; }
.drm-menu .drm-promo-toggle.is-open span { display: none; }
.drm-menu .drm-promo-toggle.is-open::after { content: 'Fermer'; color: var(--drm-soft-ink, #756d66); font-size: 13px; }

.drm-menu .drm-checkout-summary { align-self: start; }
.drm-menu .drm-checkout-summary > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.drm-menu .drm-checkout-summary > summary::-webkit-details-marker { display: none; }
.drm-menu .drm-checkout-summary > summary span { font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.drm-menu .drm-checkout-summary > summary small { margin-left: auto; color: var(--drm-soft-ink, #756d66); font-size: 12px; }
.drm-menu .drm-checkout-summary > summary svg { width: 17px; height: 17px; transition: transform .18s ease; }
.drm-menu .drm-checkout-summary[open] > summary svg { transform: rotate(180deg); }
.drm-menu .drm-checkout-summary .drm-total strong { white-space: nowrap; }
.drm-menu .drm-checkout .drm-payment-actions { position: sticky; bottom: 0; z-index: 2; padding-top: 10px; background: var(--drm-cream, #f8f4ec); }
.drm-menu.is-checkout-open .drm-sticky-cart { display: none !important; }

@media (max-width: 520px) {
    .drm-menu .drm-checkout { top: var(--drm-header-height, 0px); height: calc(100dvh - var(--drm-header-height, 0px)); padding: 10px 0 0; }
    .drm-menu .drm-checkout form { max-height: calc(100dvh - var(--drm-header-height, 0px) - 10px); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
    .drm-menu .drm-stepper > span > b { width: 32px; height: 32px; }
    .drm-menu .drm-stepper > span > b svg { width: 15px; height: 15px; }
    .drm-menu .drm-step-arrow { display: block; margin-top: 0; }
    .drm-menu .drm-stepper > span > small { font-size: 9px; }
    .drm-menu .drm-step-label-full { display: none; }
    .drm-menu .drm-step-label-short { display: block; }
    .drm-menu .drm-choice-card { min-height: 82px; padding: 14px; }
    .drm-menu .drm-choice-card strong { font-size: 16px; }
    .drm-menu .drm-choice-card small { font-size: 12px; }
    .drm-menu .drm-checkout .drm-payment-actions { margin-right: -16px; margin-left: -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
}

/* Category tabs stay on one horizontal line; on small screens they scroll
 * horizontally instead of wrapping and shifting the product layout. */
.drm-menu .drm-category-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.drm-menu .drm-category-nav::-webkit-scrollbar { display: none; }

.drm-menu .drm-category-nav button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.1;
}

@media (max-width: 820px) {
    .drm-menu .drm-category-nav {
        gap: 8px;
    }

    .drm-menu .drm-category-nav button {
        min-width: max-content;
    }
}

@media (max-width: 520px) {
    .drm-menu-composer {
        padding: 12px;
    }

    .drm-menu-composer-card {
        width: calc(100vw - 24px);
        max-height: 86vh;
        border-radius: 12px;
    }

    .drm-menu {
        padding: 18px 12px calc(96px + env(safe-area-inset-bottom));
    }

    .drm-menu-head {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .drm-menu-title h1 {
        font-size: 24px;
    }

    .drm-products-head h2 {
        font-size: 34px;
    }

    .drm-cart-fab {
        position: fixed;
        right: 18px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        z-index: 900;
        width: 58px;
        height: 58px;
    }

    .drm-call-fab {
        position: fixed;
        right: 86px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        z-index: 900;
        width: 58px;
        min-height: 58px;
        padding: 0;
    }

    .drm-call-fab span {
        display: none;
    }

    .drm-category-tile {
        min-height: 150px;
    }

    .drm-category-tile > span:not(.drm-category-bg) {
        max-width: 86%;
        font-size: 30px;
        line-height: 1.08;
    }

    .drm-product {
        grid-template-columns: 1fr;
    }

    .drm-product img,
    .drm-product-placeholder {
        height: 190px;
    }

    .drm-cart {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        grid-template-rows: auto minmax(0, auto) auto;
        width: 100%;
        height: auto;
        max-height: min(78vh, 640px);
        border-top: 1px solid var(--line);
        border-left: 0;
        border-radius: 22px 22px 0 0;
        overflow: hidden;
    }

    .drm-cart.is-open {
        animation: drm-sheet-up 0.18s ease-out;
    }

    .drm-cart-head,
    .drm-cart footer {
        padding: 16px;
    }

    .drm-cart-head h2 {
        font-size: 22px;
    }

    [data-cart-lines] {
        max-height: 42vh;
        padding: 8px 16px;
    }

    .drm-cart-line {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 0;
    }

    .drm-cart-line img,
    .drm-cart-thumb {
        width: 50px;
        height: 50px;
    }

    .drm-cart-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .drm-cart-line > div:last-child {
        gap: 6px;
    }

    .drm-cart-line button {
        width: 34px;
        height: 34px;
    }

    .drm-cart footer {
        gap: 10px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .drm-checkout {
        align-items: end;
        place-items: end stretch;
        padding: 58px 0 0;
    }

    .drm-checkout form {
        height: auto;
        width: 100%;
        max-height: calc(100vh - 58px);
        max-height: calc(100dvh - 58px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 22px 22px 0 0;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        gap: 14px;
        animation: drm-sheet-up 0.18s ease-out;
    }

    .drm-checkout-close {
        position: sticky;
        top: 8px;
        z-index: 4;
        justify-self: end;
        margin-bottom: -44px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .drm-checkout-title {
        gap: 12px;
        margin: -18px -16px 0;
        padding: 18px 58px 14px 16px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .drm-checkout-title h2 {
        font-size: 28px;
        line-height: 1.05;
    }

    .drm-stepper {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .drm-stepper span {
        min-width: max-content;
        padding: 10px 12px;
        font-size: 14px;
    }

    .drm-choice {
        display: grid;
        grid-template-columns: 1fr;
    }

    .drm-form-grid,
    .drm-delivery-grid {
        gap: 12px;
    }

    .drm-field {
        font-size: 16px;
    }

    .drm-input-wrap {
        min-height: 54px;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 10px;
        padding: 0 12px;
    }

    .drm-input-wrap svg {
        width: 22px;
        height: 22px;
    }

    .drm-input-wrap input,
    .drm-input-wrap select {
        min-height: 50px;
    }

    .drm-checkout textarea {
        min-height: 110px;
    }

    .drm-checkout-summary,
    .drm-payment-box {
        padding: 14px;
    }

    .drm-summary-line {
        align-items: flex-start;
    }

    .drm-payment-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .drm-payment-actions button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .drm-products-head h2 {
        font-size: 30px;
    }

    .drm-category-tile > span:not(.drm-category-bg) {
        font-size: 27px;
    }
}

/* Final client precedence layer: follows legacy refresh rules above. */
.drm-menu {
    --drm-primary: var(--accent, #bd4a2e);
    --drm-bg: #f8f5ef;
    --drm-surface: #fff;
    --drm-text: #171717;
    --drm-muted: #6f6a64;
    --drm-border: #e9e2d9;
    max-width: 1360px;
    color: var(--drm-text);
    background: var(--drm-bg);
}
.drm-menu-head { min-height: 66px; margin: -22px -28px 24px; padding: 12px 28px; border-bottom: 1px solid var(--drm-border); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.drm-customer-desktop-nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.drm-customer-desktop-nav a { color: var(--drm-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.drm-customer-desktop-nav a:hover { color: var(--drm-primary); }
.drm-customer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--drm-text); font-size: 17px; font-weight: 800; text-decoration: none; }
.drm-customer-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--drm-primary); font-family: "Satisfy", cursive; font-size: 21px; }
.drm-customer-hero { position: relative; display: grid; min-height: 330px; overflow: hidden; border-radius: 14px; margin-bottom: 36px; background: #2b211c; }
.drm-customer-hero-image { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .7; }
.drm-customer-hero-image.has-image + .drm-customer-hero-content { background: linear-gradient(90deg, rgba(25,18,13,.82), rgba(25,18,13,.25)); }
.drm-customer-hero-content { position: relative; display: grid; align-content: center; gap: 12px; padding: 44px clamp(24px,6vw,72px); color: #fff; }
.drm-customer-hero h1 { margin: 0; color: #fff; font-size: clamp(32px,5vw,58px); line-height: .99; }
.drm-customer-hero p { margin: 0; color: rgba(255,255,255,.82); }
.drm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.drm-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 9px; padding: 12px 18px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.drm-btn-primary { color: #fff !important; background: var(--drm-primary) !important; }
.drm-btn-secondary { border: 1px solid rgba(255,255,255,.45); color: #fff !important; background: rgba(255,255,255,.08) !important; }
.drm-service-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.drm-service-points span { display: inline-flex; align-items: center; gap: 6px; }
.drm-customer-section-title { margin: 0 0 18px; color: var(--drm-text); font-size: clamp(28px,4vw,42px); }
.drm-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.drm-category-tile { min-height: 190px; border-radius: 14px; }
.drm-category-tile > span:not(.drm-category-bg) { font-family: Inter,system-ui,sans-serif; font-size: clamp(20px,2.5vw,30px); font-style: normal; font-weight: 750; }
.drm-products-section-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.drm-product { grid-template-columns: 1fr; min-height: 0; border-color: var(--drm-border); border-radius: 12px; box-shadow: 0 6px 20px rgba(53,37,27,.055); }
.drm-product img { width: 100%; height: 178px; min-height: 0; object-fit: cover; }
.drm-product > div { display: grid; gap: 10px; padding: 16px; }
.drm-product h3 { color: var(--drm-text); font-size: 17px; font-weight: 750; }
.drm-product p { display: -webkit-box; max-height: 3.9em; overflow: hidden; color: var(--drm-muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.drm-product footer button { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; padding: 0; font-size: 0; }
.drm-product footer button::after { content: "+"; font-size: 24px; font-weight: 500; }
.drm-product.no-image { display: block; }
.drm-product.no-image > div { min-height: 0; }
.drm-allergen-badge { border-radius: 999px; padding: 4px 8px; color: #89533f; background: #fbefe9; font-size: 10px; }
.drm-product-modal-card { width: min(940px,100%); border-radius: 14px; background: var(--drm-surface); }
.drm-product-modal-body h2 { font-family: Inter,system-ui,sans-serif; font-size: clamp(27px,4vw,40px); font-weight: 750; }
.drm-checkout form { width: min(1040px,96vw); grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); background: var(--drm-bg); }
.drm-checkout-summary { position: sticky; top: 12px; grid-column: 2; grid-row: 2/span 3; border: 1px solid var(--drm-border); border-radius: 12px; background: var(--drm-surface); }
.drm-order-confirmation { display: grid; min-height: 60vh; place-items: center; padding: 28px 0; }
.drm-confirmation-card { display: grid; justify-items: center; gap: 12px; width: min(560px,100%); border: 1px solid var(--drm-border); border-radius: 14px; padding: 42px 28px; background: var(--drm-surface); text-align: center; }
.drm-confirmation-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: #397345; background: #e7f2e7; font-size: 30px; font-weight: 800; }
.drm-confirmation-card h2 { margin: 0; font-size: 30px; }
.drm-confirmation-card p { margin: 0; color: var(--drm-muted); }
.drm-confirmation-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--drm-primary); font-size: 13px; font-weight: 750; }
.drm-confirmation-summary { width: 100%; margin: 12px 0; border-top: 1px solid var(--drm-border); }
.drm-confirmation-summary div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--drm-border); }

@media (min-width: 821px) {
    .drm-menu.has-cart { padding-right: 380px; }
    .drm-menu.has-cart .drm-cart { position: fixed; top: 86px; right: max(24px,calc((100vw - 1360px)/2)); display: grid !important; width: 340px; height: calc(100vh - 110px); max-height: 760px; border: 1px solid var(--drm-border); border-radius: 14px; }
}
@media (min-width: 1280px) { .drm-products-section-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1023px) { .drm-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .drm-products-section-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .drm-checkout form { grid-template-columns: 1fr; } .drm-checkout-summary { position: static; grid-column: 1; grid-row: auto; } }
@media (max-width: 767px) {
    .drm-menu { padding: 0 16px calc(92px + env(safe-area-inset-bottom)); }
    .drm-menu-head { margin: 0 -16px 18px; padding: 10px 16px; }
    .drm-customer-desktop-nav, .drm-call-fab { display: none; }
    .drm-customer-hero { min-height: 360px; margin: 0 -2px 28px; }
    .drm-customer-hero-content { align-content: end; padding: 28px 22px; }
    .drm-customer-hero h1 { font-size: 36px; }
    .drm-category-grid { grid-template-columns: 1fr; gap: 10px; }
    .drm-category-tile { min-height: 142px; }
    .drm-products-head { top: 62px; }
    .drm-category-nav { top: 116px; }
    .drm-products-section-grid { grid-template-columns: 1fr; gap: 10px; }
    .drm-product { grid-template-columns: minmax(0,1fr) 90px; }
    .drm-product img { grid-column: 2; grid-row: 1; width: 80px; height: 80px; min-height: 80px; margin: 14px 14px 0 0; border-radius: 10px; }
    .drm-product > div { grid-column: 1; grid-row: 1; padding: 14px; }
    .drm-product.no-image { display: block; }
    .drm-product.no-image > div { min-height: 0; }
    .drm-product-modal { padding: 0; place-items: end center; }
    .drm-product-modal-card { grid-template-columns: 1fr; width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; }
    .drm-product-modal-image { height: 210px; min-height: 210px; max-height: 30dvh; }
    .drm-product-modal-body { padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
    .drm-checkout form { width: 100%; max-height: calc(100dvh - 46px); border-radius: 20px 20px 0 0; }
}
@media (max-width: 430px) { .drm-customer-hero h1 { font-size: 33px; } .drm-service-points { justify-content: space-between; gap: 8px; font-size: 11px; } }

/* Client ordering system — Restaurant Tita design layer. */
.drm-menu {
    --drm-bg: #f8f5ef;
    --drm-surface: #fff;
    --drm-surface-soft: #fbf8f3;
    --drm-text: #171717;
    --drm-muted: #6f6a64;
    --drm-border: #e9e2d9;
    --drm-primary: var(--accent, #bd4a2e);
    --drm-primary-hover: #9f3d27;
    --drm-primary-soft: #f8e9e3;
    --drm-success: #e7f2e7;
    --drm-warning: #fff0d9;
    --drm-danger: #f9e8e5;
    --drm-radius-sm: 8px;
    --drm-radius-md: 12px;
    --drm-radius-lg: 14px;
    --drm-shadow-sm: 0 6px 20px rgba(53, 37, 27, .055);
    --drm-shadow-md: 0 20px 55px rgba(53, 37, 27, .15);
    max-width: 1360px;
    padding: 22px 28px 56px;
    color: var(--drm-text);
    background: var(--drm-bg);
}

.drm-menu,
.drm-menu * { border-color: var(--drm-border); }
.drm-menu button,
.drm-menu input,
.drm-menu textarea,
.drm-menu select { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.drm-menu button:focus-visible,
.drm-menu a:focus-visible,
.drm-menu input:focus-visible,
.drm-menu textarea:focus-visible,
.drm-menu select:focus-visible { outline: 3px solid rgba(189, 74, 46, .24); outline-offset: 2px; }

.drm-menu-head {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 66px;
    margin: -22px -28px 24px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--drm-border);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.drm-customer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--drm-text); font-size: 17px; font-weight: 800; text-decoration: none; }
.drm-customer-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--drm-primary); font-family: "Satisfy", cursive; font-size: 21px; font-weight: 500; }
.drm-customer-desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; margin-right: auto; }
.drm-customer-desktop-nav a { color: var(--drm-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.drm-customer-desktop-nav a:hover { color: var(--drm-primary); }
.drm-menu-actions { gap: 8px; }
.drm-call-fab,
.drm-cart-fab { width: 42px; min-height: 42px; height: 42px; border: 1px solid var(--drm-border); color: var(--drm-text); background: transparent; box-shadow: none; }
.drm-call-fab:hover,
.drm-cart-fab:hover { color: var(--drm-primary); background: var(--drm-primary-soft); }
.drm-cart-fab span { top: -5px; right: -5px; min-width: 20px; height: 20px; border: 2px solid var(--drm-surface); color: #fff; background: var(--drm-primary); font-size: 10px; }

.drm-customer-hero { position: relative; display: grid; min-height: 330px; overflow: hidden; border-radius: var(--drm-radius-lg); margin-bottom: 36px; background: #2b211c; }
.drm-customer-hero-image { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .7; }
.drm-customer-hero-image.has-image + .drm-customer-hero-content { background: linear-gradient(90deg, rgba(25, 18, 13, .82), rgba(25, 18, 13, .25)); }
.drm-customer-hero-content { position: relative; display: grid; align-content: center; gap: 12px; max-width: 640px; padding: 44px clamp(24px, 6vw, 72px); color: #fff; }
.drm-eyebrow { color: var(--drm-primary); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.drm-customer-hero .drm-eyebrow { color: #f6c0ad; }
.drm-customer-hero h1 { margin: 0; color: #fff; font-size: clamp(32px, 5vw, 58px); line-height: .99; letter-spacing: -.035em; }
.drm-customer-hero p { max-width: 420px; margin: 0; color: rgba(255,255,255,.82); font-size: 16px; }
.drm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.drm-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 9px; padding: 12px 18px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.drm-btn:hover { transform: translateY(-1px); }
.drm-btn-primary { color: #fff !important; background: var(--drm-primary) !important; }
.drm-btn-primary:hover { background: var(--drm-primary-hover) !important; }
.drm-btn-secondary { border: 1px solid rgba(255,255,255,.45); color: #fff !important; background: rgba(255,255,255,.08) !important; }
.drm-btn-secondary:hover { background: rgba(255,255,255,.17) !important; }
.drm-service-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.drm-service-points span { display: inline-flex; align-items: center; gap: 6px; }
.drm-service-points svg { width: 16px; height: 16px; }
.drm-customer-section-title { margin: 0 0 18px; color: var(--drm-text); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }

.drm-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.drm-category-tile { min-height: 190px; border-radius: var(--drm-radius-lg); box-shadow: var(--drm-shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.drm-category-tile:hover { transform: translateY(-2px); box-shadow: var(--drm-shadow-md); }
.drm-category-tile > span:not(.drm-category-bg) { font-family: Inter, system-ui, sans-serif; font-size: clamp(20px, 2.5vw, 30px); font-style: normal; font-weight: 750; }
.drm-category-bg { background: #e8ddd2; }

.drm-products-head { position: sticky; top: 66px; z-index: 25; margin: -1px 0 0; padding: 15px 0; background: var(--drm-bg); }
.drm-products-head h2 { font-size: clamp(26px, 4vw, 42px); letter-spacing: -.03em; }
.drm-back-icon { width: 42px; height: 42px; flex-basis: 42px; border: 1px solid var(--drm-border); border-radius: 50%; color: var(--drm-text) !important; background: var(--drm-surface) !important; font-size: 22px !important; }
.drm-category-nav { top: 122px; margin: 0 -2px 24px; padding: 8px 2px; background: var(--drm-bg); }
.drm-category-nav button { border-color: var(--drm-border); color: var(--drm-muted); background: var(--drm-surface); font-weight: 700; }
.drm-category-nav button.is-active { border-color: var(--drm-primary); color: #fff; background: var(--drm-primary); }
.drm-products-section { margin-bottom: 38px; }
.drm-products-section > h2 { color: var(--drm-text); font-family: Inter, system-ui, sans-serif; font-size: 24px; font-weight: 750; }
.drm-products-section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.drm-product { grid-template-columns: 1fr; min-height: 0; border: 1px solid var(--drm-border); border-radius: var(--drm-radius-md); box-shadow: var(--drm-shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.drm-product:hover { transform: translateY(-2px); box-shadow: var(--drm-shadow-md); }
.drm-product img { width: 100%; height: 178px; min-height: 0; object-fit: cover; }
.drm-product > div { display: grid; gap: 10px; padding: 16px; }
.drm-product h3 { color: var(--drm-text); font-size: 17px; font-weight: 750; }
.drm-product p { display: -webkit-box; max-height: 3.9em; overflow: hidden; color: var(--drm-muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.drm-product footer { margin-top: 3px; }
.drm-product footer strong { color: var(--drm-text); font-size: 16px; }
.drm-product footer button { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; padding: 0; color: #fff; background: var(--drm-primary); font-size: 0; }
.drm-product footer button::after { content: "+"; font-size: 24px; font-weight: 500; line-height: 1; }
.drm-product.no-image { display: block; }
.drm-product.no-image > div { min-height: 0; }
.drm-product-allergens { min-height: 22px; }
.drm-allergen-badge { border-color: #ead4c8; border-radius: 999px; padding: 4px 8px; color: #89533f; background: #fbefe9; font-size: 10px; font-weight: 750; }

.drm-cart { border-left: 1px solid var(--drm-border); background: var(--drm-surface); box-shadow: var(--drm-shadow-md); }
.drm-cart-head h2 { font-size: 20px; }
.drm-cart-line img, .drm-cart-thumb { border-radius: 9px; background: #f4eee8; }
.drm-cart footer { background: var(--drm-surface); }
.drm-total { padding-top: 12px; border-top: 1px solid var(--drm-border); }
.drm-total strong { color: var(--drm-text); font-size: 21px; }
.drm-cart .drm-primary, .drm-checkout .drm-primary { min-height: 50px; border-radius: 9px; background: var(--drm-primary); }
.drm-sticky-cart { border-color: var(--drm-primary); border-radius: 12px; background: var(--drm-primary); box-shadow: var(--drm-shadow-md); }

.drm-product-modal { background: rgba(23, 23, 23, .52); }
.drm-product-modal-card { width: min(940px, 100%); border-color: var(--drm-border); border-radius: var(--drm-radius-lg); background: var(--drm-surface); box-shadow: var(--drm-shadow-md); animation: drm-client-fade-up .2s ease-out; }
.drm-product-modal-body { padding: 34px; }
.drm-product-modal-body h2 { font-family: Inter, system-ui, sans-serif; font-size: clamp(27px, 4vw, 40px); font-weight: 750; }
.drm-product-modal-body p { color: var(--drm-muted); }
.drm-modal-instructions textarea,
.drm-checkout input,
.drm-checkout textarea,
.drm-checkout select { border-color: var(--drm-border); border-radius: 9px; background: var(--drm-surface); }
.drm-modal-instructions textarea:focus,
.drm-checkout input:focus,
.drm-checkout textarea:focus,
.drm-checkout select:focus { border-color: var(--drm-primary); box-shadow: 0 0 0 3px rgba(189,74,46,.12); outline: 0; }

.drm-checkout form { width: min(1040px, 96vw); grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: start; border-radius: var(--drm-radius-lg); background: var(--drm-bg); box-shadow: var(--drm-shadow-md); }
.drm-checkout-title, .drm-checkout form > [data-checkout-step], .drm-payment-actions { grid-column: 1; }
.drm-checkout-summary { position: sticky; top: 12px; grid-column: 2; grid-row: 2 / span 3; margin: 0; border: 1px solid var(--drm-border); border-radius: var(--drm-radius-md); padding: 18px; background: var(--drm-surface); }
.drm-checkout-summary h3 { color: var(--drm-text); }
.drm-choice label, .drm-payment-method > span { border-color: var(--drm-border); border-radius: var(--drm-radius-md); background: var(--drm-surface); }
.drm-choice label:has(input:checked), .drm-payment-method input:checked + span { border-color: var(--drm-primary); background: var(--drm-primary-soft); }
.drm-stepper span.is-active { color: var(--drm-primary); background: var(--drm-primary-soft); }
.drm-order-confirmation { display: grid; min-height: 60vh; place-items: center; padding: 28px 0; }
.drm-confirmation-card { display: grid; justify-items: center; gap: 12px; width: min(560px, 100%); border: 1px solid var(--drm-border); border-radius: var(--drm-radius-lg); padding: 42px 28px; background: var(--drm-surface); box-shadow: var(--drm-shadow-sm); text-align: center; }
.drm-confirmation-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: #397345; background: var(--drm-success); font-size: 30px; font-weight: 800; }
.drm-confirmation-card h2 { margin: 0; font-size: 30px; }
.drm-confirmation-card p { margin: 0; color: var(--drm-muted); }
.drm-confirmation-number { font-size: 18px; }
.drm-confirmation-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--drm-primary); font-size: 13px; font-weight: 750; }
.drm-confirmation-summary { width: 100%; margin: 12px 0; border-top: 1px solid var(--drm-border); }
.drm-confirmation-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--drm-border); }
.drm-confirmation-summary div span { text-align: left; }
.drm-confirmation-summary div small { display: block; margin-top: 4px; color: var(--drm-muted); line-height: 1.5; }
.drm-menu .drm-confirmation-card .drm-confirmation-action { display: inline-flex; width: min(100%, 380px); min-height: 58px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #765844; border-radius: 12px; color: #765844; background: transparent; font-weight: 750; }
.drm-menu .drm-confirmation-card .drm-confirmation-action svg { width: 22px; height: 22px; stroke-width: 2; }
.drm-menu .drm-confirmation-card .drm-confirmation-action:hover,
.drm-menu .drm-confirmation-card .drm-confirmation-action:focus-visible { color: #765844; background: #fffaf5; border-color: #765844; }

@keyframes drm-client-fade-up { from { transform: translateY(12px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 821px) {
    .drm-menu.has-cart { padding-right: 380px; }
    .drm-menu.has-cart .drm-cart { position: fixed; top: 86px; right: max(24px, calc((100vw - 1360px) / 2)); display: grid !important; width: 340px; height: calc(100vh - 110px); max-height: 760px; border: 1px solid var(--drm-border); border-radius: var(--drm-radius-lg); }
    .drm-menu.has-cart .drm-cart.is-open { display: grid !important; }
}

@media (min-width: 1280px) {
    .drm-products-section-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    .drm-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .drm-products-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .drm-customer-desktop-nav { gap: 14px; }
    .drm-checkout form { grid-template-columns: 1fr; }
    .drm-checkout-summary { position: static; grid-column: 1; grid-row: auto; }
}

@media (max-width: 767px) {
    .drm-menu { padding: 0 16px calc(92px + env(safe-area-inset-bottom)); }
    .drm-menu-head { margin: 0 -16px 18px; padding: 10px 16px; }
    .drm-customer-desktop-nav, .drm-call-fab { display: none; }
    .drm-customer-brand { font-size: 16px; }
    .drm-customer-hero { min-height: 390px; margin: 0 -2px 28px; }
    .drm-customer-hero-content { align-content: end; padding: 28px 22px; }
    .drm-customer-hero h1 { font-size: 38px; }
    .drm-customer-hero p { font-size: 14px; }
    .drm-service-points { gap: 11px; font-size: 11px; }
    .drm-category-grid { grid-template-columns: 1fr; gap: 10px; }
    .drm-category-tile { min-height: 142px; }
    .drm-category-tile > span:not(.drm-category-bg) { font-size: 25px; }
    .drm-products-head { top: 62px; padding: 11px 0; }
    .drm-products-head h2 { font-size: 28px; }
    .drm-category-nav { top: 116px; margin-bottom: 18px; }
    .drm-products-section-grid { grid-template-columns: 1fr; gap: 10px; }
    .drm-product { grid-template-columns: minmax(0, 1fr) 90px; min-height: 0; }
    .drm-product img { grid-column: 2; grid-row: 1; width: 80px; height: 80px; min-height: 80px; margin: 14px 14px 0 0; border-radius: 10px; }
    .drm-product > div { grid-column: 1; grid-row: 1; padding: 14px; }
    .drm-product.no-image { display: block; }
    .drm-product.no-image > div { min-height: 0; }
    .drm-product-modal { padding: 0; place-items: end center; }
    .drm-product-modal-card { grid-template-columns: 1fr; width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; }
    .drm-product-modal-image { height: 210px; min-height: 210px; max-height: 30dvh; }
    .drm-product-modal-body { padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
    .drm-checkout form { width: 100%; max-height: calc(100dvh - 46px); border-radius: 20px 20px 0 0; }
    .drm-confirmation-card { padding: 32px 18px; }
}

@media (max-width: 430px) {
    .drm-customer-hero { min-height: 355px; }
    .drm-customer-hero h1 { font-size: 33px; }
    .drm-hero-actions .drm-btn { flex: 1; padding-right: 12px; padding-left: 12px; }
    .drm-service-points { justify-content: space-between; }
}

/* Cart and checkout tunnel */
.drm-sticky-cart {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 18px;
    z-index: 880;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    border: 1px solid color-mix(in srgb, var(--accent), #fff 30%);
    border-radius: 16px;
    padding: 12px 16px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 35px color-mix(in srgb, var(--accent), transparent 62%);
    font-size: 14px;
    text-align: left;
}

.drm-sticky-cart strong {
    white-space: nowrap;
}

.drm-cart-breakdown {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
}

.drm-delivery-availability {
    border-radius: 10px;
    padding: 11px 13px;
    font-weight: 850;
}

.drm-delivery-availability.is-available {
    color: #166534;
    background: #f0fdf4;
}

.drm-delivery-availability.is-unavailable {
    color: #991b1b;
    background: #fef2f2;
}

.drm-cart-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.drm-cart-line-actions {
    display: grid !important;
    justify-items: end;
    gap: 5px !important;
}

.drm-cart-line-actions > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.drm-cart-line button.drm-cart-text-action {
    width: auto;
    height: auto;
    padding: 0;
    color: var(--accent);
    background: transparent;
    font-size: 12px;
    font-weight: 850;
}

.drm-checkout-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.drm-checkout .drm-stepper {
    grid-template-columns: minmax(0, 1fr) 1fr minmax(0, 1fr) 1fr minmax(0, 1fr);
}

.drm-checkout-step-actions .drm-primary,
.drm-checkout-step-actions .drm-back {
    min-width: 150px;
}

.drm-payment-actions .drm-primary {
    min-width: 190px;
}

.drm-menu .drm-checkout-step-actions .drm-back,
.drm-menu .drm-payment-actions .drm-back {
    border: 1px solid var(--drm-primary, #bd4a2e);
    color: var(--drm-primary, #bd4a2e) !important;
    background: transparent !important;
}

.drm-menu .drm-checkout-step-actions .drm-back:hover,
.drm-menu .drm-payment-actions .drm-back:hover {
    color: var(--drm-primary, #bd4a2e) !important;
    background: var(--drm-primary-soft, #fff2ec) !important;
}

.drm-button-loader {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: drm-spin .7s linear infinite;
}

@media (min-width: 821px) {
    .drm-sticky-cart {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .drm-sticky-cart {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
        min-height: 54px;
        border-radius: 15px;
        padding: 11px 13px;
        font-size: 13px;
    }

    .drm-sticky-cart strong {
        font-size: 12px;
    }

    .drm-checkout-step-actions {
        position: sticky;
        bottom: -18px;
        z-index: 3;
        margin: 4px -16px -18px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .drm-checkout-step-actions .drm-primary,
    .drm-checkout-step-actions .drm-back {
        min-width: 0;
        flex: 1;
    }
}

@keyframes drm-spin {
    to { transform: rotate(360deg); }
}

@keyframes drm-sheet-up {
    from {
        transform: translateY(24px);
        opacity: 0.88;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Client menu refresh: category navigation and compact product cards. */
.drm-category-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 24px;
    padding: 10px 2px;
    background: #f8f1e8;
    scrollbar-width: thin;
}

.drm-category-nav button {
    flex: 0 0 auto;
    border: 1px solid #eadbca;
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.drm-category-nav button.is-active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.drm-products-grid {
    display: block;
}

.drm-products-section {
    scroll-margin-top: 72px;
    margin-bottom: 34px;
}

.drm-products-section > h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 36px);
}

.drm-products-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.drm-product.no-image {
    display: block;
    min-height: 0;
}

.drm-product.no-image > div {
    min-height: 190px;
}

.drm-product.no-image footer {
    align-self: end;
    margin-top: auto;
}

.drm-product-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(22, 22, 22, .48);
}

.drm-product-modal-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(320px, 1fr);
    width: min(820px, 100%);
    max-height: min(90vh, 760px);
    overflow: auto;
    border: 1px solid #eadbca;
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 30px 90px rgba(22, 22, 22, .28);
}

.drm-product-modal-card.no-image {
    display: block;
    max-width: 560px;
}

.drm-product-modal-image {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    background: #f4eee7;
}

.drm-product-modal-body {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 34px 30px 28px;
}

.drm-product-modal-body h2 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 42px);
}

.drm-product-modal-body p {
    margin: 0;
    color: var(--muted);
}

.drm-modal-options {
    display: grid;
    gap: 12px;
}

.drm-classic-option-groups { gap: 20px; }
.drm-classic-option-groups .drm-composer-choice { padding: 16px 0 0; border-top: 1px solid var(--line, #e9e3dc); }
.drm-classic-option-groups .drm-composer-choice legend { align-items: flex-start; font-size: 17px; }
.drm-classic-option-groups .drm-composer-choice legend small { font-size: 11px; }
.drm-classic-option-groups .drm-composer-choice label { min-height: 54px; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.drm-classic-option-groups .drm-composer-choice label > span b { font-size: 14px; }
.drm-classic-option-groups .drm-composer-choice label > em { font-size: 12px; }
.drm-option-group-description, .drm-option-group-empty { margin: 0 0 5px; color: var(--drm-muted, #716c66); font-size: 13px; line-height: 1.45; }

.drm-modal-instructions {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.drm-modal-instructions textarea {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.drm-modal-quantity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 850;
}

.drm-modal-quantity button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border-radius: 999px;
}

.drm-modal-add {
    width: 100%;
    margin-top: 4px;
}

body.drm-modal-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .drm-products-section-grid {
        grid-template-columns: 1fr;
    }

    .drm-product-modal {
        place-items: end center;
        padding: 0;
    }

    .drm-product-modal-card {
        grid-template-columns: 1fr;
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .drm-product-modal-image {
        height: 190px;
        min-height: 190px;
        max-height: 28vh;
    }

    .drm-product-modal-body {
        padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .drm-menu {
        padding-right: 10px;
        padding-left: 10px;
    }

    .drm-product-modal-body {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Reference layout fidelity: Restaurant Tita customer ordering flow. */
.drm-menu {
    --drm-primary: #c94e35;
    --drm-primary-dark: #a83d2a;
    --drm-cream: #f8f4ec;
    --drm-paper: #fffefa;
    --drm-ink: #171717;
    --drm-soft-ink: #6e6962;
    --drm-rule: #eee7dd;
    max-width: 1440px;
    width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding: 0 24px 60px;
    background: var(--drm-cream);
    color: var(--drm-ink);
}

.drm-menu-head {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 74px;
    margin: 0 -24px 0;
    padding: 14px 42px;
    border-bottom: 1px solid var(--drm-rule);
    background: rgba(255, 254, 250, .96);
    backdrop-filter: blur(16px);
}

.drm-menu-title { min-width: 0; }
.drm-customer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    color: var(--drm-ink);
    text-decoration: none;
}
.drm-customer-brand-script {
    color: var(--drm-primary);
    font-family: "Satisfy", "Brush Script MT", cursive;
    font-size: 34px;
    font-weight: 400;
    line-height: .78;
    transform: rotate(-5deg);
}
.drm-customer-brand-subtitle {
    margin-top: 7px;
    color: var(--drm-soft-ink);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.drm-customer-desktop-nav { justify-content: center; gap: 28px; }
.drm-customer-desktop-nav a { color: var(--drm-ink); font-size: 11px; letter-spacing: .04em; }
.drm-customer-desktop-nav a:nth-child(2) { color: var(--drm-primary); }
.drm-menu-actions { justify-content: flex-end; }
.drm-call-fab { display: none; }
.drm-cart-fab {
    display: inline-flex;
    width: auto;
    min-width: 46px;
    height: 42px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--drm-rule);
    border-radius: 10px !important;
    padding: 0 12px !important;
    color: var(--drm-primary);
    background: #fff;
    box-shadow: none;
}
.drm-cart-fab::after {
    content: "Commander";
    color: var(--drm-primary);
    font-size: 12px;
    font-weight: 800;
}
.drm-cart-fab span {
    top: -7px;
    right: -8px;
    min-width: 19px;
    height: 19px;
    border: 0;
    padding: 0 5px;
    color: #fff;
    background: var(--drm-primary);
    font-size: 10px;
}

.drm-customer-hero {
    min-height: 510px;
    margin: 0 -24px 42px;
    border-radius: 0 0 22px 22px;
    background: #38251e;
}
.drm-customer-hero-image { opacity: .82; }
.drm-customer-hero-image.has-image + .drm-customer-hero-content {
    background: linear-gradient(90deg, rgba(22, 14, 10, .83) 0%, rgba(22, 14, 10, .2) 72%);
}
.drm-customer-hero-content { max-width: 700px; padding: 76px clamp(34px, 8vw, 118px); }
.drm-customer-hero h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.045em; }
.drm-customer-hero p { max-width: 320px; font-size: 15px; }
.drm-eyebrow { color: var(--drm-primary); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.drm-customer-hero .drm-eyebrow { color: #ffd7c7; }
.drm-btn { min-height: 44px; border-radius: 8px; font-size: 12px; }
.drm-btn-primary { background: var(--drm-primary) !important; }
.drm-btn-primary:hover { background: var(--drm-primary-dark) !important; }
.drm-btn-secondary { border-color: rgba(255,255,255,.7); }
.drm-service-points { gap: 20px; }
.drm-customer-section-title { margin: 0 0 20px; font-family: Georgia, serif; font-size: 34px; letter-spacing: -.03em; }

.drm-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.drm-category-tile {
    min-height: 230px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(75, 51, 36, .09);
}
.drm-category-tile::before { background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.62)); }
.drm-category-tile > span:not(.drm-category-bg) {
    align-self: end;
    justify-self: start;
    max-width: 82%;
    padding: 0 20px 18px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
    text-shadow: none;
}

.drm-products-head {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 -24px;
    padding: 26px 24px 12px;
    background: rgba(248,244,236,.96);
    backdrop-filter: blur(12px);
}
.drm-products-head h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.drm-products-heading { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: center; gap: 12px; }
.drm-products-heading h2 { overflow: hidden; color: var(--drm-ink); font-family: Inter, system-ui, sans-serif; font-size: clamp(20px, 3vw, 28px); font-weight: 750; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.drm-products-heading > span { flex: 0 0 auto; border-radius: 999px; padding: 8px 12px; color: var(--drm-soft-ink); background: #f1ece4; font-size: 12px; white-space: nowrap; }
.drm-back-icon { width: 36px; height: 36px; padding: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--drm-ink) !important; font-size: 22px; }
.drm-category-nav { top: 74px; margin: 0 -24px 26px; padding: 10px 24px; border-bottom: 1px solid var(--drm-rule); background: rgba(248,244,236,.96); }
.drm-category-nav button { border-color: transparent; padding: 8px 14px; color: var(--drm-soft-ink); background: transparent; font-size: 12px; font-weight: 750; }
.drm-category-nav button.is-active { border-color: var(--drm-primary); color: var(--drm-primary); background: #fff8f4; }
.drm-product-filters { display: none; }
.drm-products-section { scroll-margin-top: 175px; margin-bottom: 42px; }
.drm-products-section > h2 { margin: 18px 0 10px; color: var(--drm-ink); font-family: Inter, system-ui, sans-serif; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.drm-products-section-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.drm-product { overflow: hidden; border: 1px solid var(--drm-rule); border-radius: 12px; background: var(--drm-paper); box-shadow: 0 6px 18px rgba(75,51,36,.06); }
.drm-product img { height: 155px; }
.drm-product > div { gap: 8px; padding: 13px; }
.drm-product h3 { font-size: 14px; letter-spacing: -.01em; }
.drm-product p { min-height: 34px; font-size: 11px; line-height: 1.4; }
.drm-product-allergens { min-height: 20px; }
.drm-allergen-badge { padding: 4px 7px; font-size: 9px; }
.drm-product footer { align-items: center; margin-top: 3px; }
.drm-product footer strong { font-size: 12px; }
.drm-product footer button { width: 30px; height: 30px; background: var(--drm-primary); }
.drm-product footer button.drm-product-add { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; color: #fff; font-size: 0; line-height: 1; }
.drm-product footer button.drm-product-add::after { content: none !important; display: none !important; }
.drm-product footer button.drm-product-add .drm-add-icon { display: block; width: 21px; height: 21px; margin: 0; align-self: center; justify-self: center; color: #fff; stroke-width: 2.2; line-height: 0; }
.drm-product footer button.drm-product-add .drm-add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drm-product.no-image > div { min-height: 190px; }

.drm-product-modal { background: rgba(27,18,13,.5); }
.drm-product-modal-card { overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 24px 75px rgba(35,20,12,.25); }
.drm-product-modal-image { min-height: 360px; }
.drm-product-modal-body { gap: 12px; padding: 24px 28px 24px; }
.drm-product-modal-body h2 { font-family: Georgia, serif; font-size: 32px; }
.drm-product-modal-body p { font-size: 13px; line-height: 1.5; }
.drm-product-option { gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--drm-rule); }
.drm-product-option select { min-height: 42px; border-color: var(--drm-rule); border-radius: 8px; }
.drm-modal-instructions textarea { border-color: var(--drm-rule); border-radius: 8px; }
.drm-modal-quantity { justify-content: center; }
.drm-modal-quantity button { width: 28px; height: 28px; border: 1px solid var(--drm-rule); color: var(--drm-primary); background: #fff; }
.drm-modal-add { min-height: 45px; border-radius: 8px; background: var(--drm-primary) !important; }

.drm-cart { border-color: var(--drm-rule); border-radius: 16px; background: var(--drm-paper); box-shadow: 0 18px 55px rgba(55,38,27,.13); }
.drm-cart-head { padding: 19px 20px; border-bottom: 1px solid var(--drm-rule); }
.drm-cart-head h2 { font-family: Georgia, serif; font-size: 23px; }
.drm-cart-line { padding: 14px 20px; border-bottom: 1px solid var(--drm-rule); }
.drm-cart-line img, .drm-cart-thumb { width: 48px; height: 48px; border-radius: 8px; }
.drm-cart-info strong { font-size: 13px; }
.drm-cart-info small { font-size: 12px; font-weight: 800; }
.drm-cart-line-actions > div button { width: 22px; height: 22px; border-radius: 50%; padding: 0; color: var(--drm-ink); background: #f4efe8; }
.drm-cart-line button.drm-cart-text-action { color: var(--drm-primary); }
.drm-cart footer { padding: 18px 20px 20px; }
.drm-cart .drm-primary { width: 100%; border-radius: 8px; background: var(--drm-primary); }

.drm-checkout { background: rgba(27,18,13,.5); }
.drm-checkout form { width: min(1080px, 94vw); border-radius: 18px; background: var(--drm-cream); }
.drm-checkout-title { padding: 25px 28px 18px; border-bottom: 1px solid var(--drm-rule); }
.drm-checkout-title h2 { font-family: Georgia, serif; font-size: 28px; }
.drm-stepper span { color: var(--drm-soft-ink); font-size: 11px; }
.drm-stepper span.is-active { color: var(--drm-primary); }
.drm-checkout [data-checkout-step] { padding: 24px 28px; }
.drm-choice label, .drm-payment-method { border: 1px solid var(--drm-rule); border-radius: 12px; background: var(--drm-paper); }
.drm-choice input:checked + *, .drm-payment-method input:checked + * { color: var(--drm-primary); }
.drm-checkout-summary { margin: 24px; padding: 18px; border-color: var(--drm-rule); border-radius: 12px; background: var(--drm-paper); }
.drm-checkout-summary h3 { font-family: Georgia, serif; }
.drm-checkout .drm-primary { border-radius: 8px; background: var(--drm-primary); }

@media (min-width: 821px) {
    .drm-menu.has-cart { padding-right: 380px; }
    .drm-menu.has-cart .drm-cart { right: max(24px, calc((100vw - 1440px) / 2)); width: 340px; }
}

@media (max-width: 1023px) {
    .drm-products-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .drm-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .drm-menu { padding: 0 12px calc(92px + env(safe-area-inset-bottom)); }
    .drm-menu-head { grid-template-columns: 1fr auto; min-height: 62px; margin: 0 -12px; padding: 11px 18px; }
    .drm-customer-brand-script { font-size: 31px; }
    .drm-customer-brand-subtitle { display: none; }
    .drm-customer-desktop-nav { display: none; }
    .drm-cart-fab { width: 38px; min-width: 38px; height: 38px; padding: 0 !important; border: 0; background: transparent; }
    .drm-cart-fab::after { display: none; }
    .drm-cart-fab svg { width: 20px; height: 20px; }
    .drm-customer-hero { min-height: 590px; margin: 0 -12px 30px; border-radius: 0 0 18px 18px; }
    .drm-customer-hero-content { padding: 30px 22px 25px; }
    .drm-customer-hero h1 { font-size: 36px; }
    .drm-hero-actions { display: grid; grid-template-columns: 1fr; }
    .drm-service-points { justify-content: space-between; gap: 4px; font-size: 10px; }
    .drm-customer-section-title { font-size: 29px; }
    .drm-category-grid { grid-template-columns: 1fr; gap: 10px; }
    .drm-category-tile { min-height: 145px; border-radius: 12px; }
    .drm-category-tile > span:not(.drm-category-bg) { padding: 0 15px 14px; font-size: 19px; }
    .drm-products-head { top: 0; margin: 0 -12px; padding: 18px 14px 9px; }
    .drm-products-heading { gap: 8px; }
    .drm-products-heading h2 { font-size: 18px; }
    .drm-products-heading > span { padding: 7px 9px; font-size: 10px; }
    .drm-category-nav { top: 62px; max-width: 100vw; margin: 0 -12px 18px; padding: 8px 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
    .drm-category-nav::-webkit-scrollbar { display: none; }
    .drm-category-nav button { min-width: max-content; }
    .drm-category-nav { display: flex; top: 62px; max-width: 100vw; gap: 6px; margin: 0 -12px 12px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
    .drm-category-nav::-webkit-scrollbar { display: none; }
    .drm-category-nav button { flex: 0 0 auto; min-width: 76px; min-height: 34px; border: 1px solid transparent; border-radius: 10px; padding: 6px 12px; color: #5e5b58; background: #f2eee7; font-size: 12px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
    .drm-category-nav button.is-active { border-color: var(--drm-primary); color: #fff; background: var(--drm-primary); }
    .drm-products-section-grid { grid-template-columns: 1fr; gap: 9px; }
    .drm-product { grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; min-height: 122px; border-radius: 12px; }
    .drm-product img { grid-column: 1; grid-row: 1; width: 96px; height: auto; min-height: 122px; align-self: stretch; margin: 0; border-radius: 11px 0 0 11px; }
    .drm-product > div { grid-column: 2; grid-row: 1; min-width: 0; min-height: 122px; align-content: start; gap: 2px; padding: 12px 11px; }
    .drm-product h3 { font-size: 14px; }
    .drm-product p { display: -webkit-box; min-height: 0; max-height: 2.8em; margin-top: 0; overflow: hidden; font-size: 10px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .drm-product footer { margin-top: 4px; }
    .drm-product footer button.drm-product-add { width: 34px; height: 34px; }
    .drm-product footer button.drm-product-add .drm-add-icon { width: 22px; height: 22px; }
    .drm-product.no-image { display: block; }
    .drm-product.no-image > div { min-height: 0; }
    .drm-product.no-image footer { margin-top: 7px; }
    .drm-product-modal-card { max-height: 94dvh; border-radius: 18px 18px 0 0; }
    .drm-product-modal-image { height: 190px; min-height: 190px; }
    .drm-product-modal-body { padding: 21px 17px calc(18px + env(safe-area-inset-bottom)); }
    .drm-product-modal-body h2 { font-size: 27px; }
    .drm-checkout form { width: 100%; border-radius: 18px 18px 0 0; }
    .drm-checkout-title, .drm-checkout [data-checkout-step] { padding-right: 18px; padding-left: 18px; }
    .drm-checkout-title h2 { font-size: 25px; }
    .drm-checkout-summary { margin: 0 18px 18px; }
}

@media (max-width: 380px) {
    .drm-menu { padding-right: 9px; padding-left: 9px; }
    .drm-menu-head { margin-right: -9px; margin-left: -9px; }
    .drm-customer-hero { margin-right: -9px; margin-left: -9px; }
    .drm-customer-hero h1 { font-size: 32px; }
    .drm-products-heading h2 { font-size: 17px; }
    .drm-products-heading > span { padding-right: 7px; padding-left: 7px; }
    .drm-product { grid-template-columns: 88px minmax(0, 1fr); min-height: 116px; }
    .drm-product img { width: 88px; height: auto; min-height: 116px; }
    .drm-product > div { min-height: 116px; padding: 10px; }
}

/* Compact allergen chips: keep the theme from inflating their line box. */
.drm-menu .drm-product-allergens { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 0; }
.drm-menu .drm-allergen-badge {
    display: inline-flex !important;
    width: fit-content;
    min-height: 0 !important;
    align-items: center;
    gap: 4px;
    border-width: 1px;
    border-radius: 999px;
    padding: 3px 8px !important;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.1 !important;
    white-space: nowrap;
}
.drm-menu .drm-allergen-badge svg { width: 13px !important; height: 13px !important; flex: 0 0 13px; }

@media (max-width: 767px) {
    .drm-menu .drm-allergen-badge { gap: 3px; padding: 3px 7px !important; font-size: 9px !important; }
    .drm-menu .drm-allergen-badge svg { width: 12px !important; height: 12px !important; flex-basis: 12px; }
}

/* Do not inherit the active theme's button styling on the customer app. */
.drm-menu .drm-sticky-cart {
    display: flex !important;
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 18px;
    z-index: 999;
    width: auto;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    border: 0 !important;
    border-radius: 24px !important;
    padding: 14px 25px !important;
    color: #fff !important;
    background: #c94e35 !important;
    box-shadow: 0 12px 28px rgba(111, 45, 29, .24) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}
.drm-menu .drm-sticky-cart[hidden] { display: none !important; }
.drm-menu .drm-sticky-cart-icon { width: 31px; height: 31px; flex: 0 0 auto; stroke-width: 2.2; }
.drm-menu .drm-sticky-cart-total { min-width: 0; color: #fff !important; font-size: 18px; font-weight: 800; line-height: 1; white-space: nowrap; }
.drm-menu .drm-sticky-cart-label { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: #fff !important; font-size: 17px; font-weight: 800; white-space: nowrap; }
.drm-menu .drm-sticky-cart-label svg { width: 24px; height: 24px; flex: 0 0 auto; stroke-width: 2.2; }
.drm-menu .drm-sticky-cart:hover,
.drm-menu .drm-sticky-cart:focus-visible { color: #fff !important; background: #b8432d !important; }

@media (min-width: 821px) {
    .drm-menu .drm-sticky-cart { display: none !important; }
}

@media (max-width: 520px) {
    .drm-menu .drm-sticky-cart {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        left: 14px;
        min-height: 68px;
        border-radius: 22px !important;
        padding: 13px 18px !important;
    }
    .drm-menu .drm-sticky-cart-icon { width: 27px; height: 27px; }
    .drm-menu .drm-sticky-cart-total { font-size: 15px; }
    .drm-menu .drm-sticky-cart-label { gap: 7px; font-size: 14px; }
    .drm-menu .drm-sticky-cart-label svg { width: 20px; height: 20px; }
}

@media (max-width: 380px) {
    .drm-menu .drm-sticky-cart { right: 10px; left: 10px; padding-right: 14px !important; padding-left: 14px !important; }
    .drm-menu .drm-sticky-cart-icon { width: 24px; height: 24px; }
    .drm-menu .drm-sticky-cart-total { font-size: 12px; }
    .drm-menu .drm-sticky-cart-label { font-size: 12px; }
}

/* Desktop menu app: ignore the theme's narrow content wrapper. */
@media (min-width: 821px) {
    .drm-menu {
        width: 100vw;
        max-width: none;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        padding-right: 48px;
        padding-left: 48px;
    }
}

/* The customer app keeps status enforcement server-side without showing a theme banner. */
.drm-menu .drm-service-status { display: none !important; }

/* Let the desktop dialog grid place the image and information columns correctly. */
.drm-product-modal-card > [data-product-modal-content] { display: contents; }

.drm-product-day-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    color: #237548;
    background: #dcf7e6;
    font-size: 11px;
    font-weight: 800;
}

/* Override the generic product status badge styling. */
.drm-product-title .drm-product-day-badge {
    color: #237548;
    background: #dcf7e6;
}

.drm-product-day-badge.is-unavailable {
    color: #a43d35;
    background: #fde2df;
}

.drm-product-title .drm-product-day-badge.is-unavailable {
    color: #a43d35;
    background: #fde2df;
}

.drm-product.is-day-unavailable {
    opacity: .52;
    filter: saturate(.65);
}

.drm-composer-summary {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--drm-rule);
    border-radius: 14px;
    color: var(--drm-soft-ink);
    background: #fffaf5;
}

.drm-composer-summary h3 {
    margin: 0 0 4px;
    color: var(--drm-ink);
    font-size: 16px;
}

.drm-composer-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.drm-composer-summary span {
    text-align: right;
}

.drm-composer-disabled-note {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--drm-muted);
    background: #f1ece4;
    font-size: 13px;
    font-weight: 750;
}

/* Product and bundle dialogs use the full mobile viewport so long forms can scroll to the action. */
@media (max-width: 820px) {
    /* Keep the category tabs attached below the menu heading while scrolling. */
    .drm-category-nav {
        top: 62px;
        scroll-margin-top: 120px;
    }

    .drm-menu .drm-product-modal[hidden],
    .drm-menu .drm-menu-composer:not(.is-open) {
        display: none !important;
    }

    .drm-product-modal,
    .drm-menu-composer {
        display: block;
        padding: 0;
        overflow: hidden;
    }

    .drm-product-modal-card,
    .drm-menu-composer-card {
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        border: 0;
        border-radius: 0;
    }

    .drm-product-modal-card {
        display: block;
    }

    .drm-product-modal-image {
        height: min(30dvh, 260px);
        min-height: 180px;
        max-height: none;
    }

    .drm-menu-composer-card .drm-composer-layout {
        display: block;
    }

    .drm-menu-composer-card .drm-composer-media img,
    .drm-menu-composer-card .drm-composer-media > div {
        height: min(30dvh, 260px);
        min-height: 180px;
    }
}

/* Add breathing room above the category landing screen without affecting the site header. */
.drm-menu > [data-category-view] { padding-top: 28px; }

@media (max-width: 767px) {
    .drm-menu > [data-category-view] { padding-top: 20px; }
}

/* Formula configurator: premium two-column layout with an independent options scroll. */
.drm-menu-composer-card {
    width: min(1100px, calc(100vw - 44px));
    height: min(760px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 20px;
}

.drm-menu-composer-card > [data-composer-content],
.drm-menu-composer-card .drm-composer-layout {
    height: 100%;
    min-height: 0;
}

.drm-composer-layout {
    grid-template-columns: 35% minmax(0, 65%);
    height: min(760px, 90vh);
    min-height: 0;
}

.drm-composer-media {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--drm-cream, #f8f4ec);
}

.drm-composer-media img {
    width: 100%;
    height: 48%;
    min-height: 0;
    object-fit: cover;
}

.drm-composer-product-info {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 28px 30px;
}

.drm-composer-product-info h3 {
    margin: 0;
    color: var(--drm-ink, #171717);
    font-size: 25px;
    line-height: 1.1;
}

.drm-composer-product-info > strong {
    color: var(--drm-primary, var(--accent));
    font-size: 25px;
}

.drm-composer-product-info p {
    margin: 0;
    color: var(--drm-muted, #716c66);
    line-height: 1.5;
}

.drm-composer-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    gap: 18px;
    padding: 28px 32px 112px;
    overflow: hidden;
}

.drm-composer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.drm-composer-body h2 {
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.05;
}

.drm-composer-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: var(--drm-ink, #171717);
    background: #f7f5f2;
    font-size: 28px;
    line-height: 1;
}

.drm-menu-composer .drm-composer-close,
.drm-menu-composer .drm-composer-close:hover,
.drm-menu-composer .drm-composer-close:focus {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    text-decoration: none;
    border: 0 !important;
    padding: 0 !important;
    color: var(--drm-ink, #171717) !important;
    background: #f7f5f2 !important;
}

.drm-menu-composer .drm-composer-close::before,
.drm-menu-composer .drm-composer-close::after {
    display: none !important;
    content: none !important;
}

.drm-composer-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.drm-composer-steps button {
    position: relative;
    display: grid;
    min-width: 72px;
    flex: 1 1 0;
    justify-items: center;
    gap: 7px;
    border: 0;
    border-radius: 0;
    padding: 0 4px;
    color: var(--drm-muted, #716c66);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}

.drm-composer-steps button::after {
    position: absolute;
    top: 15px;
    right: calc(-50% + 16px);
    left: calc(50% + 16px);
    height: 2px;
    content: '';
    background: #ece7e2;
}

.drm-composer-steps button:last-child::after { display: none; }
.drm-composer-steps button span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #ece7e2;
    border-radius: 50%;
    color: var(--drm-soft-ink, #625d58);
    background: #f5f1ec;
    font-size: 13px;
}

.drm-composer-steps button b {
    overflow: hidden;
    max-width: 100%;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drm-composer-steps button,
.drm-composer-steps button:hover,
.drm-composer-steps button:focus,
.drm-composer-steps button.is-active,
.drm-composer-steps button.is-complete {
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

.drm-composer-steps button.is-active { color: var(--drm-primary, var(--accent)); }
.drm-composer-steps button.is-active span { border-color: var(--drm-primary, var(--accent)); color: #fff; background: var(--drm-primary, var(--accent)); }
.drm-composer-steps button.is-complete { color: var(--drm-primary, var(--accent)); }
.drm-composer-steps button.is-complete span { border-color: color-mix(in srgb, var(--drm-primary, var(--accent)), #fff 45%); color: var(--drm-primary, var(--accent)); background: color-mix(in srgb, var(--drm-primary, var(--accent)), #fff 86%); }

.drm-composer-options {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 4px 4px 0;
    scrollbar-width: thin;
}

.drm-composer-choice {
    display: grid;
    gap: 11px;
    border: 0;
    padding: 0;
}

.drm-composer-choice legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 0 8px;
    color: var(--drm-ink, #171717);
    font-size: 23px;
    font-weight: 750;
}

.drm-composer-choice legend small {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--drm-primary, var(--accent));
    background: color-mix(in srgb, var(--drm-primary, var(--accent)), #fff 90%);
    font-size: 12px;
    font-weight: 700;
}

.drm-composer-choice label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    border: 1px solid #e9e3dc;
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--drm-ink, #171717);
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.drm-composer-choice label:has(input:checked) {
    border-color: var(--drm-primary, var(--accent));
    background: color-mix(in srgb, var(--drm-primary, var(--accent)), #fff 95%);
}

.drm-composer-choice label > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.drm-composer-choice label > span b { font-size: 16px; }
.drm-composer-choice label > span small { color: var(--drm-muted, #716c66); font-size: 13px; font-weight: 500; }
.drm-composer-choice label > em { color: var(--drm-primary, var(--accent)); font-size: 14px; font-style: normal; font-weight: 750; white-space: nowrap; }
.drm-composer-choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--drm-primary, var(--accent)); }

.drm-composer-footer {
    position: absolute !important;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    flex: 0 0 auto;
    margin: 0;
    padding: 18px 32px 24px;
    background: #fff;
    margin-top: 0;
    border-top: 1px solid #ece7e2;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.drm-composer-footer strong { font-size: 28px; }
.drm-menu-composer .drm-composer-footer > div { display: flex !important; visibility: visible !important; }
.drm-menu-composer .drm-composer-footer .drm-primary { display: inline-flex !important; visibility: visible !important; min-height: 54px; border-radius: 14px; padding: 14px 24px; color: #fff; background: var(--drm-primary, var(--accent)); font-size: 16px; }
.drm-composer-footer .drm-primary:disabled { color: #aaa39b; background: #eeeae5; cursor: not-allowed; }
.drm-composer-footer .drm-back { min-height: 54px; border: 1px solid #e9e3dc; border-radius: 14px; padding: 12px 18px; color: var(--drm-soft-ink, #625d58); background: #fff; }

@media (max-width: 767px) {
    .drm-menu-composer { padding: 0; }
    .drm-menu-composer-card { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
    .drm-composer-layout { display: block; height: 100%; }
    .drm-composer-media { display: none; }
    .drm-composer-body { display: flex; flex-direction: column; height: 100%; padding: 20px 16px calc(104px + env(safe-area-inset-bottom)); gap: 14px; }
    .drm-composer-body h2 { font-size: 28px; }
    .drm-composer-close { width: 38px; height: 38px; font-size: 24px; }
    .drm-composer-steps button span { width: 28px; height: 28px; font-size: 11px; }
    .drm-composer-steps button { min-width: 62px; }
    .drm-composer-steps button::after { top: 13px; left: calc(50% + 14px); }
    .drm-composer-steps button b { font-size: 10px; }
    .drm-composer-choice legend { align-items: flex-start; font-size: 20px; }
    .drm-composer-choice legend small { font-size: 10px; }
    .drm-composer-choice label { min-height: 62px; padding: 12px; }
    .drm-composer-footer { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; display: flex !important; align-items: center; flex-direction: row; min-height: 76px; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 22px rgba(55, 38, 27, .08); }
    .drm-composer-footer > div { display: flex !important; width: auto; flex: 1; align-items: center; justify-content: flex-end; gap: 8px; }
    .drm-composer-footer .drm-primary { width: auto; flex: 1; min-height: 52px; }
    .drm-composer-footer .drm-back { width: auto; flex: 0 0 auto; min-height: 52px; }
    .drm-composer-footer strong { font-size: 22px; }
    .drm-composer-summary div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .drm-composer-summary span { text-align: left; }
}
.drm-table-session {
    display: grid;
    gap: 18px;
    margin: 24px auto;
    padding: 22px;
    max-width: 720px;
    border: 1px solid #eadfd5;
    border-radius: 18px;
    background: #fffaf5;
}
.drm-table-session h2, .drm-table-session h3, .drm-table-session p { margin: 0; }
.drm-table-session-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.drm-table-session-totals div { display: grid; gap: 5px; padding: 12px; border-radius: 12px; background: #fff; }
.drm-table-session-totals span, .drm-table-session-order small { color: var(--drm-muted, #716c66); font-size: 12px; }
.drm-table-session-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.drm-table-session-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid #eadfd5; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.drm-table-session-orders { display: grid; gap: 8px; }
.drm-table-session-order { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; }
.drm-table-session-order span { display: grid; gap: 4px; }
.drm-table-payment { display: grid; gap: 18px; max-width: 720px; margin: 24px auto; padding: 22px; border: 1px solid #eadfd5; border-radius: 18px; background: #fff; }
.drm-table-payment-head { display: flex; align-items: center; gap: 12px; }
.drm-table-payment-head button { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.drm-table-payment-head h2 { margin: 4px 0 0; }
.drm-table-payment-options { display: grid; gap: 10px; }
.drm-table-payment-options button { display: flex; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid #eadfd5; border-radius: 12px; background: #fffaf5; text-align: left; cursor: pointer; font: inherit; }
.drm-table-payment-options button span { color: var(--drm-muted, #716c66); }
.drm-table-payment-editor { display: grid; gap: 12px; padding-top: 8px; }
.drm-payment-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #fffaf5; }
.drm-payment-item input, .drm-payment-input input { width: 78px; padding: 9px; border: 1px solid #eadfd5; border-radius: 8px; font: inherit; }
.drm-payment-item span { display: grid; gap: 4px; }
.drm-payment-item small { color: var(--drm-muted, #716c66); }
.drm-payment-input { display: grid; gap: 8px; font-weight: 700; }
.drm-table-context { max-width: 720px; margin: 0 auto 8px; padding: 16px 12px 0; }
.drm-table-context button { border: 0; border-radius: 999px; padding: 7px 12px; color: var(--drm-soft-ink, #625d58); background: #fffaf5; font: inherit; font-size: 12px; cursor: pointer; }
.drm-table-context button strong { color: var(--drm-ink, #25211e); }
.drm-table-sheet[hidden] { display: none !important; }
.drm-table-sheet-open { overflow: hidden; }
.drm-menu.is-dine-in [data-checkout-panel] { display: none !important; }
.drm-table-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.drm-menu .drm-table-sheet-backdrop { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; border: 0; color: transparent; background: rgba(0, 0, 0, .35) !important; background-image: none !important; cursor: pointer; }
.drm-table-sheet-card { position: relative; z-index: 1; width: min(100%, 560px); padding: 9px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -12px 35px rgba(45, 30, 20, .18); }
.drm-table-sheet-handle { width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: #d9d1ca; }
.drm-table-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.drm-table-sheet-head h2 { margin: 4px 0 0; font-size: 24px; }
.drm-table-sheet-head button { border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.drm-table-sheet-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.drm-table-sheet-totals div { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #fffaf5; }
.drm-table-sheet-totals span { color: var(--drm-muted, #716c66); font-size: 12px; }
.drm-table-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.drm-menu .drm-table-sheet-actions button { min-height: 44px; padding: 10px 14px; border: 1px solid #eadfd5; border-radius: 10px; color: var(--drm-ink, #211c18); background: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.drm-menu .drm-table-sheet-actions button.drm-primary { color: #fff; background: var(--drm-primary, #c94e35); }
.drm-table-sheet-actions .drm-primary { flex: 1 1 100%; }
.drm-menu .drm-table-sheet-actions button { gap: 10px; }
.drm-menu .drm-table-sheet-actions button > span:nth-child(2) { flex: 1; text-align: center; }
.drm-menu .drm-table-sheet-actions button > svg { width: 20px; height: 20px; flex: 0 0 20px; stroke-width: 2; }
.drm-menu .drm-table-sheet-actions .drm-table-action { display: grid; grid-template-columns: 22px auto; align-items: center; justify-content: center; gap: 10px; }
.drm-menu .drm-table-sheet-actions .drm-table-action-icon { width: 22px; height: 22px; justify-self: center; }
.drm-menu .drm-table-sheet-actions .drm-table-action-label { flex: none; text-align: left; }
.drm-menu .drm-table-sheet-actions button:not(.drm-primary) { flex: 1 1 calc(50% - 4px); min-width: 0; }
.drm-table-payment { position: fixed; inset: 0; z-index: 90; overflow-y: auto; align-content: start; max-width: none; margin: 0; padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: var(--drm-cream, #f8f4ec); }
.drm-menu .drm-app-view { top: var(--drm-header-height, 0px); right: 0; bottom: 0; left: 0; height: auto; max-height: none; }
.drm-table-payment[hidden] { display: none !important; }
.drm-table-payment-head { width: min(100%, 560px); margin: 0 auto 20px; padding: 4px 0 16px; border-bottom: 1px solid var(--drm-rule, #e9dfd5); }
.drm-table-payment-head { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 14px; }
.drm-menu .drm-table-payment-head > button { grid-column: 1 / -1; justify-self: start; padding: 0; color: var(--drm-ink, #211c18); background: transparent; font-size: 16px; font-weight: 500; }
.drm-table-payment-head h2 { color: var(--drm-ink, #211c18); font-family: Georgia, serif; font-size: clamp(30px, 7vw, 44px); line-height: 1.05; }
.drm-table-payment-head small { color: var(--drm-soft-ink, #71685f); font-size: 13px; }
.drm-table-payment-head .drm-table-dine-badge { align-self: center; margin-top: 0; }
.drm-table-payment-totals { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 560px); margin: 0 auto 34px; padding: 20px 10px; border-radius: 16px; background: var(--drm-paper, #fffefa); }
.drm-table-payment-totals > div { min-width: 0; padding: 0 12px; border-right: 1px solid var(--drm-rule, #eee7dd); text-align: center; }
.drm-table-payment-totals > div:last-child { border-right: 0; }
.drm-table-payment-totals svg { width: 24px; height: 24px; margin: 0 auto 7px; color: var(--drm-soft-ink, #6e6962); }
.drm-table-payment-totals .is-remaining svg, .drm-table-payment-totals .is-remaining strong { color: var(--drm-primary, #c94e35); }
.drm-table-payment-totals span { display: block; color: var(--drm-soft-ink, #71685f); font-size: 13px; white-space: nowrap; }
.drm-table-payment-totals strong { display: block; margin-top: 6px; color: var(--drm-ink, #211c18); font-size: clamp(20px, 5vw, 28px); white-space: nowrap; }
.drm-table-payment-intro { width: min(100%, 560px); margin: 0 auto 18px; }
.drm-table-payment-intro h3 { margin: 0 0 5px; color: var(--drm-ink, #211c18); font-family: Georgia, serif; font-size: clamp(25px, 6vw, 34px); line-height: 1.1; }
.drm-table-payment-intro p { margin: 0; color: var(--drm-soft-ink, #71685f); font-size: 16px; }
.drm-table-payment-options, .drm-table-payment-editor { width: min(100%, 560px); margin-right: auto; margin-left: auto; }
.drm-table-payment-options button { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto 20px; min-height: 90px; align-items: center; border-color: var(--drm-rule, #e9dfd5); color: var(--drm-ink, #211c18); background: var(--drm-paper, #fffefa); text-align: left; }
.drm-table-payment-options button > svg { grid-column: 1; width: 36px; height: 36px; margin: auto; color: #765844; stroke-width: 1.8; }
.drm-table-payment-options button > span { grid-column: 2; display: grid; gap: 3px; min-width: 0; }
.drm-table-payment-options button > span strong { color: var(--drm-ink, #211c18); font-size: 18px; }
.drm-table-payment-options button > span small { color: var(--drm-soft-ink, #71685f); font-size: 14px; line-height: 1.25; }
.drm-table-payment-options button > b { grid-column: 3; color: var(--drm-primary, #c94e35); font-size: 21px; white-space: nowrap; }
.drm-table-payment-options button > em { grid-column: 4; color: #765844; font-size: 32px; font-style: normal; line-height: 1; }
.drm-table-payment-options button:first-child { border-color: var(--drm-primary, #c94325); }
.drm-table-payment-options button span { color: var(--drm-soft-ink, #71685f); }
.drm-table-payment-note { display: flex; width: min(100%, 560px); align-items: center; gap: 18px; margin: 24px auto 0; padding: 18px 20px; border-radius: 16px; color: var(--drm-soft-ink, #71685f); background: #f9e7df; }
.drm-table-payment-note svg { width: 27px; height: 27px; flex: 0 0 27px; color: var(--drm-primary, #c94e35); }
.drm-table-payment-note p { margin: 0; font-size: 15px; line-height: 1.45; }
.drm-table-payment-editor h3 { margin: 8px 0 2px; color: var(--drm-ink, #211c18); font-family: Georgia, serif; font-size: 22px; }
.drm-table-payment-editor > .drm-primary { width: 100%; min-height: 50px; margin-top: 8px; border-radius: 10px; color: #fff; background: var(--drm-primary, #c94325); }
.drm-payment-item { border: 1px solid var(--drm-rule, #e9dfd5); background: #fff; }
.drm-payment-item.is-unavailable { opacity: .6; }
.drm-payment-item span strong { color: var(--drm-ink, #211c18); }
.drm-menu .drm-table-payment .drm-payment-item { gap: 18px; padding: 16px; }
.drm-menu .drm-table-payment .drm-payment-quantity { display: grid; grid-template-columns: 38px 42px 38px; align-items: center; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--drm-rule, #e9dfd5); border-radius: 12px; background: #f8f4ec; }
.drm-menu .drm-table-payment .drm-payment-quantity button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 0; color: var(--drm-ink, #211c18); background: transparent; font-size: 22px; font-weight: 500; line-height: 1; }
.drm-menu .drm-table-payment .drm-payment-quantity button:hover,
.drm-menu .drm-table-payment .drm-payment-quantity button:focus-visible { color: var(--drm-ink, #211c18); background: #efe5da; }
.drm-menu .drm-table-payment .drm-payment-quantity button:disabled { cursor: not-allowed; opacity: .45; }
.drm-menu .drm-table-payment .drm-payment-quantity strong { display: grid; height: 38px; place-items: center; border-right: 1px solid var(--drm-rule, #e9dfd5); border-left: 1px solid var(--drm-rule, #e9dfd5); color: var(--drm-ink, #211c18); font-size: 17px; }
.drm-menu .drm-table-payment .drm-payment-split-control { display: grid; gap: 12px; }
.drm-menu .drm-table-payment .drm-payment-split-control > strong { color: var(--drm-ink, #211c18); font-size: 19px; }
.drm-menu .drm-table-payment .drm-payment-split-control .drm-payment-quantity { display: grid; grid-template-columns: 38px 42px 38px; width: max-content; overflow: hidden; border: 1px solid var(--drm-rule, #e9dfd5); border-radius: 12px; background: #f8f4ec; }
.drm-menu .drm-table-payment .drm-payment-split-control .drm-payment-quantity button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 0; color: var(--drm-ink, #211c18); background: #fff; font-size: 22px; font-weight: 500; line-height: 1; }
.drm-menu .drm-table-payment .drm-payment-split-control .drm-payment-quantity button:hover,
.drm-menu .drm-table-payment .drm-payment-split-control .drm-payment-quantity button:focus-visible { color: var(--drm-ink, #211c18); background: #efe5da; }
.drm-menu .drm-table-payment .drm-payment-split-control .drm-payment-quantity b { display: grid; height: 38px; place-items: center; border-right: 1px solid var(--drm-rule, #e9dfd5); border-left: 1px solid var(--drm-rule, #e9dfd5); color: var(--drm-ink, #211c18); background: #f8f4ec; font-size: 17px; }
.drm-payment-selection, .drm-payment-paid { margin: 4px 0; color: var(--drm-soft-ink, #71685f); }
.drm-payment-paid { padding: 16px; border-radius: 12px; color: #286d4a; background: #edf7f0; font-weight: 800; }
.drm-payment-failed { color: #8b3829; background: #fff0eb; }
.drm-menu .drm-table-session button:not(.drm-primary),
.drm-menu .drm-table-sheet button:not(.drm-primary),
.drm-menu .drm-table-payment button:not(.drm-primary),
.drm-menu .drm-table-order-detail button:not(.drm-primary) { color: var(--drm-ink, #171717); background: #fff; }
.drm-menu .drm-table-payment .drm-table-payment-options button:hover,
.drm-menu .drm-table-payment .drm-table-payment-options button:focus-visible { color: var(--drm-ink, #211c18); background: var(--drm-paper, #fffefa); border-color: var(--drm-rule, #e9dfd5); }
.drm-menu .drm-table-payment .drm-table-payment-options button:first-child:hover,
.drm-menu .drm-table-payment .drm-table-payment-options button:first-child:focus-visible { border-color: var(--drm-primary, #c94325); }
.drm-menu .drm-table-payment .drm-table-payment-editor > button.drm-primary:hover,
.drm-menu .drm-table-payment .drm-table-payment-editor > button.drm-primary:focus-visible { color: #fff; background: var(--drm-primary, #c94325); }
.drm-menu .drm-table-sheet .drm-table-sheet-backdrop:hover,
.drm-menu .drm-table-sheet .drm-table-sheet-backdrop:focus-visible { color: transparent; background: rgba(0, 0, 0, .35) !important; }
.drm-menu .drm-table-session { position: fixed; top: var(--drm-header-height, 0px); right: 0; bottom: 0; left: 0; z-index: 85; display: block; overflow-y: auto; max-width: none; margin: 0; padding: 14px max(18px, 4vw) calc(36px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: var(--drm-cream, #f8f4ec); color: var(--drm-ink, #171717); }
.drm-menu .drm-table-page-head, .drm-menu .drm-table-page-title, .drm-menu .drm-table-session-totals, .drm-menu .drm-table-session-actions, .drm-menu .drm-table-section-title, .drm-menu .drm-table-session-orders, .drm-menu .drm-table-payments, .drm-menu .drm-table-empty, .drm-menu .drm-table-order-detail { width: min(100%, 720px); margin-right: auto; margin-left: auto; }
.drm-table-page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.drm-menu .drm-table-page-head button { padding: 7px 0; color: var(--drm-ink, #171717); background: transparent; font-weight: 700; }
.drm-table-page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.drm-table-page-title h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 8vw, 60px); line-height: 1; }
.drm-table-page-title p { margin: 12px 0 0; color: var(--drm-soft-ink, #6e6962); font-size: 18px; }
.drm-table-dine-badge { flex: 0 0 auto; margin-top: 4px; border-radius: 999px; padding: 12px 16px; color: #963c27; background: #f9e7df; font-size: 14px; }
.drm-menu .drm-table-session-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 18px; padding: 20px 10px; border: 1px solid var(--drm-rule, #eee7dd); border-radius: 16px; background: var(--drm-paper, #fffefa); }
.drm-menu .drm-table-session-totals div { min-width: 0; padding: 0 12px; border-right: 1px solid var(--drm-rule, #eee7dd); background: transparent; text-align: center; }
.drm-menu .drm-table-session-totals div > svg { width: 25px; height: 25px; margin: 0 auto 8px; color: var(--drm-soft-ink, #6e6962); stroke-width: 1.8; }
.drm-menu .drm-table-session-totals .is-remaining > svg { color: var(--drm-primary, #c94e35); }
.drm-menu .drm-table-session-totals div:last-child { border-right: 0; }
.drm-menu .drm-table-session-totals span { display: block; overflow: hidden; color: var(--drm-soft-ink, #6e6962); font-size: clamp(10px, 2.5vw, 13px); text-overflow: ellipsis; white-space: nowrap; }
.drm-menu .drm-table-session-totals strong { display: block; margin-top: 8px; font-size: clamp(18px, 5vw, 28px); white-space: nowrap; }
.drm-menu .drm-table-session-totals .is-remaining strong { color: var(--drm-primary, #c94e35); }
.drm-menu .drm-table-session-actions { display: grid; gap: 10px; margin-bottom: 34px; }
.drm-menu .drm-table-session-actions button { display: flex; min-height: 56px; align-items: center; justify-content: flex-start; gap: 12px; padding: 14px 18px; border: 1px solid var(--drm-rule, #eee7dd); border-radius: 13px; color: var(--drm-ink, #171717); background: #f4eadf; font-size: 16px; }
.drm-menu .drm-table-session-actions button > svg { width: 21px; height: 21px; flex: 0 0 21px; stroke-width: 2; }
.drm-menu .drm-table-session-actions button > span:not([data-table-pay-amount]) { flex: 1; text-align: center; }
.drm-menu .drm-table-session-actions button > span[data-table-pay-amount] { margin-left: auto; white-space: nowrap; }
.drm-menu .drm-table-session-actions .drm-table-action { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.drm-menu .drm-table-session-actions .drm-table-action--add { grid-template-columns: 22px minmax(0, 1fr); }
.drm-menu .drm-table-session-actions .drm-table-action-icon { width: 22px; height: 22px; justify-self: center; }
.drm-menu .drm-table-session-actions .drm-table-action-label { flex: none; text-align: center; }
.drm-menu .drm-table-session-actions .drm-table-action-amount { margin-left: 0; }
.drm-menu .drm-table-session-actions button.drm-primary { color: #fff; background: var(--drm-primary, #c94e35); }
.drm-table-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.drm-menu .drm-table-session .drm-table-section-title h3, .drm-menu .drm-table-session .drm-table-payments h3 { margin: 0; font-family: Georgia, serif; font-size: 24px !important; line-height: 1.15; }
.drm-table-section-title > span { border-radius: 999px; padding: 8px 12px; color: var(--drm-soft-ink, #6e6962); background: #f1e8de; font-size: 13px; white-space: nowrap; }
.drm-menu .drm-table-session-orders { display: grid; gap: 10px; }
.drm-menu .drm-table-session-order { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 1px solid transparent; color: var(--drm-ink, #171717); background: var(--drm-paper, #fffefa); text-align: left; }
.drm-menu .drm-table-session-order > strong { display: flex; min-width: 82px; flex: 0 0 82px; align-items: flex-end; flex-direction: column; gap: 8px; margin-left: auto; color: var(--drm-ink, #171717); font-size: 18px !important; line-height: 1.05; text-align: right; white-space: nowrap; }
.drm-menu .drm-table-session-order > strong > span { display: block; color: var(--drm-soft-ink, #6e6962); font-size: 26px; line-height: .7; }
.drm-menu .drm-table-session-order:hover > strong > span { color: var(--drm-ink, #171717); }
.drm-table-order-main { display: grid; grid-template-columns: 14px 1fr; align-items: center; column-gap: 10px; row-gap: 3px; }
.drm-table-order-main i { grid-row: 1 / span 3; width: 11px; height: 11px; border-radius: 50%; background: #2d8a3e; }
.drm-table-order-main small, .drm-table-order-main em { grid-column: 2; color: var(--drm-soft-ink, #6e6962); font-size: 13px; font-style: normal; }
.drm-table-order-main em { width: max-content; border-radius: 999px; padding: 5px 9px; color: #286d3c; background: #e9f4e8; }
.drm-table-payments { margin-top: 30px; }
.drm-table-payments h3 { margin-bottom: 12px; }
.drm-table-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--drm-rule, #eee7dd); background: var(--drm-paper, #fffefa); }
.drm-table-payment-row span { display: grid; gap: 3px; }
.drm-table-payment-row small { color: var(--drm-soft-ink, #6e6962); }
.drm-table-payment-row em { color: #286d3c; font-size: 12px; font-style: normal; }
.drm-table-payment-row em.is-pending { color: #99601d; }
.drm-table-order-detail { margin-top: 20px; padding: 18px; border: 1px solid var(--drm-rule, #eee7dd); border-radius: 14px; background: #fff; }
.drm-table-order-detail-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.drm-table-order-detail-head h3 { margin: 0; font-family: Georgia, serif; }
.drm-menu .drm-table-order-detail-head button { padding: 0 6px; color: var(--drm-ink, #171717); background: transparent; font-size: 23px; }
.drm-table-order-detail > div:not(.drm-table-order-detail-head) { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--drm-rule, #eee7dd); }
.drm-table-order-detail small { display: block; margin-top: 4px; color: var(--drm-soft-ink, #6e6962); }
.drm-table-order-detail-total { font-weight: 800; }
.drm-table-empty { padding: 26px 0; color: var(--drm-soft-ink, #6e6962); text-align: center; }
.drm-table-empty p { margin: 0 0 14px; }
@media (max-width: 430px) { .drm-table-page-head { margin-bottom: 25px; } .drm-table-page-title { display: block; } .drm-table-dine-badge { display: inline-block; margin-top: 14px; } .drm-menu .drm-table-session-totals { padding: 16px 2px; } .drm-menu .drm-table-session-totals div { padding: 0 5px; } .drm-menu .drm-table-session-totals strong { font-size: 18px; } .drm-menu .drm-table-session .drm-table-section-title h3 { font-size: 22px !important; } }
@media (max-width: 560px) { .drm-table-session-totals { grid-template-columns: 1fr; } .drm-table-session { margin: 16px 12px; padding: 18px; } }

/* Isolate the customer app from the theme's global black button hover. */
#drm-app button:hover,
#drm-app button:focus-visible { box-shadow: none; }
#drm-app button.drm-primary:hover,
#drm-app button.drm-primary:focus-visible,
#drm-app .drm-btn-primary:hover,
#drm-app .drm-btn-primary:focus-visible { color: #fff; background: var(--drm-primary, #c94325); }
#drm-app button:not(.drm-primary):not(.drm-btn-primary):hover,
#drm-app button:not(.drm-primary):not(.drm-btn-primary):focus-visible { color: var(--drm-ink, #211c18); background: var(--drm-paper, #fffefa); }
#drm-app .drm-cart-close:hover,
#drm-app .drm-cart-close:focus-visible,
#drm-app .drm-table-page-head button:hover,
#drm-app .drm-table-page-head button:focus-visible,
#drm-app .drm-table-payment-head > button:hover,
#drm-app .drm-table-payment-head > button:focus-visible { background: transparent; }

/* Desktop cart: keep the panel inside the restaurant application, not the site viewport. */
@media (min-width: 821px) {
    #drm-app.drm-menu {
        --drm-cart-width: clamp(290px, 25vw, 340px);
        --drm-cart-gutter: clamp(14px, 2vw, 28px);
        --drm-cart-gap: 24px;
        box-sizing: border-box;
    }

    #drm-app.drm-menu.has-cart {
        padding-right: calc(var(--drm-cart-width) + var(--drm-cart-gutter) + var(--drm-cart-gap));
    }

    #drm-app.drm-menu.has-cart .drm-cart {
        position: sticky;
        top: calc(var(--drm-header-height, 0px) + 24px);
        float: right;
        right: auto;
        width: var(--drm-cart-width);
        min-width: 0;
        max-width: 100%;
        height: min(760px, calc(100vh - var(--drm-header-height, 0px) - 48px));
        max-height: calc(100vh - var(--drm-header-height, 0px) - 48px);
        margin: 0 var(--drm-cart-gutter) 24px var(--drm-cart-gap);
        box-sizing: border-box;
    }

    #drm-app .drm-cart-head,
    #drm-app [data-cart-lines],
    #drm-app .drm-cart > footer { min-width: 0; }
    #drm-app .drm-cart-head { padding: 18px 16px 12px; gap: 8px; }
    #drm-app .drm-cart-head h2 { font-size: clamp(27px, 3vw, 34px); overflow-wrap: anywhere; }
    #drm-app .drm-cart-close { width: 40px; height: 40px; flex-basis: 40px; }
    #drm-app [data-cart-lines] { padding-right: 16px; padding-left: 16px; }
    #drm-app .drm-cart-line { grid-template-columns: 58px minmax(0, 1fr); gap: 8px 10px; padding: 12px 0 14px; min-width: 0; }
    #drm-app .drm-cart-line img,
    #drm-app .drm-cart-thumb { width: 58px; height: 58px; border-radius: 10px; }
    #drm-app .drm-cart-line-top { gap: 6px; }
    #drm-app .drm-cart-info strong { font-size: 15px; }
    #drm-app .drm-cart-line-price { font-size: 14px; }
    #drm-app .drm-cart-info em { font-size: 12px; }
    #drm-app .drm-cart-edit,
    #drm-app .drm-cart-remove { min-height: 26px; gap: 4px; font-size: 12px; }
    #drm-app .drm-cart-quantity { grid-template-columns: 32px 32px 32px; height: 32px; }
    #drm-app .drm-cart-quantity button,
    #drm-app .drm-cart-quantity span { width: 32px; height: 32px; font-size: 17px; }
    #drm-app .drm-cart > footer { padding: 12px 16px 16px; gap: 9px; }
    #drm-app .drm-cart-summary { padding: 12px; border-radius: 14px; }
    #drm-app .drm-cart-summary h3 { margin-bottom: 8px; font-size: 16px; }
    #drm-app .drm-cart-breakdown { gap: 5px; font-size: 13px; }
    #drm-app .drm-total { margin-top: 8px; padding-top: 8px; }
    #drm-app .drm-total span { font-size: 16px; }
    #drm-app .drm-total strong { font-size: 20px; }
    #drm-app .drm-cart-delivery-note { padding: 9px; font-size: 11px; }
    #drm-app .drm-cart > footer > .drm-primary { min-height: 48px; border-radius: 11px; font-size: 15px; }
}

/* Customer cart: compact premium bottom sheet, scoped to the DRM app. */
#drm-app .drm-cart {
    overflow: hidden;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: var(--drm-surface, #fffefa);
}

#drm-app .drm-cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 22px 16px;
    border-bottom: 0;
}

#drm-app .drm-cart-heading { display: grid; min-width: 0; gap: 7px; }
#drm-app .drm-cart-head h2 {
    margin: 0;
    color: var(--drm-ink, #171717);
    font-family: Georgia, serif;
    font-size: clamp(28px, 7vw, 40px);
    line-height: .98;
}
#drm-app .drm-cart-context { color: var(--drm-soft-ink, #756d66); font-size: 13px; }
#drm-app .drm-cart-clear {
    width: max-content;
    min-height: 28px;
    padding: 0;
    color: var(--drm-primary, #c94e35) !important;
    background: transparent !important;
    font-size: 16px;
    font-weight: 750;
}
#drm-app .drm-cart-close {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: var(--drm-ink, #171717) !important;
    background: #f5f3f1 !important;
}
#drm-app .drm-cart-close svg { width: 22px; height: 22px; }

#drm-app [data-cart-lines] {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 22px;
}
#drm-app .drm-cart-line {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 10px 14px;
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--drm-border, #e8ded5);
}
#drm-app .drm-cart-line:first-child { padding-top: 8px; }
#drm-app .drm-cart-line img,
#drm-app .drm-cart-thumb {
    grid-row: 1 / span 2;
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: #f4eee8;
}
#drm-app .drm-cart-thumb { display: grid; place-items: center; color: #a99a8d; }
#drm-app .drm-cart-thumb svg { width: 28px; height: 28px; }
#drm-app .drm-cart-info { display: grid; min-width: 0; gap: 4px; }
#drm-app .drm-cart-line-top { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
#drm-app .drm-cart-info strong { min-width: 0; color: var(--drm-ink, #171717); font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
#drm-app .drm-cart-line-price { flex: 0 0 auto; color: var(--drm-ink, #171717); font-size: 17px; white-space: nowrap; }
#drm-app .drm-cart-info em { color: var(--drm-soft-ink, #756d66); font-size: 14px; font-style: normal; line-height: 1.3; overflow-wrap: anywhere; }
#drm-app .drm-cart-edit,
#drm-app .drm-cart-remove {
    display: inline-flex;
    width: max-content;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 0;
    color: var(--drm-primary, #c94e35) !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 750;
}
#drm-app .drm-cart-edit svg { width: 17px; height: 17px; }
#drm-app .drm-cart-line-actions {
    grid-column: 2;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
#drm-app .drm-cart-quantity {
    display: inline-grid;
    grid-template-columns: 40px 40px 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 999px;
    background: #f4eee8;
}
#drm-app .drm-cart-quantity button,
#drm-app .drm-cart-quantity span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: var(--drm-ink, #171717);
    background: transparent;
    font-size: 22px;
    font-weight: 800;
}
#drm-app .drm-cart-quantity span { background: rgba(255,255,255,.52); font-size: 17px; }
#drm-app .drm-cart-remove svg { width: 18px; height: 18px; }
#drm-app .drm-cart-category { margin: 12px 0 0; color: var(--drm-soft-ink, #756d66); font-size: 11px; }

#drm-app .drm-cart-empty {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 42px 20px 50px;
    color: var(--drm-soft-ink, #756d66);
    text-align: center;
}
#drm-app .drm-cart-empty > svg { width: 38px; height: 38px; color: var(--drm-primary, #c94e35); }
#drm-app .drm-cart-empty strong { color: var(--drm-ink, #171717); font-size: 18px; }
#drm-app .drm-cart-empty p { margin: 0; font-size: 14px; }
#drm-app .drm-cart-empty .drm-back { margin-top: 8px; }

#drm-app .drm-cart > footer {
    display: grid;
    gap: 12px;
    padding: 16px 22px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--drm-border, #e8ded5);
    background: var(--drm-surface, #fffefa);
}
#drm-app .drm-cart-summary { padding: 16px; border: 1px solid var(--drm-border, #e8ded5); border-radius: 18px; background: #fff; }
#drm-app .drm-cart-summary h3 { margin: 0 0 12px; color: var(--drm-ink, #171717); font-size: 18px; }
#drm-app .drm-cart-breakdown { display: grid; gap: 8px; }
#drm-app .drm-cart-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--drm-soft-ink, #756d66); font-size: 15px; }
#drm-app .drm-cart-breakdown strong { color: var(--drm-ink, #171717); white-space: nowrap; }
#drm-app .drm-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--drm-border, #e8ded5); }
#drm-app .drm-total span { color: var(--drm-ink, #171717); font-size: 18px; font-weight: 800; }
#drm-app .drm-total small { color: var(--drm-soft-ink, #756d66); font-size: 12px; font-weight: 600; }
#drm-app .drm-total strong { color: var(--drm-ink, #171717); font-size: 23px; white-space: nowrap; }
#drm-app .drm-cart-delivery-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px; border-radius: 14px; color: var(--drm-soft-ink, #756d66); background: #f8f1eb; font-size: 12px; line-height: 1.35; }
#drm-app .drm-cart-delivery-note svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--drm-primary, #c94e35); }
#drm-app .drm-cart > footer > .drm-primary { display: flex; min-height: 58px; align-items: center; justify-content: center; gap: 12px; width: 100%; border-radius: 14px; color: #fff; background: var(--drm-primary, #c94e35); font-size: 18px; }
#drm-app .drm-cart > footer > .drm-primary span { font-size: 28px; font-weight: 400; line-height: 1; }

/* Desktop cart uses the same compact bottom bar as mobile; the full cart opens as a bottom sheet. */
@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart {
        padding-right: 48px !important;
    }

    #drm-app.drm-menu.has-cart > .drm-cart {
        display: none !important;
        float: none;
        position: fixed;
        z-index: 1001;
        right: auto;
        bottom: 72px;
        left: 50%;
        width: min(440px, calc(100vw - 32px));
        height: min(560px, calc(100vh - 112px));
        max-height: calc(100vh - 112px);
        margin: 0;
        transform: translateX(-50%);
        border: 1px solid var(--drm-border, #e8ded5);
        border-radius: 22px;
        box-shadow: 0 20px 70px rgba(35, 20, 12, .22);
    }

    #drm-app.drm-menu.has-cart > .drm-cart.is-open {
        display: grid !important;
    }

    #drm-app.drm-menu .drm-sticky-cart {
        display: flex !important;
        position: fixed;
        right: auto;
        bottom: 18px;
        left: 50%;
        z-index: 1002;
        width: min(520px, calc(100vw - 48px));
        min-height: 52px;
        margin: 0;
        transform: translateX(-50%);
        border-radius: 16px !important;
        padding: 9px 16px !important;
        gap: 12px;
        font-size: 13px !important;
    }

    #drm-app.drm-menu .drm-sticky-cart-icon { width: 23px; height: 23px; }
    #drm-app.drm-menu .drm-sticky-cart-total { font-size: 14px; }
    #drm-app.drm-menu .drm-sticky-cart-label { gap: 6px; font-size: 13px; }
    #drm-app.drm-menu .drm-sticky-cart-label svg { width: 18px; height: 18px; }
}

#drm-app .drm-cart-summary {
    padding: 0;
    overflow: hidden;
}

#drm-app .drm-cart-summary summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    color: var(--drm-ink, #171717);
    cursor: pointer;
    list-style: none;
}

#drm-app .drm-cart-summary summary::-webkit-details-marker { display: none; }
#drm-app .drm-cart-summary summary span { font-size: 16px; font-weight: 800; }
#drm-app .drm-cart-summary summary svg { width: 18px; height: 18px; transition: transform .18s ease; }
#drm-app .drm-cart-summary[open] summary { border-bottom: 1px solid var(--drm-border, #e8ded5); }
#drm-app .drm-cart-summary[open] summary svg { transform: rotate(180deg); }
#drm-app .drm-cart-summary-content { padding: 0 16px 14px; }
#drm-app .drm-cart-summary-content .drm-total { margin-top: 10px; padding-top: 10px; }

@media (max-width: 520px) {
    #drm-app .drm-cart-line { grid-template-columns: 76px minmax(0, 1fr); }
    #drm-app .drm-cart > footer { padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 350px) {
    #drm-app .drm-cart-head { padding-right: 16px; padding-left: 16px; }
    #drm-app [data-cart-lines] { padding-right: 16px; padding-left: 16px; }
    #drm-app .drm-cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: 9px; }
    #drm-app .drm-cart-line img, #drm-app .drm-cart-thumb { width: 64px; height: 64px; border-radius: 12px; }
    #drm-app .drm-cart-info strong { font-size: 16px; }
    #drm-app .drm-cart-line-price { font-size: 15px; }
    #drm-app .drm-cart-quantity { grid-template-columns: 36px 36px 36px; height: 36px; }
    #drm-app .drm-cart-quantity button, #drm-app .drm-cart-quantity span { width: 36px; height: 36px; }
}

/* Final compact cart layout: keep the sheet close to the sticky cart bar. */
#drm-app .drm-cart-delivery-note {
    display: none !important;
}

#drm-app .drm-cart-head h2 {
    font-size: clamp(24px, 5vw, 32px);
}

#drm-app .drm-cart-line {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px 0 12px;
}

#drm-app .drm-cart-line:first-child { padding-top: 4px; }
#drm-app .drm-cart-line img,
#drm-app .drm-cart-thumb {
    width: 52px;
    height: 52px;
    border-radius: 9px;
}
#drm-app .drm-cart-info strong { font-size: 15px; }
#drm-app .drm-cart-line-price { font-size: 14px; }
#drm-app .drm-cart-edit,
#drm-app .drm-cart-remove {
    min-height: 24px;
    gap: 4px;
    font-size: 12px;
}
#drm-app .drm-cart-edit svg,
#drm-app .drm-cart-remove svg { width: 15px; height: 15px; }
#drm-app .drm-cart-quantity {
    grid-template-columns: 30px 30px 30px;
    height: 30px;
}
#drm-app .drm-cart-quantity button,
#drm-app .drm-cart-quantity span {
    width: 30px;
    height: 30px;
    font-size: 16px;
}

@media (max-width: 820px) {
    #drm-app.drm-menu .drm-cart {
        bottom: calc(82px + env(safe-area-inset-bottom));
        height: min(76dvh, 560px);
        max-height: calc(100dvh - 96px - env(safe-area-inset-bottom));
        border-radius: 20px;
    }

    #drm-app .drm-cart-head { padding: 16px 18px 10px; }
    #drm-app .drm-cart-close { width: 40px; height: 40px; flex-basis: 40px; }
    #drm-app [data-cart-lines] { padding-right: 18px; padding-left: 18px; }
    #drm-app .drm-cart > footer { padding: 10px 18px 12px; gap: 8px; }
    #drm-app .drm-cart > footer > .drm-primary { min-height: 46px; font-size: 15px; }
}

@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart {
        bottom: 68px;
        height: min(500px, calc(100vh - 104px));
        max-height: calc(100vh - 104px);
    }
}

/* Keep the page behind the mobile cart fixed and scroll the cart itself. */
html.drm-cart-open,
body.drm-cart-open {
    overflow: hidden !important;
    height: 100%;
    overscroll-behavior: none;
}

@media (max-width: 820px) {
    #drm-app.drm-menu .drm-cart {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: min(86dvh, 640px);
        max-height: calc(100dvh - 12px);
        grid-template-rows: auto minmax(0, 1fr) auto;
        overflow: hidden;
        overscroll-behavior: contain;
        touch-action: none;
    }

    #drm-app.drm-menu .drm-cart.is-open {
        display: grid !important;
    }

    #drm-app.drm-menu .drm-cart [data-cart-lines] {
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    #drm-app.drm-menu .drm-cart > footer {
        min-height: 0;
        max-height: 42%;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
}

/* Keep the compact mobile sheet above the sticky cart bar. */
@media (max-width: 820px) {
    #drm-app.drm-menu .drm-cart {
        bottom: calc(76px + env(safe-area-inset-bottom));
        height: auto;
        max-height: calc(100dvh - 88px - env(safe-area-inset-bottom));
        grid-template-rows: auto auto auto;
        border-radius: 20px;
    }

    #drm-app.drm-menu .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        max-height: none;
        overflow-y: visible;
    }

    #drm-app.drm-menu .drm-cart[data-cart-scroll="true"] {
        height: min(76dvh, 560px);
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    #drm-app.drm-menu .drm-cart[data-cart-scroll="true"] [data-cart-lines] {
        max-height: none;
    }
}

/* Final desktop cart sizing, after the legacy cart rules. */
@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart {
        bottom: 70px;
        height: auto;
        max-height: calc(100vh - 94px);
        grid-template-rows: auto auto auto;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        max-height: none;
        overflow-y: visible;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="true"] {
        height: min(500px, calc(100vh - 94px));
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="true"] [data-cart-lines] {
        max-height: none;
    }
}

/* Final override: two products fit naturally; the third product enables scrolling. */
@media (max-width: 820px) {
    #drm-app.drm-menu .drm-cart[data-cart-scroll="false"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }
    #drm-app.drm-menu .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        max-height: none !important;
        overflow-y: visible;
    }
}

@media (min-width: 821px) {
    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
    }
    #drm-app.drm-menu.has-cart > .drm-cart[data-cart-scroll="false"] [data-cart-lines] {
        max-height: none !important;
        overflow-y: visible;
    }
}
