* {
    box-sizing: border-box;
}

:root {
    --font-size-base: 16px;
    --button-primary-color: #e67e22;
    --button-primary-text: #fffdf8;
    --btn-standard-height: 30px;
    --btn-standard-padding-y: 6px;
    --btn-standard-padding-x: 11px;
    --btn-standard-radius: 7px;
    --btn-standard-font-size: 0.86rem;
}

.store-hours-close,
.menu-search-clear,
.menu-cart-close,
.perimeter-streets-close,
.pdv-pizza-modal-close,
.product-sheet-close,
.cart-note-modal-close,
.half-note-modal-close,
.half-note-alert-close,
.ui-modal-icon-close,
.btn.ui-cancel[data-modal-close][aria-label="Fechar"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    border-color: #16803a !important;
    background: #16803a !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.store-hours-close::before,
.menu-search-clear::before,
.menu-cart-close::before,
.perimeter-streets-close::before,
.pdv-pizza-modal-close::before,
.product-sheet-close::before,
.cart-note-modal-close::before,
.half-note-modal-close::before,
.half-note-alert-close::before,
.ui-modal-icon-close::before,
.btn.ui-cancel[data-modal-close][aria-label="Fechar"]::before {
    content: "×" !important;
    display: block !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transform: translateY(-1px);
}

html,
body {
    min-height: 100%;
}

html {
    font-size: var(--font-size-base);
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--menu-sticky-top, 56px) + 76px);
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.4;
    background: #ffffff;
    color: #2b1d14;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-base);
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

body.menu-cart-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: #c53a26;
    color: #fff7f1;
    padding: 6px 0;
    border-bottom: 0;
    box-shadow: 0 10px 24px rgba(117, 24, 13, 0.2);
}

.topbar-inner {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px 16px;
}

.topbar-left {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
}

.topbar-customer-menu {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: 8px;
    flex-wrap: nowrap;
}

.topbar-share-near-bell {
    margin-right: 8px;
}

.topbar-right {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
}

.topbar-store-actions {
    display: inline-flex;
    align-items: center;
}

.store-status-underbar {
    width: 100%;
    margin: -4px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.topbar-brand {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: none;
    overflow: visible;
    align-self: center;
}

.topbar-brand-shell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.topbar-brand-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    min-width: 0;
    padding-top: 0;
}

@media (min-width: 1025px) {
    body.is-customer-area .topbar {
        padding: 4px 0;
    }

    body.is-customer-area .topbar-inner {
        gap: 6px 12px;
        flex-wrap: nowrap;
    }

    body.is-customer-area .topbar-left {
        flex: 1 1 auto;
    }

    body.is-customer-area .topbar-brand-shell {
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 8px 18px rgba(28, 21, 15, 0.18);
        gap: 6px;
        min-height: 42px;
        padding: 3px 9px 3px 5px;
    }

    body.is-customer-area .topbar-customer-menu {
        margin-left: auto;
    }

    body.is-customer-area .brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        padding: 1px;
        box-shadow: none;
    }

    body.is-customer-area .brand-badge {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    body.is-customer-area .brand-text {
        color: #111827;
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1;
    }

    body.is-customer-area .topbar-nav {
        gap: 5px;
        flex-wrap: nowrap;
    }

    body.is-customer-area .topbar-nav a,
    body.is-customer-area .topbar-customer-menu a,
    body.is-customer-area .topbar-submenu-trigger {
        font-size: 0.88rem;
        padding: 6px 9px;
    }
}

.brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #ffe8c9;
    color: #7f1d11;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(115, 31, 19, 0.2);
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff6ef;
    padding: 4px;
    position: static;
    transform: none;
    box-shadow: 0 8px 16px rgba(53, 22, 11, 0.28);
    z-index: auto;
}

.brand-text {
    color: #fff7f1;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.05;
    text-decoration: none;
}

.product-edit-backdrop {
    display: none !important;
}

.product-edit-backdrop.is-current-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9000 !important;
}

.product-edit-backdrop.is-current-modal .product-edit-modal {
    position: fixed !important;
    z-index: 9001 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.is-admin-area .topbar {
    padding: 4px 0;
}

body.is-admin-area .topbar-inner {
    gap: 6px 12px;
    flex-wrap: nowrap;
}

@media (min-width: 1025px) {
    body.is-admin-area .topbar-brand-shell {
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 8px 18px rgba(28, 21, 15, 0.18);
        gap: 6px;
        min-height: 42px;
        padding: 3px 9px 3px 5px;
    }

    body.is-admin-area .topbar-brand-copy {
        display: inline-flex;
    }

    body.is-admin-area .brand-text {
        color: #111827;
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1;
    }
}

body.is-admin-area .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 1px;
    box-shadow: none;
}

body.is-admin-area .brand-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

body.is-admin-area .brand-text {
    font-size: 0.98rem;
}

.topbar-billing-reminder {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-billing-reminder > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd166;
}

.topbar-billing-reminder-overdue > span {
    width: 8px;
    height: 8px;
    background: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.16);
}

.topbar-billing-reminder-overdue {
    padding: 7px 11px;
    border: 2px solid #fff;
    background: #fff;
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(93, 20, 13, 0.28);
}

body.is-admin-area .topbar-billing-reminder-overdue:hover,
body.is-admin-area .topbar-billing-reminder-overdue:focus-visible {
    background: #fff4f2;
    color: #8f1b12;
}

.topbar-billing-reminder:hover,
.topbar-billing-reminder:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

body.is-admin-area .topbar-nav {
    gap: 5px;
    flex-wrap: nowrap;
}

body.is-admin-area .topbar-nav a,
body.is-admin-area .topbar-submenu-trigger {
    font-size: 0.88rem;
    padding: 6px 9px;
}

body.is-admin-area .topbar-nav > a.is-active,
body.is-admin-area .topbar-submenu-trigger.is-active,
body.is-admin-area .topbar-submenu.is-open .topbar-submenu-trigger {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
}

@keyframes brand-enter {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.topbar-nav {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: visible;
    overflow-y: visible;
    cursor: default;
}

.topbar-nav.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.topbar-store-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 17px;
    padding: 0 7px;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(70, 24, 14, 0.24);
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

button.topbar-store-status {
    cursor: pointer;
    font-family: inherit;
}

button.topbar-store-status:hover {
    filter: brightness(0.98);
}

.topbar-store-status.is-open {
    background: #ffffff;
    color: #16833a;
    border: 1px solid rgba(15, 107, 47, 0.28);
}

.topbar-store-status.is-closed {
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(143, 31, 23, 0.28);
}

.menu-store-status-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 16px 8px;
}

.menu-store-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    border: 1px solid #f1dac8;
    box-shadow: 0 3px 8px rgba(70, 24, 14, 0.08);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

button.menu-store-status {
    cursor: pointer;
    font-family: inherit;
}

.menu-store-status.is-open {
    border-color: rgba(22, 101, 52, 0.3);
    color: #16833a;
}

.menu-store-status.is-closed {
    border-color: rgba(143, 31, 23, 0.3);
}

.store-hours-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px 16px;
    overflow: hidden;
    background: rgba(29, 19, 14, 0.36);
}

.store-hours-modal-backdrop.is-open {
    display: flex;
}

.store-hours-modal {
    width: min(1000px, 100%);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    background: #eeeeee;
    border-radius: 10px;
    padding: 10px 20px 20px;
    box-shadow: 0 20px 48px rgba(41, 24, 15, 0.28);
}

.store-hours-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.store-hours-modal-head h2 {
    margin: 0;
    color: #ff7a1a;
    font-size: 1.08rem;
    font-weight: 800;
}

.store-hours-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #5a3d2b;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.store-hours-list {
    display: grid;
    gap: 7px;
}

.store-hours-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.store-hours-item h3 {
    margin: 0 0 6px;
    color: #80654f;
    font-size: 0.96rem;
    font-weight: 800;
}

.store-hours-item p {
    margin: 0;
    color: #111827;
    font-size: 0.86rem;
    font-weight: 600;
}

.topbar-desktop-links {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.topbar-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.topbar-auth-actions .topbar-install-btn[hidden] {
    display: inline-flex !important;
    visibility: hidden;
    pointer-events: none;
}

.topbar-mobile-only {
    display: none;
}

.topbar-nav > a,
.topbar-customer-menu > a,
.topbar-auth-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    box-sizing: border-box;
    color: #fff6ef;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 999px;
    border: 0;
    transition: background-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.topbar-nav > a:hover,
.topbar-customer-menu > a:hover,
.topbar-auth-actions > a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
}

.topbar-nav > a.is-active,
.topbar-customer-menu > a.is-active,
.topbar-auth-actions > a.is-active {
    background: transparent;
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.topbar-nav a.is-active {
    background: transparent;
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.delivery-notification-banner {
    width: min(760px, 100%);
    margin: 12px auto;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    color: #7f1d1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.08);
}

.delivery-notification-banner strong {
    display: block;
    margin-bottom: 4px;
    color: #991b1b;
    font-weight: 900;
}

.delivery-notification-banner p {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.delivery-notification-banner form {
    margin: 0;
    flex: 0 0 auto;
}

.delivery-notification-banner button {
    border: 0;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    min-height: 36px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.topbar-install-btn {
    min-width: 105px;
    min-height: 32px;
    box-sizing: border-box;
    color: #fff6ef;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 999px;
    border: 0 !important;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}


.topbar-install-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 0 !important;
    box-shadow: none !important;
}

.topbar-install-btn:focus,
.topbar-install-btn:focus-visible,
.topbar-install-btn:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.topbar-auth-actions .topbar-install-btn.is-install-unavailable {
    opacity: 1;
}

.topbar-promo-alert {
    position: relative;
}

.topbar-promo-btn {
    width: 42px;
    height: 42px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff6ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.topbar-promo-btn:hover {
    background: transparent;
}

.topbar-share-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff6ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
}

.topbar-share-btn:hover {
    background: transparent;
}

.topbar-share-btn svg {
    width: 21px;
    height: 21px;
    display: block;
}

.topbar-promo-bell {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform-origin: 50% 0%;
}

.topbar-promo-bell svg {
    width: 25px;
    height: 25px;
    display: block;
}

.topbar-promo-alert.is-shaking .topbar-promo-bell {
    animation: bell-shake 0.9s ease-in-out infinite;
}

.topbar-promo-dot {
    display: none;
    position: absolute;
    top: 7px;
    right: 7px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffd44d;
    box-shadow: 0 0 0 2px rgba(156, 39, 17, 0.7);
}

.topbar-promo-alert.has-promo .topbar-promo-dot {
    display: block;
}

.topbar-promo-panel {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: min(430px, calc(100vw - 20px));
    background: #fff;
    color: #2f2017;
    border: 1px solid #f1dac8;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(41, 24, 15, 0.22);
    padding: 14px 16px;
    display: none;
    z-index: 1300;
}

.topbar-promo-alert.is-open .topbar-promo-panel {
    display: block;
}

.topbar-promo-title {
    margin: 0 0 5px;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #166534;
}

.topbar-promo-line {
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid #f3e1d4;
    color: #166534;
    font-size: 0.9rem;
    line-height: 1.3;
}

.topbar-promo-title + .topbar-promo-line {
    border-top: 0;
    padding-top: 2px;
}

.topbar-promo-seen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 6px 0 0 auto;
    border: 1px solid #e7cdbb;
    background: #fff7ef;
    color: #166534;
    border-radius: 7px;
    padding: 3px 6px;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
}

.topbar-promo-seen-btn:hover {
    background: #ffefdf;
}

.topbar-promo-alert:not([data-notif-unread="0"]) [data-promo-seen-btn] {
    display: none !important;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(14deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-6deg); }
}

.topbar-nav a.topbar-cta {
    background: var(--button-primary-color);
    border-color: transparent;
    color: var(--button-primary-text);
    box-shadow: 0 8px 16px rgba(170, 82, 20, 0.3);
}

.topbar-nav a.topbar-cta:hover {
    background: var(--button-primary-color);
    border-color: transparent;
    filter: brightness(0.95);
}

.topbar-nav a.topbar-cta.is-active {
    background: var(--button-primary-color);
    color: var(--button-primary-text);
    border-color: transparent;
}

.topbar-submenu {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.topbar-submenu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    box-sizing: border-box;
    list-style: none;
    color: #fff6ef;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    user-select: none;
    background: transparent;
    font-family: inherit;
}

.topbar-submenu-trigger::after {
    content: '▾';
    display: inline-block;
    margin-left: 8px;
    font-size: 0.82em;
    transition: transform 0.16s ease;
}

.topbar-submenu:hover .topbar-submenu-trigger::after,
.topbar-submenu.is-open .topbar-submenu-trigger::after {
    transform: rotate(180deg);
}

.topbar-submenu-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
}

.topbar-submenu-trigger.is-active,
.topbar-submenu.is-open .topbar-submenu-trigger {
    background: transparent;
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.topbar-submenu-panel {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #f4dfcf;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(41, 24, 15, 0.22);
    padding: 8px;
    display: grid;
    gap: 3px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.topbar-submenu.is-open .topbar-submenu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.topbar-submenu-panel a,
.topbar-submenu-panel .submenu-action-btn,
.topbar-submenu-panel .topbar-install-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    color: #3a261a;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-align: left;
    white-space: nowrap;
}

.topbar-submenu-panel .submenu-action-btn {
    font-size: 0.95rem;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.topbar-submenu-panel .topbar-install-btn {
    -webkit-text-fill-color: #3a261a;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 1px solid transparent !important;
    background: transparent;
    box-shadow: none;
}

.topbar-submenu-panel .topbar-install-btn:disabled {
    color: #5f4637 !important;
    -webkit-text-fill-color: #5f4637 !important;
    cursor: not-allowed;
    opacity: 1 !important;
    background: transparent !important;
}

.topbar-install-btn[hidden],
.topbar-submenu-panel .topbar-install-btn[hidden] {
    display: none !important;
}

.topbar-auth-actions > .topbar-install-btn[hidden] {
    display: inline-flex !important;
    visibility: hidden;
    pointer-events: none;
}

.topbar-submenu-panel a:hover {
    background: #fff7ef;
    border-color: #f5dbc6;
}

.topbar-submenu-panel .submenu-action-btn:hover,
.topbar-submenu-panel .topbar-install-btn:hover {
    background: #fff7ef;
    border-color: #f5dbc6;
}

.topbar-submenu-panel a.is-active {
    background: #fff6ef;
    border-color: #efc7aa;
    color: #9f251b;
}

.topbar-submenu-panel a.submenu-danger {
    position: relative;
    margin-top: 8px;
    color: #b42318;
}

.topbar-submenu-panel a.submenu-danger::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: -5px;
    height: 1px;
    background: #f1e1d6;
}

.topbar-submenu-panel a.submenu-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.topbar-submenu-panel .submenu-user {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    color: #6f4f3a;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 8px 12px 9px;
    text-align: left;
}

.topbar-submenu-panel-management {
    min-width: 210px;
    padding: 8px;
    gap: 2px;
}

.topbar-submenu-panel-management .submenu-group {
    display: grid;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid #f4e5d8;
}

.topbar-submenu-panel-management .submenu-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.topbar-submenu-panel .submenu-group-title {
    display: block;
    margin: 0 6px 2px;
    font-size: 0.7rem;
    line-height: 1.1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #a56945;
    font-weight: 700;
}

.topbar-submenu-panel-management a {
    font-weight: 600;
    padding: 7px 10px;
}

.topbar-user {
    color: #ffe0c8;
    font-weight: 700;
    margin-right: 2px;
    font-size: 0.92rem;
    padding: 6px 4px;
}

.container {
    width: 100%;
    flex: 1;
    max-width: 1160px;
    margin: 24px auto;
    padding: 0 18px;
}

.container-full {
    max-width: 100%;
}

.container-full:has(.caixa-pdv) {
    margin-top: 22px;
}

.history-menu-container {
    width: min(1360px, calc(100% - 28px));
    max-width: none;
    margin: 24px auto;
    padding: 0;
}

.admin-orders-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: #fff;
   /* border-radius: 14px;
     border: 1px solid #f2dfd1;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(142, 76, 43, 0.07); */
}

.card h3 {
    margin-top: 0;
}

.hero {
    background: #fff;
    border: 1px solid #f1dac6;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hero h2 {
    margin: 0;
    font-size: 1.8rem;
}

.hero-kicker {
    margin: 0 0 5px;
    color: #9d4f1c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.hero-text {
    margin: 8px 0 0;
    color: #6b4d39;
}

.store-carousel {
    position: relative;
    border-radius: 0;
    border: 0;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 16px;
    box-shadow: none;
}

.container > .store-carousel:first-child {
    margin-top: -18px;
}

.store-carousel-track {
    position: relative;
    min-height: 0;
    aspect-ratio: 1925 / 577;
}

.store-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.store-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.store-carousel-slide.js-open-product-modal {
    cursor: pointer;
}

.store-carousel-slide.js-open-product-modal:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -6px;
}

.store-carousel-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.store-carousel-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #ffffff;
}

.store-carousel-overlay {
    display: none;
}

.store-carousel-overlay h2 {
    margin: 0;
    font-size: 1.48rem;
}

.store-carousel-overlay p {
    margin: 7px 0 0;
    color: rgba(255, 244, 235, 0.92);
}

.store-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(15, 23, 42, 0.48);
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    padding: 0;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.topbar-submenu-panel .submenu-billing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ead8cd;
    border-radius: 8px;
    background: #fff9f5;
    color: #76503a;
    font-size: .76rem;
}

.topbar-submenu-panel .submenu-billing-item + .submenu-billing-item {
    margin-top: 5px;
}

.topbar-submenu-panel .submenu-billing-item strong {
    color: #8f241b;
    font-size: .84rem;
    white-space: nowrap;
}

.store-carousel-nav:hover,
.store-carousel-nav:focus-visible {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255, 255, 255, 0.92);
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.26);
}

.store-carousel-nav:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.store-carousel-nav.prev {
    left: 14px;
}

.store-carousel-nav.next {
    right: 14px;
}

.store-carousel-dots {
    display: none;
}

.store-carousel-dot {
    width: 9px;
    height: 9px;
    min-height: 0;
    flex: 0 0 9px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    appearance: none;
    line-height: 0;
}

.store-carousel-dot.is-active {
    background: #fff;
}

.client-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 300px));
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 0;
}

.menu-half-card {
    margin-bottom: 16px;
    border-color: #efd9c8;
    background: #fff;
}

.menu-half-card label {
    font-size: 1rem;
}

.menu-half-card select {
    min-height: 40px;
    font-size: 0.95rem;
}

.menu-search-section {
    margin: 0 0 14px;
}

.menu-discovery-bar {
    position: sticky;
    top: var(--menu-sticky-top, 56px);
    z-index: 35;
    background: #fff;
    padding-top: 6px;
}

.menu-category-strip {
    margin: 0 0 10px;
    display: block;
    border-bottom: 1px solid #eee3d9;
    position: relative;
    z-index: 20;
    background: #fff;
}

.menu-category-strip.is-stuck {
    box-shadow: 0 8px 16px rgba(91, 52, 26, 0.08);
}

.menu-category-strip-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    scrollbar-width: none;
    padding: 0 10px;
    scroll-padding-inline: 10px;
    scroll-snap-type: x proximity;
}

.menu-category-strip-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.menu-category-strip-track::-webkit-scrollbar {
    display: none;
}

.menu-category-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    color: #6f6f6f;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 0;
    padding: 10px 14px;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    box-shadow: none;
    scroll-snap-align: start;
    transition: background-color .28s ease, border-color .28s ease, color .28s ease, box-shadow .28s ease, transform .22s ease;
    transform: translateY(0);
}

.menu-category-chip-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(93, 52, 27, 0.12);
}

.menu-category-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 2px;
}

.menu-category-chip:hover {
    color: #4f4f4f;
    background: #faf7f3;
}

.menu-category-chip.is-active {
    color: #2f2f2f;
    background: transparent;
    box-shadow: none;
    transform: translateY(0);
    border-bottom: 2px solid #d97745;
}

.menu-category-chip:active,
.menu-category-chip:focus-visible {
    outline: none;
    box-shadow: inset 0 -2px 0 #d97745;
}

.menu-category-chip:active {
    transform: scale(.985);
}

body.is-menu-page .menu-app-exclusive-promo {
    display: none !important;
}

html.is-standalone-app body.is-menu-page .menu-app-exclusive-promo,
body.is-menu-page.is-standalone-app .menu-app-exclusive-promo {
    display: block !important;
}

html.is-standalone-app body.is-menu-page .menu-category-chip.menu-app-exclusive-promo,
body.is-menu-page.is-standalone-app .menu-category-chip.menu-app-exclusive-promo {
    display: inline-flex !important;
}

@media (display-mode: standalone) {
    body.is-menu-page .menu-app-exclusive-promo {
        display: block !important;
    }

    body.is-menu-page .menu-category-chip.menu-app-exclusive-promo {
        display: inline-flex !important;
    }
}

html.is-standalone-app body.is-menu-page .menu-exclusive-promo-section .menu-exclusive-promo-carousel,
body.is-menu-page.is-standalone-app .menu-exclusive-promo-section .menu-exclusive-promo-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding: 0 0 12px;
}

html.is-standalone-app body.is-menu-page .menu-exclusive-promo-section .menu-exclusive-promo-carousel::-webkit-scrollbar,
body.is-menu-page.is-standalone-app .menu-exclusive-promo-section .menu-exclusive-promo-carousel::-webkit-scrollbar {
    display: none;
}

html.is-standalone-app body.is-menu-page .menu-exclusive-promo-section .product-card,
body.is-menu-page.is-standalone-app .menu-exclusive-promo-section .product-card {
    position: relative;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: none;
    transition: opacity 0.22s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html.is-standalone-app body.is-menu-page .menu-exclusive-promo-section .product-card:hover,
html.is-standalone-app body.is-menu-page .menu-exclusive-promo-section .product-card.reveal-on-scroll.is-visible:hover,
body.is-menu-page.is-standalone-app .menu-exclusive-promo-section .product-card:hover,
body.is-menu-page.is-standalone-app .menu-exclusive-promo-section .product-card.reveal-on-scroll.is-visible:hover {
    transform: none;
}

html.is-standalone-app body.is-menu-page .menu-exclusive-promo-section.has-more-promos,
body.is-menu-page.is-standalone-app .menu-exclusive-promo-section.has-more-promos {
    position: relative;
}

.promo-carousel-next {
    position: absolute;
    right: 6px;
    left: auto;
    top: 50%;
    z-index: 4;
    width: 10px;
    height: 42px;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(180deg, rgba(255, 180, 86, .96), rgba(242, 139, 47, .78));
    color: rgba(95, 39, 8, .82);
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
    border: 0;
    padding: 0;
    box-shadow: -3px 6px 14px rgba(193, 99, 26, .16);
    cursor: pointer;
    transform: translateY(-50%);
    animation: promoArrowSlide 1.15s ease-in-out infinite;
}

.promo-carousel-next[data-direction="prev"] {
    right: auto;
    left: 6px;
    border-radius: 0 10px 10px 0;
    animation-name: promoArrowSlideBack;
}

.promo-carousel-next::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    z-index: -1;
    width: 10px;
    height: 42px;
    border-radius: 12px 0 0 12px;
    background: rgba(242, 139, 47, .2);
    pointer-events: none;
    transform: translateY(-50%) scaleX(.7);
    transform-origin: right center;
    animation: promoArrowRipple 1.7s ease-out infinite;
}

.promo-carousel-next[data-direction="prev"]::before {
    right: auto;
    left: 0;
    border-radius: 0 12px 12px 0;
    transform-origin: left center;
}

.promo-carousel-next[hidden] {
    display: none;
}

.menu-exclusive-promo-section:not(.has-more-promos) .promo-carousel-next {
    display: none !important;
}

@media (display-mode: standalone) {
    body.is-menu-page .menu-exclusive-promo-section .menu-exclusive-promo-carousel {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 10px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        padding: 0 0 12px;
    }

    body.is-menu-page .menu-exclusive-promo-section .menu-exclusive-promo-carousel::-webkit-scrollbar {
        display: none;
    }

    body.is-menu-page .menu-exclusive-promo-section .product-card {
        position: relative;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        transform: none;
        transition: opacity 0.22s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    }

    body.is-menu-page .menu-exclusive-promo-section .product-card:hover,
    body.is-menu-page .menu-exclusive-promo-section .product-card.reveal-on-scroll.is-visible:hover {
        transform: none;
    }

    body.is-menu-page .menu-exclusive-promo-section.has-more-promos {
        position: relative;
    }

    body.is-menu-page .promo-carousel-next {
        position: absolute;
        right: 6px;
        left: auto;
        top: 50%;
        z-index: 4;
        width: 10px;
        height: 42px;
        border-radius: 10px 0 0 10px;
        background: linear-gradient(180deg, rgba(255, 180, 86, .96), rgba(242, 139, 47, .78));
        color: rgba(95, 39, 8, .82);
        display: grid;
        place-items: center;
        font-size: .82rem;
        font-weight: 900;
        line-height: 1;
        border: 0;
        padding: 0;
        box-shadow: -3px 6px 14px rgba(193, 99, 26, .16);
        cursor: pointer;
        transform: translateY(-50%);
        animation: promoArrowSlide 1.15s ease-in-out infinite;
    }

    body.is-menu-page .promo-carousel-next[data-direction="prev"] {
        right: auto;
        left: 6px;
        border-radius: 0 10px 10px 0;
        animation-name: promoArrowSlideBack;
    }

    body.is-menu-page .promo-carousel-next::before {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        z-index: -1;
        width: 10px;
        height: 42px;
        border-radius: 12px 0 0 12px;
        background: rgba(242, 139, 47, .2);
        pointer-events: none;
        transform: translateY(-50%) scaleX(.7);
        transform-origin: right center;
        animation: promoArrowRipple 1.7s ease-out infinite;
    }

    body.is-menu-page .promo-carousel-next[data-direction="prev"]::before {
        right: auto;
        left: 0;
        border-radius: 0 12px 12px 0;
        transform-origin: left center;
    }

    body.is-menu-page .promo-carousel-next[hidden],
    body.is-menu-page .menu-exclusive-promo-section:not(.has-more-promos) .promo-carousel-next {
        display: none !important;
    }
}

.menu-exclusive-promo-section.is-promo-scrolling .promo-carousel-next {
    opacity: 0;
    animation: none;
    pointer-events: none;
}

@keyframes promoArrowSlide {
    0%,
    100% {
        opacity: .72;
        transform: translateY(-50%) translateX(0);
    }

    42% {
        opacity: 1;
        transform: translateY(-50%) translateX(-5px);
    }

    68% {
        opacity: .9;
        transform: translateY(-50%) translateX(-2px);
    }
}

@keyframes promoArrowSlideBack {
    0%,
    100% {
        opacity: .72;
        transform: translateY(-50%) translateX(0);
    }

    42% {
        opacity: 1;
        transform: translateY(-50%) translateX(5px);
    }

    68% {
        opacity: .9;
        transform: translateY(-50%) translateX(2px);
    }
}

@keyframes promoArrowRipple {
    0% {
        opacity: .55;
        transform: translateY(-50%) scaleX(.7);
    }

    70% {
        opacity: 0;
        transform: translateY(-50%) scaleX(3.1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) scaleX(3.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-carousel-next,
    .promo-carousel-next::before {
        animation: none;
    }
}

.menu-back-top-btn {
    position: fixed;
    right: 10px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: #f28b2f;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 10px 18px rgba(193, 99, 26, 0.35);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

@media (max-width: 720px) {
    .menu-discovery-bar {
        top: var(--menu-sticky-top, 96px);
        padding-top: 6px;
        padding-bottom: 6px;
        margin-bottom: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .menu-back-top-btn {
        right: 10px !important;
        bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 720px) {
    .menu-category-section {
        margin-top: 16px;
        padding: 12px 10px 14px;
        scroll-margin-top: calc(var(--menu-sticky-top, 96px) + 76px);
    }

    .menu-category-section .product-card:first-child {
        scroll-margin-top: calc(var(--menu-sticky-top, 96px) + 76px);
    }
}

.menu-back-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-back-top-icon {
    width: 18px;
    height: 18px;
    line-height: 1;
    transform: translateY(1px);
}

.menu-back-top-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.menu-back-top-text {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.menu-cart-open-btn {
    white-space: nowrap;
}

.menu-search-form {
    margin: 0;
    display: flex;
    width: 100%;
}

.menu-search-field {
    position: relative;
    width: 100%;
}

.menu-search-field input {
    margin-top: 0;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e7cdbb;
    background: #fff;
    padding: 0 170px 0 44px;
    font-size: 0.96rem;
    color: #362217;
}

.menu-search-clear {
    position: absolute;
    right: 160px;
    top: 50%;
    z-index: 4;
    width: 22px;
    height: 22px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c9c9c9;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: none;
}

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

/* No card compacto, o vídeo fica em uma linha própria abaixo da foto. */
@media (max-width: 720px) {
    .menu-category-grid .product-media:has(.product-video-button) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding-top: 0;
    }

    .menu-category-grid .product-media:has(.product-video-button) .product-image {
        flex: 0 1 76px;
        max-width: 104px;
        max-height: 76px;
    }

    .menu-category-grid .product-video-button,
    .menu-category-grid .product-video-button:hover {
        position: static;
        flex: none;
        min-height: 21px;
        padding: 2px 6px;
        gap: 3px;
        font-size: .58rem;
        line-height: 1;
        transform: none;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
    }

    .menu-category-grid .product-video-button svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 560px) {
    html,
    body,
    body.is-customer-area {
        max-width: 100%;
    }

    body.is-customer-area.is-menu-page .topbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 3000 !important;
    }

    body.is-customer-area.is-menu-page .customer-menu-page {
        padding-top: calc(var(--menu-sticky-top, 58px) + 8px) !important;
    }

    body.is-customer-area .menu-cart-fab {
        right: 18px !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.is-customer-area.is-menu-page .menu-discovery-bar {
        top: var(--menu-sticky-top, 58px) !important;
        z-index: 2990 !important;
    }
}

@media (max-width: 560px) and (display-mode: standalone) {
    body.is-customer-area .topbar {
        padding-top: 10px !important;
    }

    body.is-customer-area .menu-cart-fab {
        right: 18px !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Cache bust: carrinho restaurado para o layout antigo. */

/* Historico de pedidos no mesmo formato do painel de pedidos. */
.orders-history-page .orders-status-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 12px 0 14px;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: none;
}

.orders-history-page .orders-status-tabs::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.orders-history-page .orders-status-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: #0f1f3a;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.orders-history-page .orders-status-tab.is-active {
    color: #c2410c;
}

.orders-history-page .orders-status-tab.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #f97316;
}

.orders-history-page .orders-status-tab span {
    min-width: 18px;
    min-height: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #edf2f7;
    color: #1f3b66;
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: center;
}

.orders-history-page .orders-status-tab:not(.is-active) span {
    color: #1f3b66;
    font-weight: 700;
}

.orders-history-page .orders-status-tab.is-active span {
    background: #c2410c;
    color: #fff;
}

.orders-history-page .orders-summary {
    display: none;
}

.orders-history-page .history-card-panels .history-table-wrap {
    display: block;
}

.orders-history-page .history-card-panels {
    display: none !important;
}

.orders-history-page .history-orders-stack {
    margin-top: 0;
}

.orders-history-page .orders-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.orders-history-page .orders-group {
    width: 100%;
    overflow: hidden;
    border: 1px solid #eadfd6;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.orders-history-page .orders-group-title {
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid #eadfd6;
    font-size: 0.95rem;
}

.orders-history-page .orders-table-toolbar {
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
    font-size: 0.9rem;
}

.orders-history-page .orders-table-head,
.orders-history-page .order-card-admin {
    display: grid;
    grid-template-columns: 120px 145px minmax(140px, .85fr) minmax(300px, 1.65fr) 105px minmax(175px, .95fr) 56px;
    column-gap: 14px;
    align-items: center;
}

.orders-history-page .orders-table-head {
    min-height: 42px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.orders-history-page .admin-status-cards {
    display: grid;
    grid-template-columns: 1fr;
}

.orders-history-page .order-card-admin {
    min-height: 82px;
    padding: 13px 18px;
    border: 0 !important;
    border-bottom: 1px solid #f0e7df;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: none !important;
}

.orders-history-page .order-card-admin:nth-child(even) {
    background: #fffdfb;
}

.orders-history-page .order-card-admin .order-head,
.orders-history-page .order-list-date,
.orders-history-page .order-list-client,
.orders-history-page .order-list-delivery,
.orders-history-page .order-list-total,
.orders-history-page .order-list-status,
.orders-history-page .order-card-admin .order-actions-inline {
    grid-row: 1;
    align-self: center;
    min-width: 0;
}

.orders-history-page .order-card-admin .order-head {
    grid-column: 1;
}

.orders-history-page .order-card-admin .order-head h3 {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.orders-history-page .order-list-date {
    grid-column: 2;
    color: #526173;
    font-size: 0.82rem;
}

.orders-history-page .order-list-client {
    grid-column: 3;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
}

.orders-history-page .order-list-delivery {
    grid-column: 4;
    display: grid;
    gap: 3px;
    color: #526173;
    font-size: 0.82rem;
}

.orders-history-page .order-list-delivery strong {
    color: #334155;
    font-weight: 600;
}

.orders-history-page .order-list-delivery small,
.orders-history-page .order-list-status small {
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-history-page .order-list-total {
    grid-column: 5;
    color: #047857;
    font-size: 0.9rem;
    font-weight: 600;
}

.orders-history-page .order-list-status {
    grid-column: 6;
    display: grid;
    gap: 2px;
    color: #526173;
    font-size: 0.82rem;
}

.orders-history-page .order-list-status strong {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 10px;
    align-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.orders-history-page .order-list-status.status-finalizado strong {
    background: #dcfce7;
    color: #166534;
}

.orders-history-page .order-list-status.status-cancelado strong {
    background: #fee2e2;
    color: #991b1b;
}

.orders-history-page .order-list-items {
    display: none;
}

.orders-history-page .order-card-admin .order-actions-inline {
    grid-column: 7;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.orders-history-page .order-icon-button {
    width: 32px !important;
    min-width: 32px !important;
    flex: 0 0 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.orders-history-page .order-icon-button svg {
    width: 15px !important;
    height: 15px !important;
}

.history-detail-modal {
    width: min(860px, calc(100vw - 48px)) !important;
    max-width: min(860px, calc(100vw - 48px)) !important;
    max-height: calc(100vh - 36px);
    padding: 0;
    overflow: hidden;
}

.history-detail-modal .ui-modal-title {
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e7edf4;
    color: #162033;
    font-size: 1.05rem;
    font-weight: 800;
}

.history-detail-modal .order-detail-body {
    padding: 12px 22px 6px;
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
}

.history-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7edf4;
}

.history-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
    padding: 8px 0;
    border-bottom: 1px solid #e7edf4;
}

.history-detail-grid.is-table-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-detail-field {
    min-width: 0;
    padding: 5px 0;
    border-bottom: 1px solid #e7edf4;
}

.history-detail-summary .history-detail-field,
.history-detail-grid .history-detail-field:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.history-detail-grid.is-table-group .history-detail-field:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.history-detail-field span {
    display: block;
    margin-bottom: 4px;
    color: #60708b;
    font-size: 0.76rem;
    font-weight: 800;
}

.history-detail-field strong {
    display: block;
    color: #263445;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.history-detail-total strong {
    color: #047857;
    font-weight: 800;
}

.history-detail-status {
    display: inline-flex !important;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem !important;
}

.history-detail-status.status-finalizado {
    background: #fff4ea;
    color: #c2410c;
}

.history-detail-status.status-cancelado {
    background: #fee2e2;
    color: #991b1b;
}

.history-detail-cancel {
    padding: 8px 0 0;
}

.history-detail-products-head {
    display: grid;
    gap: 4px;
    padding: 10px 0 8px;
}

.history-detail-products-head strong {
    color: #162033;
    font-size: 1rem;
    font-weight: 800;
}

.history-detail-products-head span {
    color: #526173;
    font-size: 0.82rem;
    font-weight: 600;
}

.history-detail-products {
    display: grid;
    gap: 10px;
    min-width: 0;
    max-height: min(360px, 42vh);
    overflow-y: auto;
    padding-right: 6px;
}

.history-detail-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e4ebf3;
    border-radius: 8px;
    background: #fff;
}

.history-detail-product-thumb {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: #f8fafc;
}

.history-detail-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.history-detail-product-thumb span {
    color: #64748b;
    font-size: 0.68rem;
    text-align: center;
}

.history-detail-product-main strong {
    color: #162033;
    font-size: 0.92rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.history-detail-product-main p {
    margin: 6px 0 0;
    color: #5b6e8c;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.history-detail-product-qty {
    display: inline-flex;
    margin-right: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 800;
}

.history-detail-modal .ui-modal-actions {
    margin: 0;
    padding: 14px 22px 20px;
    border-top: 1px solid #e7edf4;
    background: #fff;
}

@media (max-width: 760px) {
    .history-detail-summary,
    .history-detail-grid,
    .history-detail-grid.is-table-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .history-detail-summary,
    .history-detail-grid,
    .history-detail-grid.is-table-group {
        grid-template-columns: 1fr;
    }
}


.orders-history-page .history-order-grid {
    display: none;
}

.orders-history-page .history-day-card-label {
    grid-column: 1 / -1;
    padding: 6px 2px 2px;
    color: #7c3f1d;
    font-size: 0.9rem;
    font-weight: 800;
}

.orders-history-page .history-order-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #efdccc;
    border-radius: 10px;
    background: #fffaf6;
}

.orders-history-page .history-order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.orders-history-page .history-order-card-head strong {
    display: block;
    color: #111827;
    font-size: 0.98rem;
}

.orders-history-page .history-order-card-head span:not(.status-pill) {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.orders-history-page .history-order-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.orders-history-page .history-order-card-grid span {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.orders-history-page .history-order-card-grid strong {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 650;
}

.orders-history-page .history-order-total {
    color: #047857 !important;
    font-weight: 800 !important;
}

.orders-history-page .history-order-items,
.orders-history-page .history-order-cancel {
    margin: 0;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.35;
}

.orders-history-page .history-order-cancel {
    color: #991b1b;
    font-weight: 700;
}

.orders-history-page .history-order-card-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 620px) {
    .orders-history-page .history-order-card-grid {
        grid-template-columns: 1fr;
    }
}

.menu-search-clear:hover,
.menu-search-clear:focus-visible {
    background: #a8a8a8;
}

.menu-search-field .menu-store-status {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-search-field input::placeholder {
    color: #8d6a53;
}

.menu-search-field input:focus {
    border-color: #d97745;
    box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.18);
    outline: none;
}

.menu-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center;
}

.menu-half-title {
    margin: 0;
}

.menu-half-actions {
    margin-top: 10px;
    max-width: 360px;
    grid-template-columns: 84px 1fr;
    align-items: center;
}

.menu-half-card .menu-half-actions input {
    min-height: 36px;
    font-size: 0.9rem;
    padding: 6px 9px;
}

.menu-half-card .menu-half-actions button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.88rem;
    border-radius: 8px;
}

.menu-category-section {
    margin: 0 0 24px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #ecd8c9;
    background: #fff;
    box-shadow: 0 10px 22px rgba(124, 67, 37, 0.08);
    scroll-margin-top: calc(var(--menu-sticky-top, 56px) + 76px);
}

.menu-category-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.menu-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 2px 4px;
    border-bottom: 1px solid #f0ddd0;
}

.menu-category-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-card {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
    border-color: #ebd8ca;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(99, 52, 29, 0.1);
    overflow: hidden;
    transition: opacity 0.42s ease, transform 0.42s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
}

.product-card.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card .product-body {
    min-height: 84px;
}

.product-card .product-footer {
    min-height: 70px;
}

.product-availability-note {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #fff3e6;
    color: #8a4b1f;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.25;
}

.product-card .product-footer.has-availability-note {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    min-height: 96px !important;
}

.product-card .product-footer.has-availability-note .product-availability-note {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.product-card .product-footer.has-availability-note .price {
    margin: 0;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #e4c1a4;
    box-shadow: 0 16px 30px rgba(142, 76, 43, 0.18);
}

.product-card.is-out-of-stock {
    cursor: not-allowed;
    background: #fbf7f3;
}

.product-card.is-category-unavailable {
    cursor: not-allowed;
}

.product-card.is-out-of-stock:hover,
.product-card.is-out-of-stock.reveal-on-scroll.is-visible:hover,
.product-card.is-category-unavailable:hover,
.product-card.is-category-unavailable.reveal-on-scroll.is-visible:hover {
    transform: none;
    border-color: #ebd8ca;
    box-shadow: 0 8px 20px rgba(99, 52, 29, 0.1);
}

.product-card.is-out-of-stock .product-image,
.product-card.is-out-of-stock .product-image-empty {
    filter: grayscale(0.24);
    opacity: 0.62;
}

.product-card.is-out-of-stock .product-footer {
    opacity: 0.68;
}

.product-card-stock-action,
.product-stock-unavailable-btn {
    display: none !important;
}

.product-card .product-footer .product-stock-price {
    color: #7b6252;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-card.is-category-unavailable .product-footer .product-stock-price {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 6px 9px;
    border-radius: 8px;
    background: #fff3e6;
    color: #8a4b1f;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.product-card.is-category-unavailable:not(.is-product-unavailable) .product-footer .product-stock-price::before {
    content: "Horário: ";
    font-weight: 600;
}

.product-card.reveal-on-scroll.is-visible:hover {
    transform: translateY(-3px);
}

.menu-category-grid .product-media-promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-media-promo-badge {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(135deg, #d91f1f 0%, #ff7a18 100%);
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card.reveal-on-scroll,
    .product-card.reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }
}

.product-media {
    position: relative;
    width: 100%;
    height: 178px;
    background: #fff;
    border-bottom: 1px solid #f1dfd2;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.product-card-action {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 4px 12px 14px;
}

.customer-promotion-cart-form {
    display: none;
}

.customer-promotion-card {
    cursor: pointer;
}

.customer-promotion-card:hover,
.customer-promotion-card:focus-visible {
    border-color: #f97316;
    box-shadow: 0 14px 28px rgba(124, 45, 18, 0.16);
    transform: translateY(-2px);
}

.product-login-btn {
    width: 100%;
    min-height: 26px;
    padding: 4px 14px;
    font-size: 0.82rem;
    border-radius: 7px;
}

.product-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    margin-bottom: 0;
    border: 0;
    background: #fff;
    padding: 0;
    transform: none;
}

.product-card--combo .product-media {
    height: 190px;
    background: #fff;
}

.product-card--combo .product-image {
    object-fit: contain;
    object-position: center;
    padding: 0;
    background: #fff;
}

.product-card--combo {
    grid-column: span 1;
}

@media (min-width: 1200px) {
    .menu-category-grid.client-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .menu-category-grid.client-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 721px) and (max-width: 899px) {
    .menu-category-grid.client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #967560;
    background: #fff3e6;
}

@media (min-width: 721px) {
    .menu-category-grid .product-card {
        display: flex !important;
        flex-direction: column !important;
        grid-template-areas: none !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .menu-category-grid .product-media {
        order: 0 !important;
        width: 100% !important;
        height: 178px !important;
        margin-top: 0 !important;
        border-bottom: 1px solid #f1dfd2 !important;
        background: #fff !important;
    }

    .menu-category-grid .product-image {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        background: #fff !important;
    }

    .menu-category-grid .product-body {
        order: 1 !important;
        display: block !important;
        min-height: 84px !important;
        padding: 12px 12px 0 !important;
    }

    .menu-category-grid .product-footer {
        order: 2 !important;
        min-height: 70px !important;
        margin-top: 8px !important;
        padding: 0 12px !important;
    }

    .menu-category-grid .product-card-action {
        order: 3 !important;
        justify-content: center !important;
        padding: 4px 12px 14px !important;
    }
}

.product-body h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    font-size: 1.12rem;
    line-height: 1.24;
    color: #2f2017;
    overflow: hidden;
}

.product-sku-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #f28c18;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.product-body {
    padding: 12px 12px 0;
}

.product-body p {
    margin: 0;
    min-height: 34px;
    max-height: 2.6em;
    color: #5f4a3c;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 12px;
    min-height: 34px;
}

.product-gift-promo-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: none;
    min-width: max-content;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #07913f;
    color: #fff;
    box-shadow: none;
    line-height: 1.05;
    pointer-events: none;
    overflow: visible;
}

.product-loyalty-medal-badge {
    position: absolute;
    right: 4px;
    top: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #f1d9bf;
    border-radius: 999px;
    background: #fff6ed;
    box-shadow: 0 6px 14px rgba(99, 48, 17, 0.14);
    font-size: 0.82rem;
    line-height: 1;
    pointer-events: none;
}

.product-gift-promo-badge.has-loyalty-medal {
    right: 38px;
    min-width: max-content;
    max-width: none;
}

.product-gift-promo-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.34) 46%, transparent 72%);
    transform: translateX(-120%);
    animation: giftOrderShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.product-gift-promo-badge span {
    display: inline-block;
    font-size: 0.52rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-gift-promo-badge span::before {
    content: "Você ganhou!";
    font-size: 0.48rem;
    white-space: nowrap;
}

.product-gift-promo-badge strong {
    overflow: visible;
    font-size: 0.56rem;
    font-weight: 900;
    text-overflow: clip;
    text-transform: uppercase;
    min-width: 0;
    white-space: nowrap;
}

.product-gift-promo-badge span::before {
    content: "Voc\00EA ganhou!" !important;
    font-size: 0.48rem;
    white-space: nowrap;
}

.product-gift-promo-badge strong {
    font-size: 0.56rem;
}

.product-gift-promo-badge span::before {
    content: none !important;
}

@keyframes giftOrderShine {
    0%, 42% {
        transform: translateX(-120%);
    }
    70%, 100% {
        transform: translateX(120%);
    }
}

.product-promo-price {
    display: grid;
    gap: 2px;
    justify-items: start;
    margin: 0;
    min-height: 64px;
}

.product-promo-price .product-old-price,
.product-promo-price .product-current-price {
    display: block;
}

.product-promo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.product-old-price,
.product-sheet-base-price {
    color: #8a6c5d;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: line-through;
    opacity: 0.9;
}

.product-current-price {
    color: #b91c1c;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.1;
}

.product-form {
    margin-top: auto;
    padding: 8px 12px 12px;
}

.product-form-price-line {
    margin: 0;
    padding: 0;
}


.product-card-toggle {
    display: none;
}

.product-form label {
    margin-top: 2px;
    font-size: 0.86rem;
}

.pizza-options-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 6px 0 8px;
}

.pizza-border-control {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.pizza-border-control[hidden] {
    display: none !important;
}

.pizza-border-error {
    margin: -2px 0 0;
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 700;
}

.pizza-kind-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 0.84rem;
}

.pizza-kind-row strong,
.pizza-border-inline {
    display: block;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pizza-border-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 22px;
    padding: 0 2px;
}

.pizza-border-required {
    margin-left: auto;
    flex: 0 0 auto;
    color: #8a4a1f;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.pizza-kind-row label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}

.product-video-button{position:absolute;right:8px;bottom:6px;z-index:5;display:inline-flex;align-items:center;gap:4px;min-height:27px;padding:4px 8px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(25,20,18,.82);color:#fff;box-shadow:0 5px 13px rgba(0,0,0,.2);font-size:.66rem;font-weight:800;line-height:1;cursor:pointer;backdrop-filter:blur(8px);transition:transform .18s ease,background .18s ease}.product-video-button:hover{background:#e62117;transform:translateY(-2px)}.product-video-button svg{width:15px;height:15px;flex:none}@media(max-width:720px){.menu-category-grid .product-video-button{right:50%;bottom:-8px;min-height:23px;padding:3px 7px;gap:3px;font-size:.6rem;transform:translateX(50%)}.menu-category-grid .product-video-button:hover{transform:translateX(50%) translateY(-1px)}.menu-category-grid .product-video-button svg{width:13px;height:13px}}.product-video-overlay{position:fixed;inset:0;z-index:7000;display:grid;place-items:center;padding:18px;background:rgba(12,10,9,.76);opacity:0;visibility:hidden;backdrop-filter:blur(5px);transition:opacity .2s ease,visibility .2s ease}.product-video-overlay.is-open{opacity:1;visibility:visible}.has-product-video-open{overflow:hidden}.product-video-phone{width:min(390px,calc(100vw - 28px));padding:9px;border:2px solid #292524;border-radius:34px;background:#111;box-shadow:0 30px 90px rgba(0,0,0,.58);transform:translateY(18px) scale(.97);transition:transform .22s ease}.product-video-overlay.is-open .product-video-phone{transform:none}.product-video-phone-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:4px 8px 7px 13px;color:#fff}.product-video-phone-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-video-phone-head button{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:50%;background:#292524;color:#fff;font-size:1.6rem;cursor:pointer}.product-video-screen{position:relative;overflow:hidden;width:100%;aspect-ratio:9/16;border-radius:24px;background:#000}.product-video-screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0}@media(max-height:760px){.product-video-phone{width:min(330px,calc(100vw - 24px))}.product-video-phone-head{min-height:40px}}

.product-loyalty-admin-badge{display:inline-flex;align-items:center;gap:3px;color:#8a4f08!important;font-weight:800!important}

@media (min-width: 721px) {
    .menu-category-grid .product-video-button {
        right: 6px;
        bottom: 2px;
        min-height: 22px;
        padding: 3px 6px;
        gap: 3px;
        font-size: .58rem;
        box-shadow: 0 3px 9px rgba(0, 0, 0, .16);
    }

    .menu-category-grid .product-video-button svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 720px) {
    .menu-category-grid .product-media:has(.product-video-button) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding-top: 0;
    }

    .menu-category-grid .product-media:has(.product-video-button) .product-image {
        flex: 0 1 76px;
        max-width: 104px;
        max-height: 76px;
    }

    .menu-category-grid .product-video-button {
        position: static;
        flex: none;
        min-height: 21px;
        padding: 2px 6px;
        gap: 3px;
        font-size: .58rem;
        line-height: 1;
        transform: none;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
    }

    .menu-category-grid .product-video-button:hover {
        transform: none;
    }

    .menu-category-grid .product-video-button svg {
        width: 12px;
        height: 12px;
    }
}

.product-sheet-kind-note-btn,
.product-sheet-standalone-note-btn {
    margin-left: auto;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #fff;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1;
    box-shadow: none;
}

.product-sheet-standalone-note-btn {
    width: max-content;
    justify-self: end;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    text-align: center;
}

.product-sheet-kind-note-btn.has-note,
.product-sheet-standalone-note-btn.has-note {
    border-color: #22c55e;
    background: #effdf4;
    color: #14532d;
}

.product-sheet-standalone-note-btn[hidden] {
    display: none !important;
}

.pizza-kind-row label.is-disabled {
    color: #6b625c;
    opacity: 0.55;
    cursor: not-allowed;
}

.pizza-kind-row label.is-disabled input {
    filter: grayscale(1);
    cursor: not-allowed;
}

.pizza-border-native {
    display: none;
}

.pizza-border-toggle {
    position: relative;
    width: 100%;
    min-height: 44px;
    margin-top: 7px;
    padding: 10px 38px 10px 10px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #ecd4c1;
    color: #2f231b;
    font-size: 0.94rem;
    font-weight: 750;
    text-align: left;
    justify-content: flex-start;
}

.pizza-border-toggle::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #93461b;
    border-bottom: 2px solid #93461b;
    transform: translateY(-65%) rotate(45deg);
}

.pizza-border-toggle[aria-expanded="true"]::after {
    transform: translateY(-30%) rotate(225deg);
}

.pizza-border-toggle:disabled {
    opacity: 1;
    cursor: default;
}

.pizza-border-toggle:disabled::after {
    display: none;
}

.pizza-border-panel {
    display: none;
    gap: 6px;
    max-height: min(260px, 48vh);
    overflow-y: auto;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #e7cfbd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(79, 43, 22, 0.12);
}

.pizza-border-panel[hidden] {
    display: none !important;
}

.pizza-border-panel.is-open {
    display: grid;
}

.pizza-border-option {
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #fffdfb;
    color: #2f231b;
    font-size: 0.9rem;
    font-weight: 750;
    text-align: left;
    justify-content: flex-start;
    gap: 8px;
}

.pizza-border-option.is-selected {
    display: none;
    background: #fff7ef;
    box-shadow: none;
}

.pizza-border-panel.is-open .pizza-border-option.is-selected {
    display: none;
}

.pizza-border-panel .pizza-border-option.is-current-choice,
.pizza-border-panel.is-open .pizza-border-option.is-current-choice {
    display: none !important;
}

.pizza-border-panel[data-current-value="0"] .pizza-border-option[data-border-value="0"],
.pizza-border-panel.is-open[data-current-value="0"] .pizza-border-option[data-border-value="0"] {
    display: none !important;
}

.pizza-border-option[data-additional-value]:not([data-additional-value="0"]).is-selected::before {
    display: none;
    content: none;
}

.pizza-border-panel.is-open .pizza-border-option[data-additional-value]:not([data-additional-value="0"]).is-selected {
    display: inline-flex;
    align-items: center;
    border: 1px solid #22c55e;
    background: #effdf4;
    color: #14532d;
    box-shadow: inset 3px 0 0 #22c55e;
}

.product-sheet-pizza-box select {
    min-height: 48px;
    margin-top: 0;
}

.product-sheet-footer {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    background: #fff;
    overflow: visible;
}

.product-sheet.is-half-mode .product-sheet-footer {
    margin-top: 0;
}

.product-sheet-actions {
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    position: static;
}

.pizza-half-row {
    margin-bottom: 8px;
}

.pizza-half-row.is-hidden {
    display: none;
}

.pizza-half-row select {
    margin-top: 3px;
    width: 100%;
    font-size: 0.84rem;
}

.half-flavor-picker {
    margin-top: 6px;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
}

.half-flavor-option {
    width: 100%;
    border: 1px solid #e8d2bf;
    border-radius: 10px;
    background: #fff;
    color: #2f2017;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    text-align: left;
}

.half-flavor-option.is-selected {
    border-color: #28a867;
    background: #f0fff7;
    box-shadow: 0 0 0 2px rgba(40, 168, 103, 0.18);
}

.half-flavor-media {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff8f1;
    border: 1px solid #f0dfd2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.half-flavor-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.half-flavor-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.half-flavor-text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.half-flavor-description {
    color: #7b4b32;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.2;
}

.qty-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px;
    align-items: stretch;
}

.qty-row-single {
    grid-template-columns: 1fr;
}

.product-cta-btn {
    width: 100%;
    text-align: center;
}

.menu-empty-results {
    color: #6d4f3b;
    font-weight: 700;
}

.menu-cart-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 3800;
    border: 0;
    border-radius: 10px;
    background: #16803a;
    color: #fff;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 9px 13px;
    box-shadow: 0 12px 22px rgba(22, 128, 58, 0.28);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.menu-cart-fab span {
    display: inline-flex;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
}

.menu-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3900;
    background: rgba(32, 24, 18, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.menu-cart-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(460px, 96vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-left: 1px solid #efdaca;
    box-shadow: -16px 0 34px rgba(47, 27, 18, 0.24);
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transform: translateX(104%);
    transition: transform 0.22s ease;
}

.menu-cart-backdrop.is-open .menu-cart-drawer {
    transform: translateX(0);
}

.menu-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #f1dfd2;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.menu-cart-head h3 {
    margin: 0;
    font-size: 1.3rem;
}

.menu-cart-close {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e7cdbb;
    background: #fff8f2;
    color: #16803a;
    cursor: pointer;
    font-weight: 800;
    font-size: 0;
    line-height: 1;
    padding: 0;
}

.menu-cart-empty {
    margin: 4px 0 0;
    color: #6f4f3a;
}

.menu-cart-items {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    align-content: start;
}

.menu-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #f0ddd0;
    border-radius: 10px;
    padding: 8px;
    background: #fffdfb;
    min-height: 82px;
}

.menu-cart-item.is-gift {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 6px 7px;
    background: #fff8f0;
}

.menu-cart-item-thumb {
    grid-column: 2;
    grid-row: 1;
    width: 52px;
    height: 52px;
    border-radius: 7px;
    background: #fff7f0;
    border: 1px solid #f0ddd0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-cart-item.is-gift .menu-cart-item-thumb {
    grid-column: 1;
    width: 38px;
    height: 38px;
}

.menu-cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.menu-cart-item-thumb span {
    padding: 4px;
    color: #8b6a54;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.menu-cart-item-main {
    grid-column: 3 / 5;
    grid-row: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    align-items: center;
}

.menu-cart-close::before {
    color: #16803a;
    font-size: 14px;
}

.menu-cart-item-name {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #2f2017;
    line-height: 1.18;
}

.menu-cart-product-gift {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 0;
    color: #166534;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
}

.menu-cart-item-detail,
.checkout-cart-line-detail,
.cart-item-detail {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 0;
    color: #6f5546;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.25;
}

.menu-cart-additional-detail {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-weight: 800;
}

.menu-cart-item-price {
    grid-column: 1;
    grid-row: auto;
    margin: 0;
    color: #b63a1a;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

.menu-cart-item-price-promo {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}

.menu-cart-item-price-promo strong {
    color: #b63a1a;
    font-size: 0.9rem;
    font-weight: 900;
}

.menu-cart-item-old-price {
    color: #8a6a59;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: line-through;
}

.menu-cart-note-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    background: #fff;
    color: #047857;
    border: 1px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-cart-note-toggle svg {
    width: 14px;
    height: 14px;
}

.menu-cart-note-toggle[aria-expanded="true"] {
    background: #ecfdf5;
    border-color: #10b981;
}

.menu-cart-note-toggle.has-note {
    background: #10b981;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.menu-cart-note-toggle.has-note[aria-expanded="true"] {
    background: #059669;
    border-color: #047857;
}

.menu-cart-detail-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-cart-detail-toggle:hover,
.menu-cart-detail-toggle:focus-visible {
    background: #eff6ff;
    outline: 0;
}

.menu-cart-detail-toggle svg {
    width: 15px;
    height: 15px;
}

.menu-cart-note-edit {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 3px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: end;
}

.menu-cart-note-edit[hidden] {
    display: none !important;
}

.menu-cart-note-edit textarea {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #efcdb6;
    border-radius: 8px;
    background: #fff;
    color: #3a261a;
    font-size: 0.82rem;
    line-height: 1.25;
    resize: vertical;
}

.menu-cart-note-edit button {
    min-height: 34px;
    margin: 0;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
}

.cart-note-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(30, 22, 16, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.cart-note-modal-backdrop[hidden] {
    display: none !important;
}

.cart-note-modal {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #efcdb6;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(48, 31, 20, 0.26);
    padding: 14px;
}

.cart-detail-modal-text {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #f0ddd0;
    border-radius: 8px;
    background: #fffaf6;
    color: #4b3427;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-line;
}

.cart-detail-modal .cart-note-modal-head {
    align-items: flex-start;
}

.cart-detail-modal .cart-note-modal-head strong {
    max-width: calc(100% - 44px);
    font-size: 1rem;
    line-height: 1.2;
}

.cart-note-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #241810;
}

.cart-note-modal-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background: #fff;
    color: #9a3412;
    border: 1px solid #f3d2bd;
    font-size: 1.4rem;
    line-height: 1;
}

.cart-note-modal textarea {
    width: 100%;
    min-height: 126px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #d6b9a5;
    border-radius: 9px;
    background: #fff;
    color: #2f2017;
    font-size: 1rem;
    line-height: 1.35;
    resize: vertical;
}

.cart-note-modal textarea[hidden] {
    display: none !important;
}

.cart-note-half-fields {
    display: grid;
    gap: 12px;
}

.cart-note-half-fields[hidden] {
    display: none !important;
}

.cart-note-half-fields label {
    display: grid;
    gap: 6px;
    color: #2f2017;
    font-size: 0.92rem;
    font-weight: 800;
}

.cart-note-half-fields textarea {
    min-height: 82px;
}

.cart-note-modal textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
    outline: 0;
}

.cart-note-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
}

.cart-note-modal-actions .btn,
.cart-note-modal-actions button {
    width: auto;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 0.78rem;
    line-height: 1;
}

.menu-cart-gift-price {
    color: #7a4b32;
    font-size: 0.76rem;
}

.menu-cart-item-actions {
    grid-column: 2;
    grid-row: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
    padding-top: 28px;
}

.menu-cart-item-actions > .menu-cart-note-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    flex: 0 0 24px;
}

.menu-cart-item > .menu-cart-remove-form {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: end;
}

.menu-cart-qty-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.menu-cart-qty-form input {
    margin: 0;
    width: 42px;
    min-height: 26px;
    height: 26px;
    padding: 2px 5px;
    font-size: 0.76rem;
    text-align: center;
}

.menu-cart-qty-form button,
.menu-cart-remove-btn,
.menu-cart-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.66rem;
    min-height: 24px;
    line-height: 1.1;
    white-space: nowrap;
}

.menu-cart-qty-form .menu-cart-qty-step {
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 24px;
    min-height: 24px;
    padding: 0 !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.menu-cart-remove-btn {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    color: #b42318 !important;
    box-shadow: none !important;
    margin-left: 2px;
    flex: 0 0 auto;
}

.menu-cart-remove-btn:hover,
.menu-cart-remove-btn:focus-visible {
    background: #fff1f0 !important;
    border-color: #ffd4cf !important;
    color: #991b1b !important;
}

.menu-cart-remove-form {
    margin: 0;
}

.menu-cart-remove-btn svg {
    width: 14px;
    height: 14px;
    display: block;
    color: currentColor;
    stroke: currentColor;
}

.menu-cart-summary {
    margin-top: auto;
    border-top: 1px solid #f1dfd2;
    padding-top: 10px;
    display: grid;
    gap: 6px;
    flex: 0 0 auto;
}

.menu-cart-coupon {
    display: block;
    flex: 0 0 auto;
    min-height: 32px;
    margin: 3px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: opacity .18s ease, transform .18s ease;
}

.menu-cart-coupon.is-updating {
    opacity: .62;
    transform: translateY(1px);
    pointer-events: none;
}

.menu-cart-coupon-form > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-cart-coupon-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-cart-coupon-form > div {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.menu-cart-coupon-form input {
    box-sizing: border-box;
    min-width: 0;
    flex: 1;
    height: 32px;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid #d8c0ac;
    border-radius: 7px;
    font-size: 13px;
    text-transform: uppercase;
}

.menu-cart-coupon-form button,
.menu-cart-coupon-applied button {
    box-sizing: border-box;
    height: 26px;
    margin: 0;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: #e67e22;
    color: #fffdf8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity .18s ease, background-color .18s ease;
}

.menu-cart-coupon-form button:disabled,
.menu-cart-coupon-applied button:disabled {
    opacity: .75;
    cursor: wait;
}

.menu-cart-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 26px;
}

.menu-cart-coupon-applied > div {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}

.menu-cart-coupon-applied span {
    display: none;
}

.menu-cart-coupon-applied small {
    display: none;
}

.menu-cart-coupon-applied strong {
    margin: 0;
    color: #6f351e;
    font-size: 13px;
}

.menu-cart-coupon-discount {
    color: #15803d;
    font-size: 12px;
    white-space: nowrap;
}

.menu-cart-coupon-error {
    display: block;
    flex-basis: 100%;
    margin-top: 0;
    color: #b42318;
}

.menu-cart-minimum {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding: 10px 12px;
    border: 1px solid #f0c9a8;
    border-radius: 10px;
    background: #fff9f4;
    flex: 0 0 auto;
}

.menu-cart-minimum + .menu-cart-summary {
    margin-top: 0;
}

.menu-cart-minimum-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #5f3520;
    font-size: .8rem;
}

.menu-cart-minimum-head strong {
    color: #b8451e;
    font-size: .82rem;
}

.menu-cart-minimum-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1d7c2;
}

.menu-cart-minimum-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef7f1a, #d95816);
}

.menu-cart-minimum small {
    color: #8a5436;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.2;
}

.menu-cart-minimum.is-complete {
    border-color: #a9dfbb;
    background: #f1fcf5;
}

.menu-cart-minimum.is-complete .menu-cart-minimum-head,
.menu-cart-minimum.is-complete .menu-cart-minimum-head strong,
.menu-cart-minimum.is-complete small {
    color: #176c38;
}

.menu-cart-minimum.is-complete .menu-cart-minimum-track {
    background: #ccefd8;
}

.menu-cart-minimum.is-complete .menu-cart-minimum-track > span {
    background: #22a653;
}

.menu-cart-summary p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-cart-clear-form {
    margin: 0;
    flex: 0 0 auto;
}

.menu-cart-clear-btn {
    width: 100%;
    background: #7f1d1d;
    color: #fff !important;
    padding: 10px 12px;
    font-size: 0.9rem;
    min-height: 42px;
}

.menu-cart-footer-actions {
    display: grid;
    gap: 8px;
    flex: 0 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.menu-cart-footer-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.9rem;
    min-height: 42px;
    line-height: 1.15;
}

.menu-cart-footer-actions .btn.is-disabled {
    background: #c9c1ba;
    color: #fff;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
    pointer-events: none;
}

.checkout-cart-card {
    margin-bottom: 12px;
}

.checkout-cart-title {
    margin: 0 0 8px;
}

.checkout-cart-line-name {
    display: block;
}

.checkout-cart-qty-form,
.checkout-cart-remove-form {
    margin: 0;
}

.checkout-cart-line.menu-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.checkout-cart-line .menu-cart-item-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    height: 64px;
}

.checkout-cart-line .menu-cart-item-main {
    grid-column: 2 / 4;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
}

.checkout-cart-line .menu-cart-item-name,
.checkout-cart-line .menu-cart-item-detail {
    grid-column: 1;
}

.checkout-cart-line .menu-cart-item-price {
    grid-column: 1;
}

.checkout-cart-line .menu-cart-item-actions {
    grid-column: 2;
    grid-row: 1 / 4;
    justify-self: end;
}

.checkout-cart-line .menu-cart-remove-btn {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    background: #b42318 !important;
    color: #fff !important;
}

.checkout-cart-line .menu-cart-remove-btn svg {
    width: 13px;
    height: 13px;
}

.checkout-weekend-box {
    margin-top: 10px;
    border: 1px solid #f0cdb6;
    background: #fff6ef;
    border-radius: 12px;
    padding: 10px 12px;
}

.checkout-weekend-toggle {
    margin-top: 0;
    font-weight: 700;
}

.checkout-weekend-hint {
    margin-top: 6px;
}

.checkout-weekend-fields {
    margin-top: 8px;
}

.thumb-admin {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 6px;
    border: 1px solid #d9c7bb;
}

.thumb-admin.large {
    width: 100%;
    height: 180px;
    margin-bottom: 8px;
}

.admin-product-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-product-category-block {
    margin-bottom: 14px;
}

.is-draggable-category {
    cursor: grab;
}

.is-draggable-category.is-dragging {
    opacity: 0.65;
    cursor: grabbing;
}

.admin-product-category-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #7a3514;
}

.admin-product-category-title small {
    color: #8c7567;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

/* Tipografia mais limpa na tela de produtos (estilo semelhante ao exemplo enviado). */
.admin-product-list,
.admin-product-list .admin-product-card,
.admin-product-list .product-card-summary-btn,
.admin-product-list .product-summary-main h3,
.admin-product-list .product-summary-meta,
.admin-product-list .product-badge,
.admin-product-list .product-summary-price {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: 0;
}

@media (max-width: 1180px) {
    .admin-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.is-hidden {
    display: none;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 16px;
}

.search-form input {
    max-width: 420px;
    margin-top: 0;
}

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pagination a {
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid #d9c7bb;
    background: #fff;
    color: #2b1d14;
    font-weight: 600;
}

.pagination a.active {
    background: var(--button-primary-color);
    color: var(--button-primary-text);
    border-color: var(--button-primary-color);
}

.orders-history-page .pagination {
    margin-top: 8px;
    gap: 4px;
}

.orders-history-page .pagination a {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
}

.admin-product-card {
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.admin-product-card-compact {
    position: relative;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.is-draggable-card {
    cursor: grab;
}

.is-draggable-card.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.admin-product-head h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 500;
}

.admin-product-body {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-badge {
    border: 0;
    background: transparent;
    color: #5b534c;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.86rem;
    font-weight: 500;
    white-space: nowrap;
}

.product-editor {
    width: 100%;
}

.product-editor summary {
    list-style: none;
}

.product-editor summary::-webkit-details-marker {
    display: none;
}

.product-editor-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
}

.product-card-summary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 2px 0;
    cursor: pointer;
}

.product-summary-main h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 500;
}

.admin-products-view-toolbar {
    display: flex;
    justify-content: flex-start;
    width: max-content;
    gap: 2px;
    margin: 0 0 10px auto;
    padding: 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
}

.admin-products-view-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #929292;
    box-shadow: none;
}

.admin-products-view-toolbar button:hover,
.admin-products-view-toolbar button.is-active {
    background: #edf9f1;
    color: #20a454;
}

.admin-products-view-toolbar svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-products-list-head {
    display: none;
}

.product-list-cells {
    display: none;
}

body:has(.admin-products-view[data-view="list"]) .admin-products-list-head {
    display: grid;
    grid-template-columns: 76px minmax(240px, 1fr) 100px 120px 110px 90px 76px;
    gap: 12px;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f6f8fa;
    color: #526074;
    font-size: .75rem;
    font-weight: 400;
}

.admin-products-view[data-view="list"] .admin-product-list {
    grid-template-columns: 1fr;
    gap: 4px;
}

.admin-products-view[data-view="list"] .admin-product-card-compact {
    grid-template-columns: minmax(0, 1fr) 76px;
    min-height: 58px;
    padding: 6px 12px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
}

.admin-products-view[data-view="list"] .product-card-summary-btn {
    display: block;
    padding: 0;
}

.admin-products-view[data-view="list"] .product-list-cells {
    display: grid;
    grid-template-columns: 64px minmax(240px, 1fr) 100px 120px 110px 90px;
    gap: 12px;
    align-items: center;
    min-width: 0;
    font-size: .8rem;
    font-weight: 400;
}

.admin-products-view[data-view="list"] .product-list-cells > strong,
.admin-products-view[data-view="list"] .product-list-cells > span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-products-view[data-view="list"] .product-list-cells > strong {
    font-weight: 400;
}

.admin-products-view[data-view="list"] .product-list-cells > span,
.admin-products-view[data-view="list"] .product-active-toggle {
    font-weight: 400;
}

.admin-products-view[data-view="list"] .product-inline-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: visible;
}

.admin-products-view[data-view="list"] .product-inline-prefix {
    flex: 0 0 auto;
    color: #526074;
}

.admin-products-view[data-view="list"] .product-inline-input {
    width: 100%;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #202733;
    font: inherit;
    text-align: left;
    box-shadow: none;
    cursor: text;
}

.admin-products-view[data-view="list"] .product-inline-input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.admin-products-view[data-view="list"] .product-inline-input:focus {
    border-color: #20a454;
    background: #fff;
    outline: 2px solid rgba(32, 164, 84, .14);
}

.admin-products-view[data-view="list"] .product-inline-input.is-saving {
    opacity: .55;
}

.admin-products-view[data-view="list"] .product-inline-input.is-saved {
    border-color: #20a454;
    background: #edf9f1;
}

.admin-products-view[data-view="list"] .product-list-image img,
.admin-products-view[data-view="list"] .product-list-image > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 42px;
    object-fit: contain;
    border-radius: 5px;
    background: #fff;
    font-size: .65rem;
    color: #7a7f87;
}

.admin-products-view[data-view="list"] .product-summary-main,
.admin-products-view[data-view="list"] .product-summary-media {
    display: none;
}

.admin-products-view[data-view="list"] .product-summary-thumb {
    width: 52px;
    height: 38px;
}

.admin-products-view[data-view="list"] .product-active-toggle {
    min-height: 24px;
    padding: 3px 7px;
    font-size: .75rem;
}

.admin-products-view[data-view="list"] .admin-product-category-block > .field-hint {
    margin: 0 0 6px;
    font-size: .72rem;
}

.admin-products-view[data-view="collapsed"] .admin-product-category-block > .field-hint,
.admin-products-view[data-view="collapsed"] .admin-product-list {
    display: none;
}

.admin-products-view[data-view="collapsed"] .admin-product-category-block {
    margin-bottom: 7px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(55, 37, 27, .06);
}

.admin-products-view[data-view="collapsed"] .admin-product-category-title {
    margin: 0;
}

@media (max-width: 760px) {
    body:has(.admin-products-view[data-view="list"]) .admin-products-list-head {
        display: none;
    }

    .admin-products-view[data-view="list"] .product-summary-main {
        display: block;
    }

    .admin-products-view[data-view="list"] .product-summary-media {
        display: inline-flex;
    }

    .admin-products-view[data-view="list"] .product-list-cells {
        display: none;
    }

    .admin-products-view[data-view="list"] .product-card-summary-btn {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 8px;
    }
}

.admin-product-list .product-summary-main {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-product-list .product-summary-main h3 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-summary-meta {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.product-summary-price {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #5b534c;
    font-weight: 500;
    font-size: 0.86rem;
    padding: 4px 8px;
}

.product-summary-meta .product-badge {
    padding: 4px 8px;
    font-size: 0.82rem;
}

.product-summary-media {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 84px;
    flex: 0 0 84px;
}

.product-summary-thumb {
    width: 84px;
    height: 52px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    border: 0;
    background: #fff;
    display: block;
}

.product-summary-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7f6555;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-summary-hint {
    color: #8b5b3f;
    font-size: 0.72rem;
    font-weight: 700;
}

.product-card-summary-btn:hover .product-summary-hint {
    text-decoration: underline;
}

.product-editor-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0dfd3;
}

.photo-placeholder {
    height: 220px;
    border: 1px dashed #d9c7bb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a6f5c;
    margin-bottom: 8px;
    background: #fff8f2;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.products-showcase {
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
}

.products-title {
    margin: 4px 0 12px;
}

.products-search-form {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.products-search-form input {
    min-width: 420px;
    width: auto;
    flex: 1 1 auto;
    max-width: none;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d9c7bb;
}

.products-search-form select {
    width: auto;
    min-width: 220px;
    margin-top: 0;
    border: 1px solid #d9c7bb;
    order: 3;
}

.products-search-form button,
.products-search-form .btn {
    white-space: nowrap;
    order: 2;
}

.products-search-form button[type="submit"] {
    margin-left: auto;
}

.perimeter-page {
    margin-top: 18px;
}

.perimeter-page .products-showcase {
    padding: 18px 20px;
    border: 1px solid #efd8c8;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(105, 56, 30, 0.08);
}

.perimeter-header {
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.perimeter-header .products-title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.perimeter-helper-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.perimeter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #edd8c8;
    background: #fff7ef;
    color: #7a4a2f;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.perimeter-top-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.perimeter-card {
    border-color: #edd8ca;
    background: #fff;
    border: 1px solid #edd8ca;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(94, 53, 31, 0.07);
}

.perimeter-card-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
}

.perimeter-card label {
    margin-top: 10px;
}

.perimeter-card input[type="text"],
.perimeter-card input[type="number"],
.perimeter-card textarea {
    min-height: 36px;
}

.perimeter-card textarea {
    resize: vertical;
    line-height: 1.35;
}

.perimeter-blocked-street-list {
    margin: 4px 0 8px 18px;
    padding: 0;
}

.perimeter-blocked-street-list li {
    margin-bottom: 6px;
    padding-left: 2px;
}

.perimeter-blocked-street-list input {
    width: min(100%, 260px);
    min-height: 34px;
}

.perimeter-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr);
    gap: 12px;
    align-items: start;
}

.perimeter-radius-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.perimeter-radius-controls input {
    min-width: 0;
}

.perimeter-radius-streets {
    width: auto;
    min-width: 52px;
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: .78rem;
    line-height: 1;
}

.perimeter-radius-streets-count {
    font-size: .76rem;
}

.perimeter-radius-streets:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.perimeter-check {
    margin: 0 0 12px;
}

.perimeter-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.perimeter-form-col-wide {
    min-width: 0;
}

.perimeter-actions {
    margin-top: 14px;
}

.perimeter-ranges-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 2px 12px;
    padding-top: 2px;
}

.perimeter-ranges-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.perimeter-ranges-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.perimeter-ranges-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.perimeter-ranges-list-head,
.perimeter-range-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 120px 120px 80px 210px 170px;
    gap: 10px;
    align-items: center;
}

.perimeter-ranges-list-head {
    white-space: nowrap;
}

.perimeter-ranges-list-head {
    padding: 0 12px 4px;
    color: #7a4a2f;
    font-size: 0.78rem;
    font-weight: 800;
}

.perimeter-range-row {
    padding: 10px 12px;
    border: 1px solid #edd9cb;
    border-radius: 8px;
    background: #fff;
}

.perimeter-range-row input[type="text"] {
    width: 100%;
    min-height: 34px;
}

.perimeter-row-label {
    display: none;
}

.perimeter-row-check {
    margin: 0;
}

.perimeter-row-streets {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    flex-wrap: wrap;
}

.perimeter-streets-count {
    color: #6d5545;
    font-size: 0.88rem;
    white-space: nowrap;
}

.perimeter-streets-open {
    white-space: nowrap;
}

.perimeter-streets-modal {
    position: fixed;
    inset: 0;
    z-index: 6200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(24, 19, 16, 0.48);
}

.perimeter-streets-modal.is-open {
    display: flex;
}

.perimeter-streets-dialog {
    width: min(520px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 0 20px 18px;
    border: 1px solid #e7d5ca;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(35, 23, 15, .24);
}

.perimeter-streets-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -20px;
    border-bottom: 1px solid #f0e5de;
    padding: 16px 20px 13px;
    background: #fff;
}

.perimeter-streets-head h3 {
    margin: 0;
    color: #2b211c;
    font-size: 1.08rem;
}

.perimeter-streets-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}

.perimeter-streets-dialog > .field-hint:first-of-type {
    position: relative;
    margin: 14px 0 16px;
    border-radius: 8px;
    padding: 10px 12px 10px 34px;
    background: #fff7ed;
    color: #7c4a2d;
    line-height: 1.4;
}

.perimeter-streets-dialog > .field-hint:first-of-type::before {
    content: "i";
    position: absolute;
    top: 10px;
    left: 11px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: #ea7818;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}

.perimeter-streets-fields {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.perimeter-street-cep-row {
    display: grid;
    gap: 5px;
}

.perimeter-street-cep-row label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #392b24;
    font-size: .82rem;
    font-weight: 700;
}

.perimeter-street-cep-row input {
    width: 100%;
    min-height: 40px;
}

.perimeter-street-cep-row .field-hint {
    min-height: 0;
    margin: 0;
}

.perimeter-street-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin-top: 14px;
}

.perimeter-street-add-row label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #392b24;
    font-size: .82rem;
    font-weight: 700;
}

.perimeter-street-add-row input {
    width: 100%;
    min-height: 40px;
}

.perimeter-street-add-row button {
    min-height: 34px;
    height: 34px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
}

.perimeter-modal-actions {
    margin: 16px -20px -18px;
    border-top: 1px solid #f0e5de;
    padding: 13px 20px;
    background: #fffaf7;
}

.perimeter-modal-actions button {
    min-width: 96px;
}

@media (max-width: 520px) {
    .perimeter-streets-dialog {
        padding-right: 14px;
        padding-left: 14px;
    }

    .perimeter-streets-head {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .perimeter-street-add-row {
        grid-template-columns: 1fr;
    }

    .perimeter-street-add-row button {
        width: 100%;
    }

    .perimeter-modal-actions {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

.perimeter-street-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid #ead1c0;
    border-radius: 7px;
    background: #fffaf6;
}

.perimeter-street-item span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #2d2119;
    font-weight: 700;
}

.perimeter-street-remove {
    width: 34px;
    height: 34px;
}

.perimeter-street-remove[hidden] {
    display: none !important;
}

.perimeter-street-add {
    min-height: 34px;
    padding: 7px 12px;
}

.perimeter-streets-error {
    color: #b42318;
    font-weight: 700;
}

.perimeter-modal-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.perimeter-row-actions {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perimeter-range-card {
    border-color: #edd9cb;
    border: 1px solid #edd9cb;
    border-radius: 8px;
    padding: 12px;
    box-shadow: none;
    display: grid;
    grid-template-columns: 180px minmax(0, 640px);
    gap: 18px;
    align-items: start;
}

.perimeter-range-card .admin-product-head {
    display: grid;
    gap: 8px;
    align-content: start;
}

.perimeter-range-card .admin-product-head h3 {
    margin: 0;
    font-size: 1rem;
}

.perimeter-range-card .admin-product-body {
    min-width: 0;
}

.perimeter-range-card .admin-product-body > div {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr);
    gap: 10px 16px;
    align-items: start;
}

.perimeter-range-card .admin-product-body > div > label,
.perimeter-range-card .admin-product-body > div > input[name="nome"] {
    grid-column: 1;
}

.perimeter-range-card .perimeter-edit-grid {
    grid-column: 1;
}

.perimeter-range-card .inline-check {
    grid-column: 1;
}

.perimeter-range-card .admin-product-body > div > label:nth-of-type(2),
.perimeter-range-card .perimeter-blocked-street-list,
.perimeter-range-card .perimeter-blocked-street-list + .field-hint {
    grid-column: 2;
}

.perimeter-range-card .perimeter-actions {
    grid-column: 2;
    margin-top: 0;
    align-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perimeter-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-modal-actions {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0e2d7;
    padding-bottom: 0;
}

.inline-check input {
    width: auto;
    margin: 0;
}

.price {
    color: #c0392b;
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0;
}

.pdv-preview-detail,
.pdv-cart-item-extra {
    display: block;
    margin-top: 4px;
    color: #8a4b1f;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.pdv-cart-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 8px;
    overflow: visible;
}

.pdv-cart-headline .pdv-cart-title {
    margin: 0;
}

.pdv-preview-media {
    position: relative;
}

.pdv-preview-pizza-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #efcdb8;
    border-radius: 999px;
    background: #fff7ef;
    color: #a23b17;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(49, 27, 10, 0.12);
}

.pdv-pizza-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(28, 18, 12, 0.36);
}

.pdv-pizza-modal-backdrop.is-open {
    display: flex;
}

.pdv-pizza-modal {
    width: min(460px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    background: #fff;
    border: 1px solid #f0d3bd;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(49, 27, 10, 0.22);
    padding: 12px;
}

.pdv-pizza-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pdv-pizza-modal-head h3 {
    margin: 0;
    color: #2c1d14;
    font-size: 1rem;
}

.pdv-pizza-modal-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    background: #f5ebe3;
    color: #7b3f1f;
    font-size: 1.15rem;
}

.pdv-pizza-modal .pdv-cart-pizza-options {
    margin-top: 0;
    border-top: 1px solid #f0d3bd;
    border-radius: 8px;
}

.pdv-cart-pizza-options {
    margin-top: -5px;
    padding: 10px;
    border: 1px solid #f0d3bd;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fffaf6;
}

.pdv-cart-pizza-type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pdv-cart-pizza-type strong,
.pdv-cart-pizza-border {
    color: #7b3f1f;
    font-size: 0.8rem;
    font-weight: 800;
}

.pdv-cart-pizza-type label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #2c1d14;
    font-weight: 600;
}

.pdv-cart-pizza-border {
    display: block;
}

.pdv-cart-pizza-border select {
    width: 100%;
    min-height: 36px;
    margin-top: 5px;
    background: #fff;
}

.pdv-cart-pizza-half {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.pdv-cart-pizza-half p {
    margin: 0;
    color: #7b3f1f;
    font-size: 0.8rem;
    font-weight: 800;
}

.pdv-half-flavor-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 7px;
    background: #fff;
    border: 1px solid #f0d3bd;
    color: #2c1d14;
    text-align: left;
    border-radius: 8px;
    font-weight: 800;
}

.pdv-half-flavor-option.is-selected {
    border-color: #e67e22;
    background: #fff4ea;
    box-shadow: inset 0 0 0 1px #e67e22;
}

.pdv-half-flavor-thumb {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f0d3bd;
    border-radius: 8px;
    color: #9a6a4b;
    font-size: 0.62rem;
    line-height: 1.1;
}

.pdv-half-flavor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdv-details-table small {
    color: #8a4b1f;
    font-weight: 700;
}

.product-form .qty-row input,
.product-form .qty-row button {
    margin-top: 0;
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
}

button,
.btn {
    background: var(--button-primary-color);
    border: none;
    color: var(--button-primary-text);
    border-radius: var(--btn-standard-radius);
    min-height: var(--btn-standard-height);
    padding: var(--btn-standard-padding-y) var(--btn-standard-padding-x);
    font-size: var(--btn-standard-font-size);
    line-height: 1.1;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

button:hover,
.btn:hover {
    filter: brightness(0.95);
}

.btn-compact {
    padding: 4px 8px;
    font-size: 0.78rem;
    line-height: 1;
    min-height: 24px;
    border-radius: 6px;
}

.btn-danger {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: #8f1c13;
    border-color: #8f1c13;
    color: #fff;
}

.btn-trash {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    color: #b42318 !important;
}

.btn-trash svg {
    width: 16px;
    height: 16px;
    display: block;
}

.btn-trash:hover {
    filter: none !important;
    color: #8f1a12 !important;
}

.btn-icon svg,
.btn-icon-xs svg,
.promo-detail-btn svg,
.btn-trash svg {
    width: 14px;
    height: 14px;
    display: block;
}

.btn-icon:hover,
.btn-icon-xs:hover,
.promo-detail-btn:hover,
.btn-trash:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    line-height: 1.35;
}

.text-wrap {
    max-width: 240px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-orders-page .actions .btn {
    padding: 7px 10px;
    font-size: 0.9rem;
    border-radius: 7px;
}

.orders-table-wrap {
    background: #fff;
    border: 1px solid #efdfd3;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.admin-orders-table {
    min-width: 1380px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-orders-table th {
    white-space: nowrap;
    font-size: 0.92rem;
    background: #fff7ef;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-orders-table td {
    vertical-align: top;
}

.admin-orders-table .text-wrap {
    max-width: 220px;
}

.order-actions {
    display: grid;
    gap: 6px;
    min-width: 128px;
}

.order-actions select,
.order-actions .btn,
.order-actions button {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
}

.orders-list {
    display: grid;
    gap: 12px;
}

.orders-cards-view {
    grid-template-columns: 1fr;
    gap: 14px;
}

.orders-cards-view .order-card {
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #eddccd;
    background: #fff;
}

.orders-cards-view .order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px 14px;
}

.orders-cards-view .order-actions-inline {
    display: grid;
    grid-template-columns: minmax(180px, 240px) repeat(3, minmax(120px, 1fr));
    gap: 8px;
}

.orders-cards-view .order-actions-inline select {
    grid-column: auto;
}

.admin-orders-page .orders-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-orders-page .orders-group.is-priority .orders-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
}

.admin-orders-page .admin-status-cards {
    margin-top: 10px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-orders-page .order-card-admin {
    background: #fff;
    border: 1px solid #eddccd;
    border-radius: 14px;
    padding: 9px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.admin-orders-page .order-card-admin .order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 4px 8px;
    font-size: 0.95rem;
}

.admin-orders-page .order-card-admin .order-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.admin-orders-page .order-card-admin .order-actions-inline select {
    order: 99;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.86rem;
}

.admin-orders-page .order-card-admin .order-actions-inline button,
.admin-orders-page .order-card-admin .order-actions-inline .btn {
    padding: 6px 6px;
    font-size: 0.76rem;
    line-height: 1;
    min-width: 0;
    flex: 1 1 calc(33.333% - 6px);
    max-width: calc(33.333% - 6px);
    height: 32px;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.orders-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-left: 2px;
}

.orders-kpi {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e9d5c8;
    background: #fff8f1;
    font-size: 1.05rem;
    font-weight: 700;
}

.orders-kpi.has-new {
    background: #fff1f1;
    border-color: #fecaca;
    color: #9f1239;
}

.orders-kpi-sticky {
    position: sticky;
    top: 8px;
    z-index: 900;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e9d5c8;
    background: #fff8f1;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(38, 25, 17, 0.12);
}

.orders-kpi-sticky.has-new {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.summary-chip {
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

.summary-new {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.orders-stack {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    overflow-x: visible;
    padding-bottom: 8px;
}

.orders-group {
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 4px;
    min-height: 220px;
    max-height: none;
    overflow: hidden;
}

.orders-group.is-priority {
    border-color: #f5c4c4;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.12);
}

.orders-group-title {
    margin: 0 0 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding-bottom: 8px;
}

.orders-group-count {
    color: #6f4f3a;
    font-size: 0.9rem;
    font-weight: 700;
}

.orders-others {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 12px;
    padding: 10px 12px;
}

.orders-others summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-orders-list {
    margin-top: 6px;
}

.admin-orders-list th {
    background: #fff7ef;
}

.customer-orders-list {
    gap: 16px;
}

.customer-order-card {
    padding: 18px;
}

.customer-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 18px;
    margin: 10px 0 12px;
}

.customer-order-grid p {
    margin: 0;
    line-height: 1.45;
}

.customer-order-address {
    margin: 0 0 6px;
    line-height: 1.45;
}

.customer-order-obs {
    margin: 8px 0 0;
    background: #fff7ef;
    border: 1px solid #f3decf;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.45;
}

.customer-order-update {
    margin: 8px 0 0;
    background: #eefdf5;
    border: 1px solid #bfe9d1;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.45;
    color: #1f5137;
}

.customer-order-update a {
    color: #176a43;
    font-weight: 700;
    text-decoration: underline;
}

.customer-order-update .route-link-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #176a43;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1;
}

.customer-order-update .route-link-btn:hover {
    filter: brightness(0.95);
}

.customer-order-eta {
    margin: 10px 0 2px;
    font-size: 0.92rem;
    color: #0f5132;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-order-eta .eta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #a7e0c0;
    background: #e8f8f0;
    color: #0a5d3b;
    box-shadow: 0 6px 16px rgba(16, 93, 58, 0.12);
}

.delivery-live-track {
    position: relative;
    display: inline-block;
    width: 260px;
    height: 28px;
    vertical-align: middle;
    --moto-left: 4%;
    border-radius: 999px;
    padding: 8px 10px;
    background: #eff7f2;
    border: 1px solid #c6e7d5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.delivery-live-line {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    background: #cfe9da;
    border-radius: 999px;
}

.delivery-live-progress {
    position: absolute;
    left: 10px;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    width: calc((var(--moto-left) / 100) * (100% - 20px));
    max-width: calc(100% - 20px);
    background: #0d7c4d;
    border-radius: 999px;
    transition: width 0.55s ease;
}

.delivery-live-moto {
    position: absolute;
    left: var(--moto-left);
    top: 50%;
    transform: translate(-50%, -56%) scaleX(-1);
    font-size: 1.18rem;
    line-height: 1;
    transition: left 0.55s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

@media (max-width: 720px) {
    .customer-order-eta {
        display: grid;
        gap: 8px;
    }
    .customer-order-eta .eta-text {
        width: 100%;
    }
    .customer-order-eta .eta-chip {
        width: 100%;
        justify-content: center;
    }
    .delivery-live-track {
        width: 100%;
        max-width: none;
        display: block;
    }
    .customer-order-eta .eta-chip {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 0.88rem;
    }
}

@media (max-width: 980px) and (min-width: 721px) {
    .orders-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.order-card {
    background: #fff;
    border: 1px solid #eddccd;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
    overflow: hidden;
}

.order-card-live-update {
    animation: cardLivePulse 1.2s ease;
}

@keyframes cardLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.32);
        border-color: #86efac;
        background: #f0fdf4;
    }
    100% {
        box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
        border-color: #eddccd;
        background: #fff;
    }
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.order-head h3 {
    margin: 0;
    font-size: 0.92rem;
}

.order-head-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-delete-inline {
    margin: 0;
    display: inline-flex;
}

.order-status {
    background: #fff3e4;
    border: 1px solid #f1d2b3;
    color: #8a4b1f;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.82rem;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px 12px;
    margin-bottom: 10px;
    color: #4f3d31;
}

.order-address p {
    margin: 4px 0;
    color: #4f3d31;
}

.order-actions-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.order-actions-inline select,
.order-actions-inline .btn,
.order-actions-inline button {
    margin: 0;
    width: 100%;
    text-align: center;
}

.order-actions-inline .btn.btn-compact,
.order-actions-inline button.btn-compact {
    width: auto;
    min-width: 68px;
    justify-self: start;
}

.order-actions-inline select {
    grid-column: 1 / -1;
}

.order-actions-inline-single {
    grid-template-columns: auto;
    justify-content: start;
}

.btn-icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #b42318 !important;
    line-height: 1;
    font-size: 1rem;
}

.btn-icon-xs {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px;
    min-height: 28px !important;
    padding: 0 !important;
    font-size: 0.82rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #b42318 !important;
}

.empty {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
}

.alert {
    padding: 13px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #f1dac8;
    background: #fff;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.alert-ok {
    background: #eafaf1;
    color: #0f5132;
    border: 1px solid #c9f0da;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.auth-container {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 28px;
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 120px);
}

.app-toast {
    position: fixed;
    top: 82px;
    right: 22px;
    z-index: 6000;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    width: min(390px, calc(100vw - 28px));
    padding: 13px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 13px;
    background: #f0fdf4;
    color: #166534;
    box-shadow: 0 18px 45px rgba(31, 41, 55, .2);
    font-weight: 700;
    animation: app-toast-in .22s ease-out both;
}

.app-toast.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.app-toast-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
}

.app-toast.is-error .app-toast-icon { background: #dc2626; }
.app-toast-close { border: 0; background: transparent; color: currentColor; font-size: 1.35rem; cursor: pointer; opacity: .7; }
.app-toast.is-leaving { animation: app-toast-out .22s ease-in both; }

@keyframes app-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes app-toast-out { to { opacity: 0; transform: translateY(-10px) scale(.98); } }

@media (max-width: 640px) {
    .app-toast { top: 70px; right: 14px; }
}

.auth-container.is-keyboard-editing {
    justify-content: flex-start;
    padding-bottom: calc(var(--auth-keyboard-space, 0px) + 70px);
    scroll-padding-bottom: calc(var(--auth-keyboard-space, 0px) + 70px);
}

.auth-shell {
    width: min(460px, 100%);
}

.auth-shell-wide {
    width: min(680px, 100%);
}

.auth-card {
    background: #fff;
    border: 1px solid #f2ddce;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(73, 46, 31, 0.12);
}

.auth-title {
    margin: 0;
    font-size: 1.75rem;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: #6f4f3a;
    line-height: 1.45;
}

.auth-card form {
    margin-top: 12px;
}

.auth-form label {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #452d1f;
}

.auth-autofill-decoy {
    position: fixed !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    width: 100%;
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6f4f3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.password-toggle:hover {
    background: #fff4eb;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle .password-eye-closed,
.password-toggle.is-visible .password-eye-open {
    display: none;
}

.password-toggle.is-visible .password-eye-closed {
    display: block;
}

.auth-link-button {
    border: 0;
    background: transparent;
    color: #b94b10;
    font-weight: 800;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.auth-actions {
    margin: 16px 0 0;
}

.auth-actions button {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-size: 1rem;
}

.auth-install-actions {
    margin-top: 10px;
}

.auth-install-btn {
    width: 100%;
    display: none;
}

.auth-install-hint {
    display: none;
    margin-top: 8px;
}

.auth-link-row {
    margin: 10px 0 0;
    color: #6f4f3a;
}

.auth-link-row a {
    color: #a13e12;
    font-weight: 700;
}

.footer {
    position: relative;
    text-align: center;
    padding: 8px 10px 14px;
    color: #8a6f5c;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e4d9d1;
}

.footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 72px;
    height: 2px;
    border-radius: 2px;
    background: #c85618;
    transform: translateX(-50%);
}

.footer p {
    margin: 0;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c3a12;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
    color: #e97812;
    transform: translateY(-1px);
    outline: 0;
}

.footer-note {
    margin-bottom: 4px !important;
    font-size: 0.9rem;
    color: #7f6555;
}

input, textarea, select {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #d9c7bb;
    margin-top: 6px;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

.field-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #7f6555;
}

.status-pill {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.route-pick {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6f4f3a;
}

.route-pick input {
    width: auto;
    margin: 0;
}

.customer-orders-table tbody tr + tr td {
    border-top: 8px solid #fff;
}

.orders-history-page {
    width: 100%;
}

.history-filter-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 8px 0 12px;
}

.history-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.orders-history-page .history-field:first-child {
    flex: 0 1 420px;
}

.orders-history-page .history-field {
    flex: 0 0 180px;
}

.history-field label {
    display: none;
}

.history-field input,
.history-field select {
    margin-top: 0;
    border-color: #dcbfa9;
    background: #fffdfb;
    font-size: 0.84rem;
    height: 32px;
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
    width: 100%;
}

.history-date-wrap {
    position: relative;
}

.history-date-input {
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid #d8b79f !important;
    background: #fffdfb !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding-right: 34px;
}

.history-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: center;
}

.history-date-input:focus {
    border-color: #d97745 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.2);
    outline: none;
}

.history-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    justify-self: auto;
    margin-left: 0;
}

.history-filter-actions > button,
.history-filter-actions > .btn {
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 600;
}

.history-quick-range {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-range-btn {
    background: #fff7ef;
    border: 1px solid #f0d4bd;
    color: #7f3514;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1;
}

.quick-range-btn:hover {
    background: #ffeede;
    border-color: #e9c4a8;
}

.quick-range-btn.is-active {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
    box-shadow: 0 8px 18px rgba(143, 53, 17, 0.35);
}

.modern-date-picker {
    position: absolute;
    z-index: 5600;
    width: min(284px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    box-sizing: border-box;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2c8b3;
    border-radius: 14px;
    box-shadow: 0 20px 38px rgba(64, 39, 24, 0.24);
    padding: 10px;
    display: none;
}

.modern-date-picker.is-open {
    display: block;
}

.mdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0dfd3;
}

.mdp-title {
    font-size: 1rem;
    font-weight: 800;
    color: #5c2f18;
}

.mdp-nav {
    width: 32px;
    height: 32px;
    border: 1px solid #e4cdbb;
    border-radius: 9px;
    background: #fff7f1;
    color: #7f3514;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mdp-nav:hover {
    background: #ffeede;
    border-color: #e1bea3;
}

.mdp-week,
.mdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mdp-week {
    margin-bottom: 6px;
}

.mdp-week span {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
    color: #8b5b3f;
}

.mdp-day {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 8px 0;
    font-weight: 700;
    cursor: pointer;
    color: #2f1d13;
}

.mdp-day:hover {
    background: #fff1e5;
}

.mdp-day.is-other {
    color: #b39682;
}

.mdp-day.is-today {
    box-shadow: inset 0 0 0 1px #e39b6e;
}

.mdp-day.is-selected {
    background: #c2410c;
    color: #fff;
}

.mdp-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mdp-footer button {
    border: 1px solid #e4cdbb;
    background: #fff7f1;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    color: #7f3514;
    cursor: pointer;
}

.history-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.history-column {
    min-width: 0;
}

.history-panel {
    background: #fff;
    border: 1px solid #ecd9cb;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.history-panel-title {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.04rem;
}

.history-table-wrap {
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #f1dfd2;
    border-radius: 10px;
}

.history-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;
}

.history-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff7ef;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 400;
}

.history-table th,
.history-table td {
    vertical-align: top;
    padding: 11px 10px;
}

.history-table td {
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.3;
}

.history-table th:first-child,
.history-table td:first-child {
    width: 76px;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    width: 118px;
}

.history-day-row td {
    background: #fffaf5;
    font-size: 0.94rem;
    font-weight: 400;
    color: #7a3b17;
    border-top: 1px solid #f0dfd3;
    border-bottom: 1px solid #f0dfd3;
}

.history-items-cell {
    max-width: none;
    white-space: normal;
    word-break: break-word;
}

.history-actions-cell {
    width: 104px;
    text-align: right;
}

.history-actions-cell .btn {
    padding: 7px 10px;
    border-radius: 7px;
}

.orders-history-page .history-panel {
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
}

.orders-history-page .history-table-wrap {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    border-color: #e5e7eb;
    border-radius: 8px;
}

.orders-history-page .history-table {
    min-width: 1120px;
}

.orders-history-page .history-table th {
    background: #f8fafc;
    color: #52647f;
    font-size: 0.78rem;
    font-weight: 800;
}

.orders-history-page .history-table th,
.orders-history-page .history-table td {
    border-bottom: 1px solid #edf2f7;
    padding: 13px 16px;
}

.orders-history-page .history-table td {
    color: #1f2f46;
    font-size: 0.86rem;
}

.orders-history-page .history-table td small {
    display: block;
    margin-top: 3px;
    color: #475f83;
    line-height: 1.25;
}

.orders-history-page .history-table td strong {
    color: #0f172a;
    font-weight: 800;
}

.orders-history-page .history-table th:first-child,
.orders-history-page .history-table td:first-child {
    width: 125px;
}

.orders-history-page .history-table th:nth-child(2),
.orders-history-page .history-table td:nth-child(2) {
    width: 150px;
}

.orders-history-page .history-table th:nth-child(3),
.orders-history-page .history-table td:nth-child(3) {
    width: 150px;
}

.orders-history-page .history-table th:nth-child(4),
.orders-history-page .history-table td:nth-child(4) {
    width: 360px;
}

.orders-history-page .history-table th:nth-child(5),
.orders-history-page .history-table td:nth-child(5) {
    width: 120px;
}

.orders-history-page .history-table th:nth-child(6),
.orders-history-page .history-table td:nth-child(6) {
    width: 210px;
}

.orders-history-page .history-table th:nth-child(7),
.orders-history-page .history-table td:nth-child(7) {
    width: 120px;
}

.orders-history-page .history-total-cell {
    color: #047857 !important;
    font-weight: 800 !important;
}

.orders-history-page .history-status-cell .status-pill {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    font-size: 0.82rem;
}

.status-default {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #3f3f46;
}

.status-novo {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.status-preparo {
    background: #fff7e8;
    border-color: #fed7aa;
    color: #9a3412;
}

.status-rota {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}

.status-finalizado {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.status-cancelado {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ui-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(25, 22, 18, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 14px;
}

.ui-modal-backdrop.is-open {
    display: flex;
}

.ui-confirm-backdrop {
    z-index: 5600;
}

.ui-modal {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ecd5c2;
    box-shadow: 0 20px 45px rgba(28, 21, 15, 0.28);
    padding: 18px;
}

.ui-modal-title {
    margin: 0 0 8px;
}

.ui-modal-message {
    margin: 0;
    color: #5f4a3c;
}

.order-detail-body p {
    margin: 6px 0;
    line-height: 1.4;
}

.ui-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.ui-cancel {
    background: #e4e6ea;
    color: #342a23;
}

.ui-modal-actions button,
.ui-modal-actions .btn,
.product-modal-actions button,
.product-modal-actions .btn,
.category-create-row button,
.category-crud-actions button,
.border-create-row button,
.border-crud-actions button,
.additional-create-row button,
.additional-crud-actions button,
.products-top-actions .top-actions-btn {
    min-height: var(--btn-standard-height);
    padding: var(--btn-standard-padding-y) var(--btn-standard-padding-x);
    border-radius: var(--btn-standard-radius);
    font-size: var(--btn-standard-font-size);
    line-height: 1.1;
}

.ui-modal-actions .btn-trash,
.product-modal-actions .btn-trash,
button.btn-trash {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0 !important;
    color: #b42318 !important;
    font-size: 0;
    line-height: 1;
}

.ui-modal-actions .btn-trash svg,
.product-modal-actions .btn-trash svg,
button.btn-trash svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ios-install-backdrop {
    position: fixed;
    inset: 0;
    z-index: 6900;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(22, 18, 15, 0.48);
}

.ios-install-backdrop.is-open {
    display: flex;
}

.ios-install-card {
    width: min(430px, 100%);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #ead4c4;
    background: #fff;
    box-shadow: 0 24px 54px rgba(31, 20, 14, 0.28);
    position: relative;
}

.ios-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #eed9ca;
    background: #fffaf6;
    color: #9a3412;
    font-weight: 900;
    line-height: 1;
}

.ios-install-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff3e8;
    color: #c2410c;
    margin-bottom: 10px;
}

.ios-install-icon svg {
    width: 25px;
    height: 25px;
}

.ios-install-card h2 {
    margin: 0 38px 6px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #26170f;
}

.ios-install-lead {
    margin: 0 0 12px;
    color: #6d5545;
    line-height: 1.35;
}

.ios-install-note {
    margin: 12px 0 0;
    color: #7a4b31;
    font-size: 0.93rem;
    line-height: 1.35;
}

.ios-install-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ios-install-steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff7ef;
    color: #3f2a1d;
    font-weight: 700;
}

.ios-install-steps strong {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ea580c;
    color: #fff;
    font-size: 0.86rem;
}

.ios-install-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.ios-install-primary {
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 9px;
    background: #ea580c;
    color: #fff;
    font-weight: 900;
}

.ui-page-loader {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(2px);
}

.ui-page-loader.is-open {
    display: flex;
}

.ui-page-loader-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.ui-page-loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #c2410c;
    border-radius: 999px;
    animation: uiPageLoaderSpin .75s linear infinite;
}

@keyframes uiPageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.product-left-float-btn {
    position: static;
    transform: none;
    z-index: auto;
    margin: 8px 0 14px;
    box-shadow: 0 6px 14px rgba(46, 28, 17, 0.18);
}

.product-create-backdrop {
    z-index: 5200;
}

.category-crud-backdrop {
    z-index: 5250;
}

.category-delete-backdrop {
    z-index: 5350;
}

.category-crud-modal {
    width: min(920px, calc(100vw - 36px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 20px;
}

.category-create-form {
    margin: 0 0 16px;
    padding: 14px 12px 16px;
    border: 1px solid #f0dfd3;
    border-radius: 8px;
    background: #fffaf6;
}

.category-create-form > label {
    margin-top: 0;
    margin-bottom: 12px;
    color: #3a2a20;
}

.category-create-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.category-create-row button {
    height: 38px;
    min-height: 38px;
    padding: 0 13px;
    align-self: center;
}

.category-crud-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.category-crud-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 155px;
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 12px;
    border: 1px solid #f0dfd3;
    border-radius: 8px;
    background: #fffaf6;
}

.category-crud-item input,
.category-create-row input {
    margin-top: 0;
    min-height: 38px;
    height: 38px;
    background: #fff;
    box-sizing: border-box;
}

.category-file-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d9c7bb;
    border-radius: 8px;
    background: #fff;
    color: #3a2a20;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.category-file-picker:hover {
    background: #fff7ef;
    border-color: #e0b58f;
}

.category-file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.category-crud-fields {
    display: grid;
    grid-template-columns: minmax(220px, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.category-icon-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.category-icon-preview {
    position: relative;
    width: 42px;
    height: 42px;
    margin-top: 1px;
    border-radius: 50%;
    border: 1px solid #ead6c7;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #b0692f;
    font-weight: 900;
}

.category-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.category-icon-remove {
    position: relative;
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border: 1px solid #f0b7ad;
    border-radius: 50%;
    background: #fff7f5;
    color: #b42318;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.category-icon-remove:hover {
    border-color: #dc8b80;
    color: #7f1d1d;
    background: #fee2df;
    filter: none;
}

.category-icon-remove::before,
.category-icon-remove::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.category-icon-remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.category-icon-remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.category-crud-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    align-self: start;
    min-width: 155px;
}

.category-crud-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-crud-actions button {
    min-width: 70px;
}

.category-delete-modal {
    width: min(420px, calc(100vw - 36px));
}

.product-create-modal {
    width: min(980px, calc(100vw - 36px));
    min-width: min(620px, calc(100vw - 36px));
    min-height: 420px;
    max-height: calc(100vh - 32px);
    max-width: calc(100vw - 24px);
    overflow: visible;
    padding: 20px 20px 34px;
    resize: none;
    position: fixed;
}

.product-create-modal form {
    margin: 0;
}

.ui-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    cursor: move;
    user-select: none;
}

.product-create-modal .ui-modal-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
}

.product-edit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #3b4b62;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.product-active-toggle-form {
    margin: 0;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.product-card-delete-form {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    margin: 0;
}

.product-card-delete {
    display: grid;
    place-items: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #c62828;
    cursor: pointer;
}

.product-card-delete:hover,
.product-card-delete:focus-visible {
    background: #fff0f0;
    color: #991b1b;
}

.product-card-delete svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-active-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    background: #f8fbff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-active-toggle span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.product-active-toggle.is-active {
    border-color: #bfdbfe;
    color: #047857;
}

.product-active-toggle.is-inactive {
    border-color: #fecaca;
    background: #fffafa;
    color: #b42318;
}

.product-edit-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #8ab4f8;
}

.product-create-form label {
    margin: 0 0 7px;
    font-size: 0.95rem;
    line-height: 1.2;
}

.product-create-form input,
.product-create-form textarea,
.product-create-form select {
    margin-top: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fffdfb;
}

.product-create-form input:not([type="file"]),
.product-create-form select {
    min-height: 38px;
}

.product-create-form textarea {
    min-height: 72px;
    resize: vertical;
}

.product-create-form input[type="file"] {
    min-height: 38px;
    padding: 5px;
}

.product-create-form input[type="file"]::file-selector-button {
    min-height: 28px;
    margin-right: 10px;
    border: 1px solid #d8c8bc;
    border-radius: 6px;
    background: #f4f1ee;
    color: #2b1d14;
    font-weight: 600;
    cursor: pointer;
}

.product-create-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 12px;
    align-items: start;
}

.product-create-field {
    position: relative;
    min-width: 0;
    grid-column: span var(--field-span, 1);
    border-radius: 8px;
    padding: 0;
}

.product-create-field--sku:has(.sku-inline-error) input[name="produto_sku"] {
    padding-right: 128px;
}

.sku-inline-error {
    position: absolute;
    left: auto;
    right: 11px;
    top: 45px;
    bottom: auto;
    transform: translateY(-50%);
    color: #b42318;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.product-create-field--wide {
    --field-span: 4;
}

.product-create-form.is-editing-fields .product-create-field {
    padding: 32px 8px 8px;
    background: #eef6ff;
    border: 1px dashed #9fc4ff;
}

.product-field-tools {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    gap: 5px;
    z-index: 2;
}

.product-create-form.is-editing-fields .product-field-tools {
    display: inline-flex;
}

.product-field-tools button {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #9ec3ff;
    border-radius: 7px;
    background: #eff6ff;
    color: #33629d;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.product-field-tools .product-field-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #9ec3ff;
    border-radius: 7px;
    background: #eff6ff;
    color: #33629d;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

.product-field-tools .product-field-drag:active {
    cursor: grabbing;
}

.product-create-field.is-field-dragging {
    opacity: 0.55;
}

.product-create-field.is-field-drop-target {
    outline: 2px solid #7fb0ff;
    outline-offset: 2px;
}


.product-create-form > .product-create-field,
.product-create-form > label {
    margin-top: 14px;
}

.ui-modal-resize-handle {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
    border-right: 3px solid #e67e22;
    border-bottom: 3px solid #e67e22;
    border-radius: 0 0 8px 0;
    z-index: 3;
    background: transparent;
}

.product-edit-backdrop {
    z-index: 9000;
}

.product-edit-backdrop:not(.is-current-modal) {
    display: none !important;
}

.product-edit-backdrop.is-current-modal {
    display: flex !important;
}

.product-edit-modal {
    width: min(980px, calc(100vw - 36px));
    min-width: min(620px, calc(100vw - 36px));
    min-height: 420px;
    max-height: calc(100vh - 32px);
    max-width: calc(100vw - 24px);
    overflow: hidden;
    padding: 20px;
    resize: none;
    position: fixed;
    z-index: 9001;
}

.product-edit-modal form {
    margin: 0;
}

.product-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.product-edit-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 12px;
}

.product-edit-main > * {
    min-width: 0;
}

.product-edit-field-shell {
    grid-column: span var(--field-span, 1) !important;
    position: relative;
    min-width: 0;
    border-radius: 8px;
    padding: 0;
}

.product-edit-form.is-editing-fields .product-edit-details-grid > .product-edit-field-shell {
    padding: 32px 8px 8px;
    background: #eef6ff;
    border: 1px dashed #9fc4ff;
}

.product-edit-form.is-editing-fields .product-edit-details-grid > .product-edit-field-shell .product-field-tools {
    display: inline-flex;
}

.product-edit-side .product-field-tools {
    display: none !important;
}

.product-edit-form .product-field-tools button,
.product-edit-form .product-field-tools .product-field-drag {
    width: 22px;
    height: 22px;
    border: 1px solid #9ec3ff;
    border-radius: 7px;
    background: #eff6ff;
    color: #33629d;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
}

.product-edit-field-shell label,
.product-edit-field-shell input,
.product-edit-field-shell textarea,
.product-edit-field-shell select {
    grid-column: auto !important;
    grid-row: auto !important;
}

.product-edit-field-shell label {
    display: block;
}

.product-edit-form label {
    margin: 0 0 7px;
    font-size: 0.95rem;
    line-height: 1.2;
}

.product-edit-form input,
.product-edit-form textarea,
.product-edit-form select {
    margin-top: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fffdfb;
}

.product-edit-form input:not([type="file"]),
.product-edit-form select {
    min-height: 38px;
}

.product-edit-form textarea {
    min-height: 72px;
    resize: vertical;
}

.product-edit-form input[type="file"] {
    min-height: 38px;
    padding: 5px;
}

.product-edit-form input[type="file"]::file-selector-button {
    min-height: 28px;
    margin-right: 10px;
    border: 1px solid #d8c8bc;
    border-radius: 6px;
    background: #f4f1ee;
    color: #2b1d14;
    font-weight: 600;
    cursor: pointer;
}

.product-edit-main label {
    margin: 0;
    align-self: end;
}

.product-edit-main label:nth-of-type(1) {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main input[name="produto_nome"] {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main label:nth-of-type(2) {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main input[name="produto_sku"] {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main label:nth-of-type(3) {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main textarea[name="produto_descricao"] {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main label:nth-of-type(4) {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main select[name="categoria"] {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main label:nth-of-type(5) {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main input[name="produto_preco"] {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main label:nth-of-type(6) {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-main input[name="produto_estoque"] {
    grid-column: auto;
    grid-row: auto;
}

.product-edit-field-shell,
.product-edit-field-shell label,
.product-edit-field-shell input,
.product-edit-field-shell textarea,
.product-edit-field-shell select {
    grid-column: span var(--field-span, 1) !important;
    grid-row: auto !important;
}

.product-edit-field-shell label,
.product-edit-field-shell input,
.product-edit-field-shell textarea,
.product-edit-field-shell select {
    grid-column: auto !important;
}

.product-edit-main,
.product-edit-side,
.product-edit-photo-panel,
.product-edit-promo-panel {
    min-width: 0;
}

.product-edit-main label,
.product-edit-side label {
    margin-top: 0;
}

.product-edit-main label:not(:first-child),
.product-edit-side label:not(:first-child) {
    margin-top: 5px;
}

.product-edit-main input,
.product-edit-main textarea,
.product-edit-main select,
.product-edit-side input,
.product-edit-side select {
    margin-top: 0;
    padding: 9px 10px;
    min-height: 38px;
}

.product-edit-main textarea {
    min-height: 72px;
}

.product-edit-side {
    display: grid;
    gap: 8px;
    width: 100%;
}

.product-edit-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid #efd9c8;
    border-radius: 10px;
    background: #fff;
    width: min(320px, 100%);
}

.product-edit-main-tabs {
    width: min(520px, 100%);
    margin: 12px 0 14px;
}

.product-edit-tabs button {
    flex: 1 1 0;
    min-height: 28px;
    padding: 5px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6e3b22;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.product-edit-tabs button.is-active {
    background: #e97812;
    color: #fff;
}

.product-edit-tab-panel[hidden] {
    display: none !important;
}

.product-edit-photo-panel,
.product-edit-promo-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.product-edit-photo-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.product-edit-side {
    width: 100%;
}

.product-edit-side .product-edit-tab-panel {
    width: 100%;
}

.product-edit-photo-panel label,
.product-edit-photo-panel input {
    min-width: 0;
}

.product-edit-photo-panel input[type="file"],
.product-edit-photo-panel input[type="url"] {
    width: 100%;
}

.product-edit-photo-panel input[type="file"] {
    min-height: 38px;
    padding: 5px;
}

.product-edit-photo-panel input[type="file"]::file-selector-button {
    min-height: 28px;
    margin-right: 10px;
    border: 1px solid #d8c8bc;
    border-radius: 6px;
    background: #f4f1ee;
    color: #2b1d14;
    font-weight: 600;
    cursor: pointer;
}

.product-edit-photo-panel .thumb-admin.large {
    display: none;
    width: 100%;
    height: 0;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ead3c0;
    border-radius: 8px;
    margin: 0;
}

.product-edit-photo-panel .photo-placeholder {
    display: none;
    height: 0;
    margin: 0;
}

.product-edit-photo-panel .inline-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
}

.product-edit-photo-panel .inline-check input {
    width: auto;
    margin: 0;
}

.product-edit-promo-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: end;
}

.product-edit-promo-panel label:first-child,
.product-edit-promo-panel select[name="promocao_tipo"],
.product-edit-promo-panel label:nth-of-type(2),
.product-edit-promo-panel input[name="promocao_valor"] {
    grid-column: span 1;
}

.product-edit-promo-panel label:nth-of-type(3),
.product-edit-promo-panel input[name="promocao_inicio_em"] {
    grid-column: span 1;
}

.product-edit-promo-panel label:nth-of-type(4),
.product-edit-promo-panel input[name="promocao_fim_em"] {
    grid-column: span 1;
}

.product-edit-modal .product-modal-actions {
    border-top: 1px solid #efd9c8;
    padding-top: 8px;
    margin-top: 10px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
}

.product-edit-modal [data-product-edit-actions][hidden] {
    display: none !important;
}

.ui-toast-stack {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100% - 32px));
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5100;
}

.ui-toast {
    width: fit-content;
    min-width: min(220px, 100%);
    max-width: 100%;
    background: #2d221a;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.26);
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ui-toast.is-hide {
    opacity: 0;
    transform: translateY(6px);
}

.ui-toast.is-success {
    background: #155236;
}

.ui-toast.is-error {
    background: #8f1d1d;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 1024px) {
    .container {
        max-width: none;
        width: calc(100% - 20px);
        margin: 16px auto;
        padding: 0;
    }

    .history-menu-container {
        width: calc(100% - 20px);
        margin: 16px auto;
    }

    .topbar-inner {
        width: calc(100% - 10px);
        position: relative;
    }

    .topbar-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: visible;
        padding-bottom: 4px;
    }

    .topbar-nav a,
    .topbar-submenu-trigger {
        white-space: nowrap;
    }

    .topbar-submenu {
        flex: 0 0 auto;
    }

    .products-showcase {
        padding: 12px;
    }

    .perimeter-top-grid {
        grid-template-columns: 1fr;
    }

    .perimeter-settings-grid {
        grid-template-columns: 1fr 180px;
    }

    .perimeter-range-card {
        grid-template-columns: 1fr;
    }

    .perimeter-ranges-list-head {
        display: none;
    }

    .perimeter-range-row {
        grid-template-columns: 1fr 1fr;
    }

    .perimeter-row-streets,
    .perimeter-row-actions {
        grid-column: 1 / -1;
    }

    .perimeter-row-label {
        display: block;
    }

    .perimeter-range-card .admin-product-body > div {
        grid-template-columns: 1fr;
    }

    .perimeter-range-card .admin-product-body > div > label,
    .perimeter-range-card .admin-product-body > div > input[name="nome"],
    .perimeter-range-card .perimeter-edit-grid,
    .perimeter-range-card .inline-check,
    .perimeter-range-card .admin-product-body > div > label:nth-of-type(2),
    .perimeter-range-card .perimeter-blocked-street-list,
    .perimeter-range-card .perimeter-blocked-street-list + .field-hint {
        grid-column: 1;
    }

    .perimeter-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .perimeter-form-col-wide {
        grid-column: 1 / -1;
    }

    .products-search-form input {
        min-width: 0;
        width: 100%;
    }

    .products-search-form {
        flex-wrap: wrap;
    }

    .products-search-form select {
        min-width: 0;
        width: 100%;
        order: 2;
    }

    .products-search-form button[type="submit"] {
        margin-left: 0;
        order: 3;
    }

    .admin-orders-table {
        min-width: 1120px;
    }

    .orders-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .orders-cards-view .order-actions-inline {
        grid-template-columns: 1fr 1fr;
    }

    .orders-cards-view .order-actions-inline select {
        grid-column: 1 / -1;
    }

    .history-table {
        min-width: 760px;
    }

    .ui-modal,
    .product-create-modal,
    .product-edit-modal {
        width: min(96vw, 760px);
    }

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

@media (max-width: 720px) {
    .product-create-modal {
        padding: 16px;
        min-width: auto;
        min-height: 0;
        resize: vertical;
    }

    .product-create-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-create-field,
    .product-create-field--wide {
        --field-span: 1 !important;
    }

    .ui-modal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-modal-actions {
        flex-direction: column-reverse;
    }

    .product-modal-actions button,
    .product-modal-actions .btn {
        width: 100%;
    }

    .product-edit-modal {
        padding: 14px;
    }

    .product-edit-promo-panel {
        grid-template-columns: 1fr;
    }

    .category-create-row,
    .category-crud-item {
        grid-template-columns: 1fr;
    }

    .category-crud-fields {
        grid-template-columns: 1fr;
    }

    .category-crud-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .category-crud-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .category-crud-actions button {
        width: 100%;
    }

    .topbar {
        padding: 10px 0 12px;
    }

    .topbar-inner {
        width: calc(100% - 20px);
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .topbar-left {
        width: auto;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        min-width: 0;
    }

    .topbar-customer-menu {
        gap: 4px;
        margin-left: 3px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .topbar-share-near-bell {
        margin-right: 7px;
        order: 98;
    }

    .topbar-right {
        width: auto;
        flex: 0 0 auto;
        align-items: flex-end;
        gap: 5px;
        min-width: 0;
    }

    .topbar-brand {
        width: auto;
        justify-content: flex-start;
        margin: 0;
        gap: 0;
    }

    .brand-text {
        font-size: 1rem;
    }

    .topbar-brand-copy {
        display: none;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        padding: 3px;
        box-shadow: 0 5px 10px rgba(53, 22, 11, 0.2);
    }

    .topbar-nav {
        width: auto;
        gap: 7px;
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow-x: visible;
        overflow-y: visible;
        padding: 2px 2px 0;
    }

    .topbar-nav a,
    .topbar-customer-menu a {
        padding: 7px 10px;
        font-size: 0.88rem;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        white-space: nowrap;
    }

    .topbar-desktop-links,
    .topbar-desktop-only {
        display: none !important;
    }

    .topbar-mobile-only {
        display: inline-flex;
    }

    .topbar-install-btn {
        padding: 7px 10px;
        font-size: 0.88rem;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .topbar-submenu-trigger {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #fff6ef !important;
    }

    .topbar-nav a:hover,
    .topbar-nav a.is-active,
    .topbar-customer-menu a:hover,
    .topbar-customer-menu a.is-active,
    .topbar-nav a.topbar-cta,
    .topbar-nav a.topbar-cta:hover,
    .topbar-nav a.topbar-cta.is-active,
    .topbar-install-btn:hover,
    .topbar-submenu-trigger:hover,
    .topbar-submenu-trigger.is-active,
    .topbar-submenu:hover .topbar-submenu-trigger,
    .topbar-submenu:focus-within .topbar-submenu-trigger {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #fff6ef !important;
    }

    .topbar-submenu-panel a,
    .topbar-submenu-panel .topbar-install-btn,
    .topbar-submenu-panel .topbar-install-btn:hover,
    .topbar-submenu-panel .topbar-install-btn:focus,
    .topbar-submenu-panel .topbar-install-btn:active {
        color: #3a261a !important;
        -webkit-text-fill-color: #3a261a !important;
    }

    .topbar-submenu-panel .topbar-install-btn:disabled,
    .topbar-submenu-panel .topbar-install-btn:disabled:hover,
    .topbar-submenu-panel .topbar-install-btn:disabled:focus,
    .topbar-submenu-panel .topbar-install-btn:disabled:active {
        color: #5f4637 !important;
        -webkit-text-fill-color: #5f4637 !important;
        opacity: 1 !important;
    }

    .topbar-submenu-panel a.is-active {
        background: #fff0e2 !important;
        color: #9f251b !important;
    }

    .topbar-nav .topbar-submenu-panel a.submenu-danger {
        color: #b42318 !important;
    }

    .topbar-promo-alert {
        position: relative;
        right: auto;
        top: auto;
        flex: 0 0 auto;
        order: 99;
        z-index: 4200;
    }

    .topbar-share-btn {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        box-shadow: none;
    }

    .topbar-share-btn svg {
        width: 22px;
        height: 22px;
    }

    .topbar-promo-btn {
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        color: #fff6ef;
        box-shadow: none;
    }

    .topbar-promo-bell,
    .topbar-promo-bell svg {
        width: 22px;
        height: 22px;
    }

    .topbar-promo-panel {
        top: calc(100% + 2px);
        right: 0;
        left: auto;
        bottom: auto;
        width: min(390px, calc(100vw - 20px));
        padding: 14px 16px;
    }

    .topbar-submenu {
        width: auto;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .topbar-submenu-trigger {
        padding: 7px 10px;
        font-size: 0.88rem;
        width: auto;
        white-space: nowrap;
    }

    .topbar-submenu-panel {
        position: fixed;
        top: calc(var(--menu-sticky-top, 58px) - 2px);
        right: 10px;
        left: auto;
        min-width: 190px;
        width: min(230px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        margin-top: 0;
        padding: 6px;
        gap: 3px;
        border-radius: 12px;
        z-index: 3200;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-4px);
    }

    .topbar-customer-menu .topbar-submenu-panel {
        right: 10px;
        left: auto;
        transform: translateY(-4px);
    }

    .topbar-customer-menu .topbar-submenu:hover .topbar-submenu-panel,
    .topbar-customer-menu .topbar-submenu:focus-within .topbar-submenu-panel,
    .topbar-customer-menu .topbar-submenu.is-open .topbar-submenu-panel {
        transform: translateY(0);
    }

    .topbar-submenu-panel a,
    .topbar-submenu-panel .submenu-action-btn,
    .topbar-submenu-panel .topbar-install-btn {
        padding: 8px 9px;
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .topbar-submenu-panel .submenu-user {
        padding: 7px 9px 5px;
        font-size: 0.8rem;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-carousel-track,
    .store-carousel-image {
        min-height: 180px;
    }

    .store-carousel-overlay {
        padding: 12px 12px 14px;
    }

    .store-carousel-overlay h2 {
        font-size: 1.12rem;
    }

    .store-carousel-overlay p {
        margin-top: 4px;
        font-size: 0.88rem;
    }

    .perimeter-form-grid,
    .perimeter-edit-grid,
    .perimeter-settings-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .perimeter-chip {
        width: 100%;
        border-radius: 10px;
    }

    .store-carousel-nav {
        display: none;
    }

    .menu-category-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .menu-category-title {
        font-size: 1.14rem;
    }

    .menu-category-strip {
        margin-top: -4px;
    }

    .menu-search-field {
        max-width: 100%;
    }

    .menu-search-field input {
        padding-right: 128px;
    }

    .menu-search-clear {
        right: 126px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .menu-search-field .menu-store-status {
        max-width: 112px;
        min-height: 26px;
        font-size: 0.62rem;
    }

    .menu-cart-open-btn {
        display: none;
    }

    .menu-cart-fab {
        right: 12px;
        bottom: 12px;
    }

    .menu-category-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .menu-category-grid .product-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 112px;
        grid-template-areas:
            "body media"
            "footer media"
            "action media";
        gap: 4px 12px;
        padding: 14px 14px 10px;
        min-height: 132px;
    }

    .menu-category-grid .product-card .product-body,
    .menu-category-grid .product-card .product-footer {
        min-height: 0;
    }

    .menu-category-grid .product-card .product-body {
        display: grid;
        grid-area: body;
        grid-template-rows: auto 2.5em;
        align-content: start;
        gap: 4px;
        min-height: 54px;
        padding: 0;
    }

    .menu-category-grid .product-card--combo {
        grid-column: span 1;
    }

    .menu-category-grid .product-body {
        grid-area: body;
        padding: 0;
    }

    .menu-category-grid .product-footer {
        grid-area: footer;
        padding: 0;
        margin-top: 1px;
        min-height: 0;
        display: block;
    }

    .menu-category-grid .product-form {
        grid-area: form;
        padding: 0;
        margin-top: 0;
    }

    .menu-category-grid .product-media {
        grid-area: media;
        align-self: center;
        justify-self: center;
        height: 112px;
        width: 112px;
        padding-top: 22px;
        margin-top: 0;
        border: 0;
        background: transparent;
        box-sizing: border-box;
        overflow: visible;
    }

    .menu-category-grid .product-media-promo-badge {
        top: 0;
        right: 0;
    }

    .menu-category-grid .product-gift-promo-badge {
        position: absolute;
        left: auto;
        right: -2px;
        top: -6px;
        width: max-content;
        max-width: none;
        min-width: 0;
        flex-direction: row;
        gap: 5px;
        justify-content: center;
        padding: 5px 7px;
        border-radius: 9px;
        text-align: center;
    }

    .menu-category-grid .product-gift-promo-badge.has-loyalty-medal {
        right: 30px;
        width: max-content;
        max-width: none;
    }

    .menu-category-grid .product-loyalty-medal-badge {
        right: -6px;
        top: -2px;
        width: 24px;
        height: 24px;
        font-size: 0.82rem;
    }

    .menu-category-grid .product-gift-promo-badge span,
    .menu-category-grid .product-gift-promo-badge strong {
        display: inline-block;
        width: auto;
        max-width: none;
        overflow: visible;
        line-height: 1;
        text-align: center;
        text-overflow: clip;
        white-space: nowrap;
    }

    .menu-category-grid .product-gift-promo-badge::after {
        display: block;
    }

    .menu-category-grid .product-gift-promo-badge span::before {
        content: none !important;
    }

    .menu-category-grid .product-gift-promo-badge strong {
        font-size: 0.56rem;
    }

    .menu-category-grid .product-card-action {
        grid-area: action;
        justify-content: flex-start;
        padding: 0;
    }

    .menu-category-grid .product-login-btn {
        width: auto;
        min-width: 0;
        max-width: 100%;
        min-height: 24px;
        padding: 5px 12px;
        font-size: 0.72rem;
        border-radius: 999px;
        line-height: 1;
    }

    .menu-category-grid .product-image {
        width: auto;
        height: auto;
        max-width: 108px;
        max-height: 88px;
        background: transparent;
    }

    .menu-category-grid .product-body h3 {
        font-size: 1.04rem;
        line-height: 1.2;
        font-weight: 800;
        margin: 0;
        padding-right: 0;
    }

    .menu-category-grid .product-body p {
        margin: 0;
        min-height: 2.5em;
        font-size: 0.86rem;
        line-height: 1.25;
        max-height: 2.5em;
        color: #3f2d22;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .menu-category-grid .price {
        font-size: 1.02rem;
        margin: 0;
        flex: 0 0 auto;
    }

    .menu-category-grid .product-promo-price {
        display: grid;
        justify-items: start;
        gap: 1px;
        min-height: 0;
        margin: 0;
    }

    .menu-category-grid .product-promo-badge {
        min-height: 18px;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 0.62rem;
        font-weight: 900;
        line-height: 1;
    }

    .menu-category-grid .product-old-price {
        font-size: 0.78rem;
        font-weight: 800;
    }

    .menu-category-grid .product-current-price {
        color: #c51414;
        font-size: 1.04rem;
        font-weight: 900;
        line-height: 1.12;
    }

    .menu-category-grid .product-form .row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .menu-category-grid .product-form .qty-row {
        display: grid;
        grid-template-columns: 26px 44px 26px 1fr;
        gap: 6px;
        align-items: center;
    }

    .menu-category-grid .product-form-price-line .qty-row {
        grid-template-columns: 22px 34px 22px 84px;
        gap: 4px;
    }


    .menu-category-grid .product-form .qty-row input {
        text-align: center;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff7f0;
        margin: 0;
        padding: 0;
        min-height: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .menu-category-grid .product-form .qty-row .qty-step-btn {
        min-height: 28px;
        height: 28px;
        padding: 0;
        border-radius: 6px;
        border: 1px solid #e6cbb8;
        background: #fff;
        color: #6f3c1a;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1;
    }

    .menu-category-grid .product-form-price-line .qty-row .qty-step-btn {
        min-height: 24px;
        height: 24px;
        border-radius: 5px;
        font-size: 0.82rem;
    }

    .menu-category-grid .product-form label {
        margin-top: 6px;
        font-size: 0.92rem;
    }

    .menu-category-grid .product-form input,
    .menu-category-grid .product-form select {
        margin-top: 4px;
        padding: 6px 9px;
        min-height: 34px;
        font-size: 0.95rem;
    }

    .menu-category-grid .product-form .qty-row .js-add-btn {
        width: 118px;
        max-width: 118px;
        justify-self: start;
        margin-top: 4px;
        min-height: 30px;
        padding: 4px 10px;
        font-size: 0.82rem;
        font-weight: 700;
        border-radius: 7px;
    }

    .menu-category-grid .product-form-price-line .qty-row .js-add-btn {
        width: 84px;
        max-width: 84px;
        min-height: 24px;
        height: 24px;
        margin-top: 0;
        padding: 0 8px;
        font-size: 0.74rem;
        border-radius: 6px;
    }

    .menu-category-grid .product-card .product-form {
        display: block;
    }

    .row {
        grid-template-columns: 1fr;
    }

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

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

    .product-editor-summary,
    .product-card-summary-btn {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-summary-media {
        width: 100%;
        align-items: center;
    }

    .qty-row {
        grid-template-columns: 1fr;
    }

    .orders-stack {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .history-filter-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .history-menu-container {
        width: calc(100% - 20px);
    }

    .history-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .history-filter-actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-end;
        justify-self: stretch;
    }

    .history-quick-range {
        margin-top: 8px;
    }

    .history-table {
        table-layout: auto;
    }

    .orders-cards-view .order-actions-inline {
        grid-template-columns: 1fr 1fr;
    }

    .orders-cards-view .order-actions-inline select {
        grid-column: 1 / -1;
    }

    .admin-orders-page .order-card-admin .order-actions-inline {
        display: flex;
        flex-wrap: wrap;
    }

    .admin-orders-page .order-card-admin .order-actions-inline select {
        order: 99;
        flex: 1 1 100%;
    }

    table {
        font-size: 0.9rem;
    }

    .auth-container {
        padding-top: 20px;
        padding-bottom: 24px;
        align-items: center;
        justify-content: center;
        min-height: calc(100dvh - 110px);
    }

    .auth-card {
        padding: 18px;
        border-radius: 14px;
    }

    .auth-shell-wide {
        width: 100%;
    }

    .auth-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 560px) {
    .container,
    .history-menu-container {
        width: calc(100% - 14px);
        margin: 18px auto 10px;
        padding-top: 4px;
    }

    .auth-container {
        width: calc(100% - 18px);
        margin: 12px auto;
        padding-top: 14px;
    }

    .auth-container.is-keyboard-editing {
        margin-top: 0;
        padding-top: 6px;
    }

    .auth-shell,
    .auth-shell-wide {
        width: 100%;
    }

    .auth-card {
        padding: 18px 14px;
    }

    .auth-card form {
        margin-top: 16px;
    }

    .auth-form label {
        margin-top: 12px;
        font-size: 0.94rem;
    }

    .auth-form input[type="text"],
    .auth-form input[type="password"] {
        min-height: 50px;
        padding: 12px 14px;
        border-radius: 11px;
        font-size: 1rem;
    }

    .auth-form .row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-actions button {
        min-height: 50px;
        border-radius: 11px;
    }

    .container > .store-carousel:first-child {
        margin-top: -18px;
    }

    .admin-orders-page .order-card-admin .order-actions-inline {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .admin-orders-page .order-card-admin .order-actions-inline .btn,
    .admin-orders-page .order-card-admin .order-actions-inline button {
        font-size: 0.76rem;
        padding: 6px 6px;
        white-space: nowrap;
        letter-spacing: 0;
    }

    .admin-orders-page .order-card-admin .order-actions-inline select {
        grid-column: 1 / -1;
        width: 100%;
    }

    .topbar {
        padding: 8px 0 10px;
    }

    .topbar-inner {
        width: calc(100% - 8px);
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .topbar-left {
        width: auto;
    }

    .topbar-promo-alert {
        right: auto;
        top: auto;
    }

    .brand-badge {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.7rem;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .brand-text {
        font-size: 0.86rem;
    }

    .topbar-nav a,
    .topbar-customer-menu a,
    .topbar-submenu-trigger {
        font-size: 0.88rem;
        padding: 7px 6px;
    }

    .topbar-install-btn {
        font-size: 0.88rem;
        padding: 7px 9px;
    }

    .topbar-share-near-bell {
        margin-right: 5px;
    }

    .topbar-share-btn {
        width: 42px;
        height: 42px;
    }

    .topbar-promo-btn {
        width: 44px;
        height: 44px;
    }

    body.is-delivery-area .topbar {
        padding: 5px 0;
    }

    body.is-delivery-area .topbar-inner {
        width: calc(100% - 10px);
        gap: 4px;
        padding-left: 0;
        padding-right: 0;
    }

    body.is-delivery-area .topbar-left {
        flex: 0 0 auto;
        width: auto;
        gap: 8px;
    }

    body.is-delivery-area .topbar-brand {
        width: auto;
        height: auto;
        overflow: hidden;
    }

    body.is-delivery-area .brand-logo,
    body.is-delivery-area .brand-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 9px;
        padding: 2px;
    }

    body.is-delivery-area .topbar-brand-copy {
        display: none;
    }

    body.is-delivery-area .topbar-right {
        flex: 1 1 0;
        min-width: 0;
        align-items: stretch;
    }

    body.is-delivery-area .topbar-nav {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    body.is-delivery-area .topbar-nav:has(> a:only-child) {
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

    body.is-delivery-area .topbar-nav > a,
    body.is-delivery-area .topbar-nav > .topbar-submenu > .topbar-submenu-trigger {
        min-width: 0;
        width: auto;
        padding: 8px 5px;
        font-size: 0.88rem;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
    }

    body.is-delivery-area .topbar-nav:has(> a:only-child) > a {
        width: auto;
        padding: 7px 9px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    body.is-delivery-area .topbar-submenu {
        min-width: 0;
        width: auto;
        margin-left: auto;
    }

    body.is-delivery-area .topbar-submenu .topbar-submenu-trigger {
        min-height: 34px;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 0.88rem;
        letter-spacing: 0;
    }

    .product-sheet {
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    }

    .product-sheet-image {
        width: 88px;
        height: 88px;
    }

    .half-flavor-picker {
        max-height: 280px;
        gap: 8px;
    }

    .half-flavor-option {
        grid-template-columns: 52px 1fr;
        min-height: 54px;
        padding: 8px 10px;
    }

    .half-flavor-media {
        width: 52px;
        height: 52px;
    }

    .half-flavor-name {
        font-size: 0.95rem;
    }

    .hero {
        padding: 14px;
        border-radius: 12px;
    }

    .store-carousel {
        border-radius: 0;
        border: 0;
        box-shadow: none;
        margin-bottom: 10px;
    }

    .store-carousel-track,
    .store-carousel-image {
        min-height: 0;
    }

    .store-carousel-track {
        aspect-ratio: 1925 / 577;
    }

    .store-carousel-image {
        border-radius: 0;
        object-fit: contain;
        object-position: center;
        background: #ffffff;
    }

    .store-carousel-track {
        background: transparent;
    }

    .store-carousel-overlay {
        display: none;
    }

    .store-carousel-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        min-height: 0;
        background: rgba(15, 23, 42, 0.54);
        border: 1px solid rgba(255, 255, 255, 0.68);
        font-size: 1.22rem;
    }

    .store-carousel-nav.prev {
        left: 8px;
    }

    .store-carousel-nav.next {
        right: 8px;
    }

    .store-carousel-dots {
        display: none;
    }

    .store-carousel-dot {
        width: 8px;
        height: 8px;
        min-height: 0;
        flex-basis: 8px;
        background: rgba(34, 24, 16, 0.4);
    }

    .store-carousel-dot.is-active {
        background: #c2410c;
    }

    .menu-category-grid .product-card {
        flex-basis: auto;
    }

    .hero h2 {
        font-size: 1.45rem;
    }

    .menu-search-field input {
        height: 40px;
        font-size: 0.92rem;
    }

    .card {
        border-radius: 12px;
        padding: 12px;
    }

    .product-card {
        border-radius: 12px;
        padding: 0;
    }

    .product-media {
        height: 118px;
    }

    .product-body {
        padding: 10px 10px 0;
    }

    .product-body h3 {
        font-size: 1rem;
    }

    .product-body p {
        min-height: 38px;
        font-size: 0.92rem;
    }

    .product-footer,
    .product-form {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-form {
        padding-bottom: 10px;
    }

    .price {
        font-size: 1.08rem;
    }

    .menu-cart-fab {
        right: 10px;
        bottom: 10px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .menu-cart-drawer {
        width: 100vw;
        border-left: 0;
        padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .menu-cart-item {
        position: relative;
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "thumb info";
        align-items: start;
        gap: 8px 12px;
        min-height: 104px;
        padding: 10px;
    }

    .menu-cart-item-thumb {
        grid-area: thumb;
        align-self: start;
        justify-self: center;
        width: 58px;
        height: 58px;
        border-radius: 9px;
    }

    .menu-cart-item-thumb img {
        width: 100%;
        height: 100%;
    }

    .menu-cart-item-main {
        grid-area: info;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 8px;
        min-width: 0;
        align-self: start;
        align-items: start;
    }

    .menu-cart-item-name {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .menu-cart-item-name {
        align-self: auto;
        font-size: 0.92rem;
        line-height: 1.18;
        white-space: normal;
        overflow: hidden;
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .menu-cart-item-detail {
        grid-column: 1 / -1;
        grid-row: auto;
        align-self: auto;
        color: #6f5546;
        font-size: 0.73rem;
        font-weight: 500;
        line-height: 1.22;
        white-space: normal;
        overflow: hidden;
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .menu-cart-item-name + .menu-cart-item-detail {
        display: -webkit-box;
        -webkit-line-clamp: 2;
    }

    .menu-cart-product-gift {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .menu-cart-item-price {
        position: static;
        grid-column: 1;
        grid-row: auto;
        font-size: 0.92rem;
        line-height: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-cart-item-price-promo strong {
        display: block !important;
        line-height: 1.05;
        font-size: 0.86rem;
        white-space: nowrap;
        color: #b63a1a;
        overflow: visible;
    }

    .menu-cart-item-old-price {
        display: block;
        line-height: 1.05;
        font-size: 0.68rem;
        white-space: nowrap;
        margin-bottom: 2px;
    }

    .menu-cart-item-name,
    .menu-cart-item-detail,
    .menu-cart-item-price {
        margin: 0;
    }

    .menu-cart-item-actions {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 3px;
        position: static;
        grid-column: 2;
        grid-row: auto;
        align-self: center;
        margin: 0;
        min-width: max-content;
        padding-top: 32px;
    }

    .menu-cart-note-toggle {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
    }

    .menu-cart-item-actions > .menu-cart-note-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        flex-basis: 26px;
    }

    .menu-cart-detail-toggle {
        position: absolute;
        left: 58px;
        bottom: 8px;
        transform: translateX(-50%);
    }

    .menu-cart-note-edit {
        grid-column: 1 / -1;
        grid-row: auto;
        margin-top: 4px;
    }

    .menu-cart-qty-form {
        width: auto;
        gap: 3px;
    }

    .menu-cart-item > .menu-cart-remove-form,
    .menu-cart-remove-form {
        display: flex !important;
        position: absolute;
        left: 26px;
        transform: translateX(-50%);
        bottom: 8px;
        z-index: 2;
        margin: 0;
    }

    .menu-cart-qty-form input {
        width: 40px;
        height: 28px;
        min-height: 28px;
        font-size: 0.82rem;
    }

    .menu-cart-qty-form button,
    .menu-cart-remove-btn {
        width: auto;
    }

    .menu-cart-qty-form .menu-cart-qty-step {
        width: 26px;
        min-width: 26px;
        height: 28px;
        min-height: 28px;
        border-radius: 7px;
    }

    .menu-cart-item .menu-cart-remove-btn {
        width: 26px;
        min-width: 26px;
        height: 26px;
        min-height: 26px;
        padding: 0;
        border-radius: 6px;
        background: transparent !important;
        border-color: transparent !important;
        color: #b42318 !important;
        box-shadow: none !important;
        opacity: 1 !important;
    }

    .menu-cart-item .menu-cart-remove-btn svg {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
        color: #b42318 !important;
        stroke: #b42318 !important;
    }

    .menu-cart-clear-btn {
        width: 100%;
    }

    .actions {
        gap: 6px;
    }

    .actions .btn,
    .actions button {
        width: 100%;
        text-align: center;
    }

    .orders-group,
    .order-card,
    .admin-orders-page .order-card-admin,
    .history-panel {
        border-radius: 10px;
        padding: 10px;
    }

    .checkout-cart-line.menu-cart-item {
        grid-template-columns: 38px 82px minmax(0, 1fr);
        grid-template-areas:
            "remove thumb info"
            "note note note";
        gap: 8px 12px;
        align-items: center;
        min-height: 142px;
        padding: 12px;
    }

    .checkout-cart-line .menu-cart-item-thumb {
        grid-area: thumb;
        width: 76px;
        height: 76px;
    }

    .checkout-cart-line .menu-cart-item-main {
        grid-area: info;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name note"
            "price actions";
        gap: 8px 10px;
    }

    .checkout-cart-line .menu-cart-item-name {
        grid-area: name;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .checkout-cart-line .menu-cart-item-detail {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .checkout-cart-line .menu-cart-item-price {
        grid-area: price;
    }

    .checkout-cart-line .menu-cart-item-actions {
        grid-area: actions;
        width: 100%;
        justify-content: flex-end;
    }

    .checkout-cart-line .menu-cart-remove-btn {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 6px !important;
        background: #b42318 !important;
        color: #fff !important;
    }

    .checkout-cart-qty-form {
        width: auto;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 10px;
    }

    th,
    td {
        padding: 10px 9px;
        font-size: 0.86rem;
    }

    .auth-card {
        padding: 16px;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 1.3rem;
    }
}

.products-top-actions {
    margin-bottom: 10px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.products-top-actions .top-actions-btn {
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1;
    min-height: 30px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    border-radius: 8px;
}

.products-top-actions .top-actions-inline-form {
    margin: 0;
    display: inline-flex;
}

.products-top-actions .top-actions-btn:first-child {
    margin-right: auto;
}

.border-crud-modal {
    width: min(760px, calc(100vw - 32px));
    max-width: 820px;
}

.product-edit-additionals-panel {
    display: grid;
    gap: 10px;
}

.product-edit-additionals-list {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #efd9c8;
}

.product-edit-additional-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 120px auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-edit-additional-row input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
}

.product-edit-additional-row button {
    min-width: 78px;
}

.product-edit-additional-create-row {
    padding-bottom: 0;
}

@media (max-width: 640px) {
    .product-edit-additional-row {
        grid-template-columns: 1fr;
    }
}

.border-create-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px auto;
    align-items: end;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0dfd3;
}

.border-create-row label {
    display: grid;
    gap: 6px;
    margin: 0;
    font-weight: 700;
    min-width: 0;
}

.border-create-row label span {
    white-space: nowrap;
}

.border-create-row button {
    min-height: 38px;
    padding-inline: 18px;
}

.border-crud-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.border-crud-list.is-empty {
    min-height: 64px;
    align-content: center;
}

.border-crud-list .empty {
    margin: 0;
    color: #6f5647;
}

.border-crud-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #f1d0bd;
    border-radius: 10px;
    background: #fffaf6;
}

.border-crud-item {
    margin: 0;
}

.border-crud-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
}

.border-crud-actions button {
    min-height: 34px;
    padding: 7px 10px;
}

.additional-crud-modal {
    width: min(1120px, calc(100vw - 24px));
    max-width: none;
}

.additional-create-row {
    grid-template-columns: minmax(220px, 1.45fr) 110px 112px minmax(116px, max-content);
    align-items: end;
    gap: 10px;
}

.additional-create-row button {
    align-self: end;
    justify-self: start;
    min-width: 116px;
    height: 40px;
    min-height: 40px;
    padding-inline: 14px;
    white-space: nowrap;
}

.additional-create-row .additional-category-picker,
.additional-create-row .additional-max-quantity-field {
    grid-column: 1 / -1;
}

.additional-create-row select,
.additional-create-row input,
.additional-crud-item input,
.additional-crud-item select {
    min-height: 38px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #e1c8b7;
    border-radius: 8px;
    background: #fff;
    min-width: 0;
}

.additional-category-picker {
    min-width: 0;
    position: relative;
}

.additional-category-picker > span {
    display: block;
    margin-bottom: 4px;
}

.additional-category-dropdown {
    position: relative;
    width: 100%;
}

.additional-category-dropdown summary {
    align-items: center;
    background: #fff;
    border: 1px solid #e1c8b7;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 34px 8px 10px;
    position: relative;
    width: 100%;
}

.additional-category-dropdown summary::-webkit-details-marker {
    display: none;
}

.additional-category-dropdown summary::after {
    border-bottom: 2px solid #a44f20;
    border-right: 2px solid #a44f20;
    content: "";
    height: 8px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 8px;
}

.additional-category-options {
    background: #fff;
    border: 1px solid #e1c8b7;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(74, 43, 24, 0.16);
    left: 0;
    max-height: 220px;
    overflow: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
}

.additional-category-options label {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-height: 32px;
    padding: 6px 8px;
    width: 100%;
}

.additional-category-options label:hover {
    background: #fff6ef;
}

.additional-category-options input {
    accent-color: #ef7d18;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 0 0 16px;
    height: 16px;
    min-height: auto;
    min-width: 16px;
    margin: 0;
    padding: 0;
    width: 16px;
}

.additional-category-options label span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}

.promo-create-form .additional-category-options label,
.promo-edit-form .additional-category-options label {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.promo-create-form .additional-category-options input,
.promo-edit-form .additional-category-options input {
    width: 16px;
    height: 16px;
    min-height: auto;
    padding: 0;
}

.loyalty-benefit-form .additional-category-dropdown summary {
    display: flex;
    list-style: none;
    height: 38px;
    min-height: 38px;
    padding: 7px 34px 7px 10px;
    font-weight: 400;
    font-size: inherit;
    line-height: 1.2;
}

.loyalty-benefit-form .additional-category-dropdown summary::-webkit-details-marker {
    display: none;
}

.loyalty-benefit-form .additional-category-dropdown summary::after {
    border: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #111;
    content: "";
    display: block;
    height: 0;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-35%);
    width: 0;
}

.loyalty-edit-modal .loyalty-benefit-form .additional-category-dropdown summary {
    height: 34px;
    min-height: 34px;
    padding: 6px 34px 6px 9px;
}

.additional-crud-item {
    grid-template-columns: minmax(220px, 1.45fr) 100px 112px 92px minmax(280px, 1.9fr) auto;
    align-items: end;
    width: 100%;
    box-sizing: border-box;
}

.additional-crud-item .additional-crud-actions {
    grid-column: auto;
    justify-content: flex-end;
}

.additional-crud-actions button {
    min-height: 34px;
    padding: 6px 9px;
}

.additional-crud-item .additional-category-picker,
.additional-crud-item select[data-additional-target-product] {
    min-width: 260px;
}

.additional-create-row select[data-additional-target-type],
.additional-crud-item select[data-additional-target-type] {
    min-width: 0;
}

.additional-create-row [hidden],
.additional-crud-item [hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .additional-create-row {
        grid-template-columns: minmax(170px, 1fr) 100px 112px minmax(116px, max-content);
    }

    .additional-crud-item {
        grid-template-columns: minmax(0, 1fr) 100px minmax(120px, 0.8fr);
    }

    .additional-create-row button {
        grid-column: auto;
    }

    .additional-create-row .additional-category-picker,
    .additional-crud-item .additional-category-picker,
    .additional-crud-item select[data-additional-target-product] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .border-create-row {
        grid-template-columns: 1fr;
    }

    .border-create-row button {
        justify-self: stretch;
    }

    .border-crud-item {
        grid-template-columns: 1fr;
    }

    .border-crud-actions {
        justify-content: flex-start;
    }

    .additional-create-row,
    .additional-crud-item {
        grid-template-columns: 1fr;
    }

    .additional-create-row button,
    .additional-create-row .additional-category-picker,
    .additional-create-row label[data-additional-target-product],
    .additional-crud-item .additional-category-picker,
    .additional-crud-item select[data-additional-target-product],
    .additional-crud-item .additional-crud-actions {
        grid-column: auto;
    }
}

.ui-modal-actions button,
.ui-modal-actions .btn,
.product-modal-actions button,
.product-modal-actions .btn,
.category-create-row button,
.category-crud-actions button,
.border-create-row button,
.border-crud-actions button,
.additional-create-row button,
.additional-crud-actions button,
.products-top-actions .top-actions-btn {
    min-height: var(--btn-standard-height);
    padding: var(--btn-standard-padding-y) var(--btn-standard-padding-x);
    border-radius: var(--btn-standard-radius);
    font-size: var(--btn-standard-font-size);
    line-height: 1.1;
}

.ui-modal-actions .btn-trash,
.product-modal-actions .btn-trash,
button.btn-trash {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0 !important;
    color: #b42318 !important;
    font-size: 0;
    line-height: 1;
}

.ui-modal-actions .btn-trash svg,
.product-modal-actions .btn-trash svg,
button.btn-trash svg {
    width: 16px;
    height: 16px;
    display: block;
}

.carousel-admin-hero {
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.additional-max-quantity-field {
    display: grid;
    gap: 6px;
    margin: 0;
    font-weight: 700;
}

.additional-max-quantity-field[hidden] {
    display: none !important;
}

.additional-max-quantity-field input {
    width: 100%;
    min-width: 72px;
}

.additional-max-quantity-inline span {
    font-size: 12px;
}

.carousel-admin-hero .products-top-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    margin-bottom: 0;
}

.carousel-admin-hero .products-top-actions .top-actions-btn:first-child {
    margin-left: auto;
    margin-right: 0;
}

.carousel-admin-hero .products-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

.carousel-admin-list {
    grid-template-columns: 1fr;
    gap: 14px;
}

.carousel-admin-card {
    width: min(980px, 100%);
    margin: 0 auto;
    border-radius: 16px;
    border-color: #ebd8c8;
    box-shadow: 0 10px 24px rgba(123, 71, 41, 0.1);
}

.carousel-admin-card .admin-product-body {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    align-items: start;
    gap: 14px;
}

.carousel-admin-media {
    display: grid;
    gap: 8px;
}

.carousel-admin-thumb {
    width: 100%;
    height: 156px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    object-fit: contain;
    object-position: center;
    padding: 0;
}

.carousel-admin-card > .actions:not(.carousel-admin-actions) {
    display: none;
}

.carousel-admin-card .actions {
    margin-top: 12px;
}

.carousel-admin-card .carousel-admin-actions {
    justify-content: flex-end;
}

.carousel-admin-card .actions button {
    min-width: 140px;
}

.carousel-admin-card .actions .btn-trash {
    min-width: 28px;
    width: 28px;
    flex: 0 0 28px;
}

.carousel-date-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.carousel-date-fields label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.carousel-date-fields span {
    font-weight: 700;
    color: #2f261f;
}

.carousel-date-input {
    position: relative;
    display: block;
}

.carousel-date-fields .carousel-date-input input[data-date-mask] {
    height: 36px;
    width: 100%;
    padding-right: 42px;
    border: 1px solid #e2cabc;
    border-radius: 7px;
    background: #fff;
    color: #211914;
    font-variant-numeric: tabular-nums;
}

.carousel-date-fields .carousel-date-input input[data-date-mask]::placeholder {
    color: #8c817a;
}

.carousel-date-fields .carousel-date-input input[data-date-mask]:focus {
    border-color: #ef7d17;
    box-shadow: 0 0 0 3px rgba(239, 125, 23, 0.14);
    outline: none;
}

.carousel-date-icon {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6f625a;
    transform: translateY(-50%);
}

.carousel-date-icon:hover,
.carousel-date-icon:focus {
    background: #fff3ea;
    color: #ef7d17;
    outline: none;
}

.carousel-date-icon svg {
    width: 18px;
    height: 18px;
}

.carousel-date-picker {
    position: absolute;
    z-index: 3000;
    width: 292px;
    padding: 12px;
    border: 1px solid #f0c7ae;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(42, 25, 14, 0.16);
}

.carousel-date-picker[hidden] {
    display: none;
}

.carousel-date-picker-head {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.carousel-date-picker-head strong {
    color: #211914;
    font-size: 14px;
    text-align: center;
    text-transform: capitalize;
}

.carousel-date-picker-head button,
.carousel-date-picker-actions button,
.carousel-date-day {
    border: 0;
    background: transparent;
    color: #30231b;
}

.carousel-date-picker-head button {
    width: 34px;
    height: 32px;
    min-width: 34px;
    padding: 0;
    border-radius: 7px;
    font-size: 24px;
    line-height: 1;
}

.carousel-date-picker-head button:hover,
.carousel-date-picker-actions button:hover,
.carousel-date-day:hover {
    background: #fff3ea;
    color: #ef7d17;
}

.carousel-date-picker-week,
.carousel-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.carousel-date-picker-week span {
    height: 24px;
    color: #76685f;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.carousel-date-day {
    width: 34px;
    height: 32px;
    min-width: 34px;
    padding: 0;
    border-radius: 7px;
    font-size: 13px;
    line-height: 32px;
    text-align: center;
}

.carousel-date-day.is-muted {
    color: #b5aaa4;
}

.carousel-date-day.is-today {
    box-shadow: inset 0 0 0 1px #ef7d17;
}

.carousel-date-day.is-selected {
    background: #ef7d17;
    color: #fff;
    font-weight: 800;
}

.carousel-date-day.is-selected:hover {
    background: #d96607;
    color: #fff;
}

.carousel-date-picker-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.carousel-date-picker-actions button {
    min-width: 58px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #ef7d17;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .carousel-admin-card .admin-product-body {
        grid-template-columns: 1fr;
    }

    .carousel-admin-thumb {
        height: 180px;
    }
}

.carousel-order-form {
    margin: 0;
}

.carousel-order-form button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.carousel-admin-head-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.carousel-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #efcdb4;
    background: #fffaf6;
    color: #9a5a2e;
    border-radius: 7px;
    cursor: grab;
}

.carousel-drag-handle:hover,
.carousel-drag-handle:focus {
    border-color: #ef7d17;
    background: #fff3ea;
    color: #ef7d17;
    outline: none;
}

.carousel-drag-handle:active {
    cursor: grabbing;
}

.carousel-drag-handle svg {
    width: 18px;
    height: 18px;
}

.carousel-admin-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.99);
}

.carousel-product-picker {
    position: relative;
    margin-top: 5px;
}

.carousel-product-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    border: 1px solid #e4c7b0;
    border-radius: 8px;
    background: #fffaf6;
    color: #2c211b;
    padding: 6px 10px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.carousel-product-trigger::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: auto;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #8b5a38;
}

.carousel-product-picker.is-dropup .carousel-product-trigger::after {
    border-top: 0;
    border-bottom: 5px solid #8b5a38;
}

.carousel-product-picker.is-open .carousel-product-trigger {
    border-color: #22a856;
    box-shadow: 0 0 0 2px rgba(34, 168, 86, 0.12);
}

.carousel-product-thumb {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f7ece4;
    color: #9a6a4b;
    overflow: hidden;
}

.carousel-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-product-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    max-height: var(--carousel-product-panel-max-height, 260px);
    overflow-y: auto;
    border: 1px solid #22a856;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(45, 28, 18, 0.18);
    padding: 6px;
}

.carousel-product-picker.is-dropup .carousel-product-panel {
    top: auto;
    bottom: calc(100% + 6px);
    box-shadow: 0 -16px 34px rgba(45, 28, 18, 0.16);
}

.carousel-product-picker.is-open .carousel-product-panel {
    display: grid;
    gap: 6px;
}

.carousel-product-search {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 0 2px;
    border-color: #22a856;
    background: #fff;
}

.carousel-product-option {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #17110c;
    padding: 9px 12px;
    text-align: left;
    cursor: pointer;
}

.carousel-product-option[hidden] {
    display: none !important;
}

.carousel-product-option > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.carousel-product-option .carousel-product-thumb {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    background: #fff7ef;
}

.carousel-product-option:hover,
.carousel-product-option.is-selected {
    background: #ecfff3;
    outline: 1px solid #22a856;
}

.carousel-product-option strong,
.carousel-product-option small {
    display: block;
    line-height: 1.25;
}

.carousel-product-option strong {
    font-weight: 600;
}

.carousel-product-option small {
    margin-top: 2px;
    color: #7a4b31;
    font-size: 0.74rem;
}

.clients-hero {
    margin-bottom: 10px;
}

.clients-summary {
    margin-bottom: 0;
}

.clients-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-profile-page {
    max-width: 760px;
}

.customer-profile-hero {
    margin: 0 0 8px;
}

.customer-profile-hero h2 {
    margin: 0;
    color: #241810;
    font-size: 1.35rem;
    line-height: 1.15;
}

.customer-profile-card {
    padding: 14px;
    border-radius: 12px;
    border-color: #ecd5c4;
    box-shadow: 0 8px 22px rgba(72, 39, 22, 0.08);
}

.customer-profile-alert {
    background: #fdecec;
    color: #a22020;
    border: 1px solid #f3bcbc;
}

.profile-toast-alert {
    position: fixed;
    z-index: 10050;
    top: 72px;
    right: 22px;
    width: min(390px, calc(100vw - 32px));
    margin: 0;
    padding: 13px 15px;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(25, 42, 58, 0.18);
    animation: profile-toast-in 0.22s ease-out;
}

@keyframes profile-toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.customer-profile-form {
    display: grid;
    gap: 14px;
}

.customer-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.customer-profile-field {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
}

.customer-profile-field-wide {
    grid-column: 1 / -1;
}

.customer-profile-field label {
    margin: 0;
    color: #3a261a;
    font-size: 0.86rem;
    font-weight: 700;
}

.customer-profile-field input {
    margin: 0;
    min-height: 38px;
    border-radius: 9px;
    border-color: #e6cbbb;
    background: #fff;
    font-size: 0.95rem;
}

.customer-profile-field input:focus {
    border-color: #c53a26;
    box-shadow: 0 0 0 3px rgba(197, 58, 38, 0.12);
    outline: 0;
}

.customer-profile-field .password-field input {
    width: 100%;
}

.customer-profile-field .field-hint {
    margin: 0;
    line-height: 1.35;
}

.customer-profile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0ddcf;
}

.customer-profile-section-title h3 {
    margin: 0;
    color: #302017;
    font-size: 1rem;
    line-height: 1.2;
}

.customer-profile-section-title span {
    color: #8b6a58;
    font-size: 0.78rem;
    font-weight: 700;
}

.customer-profile-actions {
    display: flex;
    justify-content: flex-end;
}

.customer-profile-actions button {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-account-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.admin-account-form .customer-profile-grid {
    grid-template-columns: 1fr;
}

.admin-account-form .customer-profile-actions {
    align-self: end;
}

.admin-account-form .customer-profile-actions button {
    min-width: auto;
}

.admin-password-form .customer-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-password-form .customer-profile-field-wide {
    grid-column: auto;
}

.admin-password-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.admin-password-form .customer-profile-section-title {
    grid-column: 1 / -1;
}

.admin-password-form .customer-profile-actions {
    align-self: start;
    padding-top: 22px;
}

@media (max-width: 620px) {
    .customer-profile-page {
        width: min(100% - 18px, 760px);
    }

    .customer-profile-card {
        padding: 12px;
    }

    .customer-profile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customer-profile-field {
        gap: 7px;
    }

    .customer-profile-field label {
        font-size: 0.92rem;
    }

    .customer-profile-field input {
        min-height: 50px;
        padding: 12px 14px;
        border-radius: 11px;
        font-size: 1rem;
    }

    .admin-account-form {
        grid-template-columns: 1fr;
    }

    .admin-password-form .customer-profile-grid {
        grid-template-columns: 1fr;
    }

    .admin-password-form .customer-profile-field-wide {
        grid-column: 1 / -1;
    }

    .admin-password-form {
        grid-template-columns: 1fr;
    }

    .admin-password-form .customer-profile-section-title {
        grid-column: auto;
    }

    .admin-password-form .customer-profile-actions {
        padding-top: 0;
    }

    .customer-profile-actions button {
        width: auto;
        min-height: 32px;
    }

    .profile-toast-alert {
        top: 62px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}

.clients-new-btn {
    margin-left: auto;
}

.client-create-modal {
    width: min(920px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
    overflow: auto;
}

.client-create-modal form {
    display: grid;
    gap: 10px;
}

.client-create-modal .row {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.clients-search-form {
    margin-top: 0;
    margin-bottom: 12px;
}

.clients-search-form input {
    min-width: min(460px, 100%);
}

.clients-table-wrap {
    margin-bottom: 12px;
}

.clients-admin-table {
    min-width: 1120px;
}

.clients-admin-table th {
    white-space: nowrap;
    font-size: 0.82rem;
}

.clients-admin-table td {
    vertical-align: middle;
    font-size: 0.86rem;
    line-height: 1.35;
    padding-top: 10px;
    padding-bottom: 10px;
}

.clients-admin-table tbody tr:nth-child(2n) {
    background: #fffaf5;
}

.clients-cell-center {
    text-align: center;
    font-weight: 700;
}

.clients-cell-money {
    font-weight: 800;
    color: #8b3415;
    white-space: nowrap;
}

.clients-row-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.clients-row-actions .btn {
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1;
}

.clients-delete-form {
    margin: 0;
}

.clients-icon-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff3e8;
    color: #c85b16;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.clients-icon-btn:hover {
    background: #ffe0c2;
}

.clients-icon-btn svg {
    width: 15px;
    height: 15px;
}

.clients-icon-btn-danger {
    background: #fff1f1;
    color: #c62828;
}

.clients-icon-btn-danger:hover {
    background: #ffdada;
}

.clients-history-card {
    margin-top: 16px;
}

.client-history-modal {
    width: min(860px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    overflow: auto;
}

.clients-history-table {
    min-width: 900px;
}

@media (max-width: 900px) {
    .clients-new-btn {
        margin-left: 0;
    }

    .client-create-modal .row {
        grid-template-columns: 1fr;
    }

    .promo-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .promo-create-open-btn {
        align-self: flex-end;
    }
}

/* Promotions admin */
.promo-page-hero {
    width: min(1280px, calc(100vw - 28px));
    max-width: none;
    margin: 18px auto 14px;
    margin-left: calc((100% - min(1280px, calc(100vw - 28px))) / 2);
    margin-right: calc((100% - min(1280px, calc(100vw - 28px))) / 2);
    padding: 16px 18px;
    border: 1px solid #f0ddd0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.promo-page-hero .products-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.promo-page-hero-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.promo-page-hero .field-hint {
    margin: 6px 0 0;
    color: #75513b;
    font-size: 0.9rem;
}

.loyalty-hero-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.loyalty-hero-action {
    width: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}

.promotions-admin-page {
    width: min(1280px, calc(100vw - 28px));
    max-width: none;
    margin: 0 auto 28px;
    margin-left: calc((100% - min(1280px, calc(100vw - 28px))) / 2);
    margin-right: calc((100% - min(1280px, calc(100vw - 28px))) / 2);
}

.promo-page-actions {
    display: none;
}

.promo-create-open-btn {
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.promo-create-modal {
    width: min(1040px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 0;
    border-radius: 10px;
}

.promo-edit-modal {
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 18px 18px 16px;
    border-radius: 10px;
}

.ui-modal-backdrop#promoDetailModal {
    align-items: center;
    justify-content: center;
}

.promo-detail-modal {
    width: min(720px, calc(100vw - 48px));
    max-height: calc(100vh - 36px);
    margin: auto;
    overflow: hidden;
    padding: 0;
    border-radius: 10px;
}

.promo-detail-modal h3 {
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e7edf4;
    color: #162033;
    font-size: 1.05rem;
    font-weight: 800;
}

.promo-detail-body {
    display: grid;
    gap: 0;
    padding: 12px 22px 6px;
    overflow-x: hidden;
    overflow-y: visible;
}

.promo-detail-summary,
.promo-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-detail-summary {
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7edf4;
}

.promo-detail-grid {
    gap: 0 18px;
    padding: 8px 0;
    border-bottom: 1px solid #e7edf4;
}

.promo-detail-field {
    min-width: 0;
    padding: 5px 0;
    border-bottom: 1px solid #e7edf4;
}

.promo-detail-field span {
    display: block;
    margin-bottom: 4px;
    color: #60708b;
    font-size: 0.76rem;
    font-weight: 800;
}

.promo-detail-field strong {
    display: block;
    color: #263445;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.promo-detail-status {
    display: inline-flex !important;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647 !important;
    font-size: 0.82rem !important;
}

.promo-detail-modal .ui-modal-actions {
    margin: 0;
    padding: 14px 22px 20px;
    border-top: 1px solid #e7edf4;
    background: #fff;
}

.promo-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0ddd0;
    background: #fff8f2;
}

.promo-modal-head h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.2;
}

.ui-modal-icon-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #5f4638 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: center !important;
}

.ui-modal-icon-close::before {
    content: "\00d7";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: currentColor !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.ui-modal-icon-close:hover {
    background: #f4e7de !important;
    color: #8f1a12 !important;
}

.promo-create-card,
.promo-list-card {
    margin: 0 0 14px;
    padding: 12px 14px 0;
    border: 1px solid #f0ddd0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow: visible;
    width: 100%;
}

.promo-list-header {
    padding: 8px 18px 16px;
    border-top: 1px solid #e7edf4;
    border-bottom: 0;
    background: transparent;
}

.promo-list-header span {
    margin: 0;
    color: #243b61;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.promo-list-card .history-table-wrap {
    max-height: none;
    border: 0;
    border-radius: 0;
}

.promo-list-card .history-table th {
    background: #f8fafc;
    border-bottom: 1px solid #e7edf4;
    color: #42526d;
    font-size: 0.78rem;
    font-weight: 800;
}

.promo-create-form {
    padding: 12px 14px 14px;
}

.promo-create-form .promo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 10px;
    margin: 0 0 10px;
}

.promo-edit-form .promo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
    gap: 12px;
    margin: 0 0 12px;
}

.promo-create-form .promo-row > div,
.promo-edit-form .promo-row > div {
    min-width: 0;
}

.promo-create-form .promo-row-dates,
.promo-edit-form .promo-row-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-edit-form .promo-row:first-of-type {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    align-items: start;
}

.promo-create-form label,
.promo-edit-form label {
    display: block;
    margin: 0 0 5px;
    color: #21150f;
    font-size: 0.86rem;
    font-weight: 700;
}

.promo-create-form input,
.promo-create-form select,
.promo-edit-form input,
.promo-edit-form select {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #dfc5b4;
    border-radius: 7px;
    background: #fff;
    font-size: 0.9rem;
}

.promo-edit-form > label {
    margin-top: 12px;
}

.promo-edit-form > label:first-of-type {
    margin-top: 0;
}

.promo-edit-form .inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.promo-edit-form .inline-check input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
}

.promo-create-form input[type="number"],
#promoEditForm input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.promo-create-form input[type="number"]::-webkit-outer-spin-button,
.promo-create-form input[type="number"]::-webkit-inner-spin-button,
#promoEditForm input[type="number"]::-webkit-outer-spin-button,
#promoEditForm input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.promo-create-form .history-date-input,
.promo-edit-form .history-date-input {
    padding-right: 36px;
}

.promo-create-form .history-date-wrap,
.promo-edit-form .history-date-wrap {
    min-width: 0;
    width: 100%;
}

.promo-datetime-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px;
    align-items: center;
}

.promo-create-form .promo-time-input,
.promo-edit-form .promo-time-input {
    padding: 7px 8px;
    font-weight: 700;
}

.promo-discount-control {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(140px, 0.85fr);
    gap: 12px;
}

.promo-discount-field {
    min-width: 0;
}

.promo-discount-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    overflow: hidden;
    border: 1px solid #dfc5b4;
    border-radius: 7px;
    background: #fff;
}

.promo-create-form .promo-discount-value input,
#promoEditForm .promo-discount-value input {
    height: 36px;
    min-height: 36px;
    border: 0;
    border-radius: 0;
}

.promo-discount-value span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    border-left: 1px solid #e4d7cf;
    background: #f2f4f6;
    color: #475467;
    font-size: 0.9rem;
}

.promo-gift-control {
    display: grid;
    gap: 8px;
}

.promo-edit-form .promo-gift-control select {
    min-width: 0;
}

.promo-product-picker {
    display: grid;
    gap: 4px;
    max-height: 168px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #dfc5b4;
    border-radius: 7px;
    background: #fff;
}

.promo-product-picker.is-hidden {
    display: none;
}

.promo-product-option {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px !important;
    align-items: center;
    min-height: 36px;
    margin: 0 !important;
    padding: 7px 8px;
    border-radius: 6px;
    color: #1d2939 !important;
    cursor: pointer;
}

.promo-product-option:hover {
    background: #fff7ed;
}

.promo-product-option input {
    width: 15px !important;
    height: 15px !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.promo-product-option span {
    display: grid;
    min-width: 0;
}

.promo-product-option strong {
    overflow: hidden;
    color: #1d2939;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promo-product-option small {
    overflow: hidden;
    color: #667085;
    font-size: 0.74rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promo-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #f3e3d8;
}

.promo-active-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: #2d1c12;
}

.promo-active-check input {
    width: 16px;
    height: 16px;
    min-height: 0;
}

.promo-create-footer button {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 0.9rem;
}

.promo-empty-state {
    padding: 18px;
    border: 1px dashed #e5cdbc;
    border-radius: 8px;
    background: #fffaf6;
    color: #6c4a35;
    font-weight: 700;
}

.promo-history-table {
    min-width: 860px;
}

.promo-history-table th,
.promo-history-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.promo-history-table th:last-child,
.promo-history-table td:last-child {
    width: 132px;
    text-align: center;
}

.loyalty-admin-wrap {
    display: grid;
    gap: 14px;
}

.loyalty-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.loyalty-summary-card {
    padding: 14px 16px;
    border: 1px solid #f0ddd0;
    border-radius: 8px;
    background: #fff;
}

.loyalty-summary-card strong {
    font-size: 1.35rem;
}

.loyalty-settings-card,
.loyalty-list-card {
    margin: 0;
}

.loyalty-settings-form .promo-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loyalty-admin-wrap .promo-create-footer {
    justify-content: flex-end;
}

.loyalty-admin-wrap .promo-create-footer .btn,
.loyalty-settings-backdrop .ui-modal-actions .btn,
.loyalty-settings-backdrop .ui-modal-actions button,
.loyalty-edit-modal .ui-modal-actions .btn,
.loyalty-edit-modal .ui-modal-actions button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}

.loyalty-benefit-panel {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #f0ddd0;
    border-radius: 8px;
    background: #fff;
}

.loyalty-benefit-panel h4 {
    margin: 0 0 10px;
    color: #1f2933;
    font-size: 0.98rem;
}

.loyalty-benefit-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.loyalty-benefit-launch h4 {
    margin: 0;
}

.loyalty-benefit-launch .btn {
    width: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
}

.loyalty-edit-modal {
    width: min(920px, calc(100vw - 28px));
    padding: 16px;
    border-radius: 10px;
    border-color: #efd9ca;
    box-shadow: 0 16px 34px rgba(28, 21, 15, 0.18);
}

.loyalty-edit-modal .promo-modal-head {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fffaf7;
}

.loyalty-edit-modal .promo-modal-head h3 {
    font-size: 1rem;
}

.loyalty-settings-head-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.loyalty-settings-head-actions .promo-active-check {
    font-size: 0.8rem;
    font-weight: 700;
}

.loyalty-edit-modal .loyalty-benefit-row,
.loyalty-edit-modal .loyalty-settings-form .promo-row {
    gap: 12px;
    margin-bottom: 0;
}

.loyalty-edit-modal .loyalty-benefit-form .loyalty-benefit-row {
    grid-template-columns: minmax(160px, 0.9fr) minmax(170px, 0.95fr) minmax(160px, 0.95fr) minmax(180px, 1fr);
}

.loyalty-edit-modal .loyalty-benefit-form [data-loyalty-product-field] {
    grid-column: 1 / -1;
}

.loyalty-edit-modal .promo-create-form label {
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.loyalty-edit-modal .promo-create-form input,
.loyalty-edit-modal .promo-create-form select {
    height: 34px;
    min-height: 34px;
    padding: 6px 9px;
    border-color: #e5cdbc;
    border-radius: 6px;
    font-size: 0.86rem;
}

.loyalty-edit-modal .promo-create-form select option {
    background: #fff;
    color: #21150f;
}

.loyalty-edit-modal .promo-create-form select option:checked {
    background: #f6eee9;
    color: #21150f;
}

.loyalty-product-coins {
    margin: 8px 0 14px;
    padding: 10px;
    border: 1px solid #f0ddd0;
    border-radius: 8px;
    background: #fffaf7;
}

.loyalty-product-coins-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.loyalty-product-coins-head strong {
    color: #1f2933;
    font-size: 0.92rem;
}

.loyalty-product-coins-head span {
    color: #7a5a44;
    font-size: 0.78rem;
    font-weight: 700;
}

.loyalty-product-coins-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}

.loyalty-edit-modal .promo-create-form .loyalty-product-coin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #f0ddd0;
    border-radius: 7px;
    background: #fff;
}

.loyalty-product-coin-row span,
.loyalty-product-coin-row strong,
.loyalty-product-coin-row small {
    display: block;
    min-width: 0;
}

.loyalty-product-coin-row strong {
    overflow: hidden;
    color: #1f2933;
    font-size: 0.82rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loyalty-product-coin-row small {
    margin-top: 2px;
    overflow: hidden;
    color: #7a5a44;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loyalty-edit-modal .promo-create-form .loyalty-product-coin-row input {
    width: 76px;
    text-align: center;
}

.loyalty-edit-modal .promo-create-form .loyalty-period-field {
    width: auto;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.loyalty-period-label {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: #2d1c12 !important;
    font-size: 0.8rem !important;
}

.loyalty-help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
    border: 1px solid #2684ff !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #2684ff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: help;
}

.loyalty-help-tooltip > span {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: -10px;
    width: 280px;
    padding: 10px 12px;
    border: 1px solid #d9dee7;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.18);
    color: #3f3f46 !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.loyalty-help-tooltip:hover > span,
.loyalty-help-tooltip:focus-visible > span {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.loyalty-period-field > span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.loyalty-edit-modal .promo-create-form .loyalty-period-field input {
    width: 72px;
}

.loyalty-period-field small {
    color: #7c5a45;
    font-weight: 600;
}

.loyalty-edit-modal .ui-modal-actions {
    margin-top: 12px;
}

.loyalty-benefit-list-card {
    margin: 0;
}

.loyalty-benefit-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    min-width: 28px !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 0 !important;
    background: transparent !important;
    color: #b42318 !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
}

.loyalty-benefit-action svg,
.loyalty-benefit-delete-btn svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.loyalty-benefit-delete-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
}

.loyalty-benefit-rule {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid #f0ddd0;
}

.loyalty-benefit-rule span {
    display: block;
    margin-bottom: 4px;
    color: #75513b;
    font-size: 0.76rem;
    font-weight: 800;
}

.loyalty-benefit-rule strong {
    display: block;
    color: #1f2933;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.loyalty-benefit-delete-form {
    margin: 0;
}

.loyalty-benefit-form .loyalty-benefit-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loyalty-benefit-form [data-loyalty-product-field] {
    grid-column: span 2;
}

.loyalty-benefit-form [data-loyalty-product-field] .additional-category-dropdown {
    max-width: 100%;
}

.loyalty-benefit-form [data-loyalty-product-field] .additional-category-dropdown summary span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loyalty-benefit-form [data-loyalty-product-field] .additional-category-options {
    min-width: min(420px, calc(100vw - 48px));
    right: auto;
}

.loyalty-benefit-form [data-loyalty-product-field] .additional-category-options label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.loyalty-benefit-form [data-loyalty-product-field] .additional-category-options label span {
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
}

.loyalty-benefit-row > [hidden] {
    display: none !important;
}

.loyalty-level-pill {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.loyalty-level-bronze {
    background: #fff4e8;
    color: #a15c1b;
}

.loyalty-level-prata {
    background: #f2f4f7;
    color: #475467;
}

.loyalty-level-ouro {
    background: #fffaeb;
    color: #b7791f;
}

.loyalty-client-accordion {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.loyalty-section-accordion > summary {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    cursor: pointer;
    list-style: none;
    min-height: 44px;
    width: 100%;
    padding: 6px 2px 12px;
    border-bottom: 1px solid #f0ddd0;
}

.loyalty-section-accordion > summary::-webkit-details-marker {
    display: none;
}

.loyalty-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.loyalty-section-title strong {
    color: #1f2933;
    font-size: 0.98rem;
}

.loyalty-section-title span {
    display: inline;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #243b61;
    font-size: 0.86rem;
    font-weight: 800;
}

.loyalty-section-chevron {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #243b61;
    transition: transform 0.16s ease;
}

.loyalty-section-chevron svg {
    width: 15px;
    height: 15px;
    display: block;
}

.loyalty-section-accordion[open] .loyalty-section-chevron {
    transform: rotate(180deg);
}

.loyalty-client-item {
    border: 1px solid #f0ddd0;
    border-radius: 8px;
    background: #fff;
    overflow: visible;
}

.loyalty-client-item summary {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) auto minmax(130px, 0.65fr);
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    cursor: pointer;
    list-style: none;
}

.loyalty-client-item summary::-webkit-details-marker {
    display: none;
}

.loyalty-client-item[open] summary {
    background: #fffaf7;
    border-bottom: 1px solid #f0ddd0;
}

.loyalty-client-main,
.loyalty-client-coins {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.loyalty-client-main strong,
.loyalty-client-coins strong {
    color: #1f2933;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.loyalty-client-main small,
.loyalty-client-coins small {
    color: #75513b;
    font-size: 0.74rem;
    font-weight: 700;
}

.loyalty-client-coins {
    justify-items: end;
    text-align: right;
}

.loyalty-client-detail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background: #fff;
}

.loyalty-client-detail span {
    display: block;
    margin-bottom: 3px;
    color: #75513b;
    font-size: 0.72rem;
    font-weight: 800;
}

.loyalty-client-detail strong {
    display: block;
    color: #1f2933;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.loyalty-coins-positive {
    color: #067647;
    font-weight: 800;
}

.loyalty-coins-negative {
    color: #b42318;
    font-weight: 800;
}

@media (max-width: 760px) {
    .loyalty-summary-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-settings-form .promo-row {
        grid-template-columns: 1fr;
    }

    .loyalty-benefit-form .loyalty-benefit-row {
        grid-template-columns: 1fr;
    }

    .loyalty-benefit-rule {
        grid-template-columns: 1fr;
    }

    .loyalty-client-item summary {
        grid-template-columns: 1fr auto;
    }

    .loyalty-client-coins {
        justify-items: start;
        text-align: left;
    }

    .loyalty-client-detail {
        grid-template-columns: 1fr;
    }

    .loyalty-admin-wrap .promo-create-footer {
        align-items: flex-end;
        flex-direction: row;
    }

    .loyalty-edit-modal .ui-modal-actions {
        align-items: center;
        flex-direction: row;
    }
}

.promo-detail-btn {
    width: 28px;
    height: 28px;
    border: 0 !important;
    background: transparent !important;
    color: #b42318 !important;
    border-radius: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.promo-detail-btn:hover {
    background: transparent !important;
    color: #8f1a12 !important;
}

.promo-actions-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.promo-delete-inline-form {
    margin: 0;
}

.promo-delete-btn {
    color: #b42318;
    border: 0 !important;
    background: transparent !important;
}

.promo-delete-btn:hover {
    background: transparent !important;
    color: #8f1a12 !important;
}

.promo-detail-btn[name="action"][value="activate"] {
    width: auto;
    min-width: 0;
    padding: 0 10px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .promo-page-hero,
    .promotions-admin-page {
        margin-left: 10px;
        margin-right: 10px;
        width: auto;
        transform: none;
    }

    .promo-create-form .promo-row,
    .promo-create-form .promo-row-dates,
    .promo-edit-form .promo-row,
    .promo-edit-form .promo-row-dates,
    .promo-edit-form .promo-row:first-of-type {
        grid-template-columns: 1fr;
    }

    .promo-discount-control {
        grid-template-columns: 1fr;
    }

    .promo-create-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .promo-edit-modal {
        padding: 16px;
    }

    .promo-detail-summary,
    .promo-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-detail-modal .ui-modal-actions {
        align-items: stretch;
    }

    .promo-detail-modal .ui-modal-actions button,
    .promo-detail-modal .ui-modal-actions .btn {
        width: 100%;
    }

    .promo-edit-form .ui-modal-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .promo-edit-form .ui-modal-actions button,
    .promo-edit-form .ui-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .promo-detail-summary,
    .promo-detail-grid {
        grid-template-columns: 1fr;
    }
}

.product-card.js-open-product-modal {
    cursor: pointer;
}

.product-card.js-open-product-modal:focus,
.product-card.js-open-product-modal:focus-visible {
    outline: 0;
    border-color: #f2c7a8;
    box-shadow: 0 10px 24px rgba(142, 76, 43, 0.12);
}

.product-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 9, 4, 0.44);
    z-index: 6000;
    display: none;
}

.product-sheet-backdrop.is-open {
    display: block;
}

.product-sheet {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(380px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-radius: 0;
    border-left: 1px solid #eadac9;
    padding: 10px 10px 0 16px;
    transform: translateX(100%);
    opacity: 1;
    transition: transform .25s ease, opacity .2s ease;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.product-sheet-backdrop.is-open .product-sheet {
    transform: translateX(0);
}

.product-sheet-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e7cdbb;
    background: #fff8f2;
    color: #6c3b1f;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-sheet-head {
    padding-right: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-areas:
        "main image"
        "desc desc"
        "additionals additionals";
    gap: 8px 12px;
    align-items: start;
}

.product-sheet-main {
    grid-area: main;
    min-width: 0;
}

.product-sheet-image {
    grid-area: image;
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin: 0;
    justify-self: end;
}

.product-sheet-head h3 {
    margin: 0;
    color: #22170f;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.18;
}

.product-sheet-main p {
    margin: 6px 0 0;
    color: #3f2d22;
}

.product-sheet-description {
    grid-area: desc;
    margin: 2px 0 0;
    color: #3f2d22;
    line-height: 1.35;
    font-weight: 500;
}

.product-sheet-price {
    margin-top: 8px !important;
    color: #c44210 !important;
    display: grid;
    justify-items: start;
    gap: 3px;
}

.product-sheet-price strong {
    color: #b91c1c;
    font-size: 1.12rem;
    line-height: 1.1;
}

.product-sheet-base-price {
    display: inline-flex;
}

.product-sheet-exclusive-promo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-sheet-gift-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: max-content;
    min-width: max-content;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #07913f;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
}

.product-sheet-gift-promo-badge span {
    font-size: 0.52rem;
    font-weight: 900;
    white-space: nowrap;
}

.product-sheet-gift-promo-badge strong {
    color: #fff;
    font-size: 0.56rem;
    font-weight: 900;
    white-space: nowrap;
}

.product-sheet-loyalty-medal-badge {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #f1d9bf;
    border-radius: 999px;
    background: #fff6ed;
    box-shadow: 0 6px 14px rgba(99, 48, 17, 0.14);
    font-size: 0.82rem;
    line-height: 1;
}

.product-sheet-form {
    margin-top: 18px;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.product-sheet-pizza-box {
    min-height: 0;
    overflow: hidden;
}

.product-sheet-pizza-box:not([hidden]) {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
}

.product-sheet .pizza-options-row {
    margin-bottom: 0;
}

.product-sheet-pizza-box > .pizza-half-row {
    margin-top: 4px;
}

.product-sheet-pizza-box + label {
    margin-top: 0;
    padding-top: 0;
    background: #fff;
}

.product-sheet .pizza-border-control {
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-sheet.is-half-mode .pizza-border-control {
    width: 100%;
}

.product-sheet.is-half-mode .pizza-border-toggle {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.product-sheet.is-half-mode .product-sheet-pizza-box,
.product-sheet.is-half-mode .pizza-options-row,
.product-sheet.is-half-mode .pizza-border-control {
    overflow: visible;
}

.product-sheet.is-half-mode .pizza-border-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 6;
    margin-top: 0;
    max-height: min(220px, 34vh);
    max-height: min(220px, 34dvh);
}

.product-sheet .pizza-border-toggle {
    min-height: 42px;
    margin-top: 0;
    padding-top: 9px;
    padding-bottom: 9px;
}

.product-sheet-note-wrap {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
}

.product-sheet-note-control {
    display: none !important;
}

.product-sheet .pizza-border-heading {
    display: none;
}

.product-sheet-note {
    width: 100%;
    min-height: 58px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #efcdb6;
    border-radius: 10px;
    background: #fff;
    color: #3a261a;
    font-size: 0.92rem;
    line-height: 1.3;
    resize: vertical;
}

.product-sheet-note-control .pizza-border-required {
    display: none;
}

.product-sheet-note-toggle {
    display: inline-flex;
}

.product-sheet-note-wrap:not(.is-note-open) .product-sheet-note {
    display: none;
}

.product-sheet-note-wrap.is-note-open .product-sheet-note {
    width: 100%;
    min-height: 58px;
}

.product-sheet-half-note-fields {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.product-sheet-half-note-fields[hidden],
.product-sheet-note-wrap:not(.is-note-open) .product-sheet-half-note-fields {
    display: none !important;
}

.product-sheet-half-note-field {
    display: grid;
    gap: 6px;
    color: #3a261a;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-sheet-half-note-field textarea {
    width: 100%;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #efcdb6;
    border-radius: 10px;
    background: #fff;
    color: #3a261a;
    font-size: 0.92rem;
    line-height: 1.3;
    resize: vertical;
}

.product-sheet-half-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
}

.product-sheet-half-notes[hidden] {
    display: none !important;
}

.half-note-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(32, 24, 18, 0.36);
}

.half-note-modal-backdrop[hidden] {
    display: none !important;
}

.half-note-modal {
    width: min(420px, 100%);
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0d8c5;
    box-shadow: 0 18px 42px rgba(40, 28, 20, 0.22);
}

.half-note-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.half-note-modal-close {
    width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 999px;
}

.half-note-modal textarea {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #efcdb6;
    border-radius: 10px;
    resize: vertical;
}

.half-note-modal textarea[hidden] {
    display: none !important;
}

.half-note-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.half-note-alert-modal {
    border-color: #bbf7d0;
    box-shadow: 0 18px 42px rgba(10, 92, 50, 0.2);
}

.half-note-alert-modal .half-note-modal-head strong {
    color: #075f32;
}

.half-note-alert-close {
    width: 28px;
    min-height: 28px;
    font-size: 1rem;
}

.half-note-alert-modal p {
    margin: 0;
    color: #315443;
    font-size: 0.92rem;
    line-height: 1.35;
}

.product-sheet-note-toggle {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 9px 40px 9px 12px;
    border: 1px solid #ecd4c1;
    border-radius: 10px;
    background: #fff;
    color: #2f231b;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: left;
    box-shadow: none;
    position: relative;
}

.product-sheet-note-toggle::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #93461b;
    border-bottom: 2px solid #93461b;
    transform: translateY(-65%) rotate(45deg);
}

.product-sheet-note-toggle[hidden] {
    display: none !important;
}

.product-sheet-note:focus,
.product-sheet-note-toggle:focus,
.product-sheet-half-note-field textarea:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
    outline: 0;
}

@media (max-width: 640px) {
    .pizza-options-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0;
    }

    .product-sheet.is-half-mode .pizza-options-row {
        order: 2;
    }

    .product-sheet.is-half-mode .pizza-half-row {
        order: 1;
    }

    .pizza-border-control select {
        width: calc(100% - 8px);
    }

    .product-sheet-pizza-box:not([hidden]) {
        display: grid;
        gap: 8px;
        margin-bottom: 0;
    }

    .product-sheet.is-half-mode .product-sheet-pizza-box:not([hidden]) {
        display: grid;
        gap: 2px;
    }

    .product-sheet-pizza-box > .pizza-half-row {
        margin-top: 5px;
    }

    .product-sheet.is-half-mode .pizza-half-row {
        margin-top: 0;
    }

    .product-sheet.is-half-mode .pizza-half-row > label {
        margin: 0 0 3px;
    }

    .product-sheet .pizza-border-control {
        width: 100%;
        box-sizing: border-box;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .product-sheet.is-half-mode .pizza-border-control {
        width: 100%;
    }

    .product-sheet.is-half-mode .pizza-border-toggle {
        min-height: 32px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .product-sheet.is-half-mode .product-sheet-pizza-box,
    .product-sheet.is-half-mode .pizza-options-row,
    .product-sheet.is-half-mode .pizza-border-control {
        overflow: visible;
    }

    .product-sheet.is-half-mode .pizza-border-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(100% + 5px);
        z-index: 6;
        margin-top: 0;
        max-height: min(210px, 34vh);
        max-height: min(210px, 34dvh);
    }

    .product-sheet-note-control {
        padding: 0;
    }

    .product-sheet-note-control .pizza-border-required {
        display: none;
    }

    .product-sheet-note-wrap {
        display: grid;
        gap: 8px;
        margin: 8px 0 0;
    }

    .pizza-border-heading {
        display: none;
    }

    .pizza-border-inline {
        font-size: 0.82rem;
        line-height: 1.1;
    }

    .pizza-kind-row {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .pizza-kind-row strong {
        flex: 0 0 auto;
        font-size: 0.92rem;
    }

    .pizza-kind-row label {
        flex: 0 0 auto;
    }

    .product-sheet-kind-note-btn {
        min-height: 26px;
        padding: 5px 8px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .product-sheet-standalone-note-btn {
        min-height: 28px;
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 0.8rem;
    }

    .pizza-border-required {
        font-size: 0.62rem;
    }

    .pizza-border-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 28px;
        margin-top: 0;
        padding: 4px 30px 4px 8px;
        border-radius: 7px;
        font-size: 0.8rem;
    }

    .pizza-border-toggle::after {
        right: 12px;
        width: 7px;
        height: 7px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .product-sheet-note-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 28px;
        margin-top: 3px;
        padding: 4px 30px 4px 8px;
        border-radius: 7px;
        font-size: 0.8rem;
    }

    .product-sheet-note-toggle::after {
        right: 12px;
        width: 7px;
        height: 7px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .product-sheet-note-wrap:not(.is-note-open) .product-sheet-note {
        display: none;
    }

    .product-sheet-note-wrap.is-note-open .product-sheet-note {
        width: 100%;
        min-height: 46px;
        margin-top: 3px;
        padding: 7px 9px;
    }

    .product-sheet-note-wrap.is-note-open .product-sheet-half-note-fields {
        padding-bottom: calc(54px + env(safe-area-inset-bottom));
    }

    .product-sheet-half-notes {
        width: 100%;
        margin: 0 0 6px;
        gap: 6px;
    }

}

.product-sheet.is-half-mode .pizza-half-row {
    min-height: 0;
    overflow: hidden;
}

.product-sheet.is-half-mode .pizza-half-row:not(.is-hidden) {
    display: flex;
    flex-direction: column;
}

.product-sheet.is-half-mode .half-flavor-picker {
    min-height: 0;
    max-height: min(28vh, 240px);
    max-height: min(28dvh, 240px);
    overflow-y: auto;
}

@media (min-width: 721px) {
    .product-sheet.is-half-mode .product-sheet-pizza-box:not([hidden]) {
        display: flex;
        flex-direction: column;
    }

    .product-sheet.is-half-mode .pizza-kind-row {
        order: 1;
    }

    .product-sheet.is-half-mode .pizza-half-row {
        order: 2;
    }

    .product-sheet.is-half-mode .half-flavor-picker {
        max-height: min(52vh, 430px);
        max-height: min(52dvh, 430px);
    }

    .product-sheet.is-half-mode .pizza-options-row {
        order: 3;
        margin-top: 10px;
    }
}

.product-sheet-qty-row {
    grid-template-columns: 34px 64px 34px 1fr !important;
    gap: 6px;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    background: #fff;
}

.product-sheet-qty-row #sheetAddBtn {
    grid-row: auto;
    grid-column: auto;
    width: 100% !important;
}

.product-sheet-qty-row .qty-step-btn,
.product-sheet-qty-row input,
.product-sheet-qty-row #sheetAddBtn {
    box-sizing: border-box;
    min-height: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    line-height: 1 !important;
    align-self: center;
}

.product-sheet-qty-row .qty-step-btn {
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-sheet-qty-row input {
    width: 64px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    text-align: center;
}

.product-sheet-qty-row #sheetAddBtn {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.product-sheet-open {
    overflow: hidden;
}

html.has-product-video-open .menu-back-top-btn,
body.product-sheet-open .menu-back-top-btn,
body.menu-cart-open .menu-back-top-btn {
    display: none !important;
}

.product-sheet-qty-label {
    display: block;
    margin: 0 0 5px;
    color: #3b2b24;
    font-size: 13px;
    font-weight: 700;
}

.product-sheet-qty-label[hidden] {
    display: none;
}

.additional-quantity-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.additional-quantity-controls {
    display: none;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.additional-quantity-option.is-selected .additional-quantity-controls {
    display: inline-flex;
}

.additional-quantity-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
}

.additional-quantity-controls b {
    min-width: 18px;
    text-align: center;
}

.additional-quantity-option.is-out-of-stock {
    cursor: default;
    opacity: .62;
    background: #f5f5f5;
}

.additional-unavailable-label {
    flex: 0 0 auto;
    color: #9b2c2c;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 720px) {
    .product-sheet {
        left: 0;
        right: auto;
        top: auto;
        bottom: 0;
        width: 100vw;
        height: auto;
        border-radius: 14px 14px 0 0;
        border-left: 0;
        border: 1px solid #eadac9;
        max-height: calc(100vh - 18px);
        max-height: calc(100dvh - 18px);
        padding: 14px 8px 12px 14px;
        transform: translateY(105%);
        opacity: 1;
        overflow: auto;
        display: flex;
        flex-direction: column;
    }

    .product-sheet.is-half-mode {
        top: max(4px, env(safe-area-inset-top));
        bottom: auto;
        height: calc(100vh - max(4px, env(safe-area-inset-top)));
        height: calc(100dvh - max(4px, env(safe-area-inset-top)));
        max-height: calc(100vh - max(4px, env(safe-area-inset-top)));
        max-height: calc(100dvh - max(4px, env(safe-area-inset-top)));
        padding-top: 10px;
        padding-bottom: 0;
        border-radius: 12px 12px 0 0;
    }

    .product-sheet-backdrop.is-open .product-sheet {
        transform: translateY(0);
    }

    .product-sheet-head {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 6px 10px;
        padding-right: 36px;
    }

    .product-sheet-image {
        width: 72px;
        height: 72px;
    }

    .product-sheet-head h3 {
        font-size: 1.08rem;
        line-height: 1.25;
    }

    .product-sheet-description {
        margin-top: 0;
        font-size: 0.94rem;
    }

    .product-sheet-form {
        margin-top: 10px;
        padding-top: 6px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(118px + env(safe-area-inset-bottom));
    }

    .product-sheet-footer {
        display: block;
        margin-top: auto;
        padding-top: 4px;
    }

    .product-sheet.is-half-mode .product-sheet-footer {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        margin-top: 0;
        min-height: 0;
    }

    .product-sheet.is-half-mode .product-sheet-pizza-box:not([hidden]) {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    .product-sheet.is-half-mode .product-sheet-form {
        padding-bottom: 0;
        flex: 1 1 auto;
    }

    .product-sheet.is-half-mode .pizza-half-row:not(.is-hidden) {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .product-sheet.is-half-mode .half-flavor-picker {
        flex: 1 1 auto;
        max-height: none;
        overflow-y: auto;
        padding: 0 8px 0 2px;
    }

    .product-sheet.is-half-mode .half-flavor-option {
        grid-template-columns: 40px 1fr;
        min-height: 58px;
        width: calc(100% - 12px);
        margin-left: auto;
        margin-right: auto;
        padding: 7px 8px;
    }

    .product-sheet.is-half-mode .half-flavor-media {
        width: 40px;
        height: 40px;
    }

    .product-sheet.is-half-mode .half-flavor-name {
        font-size: 0.82rem;
        line-height: 1.12;
    }

    .product-sheet.is-half-mode .half-flavor-text {
        gap: 2px;
    }

    .product-sheet.is-half-mode .half-flavor-description {
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .product-sheet-actions {
        position: static;
        background: #fff;
        margin-top: 8px;
        padding: 0 0 calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .product-sheet.is-half-mode .product-sheet-actions {
        margin-top: 8px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .product-sheet-qty-row {
        grid-template-columns: 36px 68px 36px 1fr !important;
    }

    .product-sheet-form {
        margin-top: 10px;
        padding-top: 6px;
    }

.product-sheet-form > label:first-of-type {
    margin-top: 0;
}
}

.product-edit-backdrop {
    display: none !important;
}

.product-edit-backdrop.is-current-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9000 !important;
}

.product-edit-backdrop.is-current-modal .product-edit-modal {
    position: fixed !important;
    z-index: 9001 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.store-hours-close,
.menu-search-clear,
.menu-cart-close,
.perimeter-streets-close,
.pdv-pizza-modal-close,
.product-sheet-close,
.btn.ui-cancel[data-modal-close][aria-label="Fechar"] {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid #e7cdbb;
    border-radius: 999px;
    background: #fff8f2;
    color: #8f2a14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(92, 41, 16, 0.08);
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.store-hours-close::before,
.menu-search-clear::before,
.menu-cart-close::before,
.perimeter-streets-close::before,
.pdv-pizza-modal-close::before,
.product-sheet-close::before,
.btn.ui-cancel[data-modal-close][aria-label="Fechar"]::before {
    content: "\00d7";
    display: block;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.store-hours-close:hover,
.store-hours-close:focus-visible,
.menu-search-clear:hover,
.menu-search-clear:focus-visible,
.menu-cart-close:hover,
.menu-cart-close:focus-visible,
.perimeter-streets-close:hover,
.perimeter-streets-close:focus-visible,
.pdv-pizza-modal-close:hover,
.pdv-pizza-modal-close:focus-visible,
.product-sheet-close:hover,
.product-sheet-close:focus-visible,
.btn.ui-cancel[data-modal-close][aria-label="Fechar"]:hover,
.btn.ui-cancel[data-modal-close][aria-label="Fechar"]:focus-visible {
    background: #fee7d3;
    border-color: #f4b277;
    color: #7c1d12;
    box-shadow: 0 8px 18px rgba(92, 41, 16, 0.14);
}

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

/* Mantém o vídeo fora da foto no card compacto do celular. */
@media (max-width: 720px) {
    .menu-category-grid .product-media:has(.product-video-button) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding-top: 0;
    }

    .menu-category-grid .product-media:has(.product-video-button) .product-image {
        flex: 0 1 76px;
        max-width: 104px;
        max-height: 76px;
    }

    .menu-category-grid .product-video-button,
    .menu-category-grid .product-video-button:hover {
        position: static;
        flex: none;
        min-height: 21px;
        padding: 2px 6px;
        gap: 3px;
        font-size: .58rem;
        line-height: 1;
        transform: none;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
    }

    .menu-category-grid .product-video-button svg {
        width: 12px;
        height: 12px;
    }
}
.filter-reset-round.btn,
.filter-reset-round.ui-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d8dde3;
    background: #f7f8fa;
    color: #68717d;
    box-shadow: none;
}

.filter-reset-round svg {
    width: 17px;
    height: 17px;
}

.filter-reset-round.btn:hover,
.filter-reset-round.ui-cancel:hover {
    background: #eceff3;
    color: #303844;
    border-color: #c7cdd5;
}

form[data-auto-filter="1"] input[name="q"],
form[data-auto-filter="1"] input[type="search"] {
    padding-right: 34px;
}

button.text-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
}

button.text-action-icon svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.additional-create-row > button {
    height: 40px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
}

.category-crud-actions,
.border-crud-actions,
.additional-crud-actions {
    gap: 6px;
}

.category-crud-actions button:not(.text-action-icon),
.border-crud-actions button:not(.text-action-icon),
.additional-crud-actions button:not(.text-action-icon) {
    min-width: 60px;
    min-height: 32px;
    height: 32px;
    padding: 5px 10px;
    font-size: 13px;
}

.crud-modal-head {
    margin-bottom: 16px;
}

.crud-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #3a2a20;
    box-shadow: none;
    font-size: 25px;
    line-height: 1;
}

.crud-modal-close:hover {
    background: #f4eee9;
    color: #b42318;
}

.crud-modal-close svg {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    pointer-events: none;
}

.category-crud-modal .category-create-form,
.category-crud-modal .category-crud-item,
.border-crud-modal .border-crud-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.category-crud-modal .category-create-form {
    padding: 0 0 12px;
}

.category-crud-modal .category-crud-item,
.border-crud-modal .border-crud-item {
    padding: 6px 0;
}

.border-crud-modal .border-create-row,
.category-crud-modal .product-modal-actions,
.border-crud-modal .product-modal-actions {
    border: 0;
}

/* Navegação lateral do painel administrativo. */
.admin-sidebar-toggle{display:none}
@media(min-width:901px){
body.has-admin-sidebar{--admin-sidebar-width:250px;padding-left:var(--admin-sidebar-width);transition:padding-left .2s ease}
body.has-admin-sidebar>.topbar{width:calc(100% + var(--admin-sidebar-width));margin-left:calc(var(--admin-sidebar-width) * -1)}
body.has-admin-sidebar .admin-sidebar-toggle{display:grid;gap:4px;place-content:center;width:38px;height:38px;margin-left:10px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:7px;background:rgba(255,255,255,.12);cursor:pointer}
body.has-admin-sidebar .admin-sidebar-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:#fff}
body.has-admin-sidebar .admin-sidebar-nav{position:fixed;z-index:1040;top:var(--topbar-height,54px);bottom:0;left:0;display:flex!important;width:var(--admin-sidebar-width);max-width:none;padding:14px 10px 24px;flex-direction:column;align-items:stretch;gap:4px;overflow-x:hidden;overflow-y:auto;background:#202b36;box-shadow:5px 0 20px rgba(16,27,38,.16)}
body.has-admin-sidebar .admin-sidebar-nav>a,body.has-admin-sidebar .admin-sidebar-nav>.topbar-submenu>.topbar-submenu-trigger{display:flex!important;align-items:center;justify-content:flex-start;width:100%;min-height:42px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:#dce4eb;text-align:left;font-size:.82rem;font-weight:700;white-space:nowrap}
body.has-admin-sidebar .admin-sidebar-nav>a:hover,body.has-admin-sidebar .admin-sidebar-nav>a.is-active,body.has-admin-sidebar .admin-sidebar-nav>.topbar-submenu>.topbar-submenu-trigger:hover,body.has-admin-sidebar .admin-sidebar-nav>.topbar-submenu>.topbar-submenu-trigger.is-active{background:#087df2;color:#fff}
body.has-admin-sidebar .admin-sidebar-nav>.topbar-submenu{position:relative;display:block!important;width:100%}
body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu-panel{position:static!important;display:none;width:100%;min-width:0;margin:3px 0 7px;padding:5px;border:0;border-radius:7px;background:#17212b;box-shadow:none;transform:none}
body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu.is-open>.topbar-submenu-panel{display:grid}
body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu-panel a,body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu-panel button{min-height:36px;padding:9px 12px;border-radius:5px;color:#cbd5de;font-size:.77rem}
body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu-panel a:hover,body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu-panel a.is-active{background:#2a3947;color:#fff}
body.has-admin-sidebar.admin-sidebar-collapsed{--admin-sidebar-width:0px}
body.has-admin-sidebar.admin-sidebar-collapsed .admin-sidebar-nav{transform:translateX(-100%)}
}
@media(max-width:900px){
body.has-admin-sidebar .admin-sidebar-toggle{display:grid;gap:4px;place-content:center;width:38px;height:38px;margin-left:8px;padding:0;border:0;border-radius:7px;background:rgba(255,255,255,.15)}
body.has-admin-sidebar .admin-sidebar-toggle span{display:block;width:18px;height:2px;background:#fff}
body.has-admin-sidebar .admin-sidebar-nav{position:fixed!important;z-index:1200;top:var(--topbar-height,54px);bottom:0;left:0;display:flex!important;width:min(290px,86vw)!important;padding:14px 10px 24px;flex-direction:column;align-items:stretch;gap:4px;overflow-y:auto;background:#202b36;transform:translateX(-105%);transition:transform .2s ease}
body.has-admin-sidebar.admin-sidebar-mobile-open .admin-sidebar-nav{transform:translateX(0)}
body.has-admin-sidebar .admin-sidebar-nav>a,body.has-admin-sidebar .admin-sidebar-nav>.topbar-submenu>.topbar-submenu-trigger{display:flex!important;width:100%;min-height:42px;align-items:center;padding:0 14px;border:0;border-radius:7px;background:transparent;color:#fff;text-align:left}
body.has-admin-sidebar .admin-sidebar-nav>.topbar-submenu{display:block!important;width:100%}
body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu-panel{position:static!important;display:none!important;width:100%;margin:3px 0;padding:5px;background:#17212b;box-shadow:none}
body.has-admin-sidebar .admin-sidebar-nav .topbar-submenu.is-open>.topbar-submenu-panel{display:grid!important}
}

/* Menu superior preservado; atalhos laterais opcionais e configuráveis. */
body.has-admin-sidebar{--admin-sidebar-width:0px!important;padding-left:0!important}
body.has-admin-sidebar>.topbar{width:100%!important;margin-left:0!important}
body.has-admin-sidebar .topbar-nav{position:static!important;display:flex!important;width:auto!important;padding:0!important;flex-direction:row!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;transform:none!important}
body.has-admin-sidebar .admin-sidebar-toggle{display:grid!important}
.admin-custom-sidebar{position:fixed;z-index:1090;top:var(--topbar-height,54px);bottom:0;left:0;display:flex;width:250px;padding:0;flex-direction:column;background:#202b36;box-shadow:7px 0 24px rgba(16,27,38,.22);transform:translateX(-105%);transition:transform .2s ease}
body.admin-sidebar-open .admin-custom-sidebar{transform:translateX(0)}
.admin-custom-sidebar-head{display:flex;align-items:center;justify-content:space-between;height:55px;padding:0 16px;border-bottom:1px solid #34414d;color:#fff}.admin-custom-sidebar-head button{border:0;background:transparent;color:#bbc6cf;font-size:1.5rem;cursor:pointer}
.admin-custom-sidebar>nav{display:grid;gap:4px;padding:12px 10px;overflow:auto}.admin-custom-sidebar>nav a{display:flex;align-items:center;min-height:40px;padding:0 13px;border-radius:6px;color:#dce4eb;font-size:.8rem;font-weight:700;text-decoration:none}.admin-custom-sidebar>nav a:hover,.admin-custom-sidebar>nav a.is-active{background:#087df2;color:#fff}
.admin-sidebar-configure{height:43px;margin:auto 10px 12px;border:1px solid #42515f;border-radius:6px;background:#2a3743;color:#e4ebf1;font-weight:700;cursor:pointer}.admin-custom-sidebar.is-empty .admin-sidebar-configure{margin-top:12px}
.admin-sidebar-settings{width:min(500px,calc(100% - 28px));max-height:88vh;padding:0;border:0;border-radius:5px;background:#fff;box-shadow:0 24px 70px rgba(13,24,37,.3)}.admin-sidebar-settings::backdrop{background:rgba(25,35,45,.58)}
.admin-sidebar-settings>header{display:flex;align-items:center;justify-content:space-between;height:55px;padding:0 14px;border-bottom:1px solid #dfe4e8}.admin-sidebar-settings h2{margin:0;font-size:1.05rem}.admin-sidebar-settings>header button{border:0;background:transparent;color:#777;font-size:1.4rem;cursor:pointer}
.admin-sidebar-settings-body{max-height:calc(88vh - 125px);padding:15px;overflow:auto}.admin-sidebar-settings-body>p{margin:0 0 14px;color:#68747f;font-size:.78rem}.admin-sidebar-settings-body>[data-sidebar-options]{overflow:hidden;border:1px solid #dce2e7;border-radius:5px}
.admin-sidebar-settings-body label{display:grid;grid-template-columns:28px minmax(0,1fr) 38px;align-items:center;min-height:39px;padding:0 10px;border-bottom:1px solid #e2e6ea;cursor:pointer}.admin-sidebar-settings-body label:last-child{border-bottom:0}.sidebar-option-icon{color:#68747f;font-size:.65rem;font-weight:800}.admin-sidebar-settings-body label>span:nth-child(2){font-size:.82rem}.admin-sidebar-settings-body input{position:absolute;opacity:0}.admin-sidebar-settings-body label i{position:relative;width:25px;height:14px;border-radius:99px;background:#b9c2ca;transition:.15s}.admin-sidebar-settings-body label i:after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#fff;transition:.15s}.admin-sidebar-settings-body input:checked+i{background:#087df2}.admin-sidebar-settings-body input:checked+i:after{left:13px}
.admin-sidebar-settings>footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 14px;border-top:1px solid #dfe4e8}.admin-sidebar-settings>footer button{height:34px;padding:0 14px;border:0;border-radius:4px;background:#6c7781;color:#fff;font-weight:700;cursor:pointer}.admin-sidebar-settings>footer button.primary{background:#087df2}
@media(max-width:900px){body.has-admin-sidebar .topbar-nav{display:flex!important}.admin-custom-sidebar{width:min(280px,86vw)}}

body.has-admin-sidebar .admin-sidebar-toggle{display:grid!important;width:32px!important;height:32px!important;margin-left:8px!important;padding:0!important;place-content:center!important;gap:4px!important;border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important;transition:background .15s ease!important}
body.has-admin-sidebar .admin-sidebar-toggle:hover{background:rgba(255,255,255,.14)!important}
body.has-admin-sidebar .admin-sidebar-toggle span{display:block!important;width:17px!important;height:2px!important;border-radius:2px!important;background:#fff!important}

/* Acabamento claro e compacto do menu de atalhos. */
body.admin-sidebar-open:after{display:none!important;content:none!important}
.admin-custom-sidebar{z-index:1090!important;width:224px!important;background:#fff!important;border-right:1px solid #e0e5e9!important;box-shadow:8px 0 28px rgba(18,31,44,.18)!important}
.admin-custom-sidebar-head{height:52px!important;padding:0 15px!important;border-bottom:1px solid #e3e7eb!important;background:#f8fafc!important;color:#26323c!important}
.admin-custom-sidebar-head strong{font-size:.9rem!important}.admin-custom-sidebar-head button{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;padding:0!important;border-radius:5px!important;color:#727e89!important;line-height:1!important}.admin-custom-sidebar-head button:hover{background:#e9eef2!important;color:#26323c!important}
.admin-custom-sidebar>nav{gap:3px!important;padding:10px!important}.admin-custom-sidebar>nav a{position:relative;min-height:39px!important;padding:0 12px!important;border-radius:6px!important;color:#495661!important;font-size:.78rem!important;font-weight:700!important}
.admin-custom-sidebar>nav a:hover{background:#f0f5fa!important;color:#087df2!important}.admin-custom-sidebar>nav a.is-active{background:#e8f3ff!important;color:#087df2!important;box-shadow:inset 3px 0 #087df2!important}
.admin-sidebar-configure{align-self:flex-start!important;width:28px!important;height:28px!important;margin:auto 0 10px 10px!important;padding:0!important;border:1px solid #dce3e8!important;background:#f7f9fb!important;color:#53616d!important;font-size:.8rem!important;line-height:1!important}.admin-sidebar-configure:hover{border-color:#b9c8d4!important;background:#eef4f8!important}
@media(max-width:900px){.admin-custom-sidebar{width:min(224px,78vw)!important}}
@media(min-width:901px){
body.has-admin-sidebar.admin-sidebar-open{padding-left:224px!important;transition:padding-left .2s ease!important}
body.has-admin-sidebar.admin-sidebar-open>.topbar{width:calc(100% + 224px)!important;margin-left:-224px!important}
}
.admin-sidebar-edge-toggle{position:fixed;z-index:1100;top:calc(var(--topbar-height,54px) + 12px);left:0;display:grid;width:19px;height:32px;padding:0;place-items:center;border:1px solid #d8e0e6;border-left:0;border-radius:0 5px 5px 0;background:#fff;color:#087df2;box-shadow:2px 2px 8px rgba(24,39,53,.13);font-size:18px;line-height:1;cursor:pointer;transition:left .2s ease,background .15s ease}.admin-sidebar-edge-toggle:hover{background:#eef6ff}.admin-sidebar-edge-toggle span{display:block;transform:translateY(-1px)}
body.admin-sidebar-open .admin-sidebar-edge-toggle{left:224px}body.admin-sidebar-open .admin-sidebar-edge-toggle span{transform:rotate(180deg) translateY(1px)}
@media(max-width:900px){body.admin-sidebar-open .admin-sidebar-edge-toggle{left:min(224px,78vw)}}

.admin-sidebar-settings[open]{display:flex!important;width:min(500px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:min(680px,calc(100vh - 40px))!important;max-height:calc(100vh - 40px)!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}
.admin-sidebar-settings>header{flex:0 0 55px!important;width:100%!important;box-sizing:border-box!important}
.admin-sidebar-settings-body{flex:1 1 auto!important;min-height:0!important;width:100%!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;box-sizing:border-box!important;scrollbar-gutter:stable}
.admin-sidebar-settings-body>[data-sidebar-options]{width:100%!important;box-sizing:border-box!important}
.admin-sidebar-settings-body label{width:100%!important;box-sizing:border-box!important}
.admin-sidebar-settings>footer{flex:0 0 60px!important;width:100%!important;box-sizing:border-box!important;overflow:hidden!important;background:#fff!important}
.admin-sidebar-settings>footer{display:none!important}
body.has-admin-sidebar .topbar-nav a.admin-moved-to-sidebar{display:none!important}
body.has-admin-sidebar .topbar-nav>.topbar-submenu.admin-empty-submenu{display:none!important}
.admin-sidebar-group{display:grid}.admin-sidebar-group>button{display:flex;align-items:center;justify-content:space-between;min-height:39px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:#495661;font-size:.78rem;font-weight:800;text-align:left;cursor:pointer}.admin-sidebar-group>button:hover{background:#f0f5fa;color:#087df2}.admin-sidebar-group>button b{font-size:.9rem;transition:transform .15s}.admin-sidebar-group.is-open>button b{transform:rotate(180deg)}.admin-sidebar-group>div{display:none;padding:2px 0 5px 10px}.admin-sidebar-group.is-open>div{display:grid;gap:2px}.admin-sidebar-group>div>a{min-height:35px!important;padding-left:14px!important;font-size:.75rem!important;font-weight:650!important}
.admin-custom-sidebar .admin-sidebar-group>button{width:100%!important;min-height:38px!important;padding:0 11px!important;border:0!important;border-radius:4px!important;background:transparent!important;box-shadow:none!important;color:#46535f!important;font-family:inherit!important;font-size:.78rem!important;font-weight:750!important;line-height:1!important}.admin-custom-sidebar .admin-sidebar-group>button:hover{background:#f3f7fa!important;color:#087df2!important}.admin-sidebar-group>button b{display:block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;font-size:0!important;transform:rotate(45deg);transition:transform .16s ease}.admin-sidebar-group.is-open>button b{transform:rotate(225deg) translate(-2px,-2px)}.admin-sidebar-group>div{position:relative;margin-left:12px!important;padding:2px 0 5px 10px!important;border-left:1px solid #dce4ea}.admin-sidebar-group>div>a{border-radius:4px!important;background:transparent!important;color:#5d6974!important}.admin-sidebar-group>div>a:hover,.admin-sidebar-group>div>a.is-active{background:#edf5fd!important;color:#087df2!important;box-shadow:none!important}
.admin-custom-sidebar>nav>a,.admin-custom-sidebar .admin-sidebar-group>button,.admin-custom-sidebar .admin-sidebar-group>div>a{font-family:inherit!important;font-size:.88rem!important;font-weight:700!important;line-height:1!important}
.admin-sidebar-billing{display:grid;gap:3px;margin:9px 10px 0;padding:10px 11px;border:1px solid #dfe5ea;border-radius:6px;background:#f8fafc;color:#46535f;text-decoration:none}.admin-sidebar-billing span{font-size:.82rem;font-weight:750}.admin-sidebar-billing b{font-size:.68rem}.admin-sidebar-billing:hover{border-color:#b8c8d5;background:#f1f6fa}.admin-sidebar-billing.warning{border-color:#f2d18a;background:#fff8e8;color:#93610b}.admin-sidebar-billing.overdue{border-color:#efb7bc;background:#fff0f1;color:#b52d36}.admin-sidebar-billing.warning b,.admin-sidebar-billing.overdue b{display:block}
.admin-custom-sidebar-head .admin-sidebar-billing{width:100%;margin:0;padding:0;border:0;background:transparent}.admin-custom-sidebar-head .admin-sidebar-billing:hover{border:0;background:transparent;color:#087df2}.admin-custom-sidebar-head .admin-sidebar-billing.warning,.admin-custom-sidebar-head .admin-sidebar-billing.overdue{padding:6px 8px;border-radius:5px}

/* Mantem os botoes de acao dos cadastros na mesma linha e altura. */
.category-crud-actions,
.border-crud-actions,
.additional-crud-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 6px !important;
}

.category-crud-actions button,
.border-crud-actions button,
.additional-crud-actions button,
.category-crud-actions button.text-action-icon,
.border-crud-actions button.text-action-icon,
.additional-crud-actions button.text-action-icon {
    box-sizing: border-box !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.category-crud-actions button.text-action-icon,
.border-crud-actions button.text-action-icon,
.additional-crud-actions button.text-action-icon {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
}
/* Checkbox único em todo o sistema: pequeno e azul. */
input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 14px !important;
    min-width: 14px !important;
    height: 14px !important;
    min-height: 14px !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    border-radius: 2px !important;
    border: 1px solid #8b949e !important;
    background: #fff !important;
    accent-color: #1677ff !important;
    box-shadow: none !important;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    border-color: #1677ff !important;
    background-color: #1677ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2 5.7 10 11 4.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
}

input[type="checkbox"]::before,
input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}
