/* Hoja de estilos propia de experience. Define su presentación y variantes adaptables. */
/* Navegación con iconos */
.shell {
    display: block;
    min-height: calc(100dvh - 42px);
    --rail-width: 76px;
}
.shell.nav-expanded {
    --rail-width: 248px;
}
.shell .sidebar {
    position: sticky;
    float: left;
    top: 0;
    width: var(--rail-width);
    height: calc(100dvh - 42px);
    min-height: 0;
    padding: 24px 12px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.2s;
}
.shell .main {
    margin-left: var(--rail-width);
    min-width: 0;
    transition: margin-left 0.2s;
}
.shell .sidebar .brand {
    padding: 0;
    gap: 10px;
    font-size: 22px;
    white-space: nowrap;
    justify-content: center;
}
.shell.nav-expanded .sidebar .brand {
    justify-content: flex-start;
    padding-left: 8px;
}
.shell .sidebar .workspace {
    position: static;
    max-width: none;
    margin: 24px 0 14px;
    padding: 8px;
    background: transparent;
    border: 0;
}
.shell.nav-collapsed .workspace {
    justify-content: center;
    padding: 8px 0;
}
.shell.nav-collapsed .nav-label {
    display: none;
}
.shell .side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    white-space: normal;
    padding: 0;
    margin: 0;
}
.shell .nav-item {
    position: relative;
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 12px;
    padding: 12px;
}
.shell.nav-collapsed .nav-item {
    justify-content: center;
}
.shell .nav-item > .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.shell .nav-item .nav-label {
    font-size: 12px;
    line-height: 1.4;
}
.shell .order-badge {
    position: absolute;
    right: 2px;
    top: 2px;
    font-size: 9px;
    min-width: 16px;
    padding: 2px 4px;
}
.shell.nav-expanded .order-badge {
    position: static;
    margin-left: auto;
}
.shell .side-footer {
    margin-top: auto;
    padding: 25px 12px 0;
    line-height: 1.7;
}
.shell .topbar {
    height: 68px;
    padding: 0 26px;
}
.header-location {
    min-width: 0;
}
.sidebar-toggle {
    flex-shrink: 0;
}
.shell .content {
    max-width: 1600px;
    padding: 28px 26px;
}
.shell .breadcrumb {
    min-width: 0;
}
.shell .breadcrumb > span {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Tablero: un solo contenedor de desplazamiento y detalles en la fila. */
.order-board table {
    min-width: 920px;
}
.order-board {
    padding: 20px;
}
.order-board td {
    font-size: 12px;
    overflow-wrap: anywhere;
}
.order-board td small {
    display: block;
    font-size: 10px;
    line-height: 1.6;
    margin-top: 3px;
}
.order-board th {
    font-size: 10px;
}
.order-reference {
    font-family: monospace;
    font-size: 10px;
}
.order-item-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 220px;
    line-height: 1.5;
}
.inline-order {
    margin-top: 7px;
    max-width: 310px;
}
.inline-order summary {
    cursor: pointer;
    color: #087f6b;
    font-size: 11px;
    font-weight: 600;
}
.inline-order .order-lines {
    margin: 4px 0;
}
.inline-order .order-lines li {
    padding: 8px 0;
    font-size: 11px;
}
.inline-order .order-lines .row {
    flex-wrap: wrap;
    gap: 5px;
}
.inline-order p {
    font-size: 11px;
    line-height: 1.7;
}
.attended-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #19724f;
    font-size: 11px;
}
.attended-label svg {
    width: 15px;
}
.board-help {
    margin-top: 16px;
    line-height: 1.7;
}
.order-summary .card {
    padding: 16px;
}
.order-summary strong {
    font-size: 25px;
}
.order-board .dt-layout-row {
    flex-wrap: wrap;
}
.order-board .dt-search input {
    width: 180px;
    max-width: 100%;
}
.order-board .dt-layout-table {
    max-width: 100%;
}
/* Promociones compactas */
.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.campaign-card h2 {
    font-size: 19px;
    margin: 20px 0 10px;
}
.campaign-card p {
    font-size: 13px;
    line-height: 1.7;
    color: #61756c;
    white-space: pre-wrap;
}
.campaign-card > strong {
    display: block;
    font-size: 14px;
    margin: 16px 0 10px;
}
.campaign-card > small {
    display: block;
    line-height: 1.8;
    color: #61756c;
}
.campaign-actions {
    margin-top: 20px;
    gap: 8px;
}
.store-campaigns {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 0 22px;
    padding-bottom: 6px;
}
.store-campaign {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #edf5eb;
    border: 1px solid #dce8d9;
    min-width: 250px;
    max-width: 360px;
    flex: 1 0 250px;
    scroll-snap-align: start;
}
.store-campaign.notice {
    background: #edf3f8;
    border-color: #dce5ed;
}
.store-campaign.promotion {
    background: #fff5df;
    border-color: #f2e6c8;
}
.campaign-symbol {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffffa0;
    flex-shrink: 0;
    color: #277356;
}
.campaign-eyebrow {
    font-size: 9px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
    color: #477359;
}
.store-campaign h3 {
    font-size: 14px;
    margin: 4px 0;
    line-height: 1.4;
}
.store-campaign p {
    font-size: 11px;
    line-height: 1.5;
    color: #5d7469;
    margin: 3px 0;
    white-space: pre-wrap;
}
.store-campaign small {
    font-size: 10px;
    color: #5d7469;
}
[hidden] {
    display: none !important;
}
/* Productos y carrito */
.food-card {
    flex-direction: row;
    min-height: 134px;
}
.food-image {
    width: 125px;
    height: auto;
    min-height: 134px;
    flex-shrink: 0;
}
.food-card .food-body {
    min-width: 0;
    padding: 15px;
}
.food-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 6px 0 12px;
}
.food-card .add-food {
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 11px;
}
.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
.product-price del {
    font-size: 10px;
    color: #8a958f;
}
.product-price strong {
    font-size: 17px;
    color: var(--shop-text, #172b35);
}
.discount-dot {
    color: #087f6b;
}
.discount-dot svg {
    width: 15px;
    height: 15px;
}
.compact-product-info {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.compact-product-image {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef3e9;
}
.compact-product-image > svg {
    width: 100%;
    height: 100%;
}
.compact-product-info p {
    font-size: 12px;
    line-height: 1.7;
    color: #657a6e;
    margin: 0 0 8px;
    max-height: 80px;
    overflow: auto;
}
.compact-product {
    width: 480px;
}
.compact-product .modal-head {
    margin-bottom: 18px;
}
.compact-product .modal-head h2 {
    font-size: 22px;
}
.compact-product .product-extras {
    max-height: 220px;
    overflow: auto;
}
.compact-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #e1e9e2;
    padding-top: 18px;
    margin-top: 18px;
}
.compact-product .extra-choice {
    font-size: 12px;
    padding: 10px;
}
.product-note-details summary,
.checkout-notes summary {
    cursor: pointer;
    font-size: 12px;
    color: #45705b;
    margin-bottom: 12px;
}
.product-note-details textarea {
    min-height: 65px;
}
.cart-flight {
    position: fixed;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #087f6b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 5px 15px #164b3930;
}
.cart-flight svg {
    width: 22px;
    height: 22px;
}
.cart-bump {
    animation: cart-bump 0.45s ease;
}
@keyframes cart-bump {
    40% {
        transform: scale(1.07);
    }
    75% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}
/* Un solo formulario para finalizar */
.checkout-dialog {
    width: 600px;
}
.checkout-dialog .modal-head {
    margin-bottom: 14px;
}
.checkout-dialog .modal-head h2 {
    font-size: 24px;
}
.checkout-items-list {
    margin-bottom: 14px;
}
.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ed;
    font-size: 12px;
}
.checkout-item .grow {
    min-width: 0;
}
.checkout-item small {
    display: block;
    font-size: 10px;
    color: #738477;
    line-height: 1.5;
}
.checkout-item > .qty {
    flex-shrink: 0;
}
.checkout-item > .qty button {
    min-width: 28px;
}
.checkout-item > strong {
    min-width: 65px;
    text-align: right;
    white-space: nowrap;
}
.checkout-preparation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    background: #edf6ed;
    border-radius: 9px;
    padding: 11px 13px;
    color: #376c50;
    font-size: 12px;
    margin: 14px 0 20px;
}
.checkout-preparation svg {
    width: 17px;
    height: 17px;
}
.fulfillment-field {
    border: 0;
    padding: 0;
    margin: 0 0 20px;
    min-width: 0;
}
.fulfillment-field legend {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.fulfillment-switch {
    display: flex;
    position: relative;
    background: #eff3f0;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #e0e8e1;
    isolation: isolate;
}
.fulfillment-switch label {
    position: relative;
    flex: 1;
    margin: 0;
    cursor: pointer;
    min-width: 0;
}
.fulfillment-switch label > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 5px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    color: #687b6c;
    min-height: 44px;
}
.fulfillment-switch input:checked + span {
    color: #12694c;
    font-weight: 700;
}
.fulfillment-switch input:focus-visible + span {
    outline: 2px solid #087f6b;
    outline-offset: 1px;
    border-radius: 8px;
}
.fulfillment-switch svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.fulfillment-indicator {
    position: absolute;
    z-index: -1;
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: calc((100% - 10px) / 2);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 7px #253e2c12;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fulfillment-switch.is-delivery .fulfillment-indicator {
    transform: translateX(100%);
}
.fulfillment-switch.single .fulfillment-indicator {
    width: calc(100% - 10px);
    transform: none;
}
.checkout-customer .field {
    margin-bottom: 14px;
}
.checkout-notes textarea {
    min-height: 65px;
}
.checkout-final {
    margin-top: 15px;
    border-top: 1px solid #e1e9e2;
    padding-top: 16px;
}
.checkout-final #checkout-total {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    line-height: 1.9;
}
.checkout-grand {
    font-size: 20px;
    margin-top: 7px;
}
.checkout-savings {
    color: #087f6b;
}
.checkout-submit {
    width: 100%;
    margin-top: 14px;
}
.checkout-final #checkout-error {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}
.checkout-dialog input,
.checkout-dialog select {
    min-height: 42px;
}
.checkout-dialog textarea {
    min-height: 65px;
}
@media (max-width: 900px) {
    .shell .topbar {
        padding: 0 18px;
    }
    .shell .content {
        padding: 24px 18px;
    }
    .shell .breadcrumb > span {
        display: none;
    }
    .shell .sidebar {
        padding: 18px 10px;
    }
    .shell .nav-item {
        padding: 12px 9px;
    }
    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .food-image {
        width: 110px;
    }
}
@media (max-width: 680px) {
    .demo-bar {
        height: 52px;
        min-height: 52px;
        padding: 6px 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .demo-bar > span {
        width: auto;
        text-align: left;
        max-width: 60%;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .shell {
        --rail-width: 60px;
        min-height: calc(100dvh - 52px);
    }
    .shell.nav-expanded {
        --rail-width: 220px;
    }
    .shell .sidebar {
        height: calc(100dvh - 52px);
        padding: 16px 6px;
    }
    .shell .sidebar .brand {
        font-size: 19px;
    }
    .shell .brand-mark {
        width: 36px;
        height: 36px;
    }
    .shell .sidebar .workspace {
        margin: 18px 0 8px;
        padding: 4px;
    }
    .shell .workspace .avatar {
        width: 34px;
        height: 34px;
    }
    .shell .nav-item {
        min-height: 44px;
        height: auto;
        padding: 11px 9px;
    }
    .shell .side-nav {
        gap: 4px;
    }
    .shell .content {
        padding: 20px 12px;
    }
    .shell .topbar {
        height: 58px;
        padding: 0 10px;
    }
    .shell .breadcrumb {
        font-size: 11px;
    }
    .shell .topbar .btn {
        font-size: 10px;
        padding: 8px;
    }
    .shell.nav-expanded .main {
        margin-left: 60px;
    }
    .shell.nav-expanded .sidebar {
        position: fixed;
        top: 52px;
        bottom: 0;
        z-index: 35;
        box-shadow: 10px 0 35px #123a2e28;
        background: #fff;
    }
    .shell.admin.nav-expanded .sidebar {
        background: var(--navy);
    }
    .shell .page-head {
        gap: 14px;
        flex-wrap: wrap;
    }
    .shell .page-head h1 {
        font-size: 25px;
    }
    .shell .page-head p {
        font-size: 12px;
    }
    .shell .stats {
        grid-template-columns: 1fr 1fr;
    }
    .order-summary .card {
        padding: 12px;
    }
    .order-summary label {
        font-size: 10px;
    }
    .order-summary strong {
        font-size: 22px;
    }
    .order-board {
        padding: 12px;
    }
    .board-toolbar {
        gap: 10px;
    }
    .board-toolbar > .row {
        flex-wrap: wrap;
    }
    .board-toolbar select {
        max-width: 155px;
        font-size: 11px;
    }
    .order-board .dt-search input {
        width: 130px;
    }
    .marketing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .campaign-card {
        padding: 18px;
    }
    .food-grid {
        grid-template-columns: 1fr;
    }
    .food-card {
        min-height: 118px;
    }
    .food-image {
        width: 104px;
        min-height: 118px;
    }
    .food-card .food-body {
        padding: 12px;
    }
    .food-card h3 {
        font-size: 13px;
    }
    .food-card .add-food {
        min-height: 38px;
        height: 38px;
        padding: 7px 10px;
        font-size: 11px;
    }
    .store-campaigns {
        margin-bottom: 17px;
    }
    .store-campaign {
        padding: 12px;
        min-width: 250px;
        flex-basis: 250px;
    }
    .compact-product-info {
        gap: 12px;
    }
    .compact-product-image {
        width: 80px;
        height: 80px;
    }
    .compact-product .modal-head h2 {
        font-size: 20px;
    }
    .compact-product .modal-head {
        margin-bottom: 14px;
    }
    .compact-product-footer {
        margin-top: 14px;
        padding-top: 14px;
    }
    .checkout-dialog {
        padding: 20px;
    }
    .checkout-dialog .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 10px;
    }
    .checkout-dialog .form-grid .full {
        grid-column: 1/-1;
    }
    .checkout-dialog label {
        font-size: 11px;
    }
    .checkout-dialog input {
        font-size: 12px;
        padding: 10px;
    }
    .checkout-item {
        gap: 8px;
        font-size: 11px;
    }
    .checkout-item > .qty button {
        width: 25px;
        min-width: 25px;
    }
    .checkout-item > strong {
        min-width: 55px;
    }
    .checkout-preparation {
        font-size: 11px;
        margin: 12px 0 16px;
    }
    .fulfillment-switch label > span {
        font-size: 11px;
        gap: 5px;
    }
    .checkout-grand {
        font-size: 18px;
    }
}
.store-grid > section {
    min-width: 0;
}
.store-campaigns {
    max-width: 100%;
}
.store-campaign > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.store-body > .checkout-meta {
    padding: 10px 13px;
    font-size: 11px;
}
.store-header-inner > div {
    min-width: 0;
}
.store-header strong {
    overflow-wrap: anywhere;
}
@media (max-width: 680px) {
    .store-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .store-cover {
        height: 164px;
    }
    .store-cover .cover-copy {
        padding: 18px 22px;
    }
    .cover-copy h1 {
        font-size: 26px;
    }
    .store-body {
        padding-top: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .shell .sidebar,
    .shell .main,
    .fulfillment-indicator {
        transition: none;
    }
    .cart-bump {
        animation: none;
    }
}

.food-card .food-bottom {
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 680px) {
    .shell.nav-expanded .sidebar-toggle {
        position: fixed;
        left: 176px;
        top: 64px;
        z-index: 45;
        background: white;
        border: 1px solid #e1e9e2;
        border-radius: 8px;
    }
}
