:root {
    --wa-order-green: #25d366;
    --wa-order-green-dark: #075e54;
    --wa-order-page: #d9dbd5;
    --wa-order-bg: #efeae2;
    --wa-order-card: #ffffff;
    --wa-order-text: #111b21;
    --wa-order-muted: #667781;
    --wa-order-border: #d5d9de;
}

* {
    box-sizing: border-box;
}

body.wa-order-body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--wa-order-page);
    color: var(--wa-order-text);
    min-height: 100vh;
    min-height: 100dvh;
}

body.wa-order-body.wa-order-body-lock {
    overflow: hidden;
}

body.wa-order-body.is-ordering-disabled .wa-order-qty,
body.wa-order-body.is-ordering-disabled .wa-order-header-cart,
body.wa-order-body.is-ordering-disabled .wa-order-bottom-bar {
    opacity: 0.55;
}

body.wa-order-body.is-ordering-disabled .wa-order-qty {
    border-color: #dfe4e8;
    background: #f3f6f8;
}

body.wa-order-body.is-ordering-disabled .wa-order-qty-btn {
    background: #9aa8b3;
}

.wa-order-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--wa-order-bg);
    margin: 0 auto;
    position: relative;
    border-left: 0px solid #cad1d8;
    border-right: 0px solid #cad1d8;
}

.wa-order-shell input:not([type="checkbox"]):not([type="radio"]),
.wa-order-shell textarea,
.wa-order-shell select,
.wa-order-shell .select2-selection,
body.wa-order-body .select2-search__field {
    font-size: 16px !important;
    max-width: 100%;
    box-sizing: border-box;
}

.wa-order-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: calc(62px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 14px 0 14px;
    background: var(--wa-order-green-dark);
    color: #fff;
}

.wa-order-branch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-order-branch-trigger {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    min-width: 0;
}

.wa-order-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
}

.wa-order-logo-svg {
    width: 40px;
    height: 40px;
    display: block;
    color: var(--wa-order-green);
    opacity: 1;
    visibility: visible;
}

.wa-order-branch-name {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.wa-order-status {
    margin: 3px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.95;
    color: #d7ffe5;
}

.wa-order-status.is-online {
    color: #d7ffe5;
}

.wa-order-status.is-offline {
    color: #d7dde4;
}

.wa-order-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #23c45e;
}

.wa-order-status-dot.is-online {
    background: #23c45e;
}

.wa-order-status-dot.is-offline {
    background: #8d9aa6;
}

.wa-order-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.wa-order-header-search-shortcut {
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 36px;
}

.wa-order-header-search-shortcut[hidden] {
    display: none !important;
}

.wa-order-header-search-shortcut-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-order-header-search-shortcut-svg {
    width: 20px;
    height: 20px;
    display: block;
    color: #ffffff;
}

.wa-order-cart-icon,
.wa-order-header-cart {
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 1;
    visibility: visible;
}

.wa-order-cart-icon-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-order-cart-svg {
    width: 30px;
    height: 30px;
    display: block;
    color: #ffffff;
    opacity: 1;
    visibility: visible;
}

.wa-order-cart-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    background: var(--wa-order-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}

.wa-order-main {
    padding: 8px 10px calc(108px + env(safe-area-inset-bottom, 0px));
}

.wa-order-categories {
    position: sticky;
    top: calc(62px + env(safe-area-inset-top, 0px));
    z-index: 18;
    background: var(--wa-order-bg);
    padding-bottom: 6px;
    overflow-x: hidden;
}

.wa-order-category-track,
.wa-order-subcategory-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wa-order-category-track::-webkit-scrollbar,
.wa-order-subcategory-track::-webkit-scrollbar {
    display: none;
}

.wa-order-search-wrap {
    margin: 0 0 10px;
}

.wa-order-search {
    width: 100%;
    border: 1px solid var(--wa-order-border);
    border-radius: 25px;
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
    background: #fff;
}

.wa-order-category-track,
.wa-order-subcategory-track {
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    padding-top: 5px;
}

.wa-order-subcategory-wrap {
    padding-top: 6px;
}

.wa-order-subcategory-track {
    gap: 8px;
}

.wa-order-category-skeleton-wrap {
    display: flex;
    gap: 10px;
    width: max-content;
}

.wa-order-category-skeleton {
    width: 92px;
    height: 34px;
    border-radius: 999px;
    background: #e9eef2;
    border: 1px solid #dde4ea;
}

.wa-order-category-btn {
    border: 1px solid var(--wa-order-border);
    background: transparent;
    color: var(--wa-order-text);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 13px;
    white-space: nowrap;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.wa-order-category-btn:hover,
.wa-order-category-btn:focus {
    border-color: var(--wa-order-green);
    color: var(--wa-order-green);
}

.wa-order-category-btn.is-active {
    border-color: var(--wa-order-green);
    background: transparent;
    color: var(--wa-order-green);
    font-weight: 600;
}

.wa-order-category-btn.is-sub-active {
    border-color: var(--wa-order-green);
    background: transparent;
    color: var(--wa-order-green);
    font-weight: 600;
}

.wa-order-category-btn.is-active::after,
.wa-order-category-btn.is-sub-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -6px;
    height: 3px;
    border-radius: 2px;
    background: var(--wa-order-green);
}

.wa-order-products {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.wa-order-products-section {
    display: grid;
    gap: 12px;
}

.wa-order-products-section-title {
    margin: 2px 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #2d3a43;
}

.wa-order-category-anchor {
    display: block;
    height: 1px;
    width: 1px;
    pointer-events: none;
}

.wa-order-product-card {
    border-radius: 20px;
    background: var(--wa-order-card);
    border: 1px solid #e2e7ec;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.wa-order-product-card.is-product-unavailable {
    opacity: 0.72;
}

.wa-order-product-status-badge {
    display: inline-flex;
    align-items: center;
    margin: 4px 0 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffe7bf;
    color: #7a4a00;
    font-size: 11px;
    font-weight: 700;
}

.wa-order-product-image-wrap {
    width: 92px;
    height: 92px;
    min-width: 92px;
    border-radius: 16px;
    background: #f3f5f6;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.wa-order-product-image {
    width: 92px;
    height: 92px;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.wa-order-product-image-wrap.is-loading .wa-order-product-image {
    opacity: 0;
}

.wa-order-product-image-wrap.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: wa-order-shimmer-move 1.1s ease-in-out infinite;
    pointer-events: none;
}

.wa-order-product-skeleton-wrap {
    display: grid;
    gap: 12px;
}

.wa-order-product-card-skeleton {
    pointer-events: none;
}

.wa-order-product-card-skeleton .wa-order-product-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-order-product-footer-skeleton {
    margin-top: 2px;
}

.wa-order-skeleton-block {
    background: #e9eef2;
}

.wa-order-skeleton-line {
    display: block;
    height: 12px;
    border-radius: 8px;
    background: #e9eef2;
}

.wa-order-skeleton-line.is-title {
    width: 68%;
    height: 16px;
}

.wa-order-skeleton-line.is-desc {
    width: 92%;
}

.wa-order-skeleton-line.is-desc-short {
    width: 56%;
}

.wa-order-skeleton-line.is-price {
    width: 72px;
    height: 16px;
}

.wa-order-skeleton-pill {
    display: inline-block;
    width: 92px;
    height: 34px;
    border-radius: 16px;
    background: #e9eef2;
}

.wa-order-shimmer {
    position: relative;
    overflow: hidden;
}

.wa-order-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: wa-order-shimmer-move 1.1s ease-in-out infinite;
    pointer-events: none;
}

.wa-order-product-content {
    padding: 0;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wa-order-product-content h3 {
    margin: 0;
    font-size: 16px;
}

.wa-order-product-content p {
    margin: 5px 0 10px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--wa-order-muted);
    min-height: 30px;
}

.wa-order-product-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    min-width: 0;
}

.wa-order-product-price {
    font-size: 15px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-order-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d6dde3;
    border-radius: 16px;
    padding: 3px;
    background: #eef1f4;
    margin-left: auto;
    flex: 0 0 auto;
}

.wa-order-qty-btn {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wa-order-green);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.wa-order-qty-btn:disabled {
    background: #b0bcc6;
    cursor: not-allowed;
}

.wa-order-qty-value {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
}

.wa-order-empty {
    margin-top: 20px;
    border: 1px dashed #c8d0d8;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    color: var(--wa-order-muted);
    background: #fff;
}

.wa-order-feedback {
    margin-top: 10px;
}

.wa-order-loading,
.wa-order-error {
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dbe2e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-order-loading-text,
.wa-order-error-text {
    margin: 0;
    font-size: 13px;
    color: var(--wa-order-muted);
}

.wa-order-loading-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d4dce2;
    border-top-color: var(--wa-order-green-dark);
    animation: wa-order-spin 0.8s linear infinite;
}

.wa-order-retry-btn {
    border: 0;
    margin-left: auto;
    border-radius: 10px;
    background: var(--wa-order-green-dark);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
}

@keyframes wa-order-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes wa-order-shimmer-move {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {

    .wa-order-loading-spinner,
    .wa-order-shimmer::after,
    .wa-order-product-image-wrap.is-loading::after {
        animation: none !important;
    }

    .wa-order-options-backdrop,
    .wa-order-options-panel {
        transition: none !important;
    }

    .wa-order-options-product-summary.is-skeleton .wa-order-options-product-image-wrap::after,
    .wa-order-options-product-summary.is-skeleton #wa-order-options-product-title::after,
    .wa-order-options-product-summary.is-skeleton #wa-order-options-product-description::after,
    .wa-order-options-product-summary.is-skeleton #wa-order-options-product-base-price::after {
        animation: none !important;
    }

    .wa-order-options-product-image-wrap.is-loading::after {
        animation: none !important;
    }
}

.wa-order-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    border: 0;
    width: 100%;
    min-height: calc(86px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    display: block;
    background: #fff;
    color: var(--wa-order-text);
    cursor: pointer;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid #dce2e8;
    box-shadow: 0 -6px 16px rgba(17, 27, 33, 0.08);
}

.wa-order-bottom-bar.is-empty {
    opacity: 1;
    background: #fff;
}

.wa-order-bottom-inner {
    min-height: 58px;
    border-radius: 18px;
    background: var(--wa-order-green);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
}

.wa-order-bottom-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.wa-order-bottom-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-order-bottom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-order-bottom-cart-svg {
    width: 35px;
    height: 35px;
    display: block;
    color: #ffffff;
    opacity: 1;
    visibility: visible;
}

.wa-order-bottom-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 2px;
}

.wa-order-bottom-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-order-bottom-meta {
    font-size: 12px;
    line-height: 1.15;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-order-bottom-total {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.wa-order-cart-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

.wa-order-cart-sheet.is-open {
    pointer-events: auto;
}

.wa-order-cart-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(11, 20, 26, 0.48);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wa-order-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: 100%;
    background: #fff;
    border-radius: 0;
    max-height: none;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
}

.wa-order-cart-sheet.is-open .wa-order-cart-backdrop {
    opacity: 1;
}

.wa-order-cart-sheet.is-open .wa-order-cart-panel {
    transform: translateX(0);
}

.wa-order-cart-header,
.wa-order-cart-footer {
    padding: 14px;
}

.wa-order-cart-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid var(--wa-order-border);
    column-gap: 8px;
}

.wa-order-cart-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-top: 1px solid #e4ebf1;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.wa-order-cart-header h2 {
    margin: 0;
    font-size: 17px;
    grid-column: 2;
    justify-self: center;
    text-align: center;
}

.wa-order-cart-go-menu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: #edf4f0;
    color: #1f5f3c;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    grid-column: 1;
    justify-self: start;
    max-width: 100%;
    min-width: 0;
}

.wa-order-cart-go-menu svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex: 0 0 auto;
}

.wa-order-cart-go-menu span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-order-cart-close {
    border: 0;
    background: #f2f3f5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    grid-column: 3;
    justify-self: end;
}

.wa-order-cart-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--wa-order-green) transparent;
}

.wa-order-cart-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e7edf2;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 10px;
    position: relative;
}

.wa-order-cart-item:last-child {
    margin-bottom: 0;
}

.wa-order-cart-item-image-wrap {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    background: #edf2f6;
    flex: 0 0 62px;
    position: relative;
}

.wa-order-cart-item-image {
    width: 62px;
    height: 62px;
    object-fit: cover;
    display: block;
}

.wa-order-cart-item-image-wrap.is-loading .wa-order-cart-item-image {
    opacity: 0;
}

.wa-order-cart-item-image-wrap.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: wa-order-shimmer-move 1.1s ease-in-out infinite;
}

.wa-order-cart-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    padding-right: 22px;
}

.wa-order-cart-item-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.wa-order-cart-item-meta {
    margin: 0;
    font-size: 12px;
    color: var(--wa-order-muted);
}

.wa-order-cart-item-options {
    margin: 0;
    font-size: 11px;
    color: #516371;
    line-height: 1.35;
}

.wa-order-cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.wa-order-cart-item-action-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.wa-order-cart-item-link {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #0e7d43;
    cursor: pointer;
}

.wa-order-cart-item-link.is-danger {
    color: #c62828;
}

.wa-order-cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d7e2ea;
    border-radius: 999px;
    padding: 2px;
}

.wa-order-cart-item-qty-btn {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #0f8e49;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.wa-order-cart-item-qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #18323f;
}

.wa-order-cart-item-total {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f2a35;
    flex: 1 1 auto;
    min-width: 0;
}

.wa-order-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #edf2f6;
    color: #5b6d79;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.wa-order-cart-item-remove:hover {
    background: #e2e9ef;
    color: #2f4653;
}

.wa-order-cart-campaign,
.wa-order-cart-promo {
    margin: 12px 14px 0;
    border: 1px solid #e6edf2;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}

.wa-order-cart-block-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #27404c;
}

.wa-order-cart-block-text {
    margin: 0;
    font-size: 12px;
    color: #607480;
}

.wa-order-cart-promo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-order-cart-promo-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    border: 1px solid #d7e2ea;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
}

.wa-order-cart-promo-btn {
    border: 0;
    border-radius: 10px;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    background: #0f8e49;
    color: #fff;
    cursor: pointer;
}

.wa-order-cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px dashed #d8e2ea;
}

.wa-order-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #526673;
    margin-bottom: 6px;
}

.wa-order-complete-btn {
    width: 100%;
    border: 0;
    border-radius: 18px;
    height: 58px;
    padding: 0 52px 0 16px;
    font-weight: 700;
    background: var(--wa-order-green);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wa-order-cart-checkout-label {
    display: inline-block;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.wa-order-cart-checkout-arrow {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    pointer-events: none;
}

.wa-order-complete-btn:disabled {
    background: #b5c0c7;
    cursor: not-allowed;
}

.wa-order-sheet-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #b54708;
}

.wa-order-cart-empty {
    margin: 18px 0 20px;
    font-size: 13px;
    color: var(--wa-order-muted);
    text-align: center;
}

.wa-order-cart-address-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    border: 1px solid #dce6ee;
    border-radius: 12px;
    padding: 10px;
    background: #f7fafc;
}

.wa-order-cart-address-summary-texts {
    flex: 1;
    min-width: 0;
}

.wa-order-cart-address-summary-label {
    margin: 0 0 2px;
    font-size: 11px;
    color: #6b7f8c;
}

.wa-order-cart-address-summary-value {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #203744;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-order-cart-address-change {
    border: 0;
    border-radius: 10px;
    height: 34px;
    padding: 0 10px;
    background: #0f8e49;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
}

.wa-order-addresses-drawer,
.wa-order-address-form-drawer,
.wa-order-payment-drawer,
.wa-order-company-info-drawer {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
}

.wa-order-address-form-drawer {
    z-index: 56;
}

.wa-order-payment-drawer {
    z-index: 57;
}

.wa-order-company-info-drawer {
    z-index: 58;
}

.wa-order-addresses-drawer.is-open,
.wa-order-address-form-drawer.is-open,
.wa-order-payment-drawer.is-open,
.wa-order-company-info-drawer.is-open {
    pointer-events: auto;
}

.wa-order-addresses-backdrop,
.wa-order-address-form-backdrop,
.wa-order-payment-backdrop,
.wa-order-company-info-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 21, 29, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wa-order-addresses-panel,
.wa-order-address-form-panel,
.wa-order-payment-panel,
.wa-order-company-info-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100vw, 480px);
    max-width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.22s ease;
}

.wa-order-addresses-drawer.is-open .wa-order-addresses-backdrop,
.wa-order-address-form-drawer.is-open .wa-order-address-form-backdrop,
.wa-order-payment-drawer.is-open .wa-order-payment-backdrop,
.wa-order-company-info-drawer.is-open .wa-order-company-info-backdrop {
    opacity: 1;
}

.wa-order-addresses-drawer.is-open .wa-order-addresses-panel,
.wa-order-address-form-drawer.is-open .wa-order-address-form-panel,
.wa-order-payment-drawer.is-open .wa-order-payment-panel,
.wa-order-company-info-drawer.is-open .wa-order-company-info-panel {
    transform: translateX(0);
    box-shadow: -12px 0 28px rgba(15, 30, 39, 0.18);
}

.wa-swipe-close-panel {
    will-change: transform;
    touch-action: pan-y;
}

.wa-swipe-close-panel.is-swipe-dragging {
    transition: none !important;
}

.wa-swipe-close-panel.is-swipe-closing {
    transition: transform 0.22s ease !important;
}

.wa-order-addresses-header,
.wa-order-address-form-header,
.wa-order-payment-header,
.wa-order-company-info-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 10px;
    border-bottom: 1px solid #e4ebf1;
    background: #fff;
}

.wa-order-addresses-header h2,
.wa-order-address-form-header h2 {
    margin: 0;
    font-size: 18px;
}

.wa-order-addresses-back,
.wa-order-address-form-back,
.wa-order-payment-back {
    border: 0;
    background: #f0f4f7;
    color: #1f2d36;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.wa-order-addresses-body,
.wa-order-address-form-body,
.wa-order-payment-body,
.wa-order-company-info-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.wa-order-addresses-list {
    display: grid;
    gap: 10px;
}

.wa-order-address-item {
    border: 1px solid #dee7ef;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.wa-order-address-item.is-active {
    border-color: #0f8e49;
    box-shadow: 0 0 0 2px rgba(15, 142, 73, 0.12);
}

.wa-order-address-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wa-order-address-item-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1d3641;
}

.wa-order-address-item-line {
    margin: 6px 0 0;
    font-size: 12px;
    color: #516371;
    line-height: 1.4;
}

.wa-order-address-item-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-order-address-item-btn,
.wa-order-address-item-link {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
}

.wa-order-address-item-btn {
    border-radius: 8px;
    background: #0f8e49;
    color: #fff;
    padding: 6px 10px;
    font-weight: 700;
}

.wa-order-address-item-link {
    color: #0f8e49;
    font-weight: 600;
}

.wa-order-address-item-link.is-danger {
    color: #c62828;
}

.wa-order-addresses-empty {
    font-size: 13px;
    color: #607480;
    text-align: center;
    padding: 16px 0;
}

.wa-order-addresses-footer,
.wa-order-address-form-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-top: 1px solid #e4ebf1;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}

.wa-order-company-info-header {
    justify-content: space-between;
}

.wa-order-company-info-header h2 {
    margin: 0;
    font-size: 18px;
}

.wa-order-company-info-close {
    border: 0;
    background: #f0f4f7;
    color: #1f2d36;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.wa-order-company-info-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-order-company-info-loading {
    display: grid;
    gap: 12px;
}

[data-wa-company-info-loading][hidden],
[data-wa-company-info-error][hidden],
[data-wa-company-info-content][hidden] {
    display: none !important;
}

.wa-order-company-skeleton {
    border-radius: 12px;
    background: linear-gradient(90deg, #e9eff4 25%, #f3f7fa 37%, #e9eff4 63%);
    background-size: 400% 100%;
    animation: waCompanySkeleton 1.2s ease infinite;
}

.wa-order-company-skeleton-map {
    aspect-ratio: 16 / 7;
}

.wa-order-company-skeleton-list {
    height: 92px;
}

@keyframes waCompanySkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.wa-order-company-info-error {
    border: 1px solid #f0d9d9;
    background: #fff5f5;
    color: #8f2e2e;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.wa-order-company-info-error p {
    margin: 0;
    font-size: 13px;
}

.wa-order-company-info-retry {
    width: fit-content;
    border: 0;
    border-radius: 8px;
    padding: 7px 11px;
    background: #0f8e49;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.wa-order-company-info-content {
    display: grid;
    gap: 14px;
}

.wa-order-company-section {
    border: 1px solid #e2eaf0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.wa-order-company-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #1f3642;
}

.wa-order-company-map {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dce6ee;
}

.wa-order-company-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.wa-order-company-empty {
    margin: 0;
    font-size: 13px;
    color: #5d717f;
}

.wa-order-company-payments-list,
.wa-order-company-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wa-order-company-payments-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wa-order-company-hours-list {
    display: block;
}

.wa-order-company-payment-row {
    border: 1px solid #e5ecf2;
    border-radius: 10px;
    background: #f8fafc;
    min-height: 44px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #29404d;
    min-width: 0;
}

.wa-order-company-hours-row {
    border: 0;
    border-bottom: 1px solid #e5ecf2;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #29404d;
}

.wa-order-company-payments-item-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wa-order-company-payments-item-left span:last-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}

.wa-order-company-payments-icon {
    width: 20px;
    height: 20px;
    color: #4e6472;
    flex: 0 0 auto;
}

.wa-order-company-payments-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 330px) {
    .wa-order-company-payments-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wa-order-company-hours-day {
    font-weight: 600;
    color: #213844;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-order-company-hours-value {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.wa-order-company-hours-value.is-closed {
    color: #8b98a2;
}

.wa-order-payment-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-top: 1px solid #e4ebf1;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wa-order-payment-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.wa-order-payment-header-address {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    min-width: 0;
    width: auto;
    max-width: min(58vw, 340px);
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f3642;
    cursor: pointer;
}

.wa-order-payment-header-address-inline {
    min-width: 0;
    width: auto;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-order-payment-header-home {
    color: #4a6270;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.wa-order-payment-header-home svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-order-payment-header-address-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.wa-order-payment-header-cart {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4a6270;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    appearance: none;
    justify-self: end;
}

.wa-order-payment-header-cart-icon {
    width: 18px;
    height: 18px;
    color: #4a6270;
}

.wa-order-payment-header-cart-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-order-payment-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    width: auto;
    font-size: 12px;
    font-weight: 700;
    justify-self: start;
}

.wa-order-payment-header-back {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.wa-order-payment-header-back svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-order-payment-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wa-order-payment-methods h3,
.wa-order-payment-delivery-flags h3,
.wa-order-payment-note-wrap h3 {
    margin: 0;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    color: #607480;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.wa-order-payment-method-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e7edf2;
    border-radius: 0;
    min-height: 46px;
    padding: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 28px;
    align-items: center;
    column-gap: 10px;
    cursor: pointer;
}

.wa-order-payment-method-item.is-active {
    border-bottom-color: #0f8e49;
}

.wa-order-payment-method-icon {
    width: 24px;
    height: 24px;
    color: #3d5562;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-order-payment-method-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-order-payment-method-name {
    font-size: 13px;
    font-weight: 500;
    color: #1d3641;
    text-align: left;
    min-width: 0;
}

.wa-order-payment-method-radio {
    width: 16px;
    height: 16px;
    accent-color: #0f8e49;
    pointer-events: none;
    justify-self: end;
}

.wa-order-payment-accordion-btn {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    column-gap: 8px;
    border: 0;
    border-bottom: 1px solid #e7edf2;
    border-radius: 0;
    height: 46px;
    padding: 0;
    background: transparent;
    color: #1f3642;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.wa-order-payment-accordion-icon {
    width: 20px;
    height: 20px;
    color: #6e8390;
    justify-self: end;
    transition: transform 0.2s ease;
}

.wa-order-payment-accordion-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-order-payment-accordion-btn[aria-expanded="true"] .wa-order-payment-accordion-icon {
    transform: rotate(90deg);
}

.wa-order-payment-method-list.is-collapsed {
    margin-top: 0;
}

.wa-order-payment-delivery-flags {
    display: grid;
    gap: 0;
}

.wa-order-payment-switch-row {
    width: 100%;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    min-height: 46px;
    border-bottom: 1px solid #e7edf2;
    font-size: 13px;
    color: #2f4653;
}

.wa-order-payment-row-icon {
    width: 24px;
    height: 24px;
    color: #3d5562;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-order-payment-row-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-order-payment-note-wrap {
    display: grid;
    gap: 6px;
}

.wa-order-payment-note-wrap textarea {
    width: 100%;
    border: 1px solid #e1e8ee;
    border-radius: 10px;
    padding: 8px 10px;
    min-height: 68px;
    resize: vertical;
    background: #fff;
}

.wa-order-payment-switch {
    position: relative;
    width: 42px;
    height: 24px;
}

.wa-order-payment-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wa-order-payment-switch-slider {
    position: absolute;
    inset: 0;
    background: #d6e0e8;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.wa-order-payment-switch-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.wa-order-payment-switch input:checked+.wa-order-payment-switch-slider {
    background: #0f8e49;
}

.wa-order-payment-switch input:checked+.wa-order-payment-switch-slider::before {
    transform: translateX(18px);
}

.wa-order-payment-error {
    margin: 8px 0 0;
    color: #b42318;
    font-size: 12px;
}

.wa-order-payment-spacer {
    flex: 1;
    min-height: 10px;
}

.wa-order-payment-total-row {
    display: grid;
    gap: 2px;
    font-size: 11px;
    color: #607480;
}

.wa-order-payment-total-row strong {
    font-size: 17px;
    color: #1f3642;
    line-height: 1.1;
}

.wa-order-payment-submit {
    width: auto;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    height: 45px;
    background: #23c45e;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
}

.wa-order-payment-submit.is-loading {
    opacity: 0.85;
    cursor: wait;
}

body.wa-order-body.wa-order-success-active {
    overflow: hidden;
}

body.wa-order-body.wa-order-system-disabled-active {
    overflow: hidden;
}

.wa-order-success-screen {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: linear-gradient(180deg, #0f8e49 0%, #0a6b38 100%);
    padding: calc(28px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-wa-order-success][hidden] {
    display: none !important;
}

[data-wa-system-disabled][hidden] {
    display: none !important;
}

.wa-order-success-card {
    width: min(100%, 420px);
    text-align: center;
    color: #fff;
    display: grid;
    gap: 12px;
}

.wa-order-success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-order-success-icon svg {
    width: 68px;
    height: 68px;
    display: block;
}

.wa-order-success-icon circle {
    fill: rgba(255, 255, 255, 0.24);
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
}

.wa-order-success-icon path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wa-order-success-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.wa-order-success-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.wa-order-success-order-no {
    font-weight: 700;
    font-size: 16px;
}

.wa-order-success-back {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #25d366;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
}

.wa-order-success-back-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-order-success-back-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wa-order-success-alert {
    color: #ffe3a9;
    font-weight: 600;
}

.wa-order-system-disabled-screen {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: linear-gradient(180deg, #1f2630 0%, #161c24 100%);
    padding: calc(28px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-order-system-disabled-card {
    width: min(100%, 420px);
    text-align: center;
    color: #fff;
    display: grid;
    gap: 12px;
}

.wa-order-system-disabled-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-order-system-disabled-icon svg {
    width: 68px;
    height: 68px;
    display: block;
}

.wa-order-system-disabled-icon circle {
    fill: rgba(255, 255, 255, 0.14);
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2;
}

.wa-order-system-disabled-icon path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wa-order-system-disabled-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.wa-order-system-disabled-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.wa-order-addresses-add,
.wa-order-address-form-save {
    width: 100%;
    border: 0;
    border-radius: 12px;
    height: 46px;
    background: #0f8e49;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.wa-order-address-form-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.wa-order-address-form-delete {
    width: 100%;
    border: 0;
    border-radius: 12px;
    height: 42px;
    background: #fbe9e9;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wa-order-address-field {
    display: grid;
    gap: 6px;
    margin-bottom: 0;
}

.wa-order-address-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
}

.wa-order-address-field.is-full {
    grid-column: 1 / -1;
}

.wa-order-address-field.is-phone-field {
    grid-column: 1 / -1;
}

.wa-order-address-field span {
    font-size: 12px;
    font-weight: 600;
    color: #334c58;
}

.wa-order-address-field input,
.wa-order-address-field select,
.wa-order-address-field textarea {
    width: 100%;
    border: 1px solid #d7e2ea;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
    color: #17303c;
    background: #fff;
}

.wa-order-address-field input,
.wa-order-address-field select {
    height: 40px;
}

.wa-order-address-field textarea {
    min-height: 70px;
    padding-top: 8px;
    padding-bottom: 8px;
    resize: vertical;
}

.wa-order-phone-input-wrap {
    position: relative;
    display: block;
}

.wa-order-phone-input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #6a7f8b;
    pointer-events: none;
}

.wa-order-phone-input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.wa-order-phone-input-wrap input {
    padding-left: 36px;
}

.wa-order-address-field.is-invalid .wa-order-phone-input-icon {
    color: #dc3545;
}

.wa-order-phone-input-wrap:focus-within .wa-order-phone-input-icon {
    color: #0f8e49;
}

.wa-order-address-field.is-invalid input,
.wa-order-address-field.is-invalid select,
.wa-order-address-field.is-invalid textarea {
    border-color: #dc3545;
}

.wa-order-address-field-error {
    font-size: 11px;
    color: #b42318;
}

.wa-order-address-region-info {
    margin-top: 12px;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    padding: 10px;
    background: #f8fbff;
}

.wa-order-address-region-info p {
    margin: 0;
    font-size: 12px;
    color: #334c58;
}

.wa-order-address-region-info p+p {
    margin-top: 4px;
}

.wa-order-address-region-warn {
    color: #b42318 !important;
    font-weight: 600;
}

.wa-order-address-item-btn:disabled {
    background: #b6c3cb;
    cursor: not-allowed;
}

.select2-container.is-invalid .select2-selection {
    border-color: #dc3545 !important;
}

.wa-order-address-form-error {
    margin: 2px 0 0;
    font-size: 12px;
    color: #b42318;
}

@media (max-width: 340px) {
    .wa-order-address-form-grid {
        grid-template-columns: 1fr;
    }
}

.wa-order-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wa-order-options-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.wa-order-options-drawer.is-open {
    pointer-events: auto;
}

.wa-order-options-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 21, 29, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wa-order-options-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(100vw, 480px);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    border-radius: 18px 0 0 18px;
}

.wa-order-options-drawer.is-open .wa-order-options-backdrop {
    opacity: 1;
}

.wa-order-options-drawer.is-open .wa-order-options-panel {
    transform: translateX(0);
    box-shadow: -12px 0 28px rgba(15, 30, 39, 0.18);
}

.wa-order-options-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid #e5eaef;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-order-options-back {
    border: 0;
    background: #f0f4f7;
    color: #1f2d36;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.wa-order-options-header-text {
    min-width: 0;
}

.wa-order-options-header-text h2 {
    margin: 0;
    font-size: 18px;
}

.wa-order-options-header-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #566b79;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-order-options-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.wa-order-options-product-summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8ee;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 12px;
}

.wa-order-options-product-image-wrap {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background: #eef2f6;
    flex: 0 0 76px;
    overflow: hidden;
    position: relative;
}

.wa-order-options-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wa-order-options-product-image-wrap.is-loading .wa-order-options-product-image {
    visibility: hidden;
}

.wa-order-options-product-image-wrap.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
    animation: wa-order-shimmer-move 1.1s ease-in-out infinite;
}

.wa-order-options-product-image-wrap.is-company-fallback .wa-order-options-product-image {
    object-fit: contain;
    padding: 8px;
    background: #fff;
}

.wa-order-options-product-content {
    min-width: 0;
    flex: 1 1 auto;
}

.wa-order-options-product-content h3 {
    margin: 0;
    font-size: 15px;
}

.wa-order-options-product-content p {
    margin: 4px 0 6px;
    font-size: 12px;
    color: #5b6f7d;
}

.wa-order-options-product-content strong {
    font-size: 14px;
    color: #1f2d36;
}

.wa-order-options-product-summary.is-skeleton .wa-order-options-product-image-wrap,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-title,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-description,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-base-price {
    background: #e8edf2;
    color: transparent;
    border-radius: 8px;
}

.wa-order-options-product-summary.is-skeleton #wa-order-options-product-title {
    width: 75%;
    height: 16px;
}

.wa-order-options-product-summary.is-skeleton #wa-order-options-product-description {
    width: 100%;
    height: 32px;
    margin-top: 8px;
}

.wa-order-options-product-summary.is-skeleton #wa-order-options-product-base-price {
    width: 35%;
    height: 14px;
    display: inline-block;
    margin-top: 8px;
}

.wa-order-options-product-summary.is-skeleton .wa-order-options-product-image-wrap,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-title,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-description,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-base-price {
    position: relative;
    overflow: hidden;
}

.wa-order-options-product-summary.is-skeleton .wa-order-options-product-image-wrap::after,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-title::after,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-description::after,
.wa-order-options-product-summary.is-skeleton #wa-order-options-product-base-price::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    animation: wa-order-shimmer-move 1.15s ease-in-out infinite;
}

.wa-order-options-loading {
    display: grid;
    gap: 10px;
}

.wa-order-options-loading-row {
    height: 78px;
    border-radius: 14px;
    border: 1px solid #e3e8ee;
    background: #eef2f6;
}

.wa-order-options-error {
    border: 1px solid #f1c2b2;
    border-radius: 12px;
    background: #fff6f4;
    padding: 12px;
}

.wa-order-options-error p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #9b2f1b;
}

.wa-order-options-retry {
    border: 0;
    border-radius: 10px;
    height: 38px;
    padding: 0 12px;
    background: #e86c4a;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.wa-order-options-group {
    border: 1px solid #e1e8ee;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    width: 100%;
    position: relative;
}

.wa-order-options-group+.wa-order-options-group {
    margin-top: 12px;
}

.wa-order-options-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.wa-order-options-group-header h3 {
    margin: 0;
    font-size: 15px;
}

.wa-order-options-group-meta {
    font-size: 11px;
    color: #6d7f8b;
    white-space: normal;
    text-align: right;
    max-width: 56%;
    line-height: 1.25;
}

.wa-order-options-group[data-level="1"],
.wa-order-options-group[data-level="2"],
.wa-order-options-group[data-level="3"],
.wa-order-options-group[data-level="4"],
.wa-order-options-group[data-level="5"] {
    border-left-width: 3px;
    border-left-style: dashed;
    border-left-color: #c8d6e2;
}

.wa-order-options-group.is-invalid {
    border-color: #e36b4c;
    box-shadow: inset 0 0 0 1px rgba(227, 107, 76, 0.2);
}

.wa-order-options-group.is-validation-error {
    border-color: #e36b4c;
    box-shadow: inset 0 0 0 1px rgba(227, 107, 76, 0.2);
    background: #fff7f4;
}

.wa-order-options-group.is-validation-shaking {
    animation: wa-option-validation-shake 0.18s ease-in-out 2;
}

@keyframes wa-option-validation-shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    50% {
        transform: translateX(6px);
    }
    75% {
        transform: translateX(-4px);
    }
    100% {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-order-options-group.is-validation-shaking {
        animation: none;
    }
}

.wa-order-options-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
}

.wa-order-options-item {
    border: 1px solid #e2e9ef;
    border-radius: 11px;
    padding: 7px 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.wa-order-options-item.has-open-sub-options {
    grid-column: 1 / -1;
}

.wa-order-options-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-order-options-item.has-stacked-quantity .wa-order-options-item-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-areas:
        "control content"
        "qty qty";
    align-items: start;
    row-gap: 8px;
}

.wa-order-options-item-control {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #9bb0bf;
    background: #fff;
    flex: 0 0 auto;
}

.wa-order-options-item.has-stacked-quantity .wa-order-options-item-control {
    grid-area: control;
    margin-top: 3px;
}

.wa-order-options-item[data-selected="1"]>.wa-order-options-item-row .wa-order-options-item-control {
    border-color: #17a658;
    background: #17a658;
    box-shadow: inset 0 0 0 3px #fff;
}

.wa-order-options-item-content {
    min-width: 0;
    flex: 1 1 auto;
}

.wa-order-options-item.has-stacked-quantity .wa-order-options-item-content {
    grid-area: content;
}

.wa-order-options-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.wa-order-options-item-price {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #5b6f7d;
}

.wa-order-options-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
}

.wa-order-options-item.has-stacked-quantity .wa-order-options-item-qty {
    grid-area: qty;
    margin-left: 0;
    justify-self: center;
}

.wa-order-options-item-qty button {
    border: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #177343;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.wa-order-options-item-qty span {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.wa-order-options-item.is-none-option {
    border-style: dashed;
}

.wa-order-options-sub-host {
    display: none;
    width: 100%;
}

.wa-order-options-item.has-open-sub-options > .wa-order-options-sub-host {
    display: block;
}

.wa-order-options-item.has-open-sub-options > .wa-order-options-sub-host > .wa-order-options-group {
    margin-top: 0;
}

.wa-order-options-children {
    margin-top: 8px;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 2px dashed #d7e1e8;
    display: none;
}

.wa-order-options-item[data-selected="1"]>.wa-order-options-children {
    display: block;
}

.wa-order-options-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-top: 1px solid #e3e8ee;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}

.wa-order-options-validation {
    margin: 0 0 8px;
    font-size: 12px;
    color: #b13f24;
}

.wa-order-options-add {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: #0f8e49;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.wa-order-options-add:disabled {
    background: #afbcc5;
    cursor: not-allowed;
}

.wa-order-store-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease;
}

.wa-order-store-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.wa-order-store-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 21, 29, 0.56);
    z-index: 0;
}

.wa-order-store-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 360px);
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px 16px;
    box-shadow: 0 16px 42px rgba(8, 19, 28, 0.22);
    z-index: 1;
    pointer-events: auto;
}

.wa-order-store-modal-panel h2 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #0f252e;
}

.wa-order-store-modal-panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #536773;
}

.wa-order-store-modal-btn {
    margin-top: 16px;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--wa-order-green-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.wa-order-access-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease;
}

.wa-order-access-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.wa-order-access-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 21, 29, 0.62);
}

.wa-order-access-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 380px);
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px 16px;
    box-shadow: 0 16px 44px rgba(7, 19, 29, 0.24);
}

.wa-order-access-modal-panel h2 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #0f252e;
}

.wa-order-access-modal-panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #536773;
}

.wa-order-access-modal-btn {
    margin-top: 16px;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #0f8e49;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.wa-order-access-modal-btn:disabled {
    background: #b3c0c9;
    cursor: not-allowed;
}

.wa-order-access-modal-help {
    margin-top: 10px !important;
    font-size: 12px !important;
    color: #a13a37 !important;
}

.wa-order-body button:focus-visible,
.wa-order-body input:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

@media (min-width: 431px) {
    .wa-order-shell {
        max-width: 100%;
        border-left: 0px solid #dce3e7;
        border-right: 0px solid #dce3e7;
    }

    .wa-order-bottom-bar {
        left: 50%;
        width: 100%;
        transform: translateX(-50%);
        border-radius: 24px 24px 0 0;
    }

    .wa-order-cart-panel {
        width: min(100vw, 480px);
        border-radius: 18px 0 0 18px;
        transform: translateX(100%);
    }

    .wa-order-payment-panel {
        width: min(100vw, 480px);
        border-radius: 18px 0 0 18px;
    }

    .wa-order-cart-sheet.is-open .wa-order-cart-panel {
        transform: translateX(0);
        box-shadow: -12px 0 28px rgba(15, 30, 39, 0.18);
    }

    .wa-order-options-panel {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .wa-order-header {
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .wa-order-header-actions {
        gap: 6px;
    }

    .wa-order-main {
        padding-left: 8px;
        padding-right: 8px;
    }

    .wa-order-product-image-wrap,
    .wa-order-product-image {
        width: 84px;
        height: 84px;
        min-width: 84px;
    }

    .wa-order-product-content h3 {
        font-size: 15px;
    }

    .wa-order-product-content p {
        font-size: 11px;
    }

    .wa-order-bottom-inner {
        padding-left: 10px;
        padding-right: 10px;
    }

    .wa-order-bottom-icon-box {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .wa-order-bottom-title {
        font-size: 1rem;
    }

    .wa-order-bottom-meta {
        font-size: 11px;
    }

    .wa-order-bottom-total {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-swipe-close-panel.is-swipe-closing {
        transition-duration: 0.01ms !important;
    }
}