/* App-like customer UI: bottom nav, header, sheets, address/map, account, orders, tracking, reviews, checkout. */

:root {
    --apato-green: #16a34a;
    --apato-amber: #f59e0b;
    --apato-red: #dc2626;
    --apato-bnav-h: 62px;
    /* Raised cart button protrudes above the bar; keep content clear of it. */
    --apato-bnav-lift: 28px;
    --apato-bnav-clearance: calc(var(--apato-bnav-h) + var(--apato-bnav-lift) + 12px + var(--apato-safe-b));
}

.apato-ico {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
}

/* IranKala's own mobile bar and checkout steps are replaced by ours. */
.bottom-nav,
.checkout-steps {
    display: none !important;
}

/* Only zero IranKala's old padding when our bottom nav is not in play. */
body.show-bottom-nav:not(.has-apato-bnav) {
    padding-bottom: 0 !important;
}

/* Bottom navigation (phones): active item gets a tinted pill, the cart sits raised in the middle. */
.apato-bnav {
    display: none;
}

@media (max-width: 768px) {
    html {
        scroll-padding-bottom: var(--apato-bnav-clearance);
    }

    body.apato-shell.has-apato-bnav,
    body.has-apato-bnav {
        padding-bottom: var(--apato-bnav-clearance) !important;
    }

    .apato-bnav {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 9990;
        display: flex;
        align-items: stretch;
        height: calc(var(--apato-bnav-h) + var(--apato-safe-b));
        padding: 0 6px var(--apato-safe-b);
        background: rgba(255, 255, 255, 0.96);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -1px 0 rgba(17, 24, 39, 0.05), 0 -8px 28px rgba(17, 24, 39, 0.08);
        direction: rtl;
        font-family: var(--apato-font, iranyekan, inherit);
        backdrop-filter: saturate(1.6) blur(12px);
        -webkit-backdrop-filter: saturate(1.6) blur(12px);
    }

    body.has-apato-bnav .apato-toast {
        bottom: calc(var(--apato-bnav-clearance) + 8px);
    }
}

.apato-bnav__item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #8a909c;
    font: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.apato-bnav__item:hover,
.apato-bnav__item:focus-visible {
    color: var(--apato-text);
}

.apato-bnav__label {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.apato-bnav__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.apato-bnav__icon .apato-ico {
    width: 22px;
    height: 22px;
}

.apato-bnav__item:active .apato-bnav__icon {
    transform: scale(0.92);
}

.apato-bnav__item.is-active {
    color: var(--apato-primary);
    font-weight: 800;
}

.apato-bnav__item.is-active .apato-bnav__icon {
    background: rgba(255, 0, 166, 0.1);
    background: color-mix(in srgb, var(--apato-primary) 12%, transparent);
}

/* Cart: raised round button in the middle of the bar. */
.apato-bnav__item--cart .apato-bnav__icon {
    width: 54px;
    height: 54px;
    margin-top: -26px;
    border: 4px solid #fff;
    background: var(--apato-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 0, 166, 0.32);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--apato-primary) 35%, transparent);
    box-sizing: border-box;
}

.apato-bnav__item--cart.is-active .apato-bnav__icon {
    background: var(--apato-primary);
}

.apato-bnav__item--cart .apato-bnav__icon .apato-ico {
    width: 24px;
    height: 24px;
}

.apato-bnav__icon .apato-cart-count {
    position: absolute;
    top: -2px;
    right: 6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    box-sizing: content-box;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
}

.apato-bnav__item--cart .apato-bnav__icon .apato-cart-count {
    top: -6px;
    right: -6px;
    background: #111827;
    color: #fff;
}

.apato-bnav__icon .apato-cart-count.is-empty {
    display: none;
}

.apato-bnav__dot {
    position: absolute;
    top: 2px;
    right: 10px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--apato-green);
    animation: apato-pulse 1.6s infinite;
}

@keyframes apato-pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Top bar */
.apato-topbar__inner {
    gap: 12px;
}

.apato-topbar__back {
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-inline-end: -4px;
    border-radius: 50%;
    color: var(--apato-text);
}

.apato-topbar__back:hover {
    background: var(--apato-bg);
    color: var(--apato-text);
}

.apato-addr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    padding: 5px 6px 5px 10px;
    border: 1.5px solid color-mix(in srgb, var(--apato-primary) 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--apato-primary) 8%, #fff);
    color: var(--apato-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.apato-addr:hover {
    background: color-mix(in srgb, var(--apato-primary) 14%, #fff);
}

.apato-addr__pin {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--apato-primary);
    color: #fff;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--apato-primary) 35%, transparent);
}

.apato-addr__chev {
    display: grid;
    flex: none;
    place-items: center;
    margin-inline-start: auto;
    color: var(--apato-primary);
}

.apato-addr.is-empty .apato-addr__text strong {
    color: var(--apato-primary);
}

.apato-addr.is-empty .apato-addr__pin::after {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--apato-primary);
    border-radius: 50%;
    content: "";
    animation: apato-addr-pulse 1.6s ease-out infinite;
}

@keyframes apato-addr-pulse {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.35); }
}

.apato-addr__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.apato-addr__text small {
    color: var(--apato-muted);
    font-size: 11px;
    font-weight: 600;
}

.apato-addr__text strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apato-topbar__search {
    position: relative;
    display: flex;
    align-items: center;
}

.apato-topbar__search > .apato-ico {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--apato-muted);
    pointer-events: none;
}

.apato-topbar__search input[type="search"] {
    padding-inline-start: 40px;
}

.apato-topbar__btn {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 768px) {
    /*
     * Mobile chrome = two locked rows:
     *  1) logo + tools (icons never wrap or drop)
     *  2) full-width address (long text truncates with a soft fade)
     */
    .apato-topbar {
        border-bottom-color: transparent;
        box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
    }

    .apato-topbar__inner {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        padding: 8px 12px 10px;
    }

    .apato-topbar__brandrow {
        display: flex !important;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 40px;
    }

    .apato-topbar__back {
        display: grid;
        flex: 0 0 auto;
    }

    .home .apato-topbar__back,
    .apato-shell.home .apato-topbar__back,
    .woocommerce-account .apato-topbar__back {
        display: none;
    }

    .apato-topbar__logo {
        flex: 1 1 auto;
        gap: 0;
        min-width: 0;
        max-width: calc(100% - 96px);
    }

    .apato-topbar__logo-mark {
        height: 34px;
        width: 34px;
        flex: 0 0 auto;
    }

    .apato-topbar__brand {
        font-size: 17px;
    }

    .apato-topbar__brand-img {
        height: 22px;
        max-width: 88px;
        margin-inline-start: -2px;
        flex: 0 1 auto;
        min-width: 0;
    }

    /* Tools stay pinned on the start (LTR left / RTL left-of-logo side); never wrap. */
    .apato-topbar__tools {
        display: inline-flex !important;
        flex: 0 0 auto;
        flex-shrink: 0;
        align-items: center;
        gap: 6px;
        margin-inline-start: auto;
    }

    .apato-topbar__tools .apato-icon-btn {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }

    .apato-topbar__tools .apato-icon-btn .apato-ico {
        width: 18px;
        height: 18px;
    }

    /* Address is its own full-width row — long copy cannot shove icons. */
    .apato-addr {
        display: flex;
        flex: 0 0 auto;
        order: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        gap: 8px;
        padding: 7px 10px 7px 12px;
        box-sizing: border-box;
        border-width: 1px;
        background: color-mix(in srgb, var(--apato-primary) 6%, #fff);
    }

    .apato-addr__pin {
        width: 28px;
        height: 28px;
        box-shadow: 0 2px 8px color-mix(in srgb, var(--apato-primary) 28%, transparent);
    }

    .apato-addr__text {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        /* Soft fade at the truncated end (inline-start in RTL = left). */
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 18px);
        mask-image: linear-gradient(to left, transparent 0, #000 18px);
    }

    .apato-addr__text small {
        font-size: 10px;
        letter-spacing: 0;
        line-height: 1.2;
    }

    .apato-addr__text strong {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .apato-topbar__account,
    .apato-topbar__cart,
    .apato-topbar__explore {
        display: none !important;
    }

    .apato-topbar__actions {
        display: none !important;
    }

    .apato-topbar__search {
        width: 100%;
        order: 0;
    }

    .apato-topbar__search input[type="search"] {
        padding-block: 10px;
        font-size: 14px;
    }

    /* Hero already has search — hide the topbar duplicate on listing pages. */
    .apato-shell:has(.apato-search--live) .apato-topbar__search,
    .apato-shell:has(.apato-hero .apato-search) .apato-topbar__search {
        display: none;
    }

    /* Account/cart/checkout pages: title bar is enough, no search row. */
    .apato-shell .apato-page ~ * .apato-topbar__search,
    body.woocommerce-account .apato-topbar__search,
    body.woocommerce-checkout .apato-topbar__search,
    body.woocommerce-cart .apato-topbar__search {
        display: none;
    }
}

/* Generic bits */
.apato-icon-btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--apato-muted);
    cursor: pointer;
}

.apato-icon-btn:hover {
    background: var(--apato-bg);
    color: var(--apato-text);
}

.apato-round-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--apato-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.apato-round-btn--call {
    background: var(--apato-green);
    color: #fff;
}

.apato-round-btn--call:hover {
    color: #fff;
}

.apato-fav.is-active {
    color: var(--apato-primary);
}

.apato-fav.is-active .apato-ico {
    fill: currentColor;
}

.apato-btn {
    gap: 6px;
    line-height: 1.4;
    transition: background 0.15s, transform 0.1s;
}

.apato-btn:active {
    transform: scale(0.98);
}

.apato-btn--ghost {
    background: #fff;
    color: var(--apato-primary);
    box-shadow: inset 0 0 0 1.5px var(--apato-primary);
}

.apato-btn--ghost:hover {
    background: #fff0f9;
    color: var(--apato-primary);
}

.apato-btn--light {
    background: var(--apato-bg);
    color: var(--apato-text);
}

.apato-btn--light:hover {
    background: #eceef2;
    color: var(--apato-text);
}

.apato-btn--sm {
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.apato-pulse {
    animation: apato-pulse 1.6s infinite;
}

.apato-empty-state {
    padding: 48px 16px;
    color: var(--apato-muted);
    text-align: center;
}

.apato-empty-state .apato-ico {
    color: #d1d5db;
}

.apato-empty-state h2 {
    margin: 14px 0 6px;
    color: var(--apato-text);
    font-size: 17px;
    font-weight: 800;
}

.apato-empty-state p {
    margin: 0 0 18px;
    font-size: 14px;
}

.apato-card-box {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-card-box h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
}

.apato-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffe4f5;
    color: var(--apato-primary);
    font-size: 17px;
    font-weight: 800;
}

.apato-avatar--lg {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.apato-stars {
    position: relative;
    display: inline-block;
    color: #e5e7eb;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1;
}

.apato-stars::before {
    content: "★★★★★";
}

.apato-stars::after {
    content: "★★★★★";
    position: absolute;
    top: 0;
    right: 0;
    width: var(--v, 0%);
    overflow: hidden;
    color: #f5a623;
    white-space: nowrap;
}

.is-flash {
    animation: apato-flash 1.6s ease-out;
}

@keyframes apato-flash {
    0%, 30% { box-shadow: 0 0 0 3px var(--apato-primary), var(--apato-shadow); }
    100% { box-shadow: var(--apato-shadow); }
}

/* Sheets: back button, fields */
.apato-sheet__back {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--apato-text);
    cursor: pointer;
}

.apato-sheet__back[hidden] {
    display: none;
}

.apato-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apato-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.apato-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.apato-field > span {
    color: var(--apato-muted);
    font-size: 13px;
    font-weight: 600;
}

.apato-field input,
.apato-field textarea,
.apato-rate textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
    background: #fff;
    color: var(--apato-text);
    font: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    resize: vertical;
}

.apato-field input:focus,
.apato-field textarea:focus,
.apato-rate textarea:focus {
    border-color: var(--apato-primary);
}

.apato-field .apato-chips {
    margin: 0;
}

.apato-form__error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
}

.apato-form__error[hidden] {
    display: none;
}

/* Address list */
.apato-addr-list:empty,
.apato-addr-page:empty {
    display: none;
}

.apato-addr-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    padding: 4px 4px 4px 0;
    border: 1px solid var(--apato-border);
    border-radius: 14px;
    background: #fff;
}

.apato-addr-item.is-selected {
    border-color: var(--apato-primary);
    background: #fff7fc;
}

.apato-addr-item__main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    background: none;
    color: var(--apato-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.apato-addr-item__radio {
    flex: 0 0 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
}

.is-selected .apato-addr-item__radio {
    border: 6px solid var(--apato-primary);
}

.apato-addr-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.7;
}

.apato-addr-item__text strong {
    font-size: 14px;
}

.apato-addr-item__text small {
    color: var(--apato-muted);
}

.apato-addr-empty {
    padding: 24px 0;
    color: var(--apato-muted);
    text-align: center;
}

.apato-addr-empty .apato-ico {
    color: #d1d5db;
}

/* Map picker */
.apato-addr-sheet:has([data-addr-view="map"]:not([hidden])) .apato-sheet__panel {
    height: min(88vh, 88dvh);
    max-height: none;
}

.apato-addr-mapview:not([hidden]) {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apato-map-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.apato-map-search > .apato-ico {
    position: absolute;
    inset-inline-start: 12px;
    color: var(--apato-muted);
}

.apato-map-search input {
    width: 100%;
    padding: 10px 14px 10px 14px;
    padding-inline-start: 38px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
    background: var(--apato-bg);
    font: inherit;
    outline: none;
}

.apato-map-search__results {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline: 0;
    z-index: 1001;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.16);
}

.apato-map-search__results[hidden] {
    display: none;
}

.apato-map-search__results button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--apato-border);
    background: none;
    color: var(--apato-text);
    font: inherit;
    font-size: 13px;
    text-align: start;
    cursor: pointer;
}

.apato-map-search__results p {
    margin: 0;
    padding: 12px 14px;
    color: var(--apato-muted);
    font-size: 13px;
}

.apato-map-search__results button small {
    display: block;
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-map {
    position: relative;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
    border-radius: 14px;
    background: #e5e7eb;
}

.apato-map__pin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 500;
    color: var(--apato-primary);
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    transition: transform 0.15s;
}

.apato-map.is-moving .apato-map__pin {
    transform: translate(-50%, calc(-100% - 10px));
}

.apato-map__pin .apato-ico {
    fill: currentColor;
    stroke: #fff;
}

.apato-map__locate {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    z-index: 500;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--apato-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.is-locating .apato-map__locate {
    color: var(--apato-primary);
    animation: apato-spin 1s linear infinite;
}

@keyframes apato-spin {
    to { transform: rotate(360deg); }
}

.apato-map__hint {
    margin: 10px 0 0;
    color: var(--apato-muted);
    font-size: 13px;
    text-align: center;
}

.apato-map .leaflet-container,
.apato-track__map .leaflet-container {
    font-family: inherit;
}

/* Search sheet */
.apato-search-sheet .apato-sheet__panel {
    height: 100%;
    height: 100dvh;
    border-radius: 0;
}

.apato-search-sheet__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-top: calc(10px + var(--apato-safe-t));
    border-bottom: 1px solid var(--apato-border);
}

.apato-search-sheet__bar input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
    background: var(--apato-bg);
    font: inherit;
    outline: none;
}

.apato-search-sheet__bar input[type="search"]:focus {
    border-color: var(--apato-primary);
    background: #fff;
}

[data-search-body].is-loading {
    opacity: 0.55;
}

.apato-search-page__products {
    padding: 4px 12px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-search__group {
    margin-bottom: 18px;
}

.apato-search__group h3 {
    margin: 0 0 8px;
    color: var(--apato-muted);
    font-size: 13px;
    font-weight: 700;
}

.apato-search__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apato-search__head button {
    border: 0;
    background: none;
    color: var(--apato-primary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.apato-search__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--apato-border);
    color: var(--apato-text);
    text-decoration: none;
}

.apato-search__row:hover {
    color: var(--apato-primary);
}

.apato-search__img {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--apato-bg);
    color: var(--apato-primary);
    font-weight: 800;
}

.apato-search__img--sq {
    border-radius: 10px;
}

.apato-search__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-search__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.apato-search__text strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apato-search__text small {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-search__text .is-open {
    color: var(--apato-green);
}

.apato-search__price {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
}

.apato-search__hint {
    padding: 32px 0;
    color: var(--apato-muted);
    text-align: center;
}

.apato-search__all {
    display: block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--apato-bg);
    color: var(--apato-primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 761px) {
    .apato-search-sheet .apato-sheet__panel {
        height: min(80vh, 680px);
        border-radius: 20px;
    }
}

/* Store rows with favorite heart; discount badges */
.apato-store-wrap {
    position: relative;
}

.apato-store-wrap[hidden] {
    display: none;
}

.apato-store__logo {
    position: relative;
}

.apato-store__off {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    background: var(--apato-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.apato-fav--row {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    cursor: pointer;
}

.apato-store-wrap:has(.apato-fav--row) .apato-store {
    padding-inline-end: 52px;
}

.apato-card__off {
    position: absolute;
    z-index: 1;
    bottom: 10px;
    inset-inline-end: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--apato-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

/* Home extras */
.apato-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 12px 14px;
    border-radius: var(--apato-radius);
    background: #fff;
    color: var(--apato-text);
    box-shadow: var(--apato-shadow);
    text-decoration: none;
}

.apato-home > .apato-banner {
    margin-inline: 16px;
}

@media (min-width: 1232px) {
    .apato-home > .apato-banner {
        margin-inline: auto;
    }
}

.apato-banner:hover {
    color: var(--apato-text);
}

.apato-banner__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffe4f5;
    color: var(--apato-primary);
}

.apato-banner--live {
    background: linear-gradient(135deg, #ecfdf5, #fff);
    box-shadow: inset 0 0 0 1.5px #bbf7d0, var(--apato-shadow);
}

.apato-banner--live .apato-banner__icon {
    background: var(--apato-green);
    color: #fff;
}

.apato-banner__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.apato-banner__text strong {
    font-size: 14px;
    font-weight: 800;
}

.apato-banner__text small {
    overflow: hidden;
    color: var(--apato-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apato-banner__cta {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--apato-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.apato-banner--live .apato-banner__cta {
    background: var(--apato-green);
}

.apato-promo {
    margin-top: 16px;
}

.apato-promo__track {
    display: flex;
    gap: 10px;
    margin-inline: -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
}

.apato-promo__track::-webkit-scrollbar {
    display: none;
}

.apato-promo__slide {
    position: relative;
    flex: 0 0 88%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: var(--apato-radius);
    background: var(--apato-border);
    scroll-snap-align: start;
}

.apato-promo__slide:only-child {
    flex-basis: 100%;
}

.apato-promo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-promo__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.apato-promo__dots[hidden] {
    display: none;
}

.apato-promo__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #d1d5db;
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
}

.apato-promo__dots button.is-active {
    width: 18px;
    background: var(--apato-primary);
}

@media (min-width: 768px) {
    .apato-promo__slide {
        flex-basis: calc(50% - 5px);
    }

    .apato-promo__track {
        margin-inline: 0;
        padding: 0;
        scroll-padding-inline: 0;
    }
}

.apato-rail {
    margin-top: 28px;
}

.apato-home > .apato-rail + .apato-rail,
.apato-home > .apato-promo + .apato-rail,
.apato-home > .apato-banner + .apato-rail {
    margin-top: 22px;
}

.apato-rail__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.apato-rail__head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.apato-rail__track {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 2px 16px 10px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.apato-rail__track::-webkit-scrollbar {
    display: none;
}

.apato-rail__track > * {
    scroll-snap-align: start;
}

.apato-rail__track > .apato-card {
    flex: 0 0 min(300px, 78%);
}

.apato-mini-store {
    display: flex;
    flex: 0 0 76px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--apato-text);
    text-decoration: none;
}

.apato-mini-store__logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: var(--apato-primary);
    font-size: 22px;
    font-weight: 800;
    box-shadow: var(--apato-shadow);
}

.apato-mini-store__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-mini-store.is-closed .apato-mini-store__logo {
    filter: grayscale(1);
    opacity: 0.6;
}

.apato-mini-store__name {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apato-offer {
    display: flex;
    flex: 0 0 150px;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    border-radius: var(--apato-radius);
    background: #fff;
    color: var(--apato-text);
    box-shadow: var(--apato-shadow);
    text-decoration: none;
}

.apato-offer:hover {
    color: var(--apato-text);
}

.apato-offer__img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    margin-bottom: 4px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--apato-bg);
}

.apato-offer__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

.apato-offer__off,
.apato-item__off {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    padding: 1px 7px;
    border-radius: 8px;
    background: var(--apato-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.apato-flash {
    margin-inline: 12px;
    padding: 12px 0 4px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff1f0, #fff7e6);
}

.apato-flash .apato-rail__head h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c2410c;
}

.apato-flash__timer {
    padding: 3px 10px;
    border-radius: 10px;
    background: #c2410c;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.apato-flash__timer:empty {
    display: none;
}

.apato-offer__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.apato-offer__store {
    color: var(--apato-muted);
    font-size: 11px;
}

.apato-offer__price {
    margin-top: auto;
    font-size: 13px;
}

.apato-offer__price del {
    display: block;
    color: var(--apato-muted);
    font-size: 11px;
}

.apato-offer__until,
.apato-item__until {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
    color: #c2410c;
    font-size: 11px;
    font-weight: 700;
}

.apato-offer__until svg {
    fill: currentColor;
    flex: none;
}

.apato-opt__price del {
    font-size: 11px;
}

.apato-opt__off {
    padding: 1px 5px;
    border-radius: 6px;
    background: var(--apato-primary, #e11d48);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* Restaurant page additions */
.apato-rest__tools {
    position: absolute;
    z-index: 1;
    top: 14px;
    inset-inline-end: 16px;
    display: flex;
    gap: 8px;
}

.apato-rest__hero-card {
    position: relative;
    z-index: 1;
}

.apato-rest__head {
    flex: 1;
    min-width: 0;
}

.apato-rest__rating,
.apato-rest__info-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--apato-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.apato-rest__rating:hover,
.apato-rest__info-btn:hover {
    background: var(--apato-bg);
}

.apato-rest__info-btn {
    color: var(--apato-muted);
}

.apato-rest__meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.apato-rest__meta .apato-rest__off {
    background: #ffe4f5;
    color: var(--apato-primary);
    font-weight: 700;
}

.apato-rest__closed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.8;
}

label.apato-rest__search {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

label.apato-rest__search > .apato-ico {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--apato-muted);
}

label.apato-rest__search input {
    flex: 1;
    min-width: 0;
    padding: 10px 18px;
    padding-inline-start: 40px;
    border: 0;
    background: transparent;
    font: inherit;
    outline: none;
    box-shadow: none;
}

.apato-item {
    position: relative;
    cursor: pointer;
    align-items: stretch;
}

.apato-item__text {
    justify-content: flex-start;
}

.apato-item .apato-item__foot {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0;
    max-width: 96px;
    text-align: end;
}

.apato-item .apato-item__price {
    display: block;
    line-height: 1.5;
}

.apato-item .apato-item__name {
    line-height: 1.6;
}

.apato-extras {
    max-height: 55vh;
    margin-bottom: 12px;
    overflow-y: auto;
}

.apato-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
}

.apato-extra__img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.apato-extra__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
}

.apato-extra__text span {
    color: var(--apato-muted);
    font-size: 13px;
}

.apato-item__media {
    position: relative;
    flex: 0 0 104px;
    align-self: flex-start;
}

.apato-item__media .apato-item__img {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 12px;
}

.apato-item__off--inline {
    top: 10px;
    inset-inline-start: 10px;
}

.apato-item-sheet .apato-item-sheet__panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: min(92vh, 920px);
    max-height: min(92vh, 92dvh);
    padding: 0;
    border-radius: 24px 24px 0 0;
    background: #fff;
}

@media (min-width: 761px) {
    .apato-item-sheet .apato-item-sheet__panel {
        height: min(86vh, 820px);
        max-height: min(86vh, 820px);
        border-radius: 24px;
    }
}

.apato-item-sheet__close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.apato-fav-dishes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apato-fav-dish {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.apato-fav-dish__link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.apato-fav-dish__img {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.apato-fav-dish__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-fav-dish__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.apato-fav-dish__body small {
    color: var(--apato-muted, #6b7280);
}

.apato-fav-dish__price {
    font-weight: 700;
    font-size: 14px;
}

.apato-fav-dish .apato-fav {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--apato-muted, #9ca3af);
    cursor: pointer;
}

.apato-item-sheet__fav {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.apato-item-sheet__scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.apato-item-sheet__hero {
    position: relative;
    z-index: 0;
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 200px;
    padding: 48px 16px 16px;
    overflow: visible;
    background:
        radial-gradient(120% 80% at 50% 0%, #fff1f8 0%, #f8fafc 55%),
        #f8fafc;
}

.apato-item-sheet__hero.is-empty {
    min-height: 160px;
}

.apato-item-sheet__hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(56vh, 480px);
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.apato-item-sheet__hero-fade {
    display: none;
}

.apato-item-sheet__hero-empty {
    display: grid;
    place-items: center;
    height: 160px;
    color: #d1d5db;
}

.apato-item-sheet__main {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 4px 18px 18px;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -1px 0 #f1f5f9;
}

.apato-item-sheet__topline {
    padding-top: 8px;
    margin-bottom: 12px;
}

.apato-item-sheet__name {
    margin: 0 0 8px;
    font-size: clamp(20px, 4.5vw, 26px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.apato-item-sheet__lead {
    margin: 0 0 14px;
    color: #374151;
    font-size: 14.5px;
    line-height: 1.85;
}

.apato-item-sheet__lead p {
    margin: 0 0 0.55em;
}

.apato-item-sheet__lead p:last-child {
    margin-bottom: 0;
}

.apato-item-sheet__bodycopy {
    margin: 0 0 16px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: #fafafa;
    overflow: hidden;
}

.apato-item-sheet__more {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}

.apato-item-sheet__more-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    position: relative;
}

.apato-item-sheet__more-icon::before,
.apato-item-sheet__more-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1.5px;
    background: #6b7280;
    transform: translate(-50%, -50%);
}

.apato-item-sheet__more-icon::after {
    width: 1.5px;
    height: 8px;
}

.apato-item-sheet__bodycopy.is-open .apato-item-sheet__more-icon::after {
    display: none;
}

.apato-item-sheet__bodycopy.is-solo {
    border: 0;
    background: transparent;
    border-radius: 0;
}

.apato-item-sheet__bodycopy.is-solo .apato-item-sheet__long {
    padding: 0;
    border-top: 0;
    color: #374151;
    font-size: 14.5px;
}

.apato-item-sheet__long {
    padding: 0 14px 14px;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.9;
    border-top: 1px solid #f1f5f9;
}

.apato-item-sheet__long p {
    margin: 10px 0 0;
}

.apato-item-sheet__long p:first-child {
    margin-top: 12px;
}

.apato-item-sheet__desc {
    margin: 0 0 16px;
    color: var(--apato-muted);
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;
}

.apato-item-sheet__desc:empty,
.apato-item-sheet__desc[hidden] {
    display: none;
}

.apato-item-sheet__opts {
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid #f1f5f9;
}

.apato-item-sheet__opts-title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
}

.apato-item-sheet__foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eef2f7;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.apato-item-sheet__foot-price {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.apato-item-sheet__foot .apato-item__price {
    font-size: 18px;
    font-weight: 900;
}

.apato-item-sheet__foot-ctrl {
    flex: none;
}

.apato-item-sheet__foot .apato-add,
.apato-item-sheet__foot .apato-add--wide {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 0, 166, 0.22);
}

.apato-item-sheet__foot .apato-add--wide {
    white-space: nowrap;
}

.apato-item-sheet__foot .apato-step {
    min-height: 48px;
}

.apato-item-sheet__opts-title small {
    color: var(--apato-muted);
    font-weight: 400;
}

.apato-item__desc {
    margin: 4px 0 0;
    color: var(--apato-muted, #6b7280);
    font-size: 12.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__desc {
    -webkit-line-clamp: 2;
}

.apato-push {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apato-push[hidden] {
    display: none;
}

.apato-push__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff0f9;
    color: var(--apato-primary);
}

.apato-push__text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.7;
}

.apato-push__text strong {
    display: block;
    font-size: 14px;
}

.apato-push .apato-btn {
    flex: none;
}

.apato-addon {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
    cursor: pointer;
}

.apato-addon:has(input:checked) {
    border-color: var(--apato-primary);
    background: #fff5fb;
}

.apato-addon input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--apato-primary);
}

.apato-addon__name {
    flex: 1;
    font-size: 14px;
}

.apato-addon__price {
    color: var(--apato-muted);
    font-size: 13px;
    white-space: nowrap;
}

.apato-cart__info small {
    display: block;
}

.apato-cartbar__total {
    font-weight: 800;
}

.apato-info {
    margin: 0;
}

.apato-info > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--apato-border);
}

.apato-info > div:last-child {
    border-bottom: 0;
}

.apato-info dt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--apato-muted);
    font-size: 13px;
    font-weight: 700;
}

.apato-info dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.apato-hours {
    margin: 0;
    padding: 0;
    list-style: none;
}

.apato-hours li {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
}

.apato-hours li.is-today {
    background: #fff0f9;
    color: var(--apato-primary);
    font-weight: 800;
}

/* Reviews */
.apato-rsum {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: var(--apato-radius);
    background: var(--apato-bg);
}

.apato-rsum__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 96px;
}

.apato-rsum__score strong {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.apato-rsum__score small {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-rsum__dist {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.apato-rsum__dist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.apato-rsum__bar {
    flex: 1;
    height: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: #e5e7eb;
}

.apato-rsum__bar i {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: #f5a623;
}

.apato-reviews {
    margin: 0;
    padding: 0;
    list-style: none;
}

.apato-review {
    padding: 12px 0;
    border-bottom: 1px solid var(--apato-border);
}

.apato-review__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 14px;
}

.apato-review__head small {
    margin-inline-start: auto;
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-review__rate {
    padding: 1px 8px;
    border-radius: 8px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}

.apato-review__rate--3 {
    background: #fef3c7;
    color: #b45309;
}

.apato-review__rate--1,
.apato-review__rate--2 {
    background: #fee2e2;
    color: #b91c1c;
}

.apato-review p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.9;
}

.apato-review__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.apato-review__tags span {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--apato-bg);
    font-size: 12px;
}

.apato-review__items {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-rate {
    text-align: center;
}

.apato-rate__stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    direction: ltr;
}

.apato-rate__stars button {
    padding: 0 2px;
    border: 0;
    background: none;
    color: #e5e7eb;
    font-size: 38px;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.1s, color 0.1s;
}

.apato-rate__stars button.is-on {
    color: #f5a623;
}

.apato-rate__stars button:active {
    transform: scale(1.2);
}

.apato-rate__label {
    margin: 4px 0 12px;
    color: var(--apato-muted);
    font-size: 14px;
    font-weight: 700;
}

.apato-rate__more {
    text-align: start;
}

.apato-rate__more[hidden],
.apato-rate [hidden] {
    display: none;
}

.apato-review-done {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.apato-review-done p {
    flex-basis: 100%;
    margin: 0;
    color: var(--apato-muted);
    font-size: 13px;
}

/* Order problem report */
.apato-chat__open {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--apato-muted);
    font: inherit;
    font-size: 14px;
    text-align: start;
    cursor: pointer;
}

.apato-chat__open svg {
    fill: currentColor;
    color: var(--apato-primary);
}

.apato-chat__open span {
    flex: 1;
}

.apato-chat__open b {
    color: var(--apato-primary);
}

.apato-chat__open i,
.apato-chat .apato-chip i:not(:empty) {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    line-height: 20px;
    text-align: center;
}

.apato-chat .apato-chips {
    margin-bottom: 8px;
}

.apato-chat__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    min-height: 90px;
    padding: 4px 2px;
    overflow-y: auto;
}

.apato-chat__empty {
    margin: auto 0;
    color: var(--apato-muted);
    font-size: 13px;
    text-align: center;
}

.apato-chat__msg {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 14px 14px 14px 4px;
    background: #f3f4f6;
    align-self: flex-end;
    font-size: 14px;
    line-height: 1.8;
}

.apato-chat__msg.is-mine {
    border-radius: 14px 14px 4px 14px;
    background: #fff0f8;
    align-self: flex-start;
}

.apato-chat__msg.is-admin {
    background: #eef2ff;
}

.apato-chat__msg b {
    display: block;
    color: var(--apato-primary);
    font-size: 12px;
}

.apato-chat__msg.is-admin b {
    color: #4338ca;
}

.apato-chat__msg p {
    margin: 0;
    overflow-wrap: anywhere;
}

.apato-chat__msg time {
    display: block;
    color: var(--apato-muted);
    font-size: 11px;
    text-align: end;
}

.apato-chat__form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.apato-chat__form[hidden] {
    display: none;
}

.apato-chat__form textarea {
    flex: 1;
    min-height: 42px;
    max-height: 120px;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font: inherit;
    resize: vertical;
}

.apato-issue__open {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--apato-muted);
    font: inherit;
    font-size: 14px;
    text-align: start;
    cursor: pointer;
}

.apato-issue__open svg {
    fill: currentColor;
}

.apato-issue__open b {
    margin-inline-start: auto;
    color: var(--apato-primary);
}

.apato-issue form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apato-issue h3 {
    margin: 0;
    font-size: 16px;
}

.apato-issue__label {
    margin: 0;
    color: var(--apato-muted);
    font-size: 13px;
}

.apato-issue__photos {
    display: flex;
    gap: 8px;
}

.apato-issue__photos:empty {
    display: none;
}

.apato-issue__photo {
    position: relative;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 10px;
}

.apato-issue__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-issue__photo button {
    position: absolute;
    top: 3px;
    inset-inline-end: 3px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    line-height: 1;
    cursor: pointer;
}

.apato-issue__add {
    align-self: flex-start;
    gap: 6px;
    cursor: pointer;
}

.apato-issue__add[hidden] {
    display: none;
}

.apato-issue-done {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-inline-start: 4px solid var(--apato-amber);
}

.apato-issue-done.is-ok {
    border-color: var(--apato-green);
}

.apato-issue-done.is-bad {
    border-color: var(--apato-red);
}

.apato-issue-done strong {
    display: flex;
    align-items: center;
    gap: 6px;
}

.apato-issue-done svg {
    fill: currentColor;
}

.apato-issue__state {
    margin-inline-start: auto;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--apato-bg);
    font-size: 12px;
    font-weight: 700;
}

.apato-issue-done p {
    flex-basis: 100%;
    margin: 0;
    color: var(--apato-muted);
    font-size: 13px;
}

.apato-issue__note {
    color: var(--apato-text) !important;
}

/* Shell pages (account, cart, checkout) */
.apato-page {
    direction: rtl;
    color: var(--apato-text);
}

.apato-page__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px 40px;
}

.apato-page--received .apato-page__inner,
.apato-page--checkout .apato-page__inner {
    max-width: 760px;
}

.apato-account-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.apato-account-head h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.apato-account-head__back {
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--apato-text);
}

/* Account layout */
.apato-account {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

/* IranKala wraps the account menu in its own box with an avatar and shortcut links. */
.apato-page .woocommerce,
.apato-account > .account-navigation,
.apato-account > .apato-account__content {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.apato-account > .account-navigation {
    position: static !important;
    width: auto !important;
}

.apato-account .account-user-avatar,
.apato-account .account-custom-items {
    display: none !important;
}

.apato-account .woocommerce-MyAccount-navigation,
.apato-account .woocommerce-MyAccount-content {
    float: none;
    width: auto;
    margin: 0;
}

.apato-account__nav {
    position: sticky;
    top: calc(84px + var(--apato-safe-t));
    padding: 12px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-app-update:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--apato-border);
    border-radius: var(--apato-radius);
    background: #fff;
}

.apato-app-update > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apato-app-update small {
    color: var(--apato-muted, #6b7280);
}

.apato-app-update__msg {
    flex-basis: 100%;
    margin: 0;
    font-size: 13px;
    color: var(--apato-muted, #6b7280);
}

.apato-account__who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 14px;
    border-bottom: 1px solid var(--apato-border);
    margin-bottom: 8px;
}

.apato-account__who > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.apato-account__who small {
    color: var(--apato-muted);
    text-align: end;
}

.apato-account__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.apato-account__nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--apato-text);
    font-size: 14px;
    text-decoration: none;
}

.apato-account__nav li a:hover {
    background: var(--apato-bg);
}

.apato-account__nav li.is-active a {
    background: #fff0f9;
    color: var(--apato-primary);
    font-weight: 800;
}

.apato-account__nav li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--apato-red);
}

.apato-account__content > .woocommerce-notices-wrapper:empty {
    display: none;
}

.apato-profile__card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-tier {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: var(--apato-radius);
    background: linear-gradient(135deg, #fdf2e9, #f6e1cf);
    color: #7c3f12;
}

.apato-tier--silver {
    background: linear-gradient(135deg, #f4f5f7, #dfe3e8);
    color: #374151;
}

.apato-tier--gold {
    background: linear-gradient(135deg, #fff8db, #fde68a);
    color: #854d0e;
}

.apato-tier__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apato-tier__head > span:last-child {
    display: grid;
    gap: 2px;
}

.apato-tier__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
}

.apato-tier__bar {
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .7);
    overflow: hidden;
}

.apato-tier__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.apato-tier__hint {
    opacity: .7;
    font-size: 11px;
}

.apato-profile__who {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.apato-profile__who strong {
    font-size: 17px;
    font-weight: 800;
}

.apato-profile__who small {
    color: var(--apato-muted);
    text-align: end;
    align-self: flex-start;
}

.apato-live-order {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: var(--apato-radius);
    background: linear-gradient(135deg, #ecfdf5, #fff);
    color: var(--apato-text);
    box-shadow: inset 0 0 0 1.5px #bbf7d0;
    text-decoration: none;
}

.apato-live-order:hover {
    color: var(--apato-text);
}

.apato-live-order__pulse {
    flex: 0 0 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--apato-green);
    animation: apato-pulse 1.6s infinite;
}

.apato-live-order__text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apato-live-order__text small {
    color: var(--apato-muted);
}

.apato-menu-list {
    margin: 0;
    padding: 4px 0;
    overflow: hidden;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
    list-style: none;
}

.apato-menu-list li + li {
    border-top: 1px solid var(--apato-border);
}

.apato-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--apato-text);
    text-decoration: none;
}

.apato-menu-list a:hover {
    background: var(--apato-bg);
    color: var(--apato-text);
}

.apato-menu-list a > .apato-ico:last-child {
    color: #c4c7ce;
}

.apato-menu-list a.is-danger {
    color: var(--apato-red);
}

.apato-menu-list__icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--apato-bg);
    color: var(--apato-primary);
}

.is-danger .apato-menu-list__icon {
    background: #fee2e2;
    color: var(--apato-red);
}

.apato-menu-list__label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

/* On desktop the sidebar is the menu, so the profile page does not repeat it. */
@media (min-width: 761px) {
    .apato-profile .apato-menu-list {
        display: none;
    }
}

@media (max-width: 760px) {
    .apato-account {
        display: block;
    }

    .apato-account__nav,
    .apato-account > .account-navigation {
        display: none !important;
    }

    .apato-account-head__back {
        display: grid;
    }

    .apato-page__inner {
        padding: 12px 12px 32px;
    }
}

/* WooCommerce forms inside the shell (edit account, login) */
.apato-page .woocommerce form .form-row input.input-text,
.apato-page .woocommerce form .form-row textarea,
.apato-page .woocommerce form .form-row select {
    padding: 11px 14px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

.apato-page .woocommerce form .form-row input.input-text:focus,
.apato-page .woocommerce form .form-row textarea:focus {
    border-color: var(--apato-primary);
    outline: none;
}

.apato-page .woocommerce-MyAccount-content > form,
.apato-page .woocommerce-form-login,
.apato-page .woocommerce-form-register {
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

/* Order cards */
.apato-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apato-order {
    overflow: hidden;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-order--active {
    box-shadow: inset 0 0 0 1.5px #bbf7d0, var(--apato-shadow);
}

.apato-order__main {
    display: flex;
    gap: 12px;
    padding: 14px;
    color: var(--apato-text);
    text-decoration: none;
}

.apato-order__main:hover {
    color: var(--apato-text);
}

.apato-order__logo {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--apato-bg);
    color: var(--apato-muted);
}

.apato-order__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-order__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.apato-order__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.apato-order__top strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apato-order__body small {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-order__items {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apato-order__progress {
    display: block;
    height: 5px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 5px;
    background: #e5e7eb;
}

.apato-order__progress i {
    display: block;
    width: var(--p, 0%);
    height: 100%;
    border-radius: 5px;
    background: var(--apato-green);
}

.apato-order__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--apato-border);
}

.apato-order__foot > strong {
    font-size: 14px;
}

.apato-order__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.apato-pill {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--apato-bg);
    color: var(--apato-muted);
    font-size: 11px;
    font-weight: 800;
}

.apato-pill--active {
    background: #dcfce7;
    color: #15803d;
}

.apato-pill--unpaid {
    background: #fef3c7;
    color: #b45309;
}

.apato-pill--failed {
    background: #fee2e2;
    color: #b91c1c;
}

.apato-pager {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

/* Order tracking */
.apato-track {
    max-width: 760px;
}

.apato-track__vendor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.apato-track__vendor > div {
    display: flex;
    flex-direction: column;
}

.apato-track__vendor strong {
    font-size: 16px;
    font-weight: 800;
}

.apato-track__vendor small {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-track__logo {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    color: var(--apato-primary);
    font-weight: 800;
    box-shadow: var(--apato-shadow);
    text-decoration: none;
}

.apato-track__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-track__live {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-track__live:empty {
    display: none;
}

.apato-track__status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.apato-track__status strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.apato-track__status p {
    margin: 2px 0 0;
    color: var(--apato-muted);
    font-size: 13px;
    line-height: 1.8;
}

.apato-track__big {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--apato-green);
}

.apato-track__status--active .apato-track__big {
    animation: apato-pulse 1.8s infinite;
}

.apato-track__status--unpaid .apato-track__big {
    background: #fef3c7;
    color: #b45309;
}

.apato-track__status--failed .apato-track__big {
    background: #fee2e2;
    color: var(--apato-red);
}

.apato-track__eta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--apato-bg);
    font-size: 13px;
    font-weight: 700;
}

.apato-steps {
    display: flex;
    margin: 18px 0 4px;
    padding: 0;
    list-style: none;
}

.apato-steps li {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--apato-muted);
    font-size: 11px;
    text-align: center;
}

.apato-steps li::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
}

.apato-steps li:first-child::before {
    display: none;
}

.apato-steps li.is-done::before,
.apato-steps li.is-current::before {
    background: var(--apato-green);
}

.apato-steps__dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.apato-steps li.is-done .apato-steps__dot {
    background: var(--apato-green);
}

.apato-steps li.is-current {
    color: var(--apato-text);
    font-weight: 800;
}

.apato-steps li.is-current .apato-steps__dot {
    background: #fff;
    color: var(--apato-green);
    box-shadow: inset 0 0 0 3px var(--apato-green);
}

.apato-track__courier {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: var(--apato-bg);
}

.apato-track__courier > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apato-track__courier small {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-track__map {
    height: 260px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
}

.apato-track__map[hidden] {
    display: none;
}

.apato-mapdot {
    display: grid !important;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--apato-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.apato-mapdot.is-origin {
    background: #111827;
}

.apato-mapdot.is-courier {
    background: var(--apato-green);
    animation: apato-pulse 1.6s infinite;
}

.apato-track__items {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.apato-track__items li {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
}

.apato-track__qty {
    color: var(--apato-primary);
    font-weight: 800;
}

.apato-track__name {
    flex: 1;
}

.apato-track__addr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.apato-track__addr > .apato-ico {
    color: var(--apato-primary);
}

.apato-track__addr > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.8;
}

.apato-track__addr small {
    align-self: flex-start;
    color: var(--apato-muted);
}

.apato-track__actions {
    display: flex;
    gap: 10px;
}

.apato-track__actions .apato-btn {
    flex: 1;
}

.apato-track__extra:empty {
    display: none;
}

/* Thank-you page */
.apato-thanks__hero {
    margin-bottom: 14px;
    padding: 24px 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
    text-align: center;
}

.apato-thanks__hero h1 {
    margin: 12px 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.apato-thanks__hero p {
    margin: 0 0 8px;
    color: var(--apato-muted);
    font-size: 14px;
}

.apato-thanks__icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--apato-green);
    color: #fff;
    animation: apato-pop 0.4s ease-out;
}

.is-failed .apato-thanks__icon {
    background: var(--apato-red);
}

@keyframes apato-pop {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Checkout */
.apato-checkout .apato-page__inner {
    padding-bottom: 110px;
}

.apato-co-card {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-co-card h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
}

.apato-co-card h3 .apato-ico {
    color: var(--apato-primary);
}

.apato-co-tip__note {
    margin: -6px 0 10px;
    color: #6b7280;
    font-size: 13px;
}

.apato-co-tip__opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apato-co-tip__opts label {
    cursor: pointer;
}

.apato-co-tip__opts input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.apato-co-tip__opts span {
    display: inline-block;
    padding: 7px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.apato-co-tip__opts input:checked + span {
    border-color: var(--apato-primary);
    background: #fff7fc;
    color: var(--apato-primary);
}

.apato-co-tip__opts input:focus-visible + span {
    outline: 2px solid var(--apato-primary);
    outline-offset: 2px;
}

.apato-co-when__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    cursor: pointer;
}

.apato-co-when__note {
    margin: 0 0 10px;
    color: #92400e;
    font-size: 13px;
}

.apato-co-when__slot {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

.apato-co-when__slot[hidden] {
    display: none;
}

.apato-co-addr__card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apato-co-addr__card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.8;
}

.apato-co-addr__add {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1.5px dashed var(--apato-primary);
    border-radius: 12px;
    background: #fff7fc;
    color: var(--apato-primary);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.apato-co-addr__add span {
    display: flex;
    flex-direction: column;
}

.apato-co-addr__add small {
    color: var(--apato-muted);
}

.apato-co-contact .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.apato-co-contact:not(:has(.form-row)) {
    display: none;
}

/* Address fields are filled from the picker. */
.apato-co-ready #billing_country_field,
.apato-co-ready #billing_state_field,
.apato-co-ready #billing_city_field,
.apato-co-ready #billing_address_1_field,
.apato-co-ready #billing_address_2_field,
.apato-co-ready #billing_postcode_field,
.apato-co-ready #billing_email_field,
.apato-co-ready #billing_mnsjay_location_field,
.apato-co-ready .mnsjay-billing-map,
.apato-co-ready .mnsjay-map-row,
.apato-co-ready .woocommerce-billing-fields > h3,
.apato-co-ready .woocommerce-shipping-fields,
.apato-co-ready .woocommerce-additional-fields > h3 {
    display: none !important;
}

body form.woocommerce-checkout.apato-co-ready .checkout-inner {
    display: block;
}

.apato-co-ready .order-review-holder,
.apato-co-ready .theiaStickySidebar {
    position: static !important;
    width: 100% !important;
    transform: none !important;
}

.apato-co-ready .col2-set,
.apato-co-ready .col2-set .col-1,
.apato-co-ready .col2-set .col-2 {
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
}

.apato-co-ready .woocommerce-additional-fields {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-co-ready #order_review_heading {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 800;
}

.apato-co-ready #order_review {
    float: none;
    width: 100%;
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-co-ready .woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 12px;
    border: 0;
    font-size: 14px;
}

.apato-co-ready .woocommerce-checkout-review-order-table th,
.apato-co-ready .woocommerce-checkout-review-order-table td {
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--apato-border);
    background: none;
}

.apato-co-ready .wc_payment_methods {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.apato-co-ready .wc_payment_method {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
    list-style: none;
}

.apato-co-ready .wc_payment_method:has(input:checked) {
    border-color: var(--apato-primary);
    background: #fff7fc;
}

.apato-co-ready .wc_payment_method > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
}

.apato-co-ready .wc_payment_method > label img {
    max-height: 28px;
    width: auto;
}

.apato-co-ready .payment_box {
    margin-top: 8px;
    color: var(--apato-muted);
    font-size: 13px;
}

.apato-co-ready #place_order {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 14px;
    background: var(--apato-primary);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .apato-co-ready .place-order {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 0 -16px -16px;
        padding: 12px 16px calc(12px + var(--apato-safe-b)) !important;
        background: #fff;
        box-shadow: 0 -6px 18px rgba(17, 24, 39, 0.08);
    }

    .apato-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .apato-rest__tools {
        top: 10px;
        inset-inline-end: 10px;
    }

    .apato-rest__hero {
        padding-top: 64px;
    }

    .apato-item__media,
    .apato-item__media .apato-item__img {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .apato-rsum {
        gap: 12px;
    }
}

/* Supermarket store page */
.apato-market__aisles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin: 4px 0 16px;
}

.apato-market__aisles[hidden],
.apato-market [data-apato-shelf][hidden] {
    display: none;
}

.apato-market__aisle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--apato-text);
    text-align: center;
    text-decoration: none;
}

.apato-market__aisle-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--apato-shadow);
    color: var(--apato-primary);
}

.apato-market__aisle-img img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.apato-market__aisle-img svg {
    fill: currentColor;
}

.apato-market__aisle-name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.apato-market__aisle:hover .apato-market__aisle-img {
    outline: 2px solid var(--apato-primary);
}

/* Aisle view modes */
.apato-aisle-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.apato-aisle-toolbar__label {
    font-size: 13px;
    font-weight: 800;
    color: var(--apato-muted);
}

.apato-aisle-toolbar .apato-views {
    flex: none;
}

html[data-aisle-view="grid"] .apato-market__aisles--views {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin: 4px 0 16px;
    overflow: visible;
}

html[data-aisle-view="rail"] .apato-market__aisles--views {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 4px 0 16px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

html[data-aisle-view="rail"] .apato-market__aisles--views::-webkit-scrollbar {
    display: none;
}

html[data-aisle-view="rail"] .apato-market__aisles--views .apato-market__aisle {
    flex: 0 0 88px;
    width: 88px;
    scroll-snap-align: start;
}

html[data-aisle-view="cols3"] .apato-market__aisles--views {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 16px;
    overflow: visible;
}

html[data-aisle-view="cols3"] .apato-market__aisles--views .apato-market__aisle-img {
    border-radius: 20px;
}

html[data-aisle-view="cols3"] .apato-market__aisles--views .apato-market__aisle-name {
    font-size: 13px;
}

html[data-aisle-view="rows"] .apato-market__aisles--views {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 16px;
    overflow: visible;
}

html[data-aisle-view="rows"] .apato-market__aisles--views .apato-market__aisle {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--apato-shadow);
    text-align: start;
}

html[data-aisle-view="rows"] .apato-market__aisles--views .apato-market__aisle-img {
    flex: none;
    width: 56px;
    aspect-ratio: 1;
    border-radius: 14px;
    box-shadow: none;
}

html[data-aisle-view="rows"] .apato-market__aisles--views .apato-market__aisle-name {
    flex: 1 1 auto;
    font-size: 14px;
    -webkit-line-clamp: 1;
    text-align: start;
}

@media (max-width: 600px) {
    html[data-aisle-view="grid"] .apato-market__aisles--views {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    html[data-aisle-view="rail"] .apato-market__aisles--views .apato-market__aisle {
        flex-basis: 78px;
        width: 78px;
    }

    html[data-aisle-view="cols3"] .apato-market__aisles--views {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (min-width: 900px) {
    html[data-aisle-view="cols3"] .apato-market__aisles--views {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    html[data-aisle-view="rail"] .apato-market__aisles--views .apato-market__aisle {
        flex-basis: 96px;
        width: 96px;
    }
}


.apato-market__shelf {
    margin: 14px 0 8px;
    color: var(--apato-muted);
    font-size: 14px;
    font-weight: 800;
}

/* Main aisle breaks (not shelves): clear divide + sticky title while scrolling */
.apato-market__aisle-sec {
    scroll-margin-top: 110px;
    margin-bottom: 12px;
    padding-bottom: 6px;
}

.apato-market__aisle-sec + .apato-market__aisle-sec {
    margin-top: 8px;
}

.apato-market__aisle-sec + .apato-market__aisle-sec::before {
    content: "";
    display: block;
    height: 10px;
    margin: 8px -16px 20px;
    border-block: 1px solid rgba(17, 24, 39, 0.06);
    background:
        linear-gradient(90deg, transparent, rgba(255, 0, 166, 0.08), transparent),
        var(--apato-bg, #f3f4f6);
}

.apato-market .apato-market__aisle-sec > h2 {
    position: sticky;
    top: calc(52px + var(--apato-safe-t, 0px));
    z-index: 6;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06), 0 8px 20px rgba(17, 24, 39, 0.04);
    border-inline-start: 3px solid var(--apato-primary);
    font-size: 17px;
}

@media (min-width: 761px) {
    .apato-market .apato-market__aisle-sec > h2 {
        top: calc(84px + var(--apato-safe-t, 0px));
    }

    .apato-market__aisle-sec {
        scroll-margin-top: 130px;
    }

    .apato-market__aisle-sec + .apato-market__aisle-sec::before {
        margin-inline: 0;
        border-radius: 8px;
    }
}

.apato-market .apato-offer__img img {
    object-fit: contain;
    background: #fff;
}

.apato-menu-grid.apato-market__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.apato-market__grid .apato-item {
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.apato-market__grid .apato-item__media,
.apato-market__grid .apato-item__media .apato-item__img {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.apato-market__grid .apato-item__media {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
}

.apato-market__grid .apato-item__media .apato-item__img {
    object-fit: contain;
}

/* Beat product-view absolute crop for supermarket pack shots (grid / cols3 / cards) */
html[data-product-view="grid"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__media,
html[data-product-view="cols3"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__media,
html[data-product-view="cards"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__media {
    overflow: visible;
    background: #fff;
}
html[data-product-view="grid"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__img,
html[data-product-view="cols3"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__img,
html[data-product-view="cards"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    background: #fff;
}

/* Rows view: same compact restaurant/fast-food list layout for supermarket */
html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    flex-direction: unset;
    gap: unset;
    padding: 12px 14px;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item.has-media {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__media {
    grid-row: 1 / span 2;
    flex: 0 0 104px;
    align-self: flex-start;
    width: 104px;
    height: 104px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__img {
    position: static;
    inset: auto;
    display: block;
    width: 104px;
    height: 104px;
    object-fit: contain !important;
    object-position: center;
    background: #fff;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__text {
    align-self: end;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__name {
    min-height: 0;
    margin: 0;
    font-size: 14px;
    -webkit-line-clamp: 2;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__desc {
    display: none;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__foot {
    display: contents;
    flex-direction: unset;
    align-items: unset;
    max-width: none;
    gap: unset;
    margin-top: 0;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__price {
    align-self: start;
    color: var(--apato-text);
    font-size: 14px;
    font-weight: 800;
    text-align: start;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__price .price {
    height: auto;
    min-height: 0;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__price .discount {
    display: none;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__price del {
    display: block;
    color: var(--apato-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    opacity: .8;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__foot > :not(.apato-item__price) {
    grid-column: -2;
    grid-row: 1 / span 2;
    align-self: center;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__ctrl {
    display: block;
    justify-content: unset;
}

html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-add {
    display: inline-flex;
    width: auto;
    min-width: 72px;
    padding: 8px 14px;
    text-align: center;
}

@media (max-width: 600px) {
    html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__media,
    html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__img {
        width: 92px;
        height: 92px;
    }

    html[data-product-view="rows"] .apato-menu-grid.apato-market__grid .apato-item .apato-item__media {
        flex-basis: 92px;
    }
}

.apato-market__grid .apato-item__media--empty {
    background: var(--apato-bg);
    color: var(--apato-border);
}

.apato-market__grid .apato-item__media--empty svg {
    fill: currentColor;
}

.apato-market__grid .apato-item__name {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.apato-market__grid .apato-item__desc {
    -webkit-line-clamp: 2;
}

.apato-market__grid .apato-item .apato-item__foot {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    gap: 8px;
    margin-top: auto;
    text-align: start;
}

.apato-market__grid .apato-item .apato-item__price {
    min-height: 2.6em;
    font-size: 13px;
}

.apato-market__grid .apato-item__price del {
    display: block;
}

.apato-market__grid .apato-item__ctrl {
    display: flex;
    justify-content: center;
}

.apato-market__grid .apato-add {
    display: block;
    width: 100%;
    padding: 6px 12px;
    text-align: center;
}

@media (max-width: 600px) {
    .apato-menu-grid.apato-market__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .apato-market__aisles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .apato-market__grid .apato-item__media,
    .apato-market__grid .apato-item__media .apato-item__img {
        width: 100%;
        height: auto;
    }
}

/* Restaurant menu rows: picture on the right, name with the price under it, add button on the left. */
.apato-menu-grid:not(.apato-market__grid) .apato-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item.has-media {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.apato-menu-grid .apato-item[hidden] {
    display: none;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__media {
    grid-row: 1 / span 2;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__text {
    align-self: end;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__name {
    margin: 0;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__foot {
    display: contents;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price {
    align-self: start;
    color: var(--apato-text);
    font-size: 14px;
    font-weight: 800;
    text-align: start;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price .price {
    height: auto;
    min-height: 0;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price ins,
.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price .amount {
    font-size: inherit;
    line-height: 1.6;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price .woocommerce-Price-currencySymbol {
    font-size: 11px;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price .discount {
    display: none;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price del {
    display: block;
    color: var(--apato-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    opacity: .8;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price del .amount,
.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price del .woocommerce-Price-currencySymbol {
    font-size: 11px;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price ins {
    text-decoration: none;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__price small {
    font-size: 11px;
}

.apato-deal__add {
    align-self: center;
    margin-top: 6px;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item:has(.apato-item__off--inline) .apato-item__name {
    padding-inline-start: 40px;
}

.apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__foot > :not(.apato-item__price) {
    grid-column: -2;
    grid-row: 1 / span 2;
}

/* Store menus: same product-view modes as catalog (cards / 2-col / 3-col / rows). */
.apato-rest__menu {
    min-width: 0;
    max-width: 100%;
}

.apato-menu-grid--views {
    display: grid;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

html[data-product-view="rows"] .apato-menu-grid--views {
    grid-template-columns: 1fr;
}

html[data-product-view="grid"] .apato-menu-grid--views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Horizontal shelf rails — all crafts (restaurant, cafe, market, catalog, …) */
html[data-product-view="rails"] .apato-market__shelf {
    margin: 10px 0 4px;
    font-size: 14px;
}

html[data-product-view="rails"] .apato-shelf-rail {
    position: relative;
    margin-inline: -16px;
}

html[data-product-view="rails"] .apato-shelf-rail [data-apato-shelf-track] {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 2px 16px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none !important;
}

html[data-product-view="rails"] .apato-shelf-rail [data-apato-shelf-track]::-webkit-scrollbar {
    display: none;
}

/*
 * Fraction of the visible track so ~3.3 cards fit and the next always peeks
 * on every phone width (not vw — avoids exact 3/4 fits).
 */
html[data-product-view="rails"] .apato-shelf-rail .apato-item,
html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item {
    display: flex !important;
    flex: 0 0 calc((100% - 30px) / 3.35);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: calc((100% - 30px) / 3.35);
    min-width: 0;
    max-width: none;
    padding: 8px;
    scroll-snap-align: start;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__media,
html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__img {
    position: relative;
    flex: none;
    align-self: stretch;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__img,
html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    background: #fff;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-menu-grid:not(.apato-market__grid) .apato-item .apato-item__img {
    object-fit: cover !important;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__text,
html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__body {
    align-self: stretch;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__name,
html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__name {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__desc,
html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__badges {
    display: none;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-width: none;
    margin-top: auto;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__price,
html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__price {
    text-align: start;
    font-size: 12px;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-item__ctrl {
    display: block;
    justify-content: unset;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-item .apato-add,
html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item .apato-add {
    display: block;
    width: 100%;
    padding: 6px 8px;
    text-align: center;
    font-size: 12px;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__store {
    font-size: 11px;
}

html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item__tag {
    font-size: 11px;
}

/* Edge fades + chevron when more items remain */
html[data-product-view="rails"] .apato-shelf-rail::before,
html[data-product-view="rails"] .apato-shelf-rail::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 10px;
    width: 48px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

html[data-product-view="rails"] .apato-shelf-rail::before {
    inset-inline-end: 0;
    background: linear-gradient(to left, var(--apato-bg, #f6f7f9) 8%, transparent);
}

html[data-product-view="rails"] .apato-shelf-rail::after {
    inset-inline-start: 0;
    background: linear-gradient(to right, var(--apato-bg, #f6f7f9) 8%, transparent);
}

html[dir="rtl"][data-product-view="rails"] .apato-shelf-rail::before {
    background: linear-gradient(to right, var(--apato-bg, #f6f7f9) 8%, transparent);
}

html[dir="rtl"][data-product-view="rails"] .apato-shelf-rail::after {
    background: linear-gradient(to left, var(--apato-bg, #f6f7f9) 8%, transparent);
}

html[data-product-view="rails"] .apato-shelf-rail.can-more::before {
    opacity: 1;
}

html[data-product-view="rails"] .apato-shelf-rail.can-back::after {
    opacity: 1;
}

html[data-product-view="rails"] .apato-shelf-rail__hint {
    position: absolute;
    top: 42%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Forward: more items toward inline-end (← in RTL / → in LTR) */
html[data-product-view="rails"] .apato-shelf-rail__hint--more {
    inset-inline-end: 6px;
    inset-inline-start: auto;
    --apato-hint-nudge: 6px;
}

html[dir="rtl"][data-product-view="rails"] .apato-shelf-rail__hint--more {
    --apato-hint-nudge: -6px;
}

/* Back: scrolled away items toward inline-start (→ in RTL / ← in LTR) */
html[data-product-view="rails"] .apato-shelf-rail__hint--back {
    inset-inline-start: 6px;
    inset-inline-end: auto;
    --apato-hint-nudge: -6px;
}

html[dir="rtl"][data-product-view="rails"] .apato-shelf-rail__hint--back {
    --apato-hint-nudge: 6px;
}

html[data-product-view="rails"] .apato-shelf-rail__hint::before {
    content: "";
    box-sizing: border-box;
    width: 9px;
    height: 9px;
    border: 0;
    margin: 0;
}

/* Default / LTR more → ; LTR back ← */
html[data-product-view="rails"] .apato-shelf-rail__hint--more::before {
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

html[data-product-view="rails"] .apato-shelf-rail__hint--back::before {
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* RTL more ← ; RTL back → */
html[dir="rtl"][data-product-view="rails"] .apato-shelf-rail__hint--more::before {
    border-right: 0;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
}

html[dir="rtl"][data-product-view="rails"] .apato-shelf-rail__hint--back::before {
    border-left: 0;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

html[data-product-view="rails"] .apato-shelf-rail.can-more .apato-shelf-rail__hint--more,
html[data-product-view="rails"] .apato-shelf-rail.can-back .apato-shelf-rail__hint--back {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    animation: apato-shelf-hint 1.4s ease-in-out infinite;
}

html[data-product-view="rails"] .apato-shelf-rail.is-hint-done.can-more .apato-shelf-rail__hint--more,
html[data-product-view="rails"] .apato-shelf-rail.is-hint-done.can-back .apato-shelf-rail__hint--back {
    animation: none;
    opacity: 0.92;
}

html[data-product-view="rails"] .apato-shelf-rail:not(.can-more) .apato-shelf-rail__hint--more,
html[data-product-view="rails"] .apato-shelf-rail:not(.can-back) .apato-shelf-rail__hint--back {
    opacity: 0;
    animation: none;
}

@keyframes apato-shelf-hint {
    0%,
    100% {
        transform: translateY(-50%) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-50%) translateX(var(--apato-hint-nudge, -6px)) scale(1.04);
    }
}

@media (min-width: 900px) {
    html[data-product-view="rails"] .apato-shelf-rail .apato-item,
    html[data-product-view="rails"] .apato-shelf-rail .apato-cat-item {
        flex-basis: calc((100% - 40px) / 4.35);
        width: calc((100% - 40px) / 4.35);
    }
}

html[data-product-view="cols3"] .apato-menu-grid--views {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

html[data-product-view="cards"] .apato-menu-grid--views {
    grid-template-columns: 1fr;
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__media,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__media,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__media {
    position: relative;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--apato-img-matte, #fff);
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__img,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__img,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__foot,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__foot,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__foot {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    max-width: none;
}

/*
 * Row layout uses align-self:end so the title sits next to the add button.
 * In column card/grid views that shrink-wraps short names to the inline-end
 * (left in RTL) and makes some titles look left-aligned / clipped.
 */
html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__text,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__text,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__text {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    text-align: start;
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__name,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__name,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__name,
html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__desc,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__desc,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__desc {
    text-align: start;
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__name,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__price,
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__price,
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__price {
    align-self: center;
    max-width: none;
    text-align: start;
}

html[data-product-view="grid"] .apato-menu-grid--views .apato-item .apato-item__foot > :not(.apato-item__price),
html[data-product-view="cols3"] .apato-menu-grid--views .apato-item .apato-item__foot > :not(.apato-item__price),
html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__foot > :not(.apato-item__price) {
    grid-column: auto;
    grid-row: auto;
}

html[data-product-view="cols3"] .apato-menu-grid--views .apato-item {
    padding: 8px;
    gap: 6px;
}

html[data-product-view="cards"] .apato-menu-grid--views .apato-item .apato-item__media {
    aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
    html[data-product-view="cards"] .apato-menu-grid--views {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1100px) {
    html[data-product-view="cards"] .apato-menu-grid--views {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    html[data-product-view="cols3"] .apato-menu-grid--views {
        gap: 6px;
    }

    html[data-product-view="cols3"] .apato-menu-grid--views .apato-item__name {
        font-size: 12px;
    }
}

/* Product sort + view — shared bar for catalog and store menus (sits above products). */
.apato-cat-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--apato-border, rgba(0, 0, 0, 0.1));
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}

.apato-rest__menu > .apato-cat-toolbar {
    margin-top: 8px;
}

.apato-product-sort {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.apato-product-sort__label {
    display: none;
}

.apato-product-sort select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 260px;
    font: inherit;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: inherit;
}

.apato-cat-toolbar .apato-views {
    flex: none;
}

@media (max-width: 768px) {
    .apato-cat-toolbar {
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 12px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .apato-rest__menu > .apato-cat-toolbar {
        position: sticky;
        top: calc(52px + var(--apato-safe-t, 0px));
        z-index: 12;
        margin-inline: 0;
        box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
    }

    .apato-product-sort select {
        max-width: none;
        padding: 6px 10px;
        font-size: 12px;
    }
}

.apato-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.apato-cat-stores,
.apato-catalog {
    margin-bottom: 28px;
}

.apato-catalog__head {
    margin: 0 0 10px;
}

.apato-page--category .apato-chips {
    margin: 0 0 16px;
    padding: 2px 0 4px;
}

.apato-page--category .apato-cat-stores {
    margin-bottom: 22px;
}

.apato-page--category .apato-cat-stores + .apato-catalog .apato-section-title {
    margin-top: 4px;
}

.apato-browser {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apato-browser .apato-chips {
    margin-bottom: 12px;
    padding-block: 2px;
}

@media (min-width: 1100px) {
    .apato-restaurants__controls {
        padding: 10px 14px;
    }

    .apato-cat-toolbar {
        padding: 10px 14px;
    }

    .apato-filters select,
    .apato-product-sort select {
        max-width: 280px;
    }
}

/* Customer surfaces: breathing room + cleaner store rows / titles */
.apato-stores-page,
.apato-page--category .apato-page__inner {
    padding-inline: 16px;
}

.apato-stores-page {
    padding-block: 8px 24px;
}

.apato-page-title {
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
}

.apato-store {
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.apato-store:hover {
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

.apato-browser__search {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .apato-stores-page,
    .apato-page--category .apato-page__inner {
        padding-inline: 12px;
    }

    .apato-page-title {
        margin: 8px 0 12px;
        font-size: 18px;
    }

    html[data-store-view="grid"] .apato-grid--views .apato-card__meta {
        gap: 4px;
    }

    .apato-portal .apato-tiles--grid,
    .apato-home .apato-tiles--grid {
        gap: 10px;
    }
}

.apato-cat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

/* Mobile-first views; wider breakpoints add columns so desktop cards stay compact. */
html[data-product-view="cards"] .apato-cat-list--views {
    grid-template-columns: 1fr;
}

html[data-product-view="cards"] .apato-cat-list--views .apato-cat-item {
    flex-direction: column;
    align-items: stretch;
}

html[data-product-view="cards"] .apato-cat-list--views .apato-cat-item__img {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

html[data-product-view="cards"] .apato-cat-list--views .apato-cat-item__side {
    flex-direction: row;
    justify-content: space-between;
    max-width: none;
    width: 100%;
}

html[data-product-view="grid"] .apato-cat-list--views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

html[data-product-view="grid"] .apato-cat-list--views .apato-cat-item {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
}

html[data-product-view="grid"] .apato-cat-list--views .apato-cat-item__img {
    flex: none;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
}

html[data-product-view="grid"] .apato-cat-list--views .apato-cat-item__side {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: none;
    gap: 6px;
}

html[data-product-view="grid"] .apato-cat-list--views .apato-cat-item__name {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

html[data-product-view="cols3"] .apato-cat-list--views {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item {
    flex-direction: column;
    padding: 8px;
    gap: 6px;
}

html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item__img {
    flex: none;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
}

html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item__side {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: none;
    gap: 4px;
}

html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item__name {
    font-size: 12px;
    -webkit-line-clamp: 2;
}

html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item__price {
    font-size: 12px;
}

html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item__store {
    font-size: 11px;
}

html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item__side .apato-add {
    padding: 4px 8px;
    font-size: 11px;
}

html[data-product-view="rows"] .apato-cat-list--views {
    grid-template-columns: 1fr;
    gap: 8px;
}

html[data-product-view="rows"] .apato-cat-list--views .apato-cat-item {
    padding: 8px 10px;
    gap: 10px;
}

html[data-product-view="rows"] .apato-cat-list--views .apato-cat-item__img {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
}

html[data-product-view="rows"] .apato-cat-list--views .apato-cat-item__name {
    font-size: 13px;
    -webkit-line-clamp: 1;
}

html[data-product-view="rows"] .apato-cat-list--views .apato-cat-item__side .apato-add {
    display: none;
}

@media (min-width: 768px) {
    html[data-product-view="grid"] .apato-cat-list--views {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    html[data-product-view="cols3"] .apato-cat-list--views {
        gap: 12px;
    }

    html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item {
        padding: 10px;
        gap: 8px;
    }

    html[data-product-view="cols3"] .apato-cat-list--views .apato-cat-item__name {
        font-size: 13px;
    }

    html[data-product-view="cards"] .apato-cat-list--views {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    html[data-product-view="rows"] .apato-cat-list--views {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    html[data-product-view="rows"] .apato-cat-list--views .apato-cat-item__side .apato-add {
        display: inline-flex;
    }
}

@media (min-width: 1100px) {
    html[data-product-view="grid"] .apato-cat-list--views {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    html[data-product-view="cols3"] .apato-cat-list--views {
        gap: 14px;
    }

    html[data-product-view="cards"] .apato-cat-list--views {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-product-view="rows"] .apato-cat-list--views {
        grid-template-columns: 1fr;
        max-width: 920px;
    }
}

.apato-cat-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
    color: var(--apato-text);
    text-decoration: none;
}

.apato-cat-item.is-closed {
    opacity: .65;
}

.apato-cat-item__img {
    position: relative;
    display: block;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 12px;
    /* Letterbox: full image visible; unused area follows site light/dark. */
    background: var(--apato-img-matte, #fff);
    color: var(--apato-border);
}

.apato-cat-item__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.apato-cat-item__img > svg {
    position: absolute;
    inset: 0;
    margin: auto;
    fill: currentColor;
}

.apato-cat-item__img .apato-item__off {
    z-index: 1;
}

html[data-theme="dark"],
html[data-color-scheme="dark"],
body[data-theme="dark"],
body.dark {
    --apato-img-matte: #000;
}

.apato-cat-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.apato-cat-item__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.apato-cat-item__store {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-cat-item__store img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.apato-cat-item__store span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apato-cat-item__side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 110px;
}

.apato-cat-item__side .apato-cat-item__store {
    max-width: 100%;
}

.apato-cat-item__tag {
    padding: 0 6px;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-style: normal;
    font-size: 11px;
}

.apato-cat-item__price {
    font-size: 14px;
    font-weight: 800;
}

.apato-cat-item__price del {
    display: block;
    color: var(--apato-muted);
    font-size: 11px;
    font-weight: 400;
    opacity: .8;
}

@media (max-width: 600px) {
    .apato-cat-list:not(.apato-cat-list--views) {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

/* Cart page (woocommerce/cart/cart.php) */
.apato-cart.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.apato-cart__list {
    display: grid;
    gap: 10px;
}

.apato-cart__item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-cart__img {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--apato-bg);
    color: #d1d5db;
}

.apato-cart__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-cart__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.apato-cart__name {
    color: var(--apato-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
}

.apato-cart__meta,
.apato-cart__store {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-cart__price {
    font-size: 14px;
    font-weight: 800;
}

.apato-cart__links {
    display: flex;
    gap: 14px;
    margin-top: 2px;
}

.apato-cart__links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--apato-muted);
    font-size: 12px;
    text-decoration: none;
}

.apato-cart__links .apato-cart__remove {
    color: var(--apato-red);
}

.apato-cart__step {
    flex-direction: column;
    padding: 2px;
}

.apato-cart__step .apato-step__qty {
    width: 32px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
}

.apato-cart__step .apato-step__qty::-webkit-inner-spin-button,
.apato-cart__step .apato-step__qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.apato-cart__coupon {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-cart__coupon input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--apato-border);
    border-radius: 10px;
    font: inherit;
}

.apato-cart__totals {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 16px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
    font-size: 14px;
}

.apato-cart__totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.apato-cart__totals > div > span {
    color: var(--apato-muted);
}

.apato-cart__totals .is-discount b {
    color: var(--apato-green);
}

.apato-birthday {
    border: 0;
    padding: 0;
    margin: 16px 0;
}

.apato-birthday legend {
    font-weight: 700;
    margin-bottom: 4px;
}

.apato-birthday__hint {
    font-size: 13px;
    color: var(--apato-muted);
    margin: 0 0 8px;
}

.apato-birthday__row {
    display: flex;
    gap: 8px;
}

.apato-birthday__row select {
    flex: 1;
}

.apato-cart__totals .is-cashback {
    font-size: 13px;
    color: var(--apato-green);
}

.apato-cart__totals .is-total {
    padding-top: 10px;
    border-top: 1px dashed var(--apato-border);
    font-weight: 800;
}

.apato-cart__totals .is-total > span {
    color: var(--apato-text);
}

.apato-cart__totals .woocommerce-remove-coupon {
    margin-inline-start: 6px;
    font-size: 12px;
}

.apato-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.14);
}

.apato-cart-bar__total {
    display: flex;
    flex-direction: column;
}

.apato-cart-bar__total small {
    color: var(--apato-muted);
    font-size: 11px;
}

.apato-cart-bar__total b {
    font-size: 16px;
    font-weight: 800;
}

.apato-cart-bar__go {
    flex: 0 0 auto;
    padding-inline: 26px;
}

@media (max-width: 768px) {
    .apato-cart-bar {
        position: fixed;
        inset-inline: 8px;
        bottom: calc(var(--apato-bnav-clearance) + 8px);
        z-index: 9989;
        margin: 0;
    }

    body.has-apato-bnav.woocommerce-cart {
        padding-bottom: calc(var(--apato-bnav-clearance) + 88px) !important;
    }
}

.apato-cart-empty {
    margin-bottom: 8px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

/* "Next purchase" list under the cart */
.apato-next {
    margin: 16px 0 24px;
    padding: 14px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-next__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
}

.apato-next__title small {
    padding: 0 8px;
    border-radius: 10px;
    background: var(--apato-bg);
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-next__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.apato-next__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--apato-border);
}

.apato-next__item:first-child {
    padding-top: 0;
    border-top: 0;
}

.apato-next__img {
    display: grid;
    flex: 0 0 64px;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--apato-bg);
    color: var(--apato-border);
}

.apato-next__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-next__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.apato-next__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--apato-text);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.6;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.apato-next__store {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-next__price {
    font-size: 13px;
    font-weight: 700;
}

.apato-next__price del {
    margin-inline-end: 4px;
    color: var(--apato-muted);
    font-size: 11px;
    font-weight: 400;
}

.apato-next__price ins {
    text-decoration: none;
}

.apato-next__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.apato-next__remove {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--apato-muted);
}

.apato-next__remove svg {
    fill: currentColor;
}

/* Popups (apato.js, Apato\Core\Popups) */
.apato-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 10, 20, 0.55);
    opacity: 0;
    transition: opacity 0.2s;
}

.apato-popup.is-open {
    opacity: 1;
}

.apato-popup--sheet {
    align-items: flex-end;
    padding: 0;
}

.apato-popup__card {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 86vh;
    overflow-y: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.apato-popup.is-open .apato-popup__card {
    transform: none;
}

.apato-popup--sheet .apato-popup__card {
    max-width: 560px;
    border-radius: 22px 22px 0 0;
    padding-bottom: var(--apato-safe-b, 0px);
    transform: translateY(100%);
    transition-timing-function: ease-out;
}

.apato-popup--image .apato-popup__card {
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.apato-popup__img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 22px 22px 0 0;
}

.apato-popup__imgbtn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.apato-popup__imgbtn img {
    display: block;
    width: 100%;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.apato-popup__body {
    padding: 18px 18px 16px;
    text-align: center;
}

.apato-popup__body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.apato-popup__body p {
    margin: 0 0 16px;
    color: var(--apato-muted);
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;
}

.apato-popup__body .apato-btn + .apato-btn {
    margin-top: 6px;
}

.apato-popup__x {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--apato-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.apato-popup--image .apato-popup__x {
    top: -12px;
    inset-inline-end: -8px;
}

/* Account: notifications */
.apato-notif-settings {
    margin-bottom: 14px;
    border: 1.5px solid color-mix(in srgb, var(--apato-primary) 30%, transparent);
    background: color-mix(in srgb, var(--apato-primary) 6%, #fff);
}

.apato-notif-settings.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.apato-notif-settings__head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.apato-notif-settings__head strong {
    display: block;
    font-size: 15px;
}

.apato-notif-settings__head small {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-notif-settings__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--apato-primary);
    color: #fff;
}

.apato-notif-settings.is-ok .apato-notif-settings__icon {
    background: #16a34a;
}

.apato-notif-steps {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.apato-notif-steps:empty {
    display: none;
}

.apato-notif-steps li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed var(--apato-border, #eee);
    font-size: 13px;
    line-height: 1.8;
}

.apato-notif-steps__btns {
    display: flex;
    gap: 6px;
}

.apato-notifs {
    display: grid;
    gap: 10px;
}

.apato-notif {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    color: var(--apato-text);
    text-decoration: none;
}

.apato-notif__img {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 14px;
    background: color-mix(in srgb, var(--apato-primary) 10%, #fff);
    color: var(--apato-primary);
}

.apato-notif__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apato-notif__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.apato-notif__body strong {
    font-size: 14px;
    font-weight: 800;
}

.apato-notif__text {
    color: var(--apato-muted);
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
}

.apato-notif__time {
    color: var(--apato-muted);
    font-size: 11px;
}

.apato-notif__go {
    align-self: center;
    color: var(--apato-muted);
}

/* Account: details form */
.apato-account-form__avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--apato-primary) 12%, #fff);
    color: var(--apato-primary);
}

.apato-field input:disabled {
    background: var(--apato-bg);
    color: var(--apato-muted);
}

.apato-field > small {
    color: var(--apato-muted);
    font-size: 12px;
}

/* "Become a seller" page */
.apato-seller-page {
    max-width: 720px;
    margin: 0 auto;
}

.apato-seller-page .apato-seller-hero {
    margin: 12px 16px 14px;
    padding: 22px 18px;
    border-radius: var(--apato-radius);
    background: linear-gradient(135deg, var(--apato-primary), #ff7ac8);
    color: #fff;
}

.apato-seller-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
}

.apato-seller-hero h1 {
    margin: 12px 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.5;
}

.apato-seller-hero p {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.95;
}

.apato-seller-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.apato-seller-benefit {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-seller-benefit > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: #ffe4f5;
    color: var(--apato-primary);
}

.apato-seller-benefit b {
    font-size: 14px;
    font-weight: 800;
}

.apato-seller-benefit small {
    color: var(--apato-muted);
    font-size: 12px;
    line-height: 1.8;
}

.apato-seller-steps {
    display: flex;
    gap: 8px;
    margin: 0 16px 14px;
    padding: 0;
    list-style: none;
}

.apato-seller-steps li {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.apato-seller-steps b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--apato-primary);
    color: #fff;
    font-size: 14px;
}

.apato-seller-state {
    text-align: center;
}

.apato-seller-state__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffe4f5;
    color: var(--apato-primary);
}

.apato-seller-state.is-ok .apato-seller-state__icon {
    background: #dcfce7;
    color: #16a34a;
}

.apato-seller-state.is-wait .apato-seller-state__icon {
    background: #fef3c7;
    color: #d97706;
}

.apato-seller-state.is-no .apato-seller-state__icon {
    background: #fee2e2;
    color: #dc2626;
}

.apato-seller-state h2 {
    margin: 12px 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.apato-seller-state p {
    margin: 0 0 14px;
    color: var(--apato-muted);
    font-size: 14px;
    line-height: 1.9;
}

.apato-seller-state .apato-btn + .apato-btn {
    margin-top: 8px;
}

.apato-seller-state__hint {
    font-size: 13px;
}

.apato-seller-summary {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--apato-bg);
    text-align: right;
}

.apato-seller-summary div {
    display: flex;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
}

.apato-seller-summary dt {
    flex: 0 0 56px;
    color: var(--apato-muted);
}

.apato-seller-summary dd {
    margin: 0;
    font-weight: 700;
}

.apato-seller-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.apato-seller-types label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.apato-seller-types input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.apato-seller-types span {
    display: block;
    padding: 10px 4px;
    border: 1.5px solid var(--apato-border);
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.apato-seller-types input:checked + span {
    border-color: var(--apato-primary);
    background: #fff0f9;
    color: var(--apato-primary);
}

.apato-seller-types input:focus-visible + span {
    outline: 2px solid var(--apato-primary);
    outline-offset: 2px;
}

@media (max-width: 380px) {
    .apato-seller-types {
        grid-template-columns: 1fr 1fr;
    }
}
/* Offline bar */
.apato-offline {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
    background: #1f2330;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}

.apato-offline.is-shown {
    transform: none;
}

.apato-offline__dot {
    flex: 0 0 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    animation: apato-pulse 1.6s infinite;
}
.apato-review__reply {
    margin-top: 8px;
    padding: 8px 12px;
    border-inline-start: 3px solid var(--apato-primary);
    border-radius: 10px;
    background: #fff0f9;
}

.apato-review__reply b {
    color: var(--apato-primary);
    font-size: 12px;
}

.apato-review__reply p {
    margin: 2px 0 0;
    font-size: 13px;
}
/* Invite friends */
.apato-invite__hero {
    margin-bottom: 12px;
    padding: 22px 18px;
    border-radius: var(--apato-radius);
    background: linear-gradient(135deg, var(--apato-primary), #ff7ac8);
    color: #fff;
    text-align: center;
}

.apato-invite__gift {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.apato-invite__hero h2 {
    margin: 12px 0 6px;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.6;
}

.apato-invite__hero p {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    opacity: 0.95;
}

.apato-invite__code {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.apato-invite__code small {
    color: var(--apato-muted);
}

.apato-invite__codebox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px dashed var(--apato-primary);
    border-radius: 14px;
    background: #fff0f9;
    color: var(--apato-text);
    font: inherit;
    cursor: pointer;
}

.apato-invite__codebox b {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 4px;
}

.apato-invite__codebox span {
    color: var(--apato-primary);
    font-size: 13px;
    font-weight: 700;
}

.apato-invite__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.apato-invite__stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: var(--apato-radius);
    background: #fff;
    box-shadow: var(--apato-shadow);
}

.apato-invite__stats b {
    font-size: 20px;
    font-weight: 900;
}

.apato-invite__stats small {
    color: var(--apato-muted);
    font-size: 12px;
}

.apato-invite__note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
}

.apato-invite__row {
    display: flex;
    gap: 8px;
}

.apato-invite__row input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--apato-border);
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.apato-invite__how {
    margin: 4px 0 0;
    padding-inline-start: 20px;
    color: var(--apato-muted);
    font-size: 13px;
    line-height: 2;
}
/* Product ratings, best-seller badge, per-item rating in the order review, product reviews in the item sheet */
.apato-item__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
}

.apato-rating {
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.apato-rating small {
    color: var(--apato-muted);
    font-weight: 600;
}

.apato-item__hot,
.apato-ptile__note {
    padding: 1px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
}

.apato-ptile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 4px;
}

.apato-ptile .apato-offer__img {
    display: grid;
    place-items: center;
    color: var(--apato-muted);
}

.apato-rate__items {
    display: grid;
    gap: 10px;
    margin: 4px 0 14px;
}

.apato-rate__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.apato-rate__item input {
    grid-column: 1 / -1;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font: inherit;
    font-weight: 400;
}

.apato-rate__mini {
    display: flex;
    direction: ltr;
}

.apato-rate__mini button {
    padding: 0 2px;
    border: 0;
    background: none;
    color: #e5e7eb;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.apato-rate__mini button.is-on {
    color: #f5a623;
}

.apato-rate__courier {
    display: grid;
    gap: 8px;
    justify-items: start;
    margin: 0 0 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--apato-border, #e5e5e5);
}

.apato-rate__courier .apato-issue__label {
    margin: 0;
}

.apato-rate__courier .apato-rate__mini button {
    font-size: 26px;
}

.apato-item-sheet__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 13px;
    font-weight: 800;
}

.apato-item-sheet__rating span {
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
}

.apato-item-sheet__reviews {
    margin-top: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    background: #fff;
}

.apato-pr {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.apato-pr__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apato-pr__head small {
    margin-inline-start: auto;
    color: var(--apato-muted);
}

.apato-pr__stars {
    color: #f5a623;
    direction: ltr;
    letter-spacing: -1px;
}

.apato-pr__stars i {
    color: #e5e7eb;
    font-style: normal;
}

.apato-pr p {
    margin: 6px 0 0;
    line-height: 1.8;
}

.apato-pr__reply {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
}