/* Страница заказов */
.orders-page {
    padding: 12px 12px 24px;
}

.orders-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 12px;
}

.orders-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.orders-tab.active {
    background: var(--background);
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}

.orders-tab-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.2);
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.35);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Пустое состояние */
.orders-empty-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.orders-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.orders-empty-icon svg {
    width: 30px;
    height: 30px;
}

.orders-empty-icon-muted {
    opacity: 0.75;
}

.orders-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.orders-empty-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 18px;
}

.orders-empty-btn {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.45);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 147, 51, 234), 0.35);
}

.orders-empty-btn:active {
    transform: scale(0.98);
}

/* Карточка заказа — компактная */
.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.35s ease-out;
    overflow: hidden;
    position: relative;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0.85;
}

.order-card-past::before {
    background: linear-gradient(90deg, #4b5563, #6b7280);
    opacity: 0.5;
}

.order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.order-card-number-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.order-card-head-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.order-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.order-card-id {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.order-status-badge {
    padding: 4px 9px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.order-status-active {
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.15);
    color: var(--primary-light);
    border-color: rgba(var(--primary-rgb, 147, 51, 234), 0.35);
}

.order-status-done {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.order-status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.order-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.order-card-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.order-total-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: -0.2px;
}

.order-card-past .order-total-value {
    color: var(--text);
}

.order-qr-show-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 147, 51, 234), 0.28) 0%, rgba(var(--primary-rgb, 147, 51, 234), 0.14) 100%);
    color: #fff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 147, 51, 234), 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.order-qr-show-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 147, 51, 234), 0.18);
}

.order-qr-show-btn-muted {
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.1);
    box-shadow: none;
    color: var(--primary-light);
}

.order-qr-show-btn-muted:active {
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.18);
}

.order-qr-show-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.order-qr-show-btn-muted .order-qr-show-icon {
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.14);
    border-color: rgba(var(--primary-rgb, 147, 51, 234), 0.25);
}

.order-qr-show-icon svg {
    width: 24px;
    height: 24px;
}

.order-qr-show-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.order-qr-show-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.order-qr-show-hint {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.82;
    line-height: 1.3;
}

.order-qr-show-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.75;
}

.order-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.order-cancel-btn svg {
    width: 14px;
    height: 14px;
}

.order-cancel-btn:active:not(:disabled) {
    transform: scale(0.96);
    background: rgba(239, 68, 68, 0.22);
}

.order-cancel-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.order-card-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.order-info-sep {
    opacity: 0.45;
}

.order-info-location {
    font-size: 11px;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-info-location-multiline {
    white-space: pre-line;
    overflow: visible;
    text-overflow: unset;
}

.order-info-pickup-day {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.14);
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.25);
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 700;
}

.order-products-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-product-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.order-product-image-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: var(--background);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.order-product-info {
    flex: 1;
    min-width: 0;
}

.order-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-item-variant {
    display: inline-block;
    font-size: 10px;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.12);
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.2);
    border-radius: 5px;
    padding: 1px 5px;
    margin-bottom: 3px;
}

.order-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.order-product-price {
    font-weight: 700;
    color: var(--text);
}

.order-expand-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-elevated);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-expand-btn:active {
    transform: scale(0.98);
    border-color: var(--primary);
}

.order-expand-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.order-expand-icon.expanded {
    transform: rotate(180deg);
}

.order-promo-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    margin-top: 8px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 11px;
    color: #a7f3d0;
}

.order-promo-chip span:last-child {
    font-weight: 700;
}

/* Модальное окно QR */
.order-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.order-qr-modal.active {
    opacity: 1;
    visibility: visible;
}

.order-qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.order-qr-sheet {
    position: relative;
    width: min(100%, 300px);
    padding: 20px 18px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: orderQrPop 0.3s ease-out;
}

@keyframes orderQrPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.order-qr-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: var(--surface-elevated);
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.order-qr-close:active {
    transform: scale(0.94);
    color: var(--text);
}

.order-qr-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.order-qr-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-qr-id {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.order-qr-frame {
    display: inline-flex;
    padding: 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

.order-qr-frame canvas {
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 4px;
}

.order-qr-hint {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.order-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.order-edit-btn svg {
    width: 14px;
    height: 14px;
}

.order-edit-btn:active {
    transform: scale(0.96);
    background: rgba(59, 130, 246, 0.22);
}

.order-meeting-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.order-meeting-btn svg {
    width: 14px;
    height: 14px;
}

.order-meeting-btn:active {
    transform: scale(0.96);
    background: rgba(16, 185, 129, 0.22);
}

.order-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.order-promo-btn svg {
    width: 14px;
    height: 14px;
}

.order-promo-btn:active:not(:disabled) {
    transform: scale(0.96);
    background: rgba(251, 191, 36, 0.22);
}

.order-promo-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.order-promo-inline-btn {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 14px;
    border: 1px dashed rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.order-promo-inline-btn:active {
    transform: scale(0.99);
    background: rgba(251, 191, 36, 0.14);
}

.order-promo-modal-note {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.order-edit-closed-hint {
    font-size: 11px;
    color: #fca5a5;
    margin: 0 0 8px;
    line-height: 1.35;
}

.order-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.order-edit-modal.active {
    display: flex;
}

.order-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.order-edit-sheet {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--bg-secondary, #1a1028);
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.order-edit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.order-edit-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    padding-right: 36px;
}

.order-edit-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-edit-id {
    font-size: 20px;
    font-weight: 800;
}

.order-edit-replace-hint {
    font-size: 12px;
    color: #93c5fd;
    margin: 0 0 10px;
}

.order-edit-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.order-edit-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-edit-item-image {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.order-edit-item-body {
    flex: 1;
    min-width: 0;
}

.order-edit-item-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.order-edit-variant,
.order-edit-flavor-trigger-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.order-edit-flavor {
    position: relative;
    margin-bottom: 8px;
}

.order-edit-flavor-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.28);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.08);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.order-edit-flavor-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-light);
    transition: transform 0.2s ease;
}

.order-edit-flavor.open .order-edit-flavor-chevron {
    transform: rotate(180deg);
}

.order-edit-flavor-panel {
    display: none;
    margin-top: 8px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb, 147, 51, 234), 0.25);
    background: rgba(15, 10, 25, 0.96);
    max-height: 200px;
    overflow-y: auto;
    position: relative;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.order-edit-flavor.open .order-edit-flavor-panel {
    display: block;
}

.order-edit-flavor-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-edit-flavor-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text, #dcfce7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
}

.order-edit-flavor-option:active {
    transform: scale(0.98);
}

.order-edit-flavor-option.active {
    border-color: rgba(var(--primary-rgb, 147, 51, 234), 0.55);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.22);
    color: var(--primary-light, #d8b4fe);
}

.order-edit-flavor-option-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.order-edit-flavor-option.active .order-edit-flavor-option-dot {
    border-color: var(--primary-light);
    background: var(--primary-light);
    box-shadow: 0 0 8px rgba(var(--primary-rgb, 147, 51, 234), 0.8);
}

.order-edit-flavor-option-label {
    line-height: 1.3;
}

.order-edit-flavor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.order-edit-flavor-chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-edit-flavor-chip.active {
    border-color: rgba(var(--primary-rgb, 147, 51, 234), 0.45);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.18);
    color: var(--primary-light);
}

.order-edit-select {
    display: none;
}

.order-edit-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.order-edit-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-edit-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
}

.order-edit-item-price {
    font-size: 12px;
    font-weight: 700;
}

.order-edit-item-actions {
    display: flex;
    gap: 10px;
}

.order-edit-link-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    color: #93c5fd;
    cursor: pointer;
}

.order-edit-link-danger {
    color: #fca5a5;
}

.order-edit-add-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(var(--primary-rgb, 147, 51, 234), 0.4);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.08);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.order-edit-search {
    display: none;
    margin-top: 10px;
}

.order-edit-search.open {
    display: block;
}

.order-edit-search-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    margin-bottom: 8px;
}

.order-edit-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.order-edit-search-hint {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.order-edit-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.order-edit-product-info {
    flex: 1;
    min-width: 0;
}

.order-edit-product-name {
    font-size: 12px;
    font-weight: 700;
}

.order-edit-product-price {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 2px 0 6px;
}

.order-edit-product-add {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.25);
    color: var(--primary-light);
    font-size: 20px;
    cursor: pointer;
}

.order-edit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.orders-ban-banner {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
}

.orders-ban-banner-title {
    font-size: 14px;
    font-weight: 800;
    color: #fecaca;
    margin-bottom: 4px;
}

.orders-ban-banner-text {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.order-cancel-modal-content {
    padding: 20px 18px 18px;
}

.order-cancel-modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.order-cancel-modal-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.order-cancel-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.order-cancel-modal-input {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    color: var(--text);
    font-size: 16px;
}

.order-cancel-modal-actions {
    display: flex;
    gap: 10px;
}

.order-cancel-modal-back,
.order-cancel-modal-submit {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.order-cancel-modal-back {
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    color: var(--text);
}

.order-cancel-modal-submit {
    border: none;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
}

.order-cancel-modal-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.checkout-ban-banner {
    margin-bottom: 12px;
}

.order-pickup-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.order-pickup-edit-modal.active {
    display: flex;
}

.order-pickup-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.order-pickup-edit-sheet {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--bg-secondary, #1a1028);
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}

.order-pickup-edit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.order-pickup-edit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.order-pickup-edit-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-pickup-edit-id {
    font-size: 14px;
    font-weight: 800;
}

.order-pickup-edit-summary {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-light);
}

.pickup-edit-section {
    margin-bottom: 14px;
}

.pickup-edit-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pickup-edit-empty {
    font-size: 12px;
    color: var(--text-secondary);
}

.pickup-edit-day-row,
.pickup-edit-line-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pickup-edit-day-chip,
.pickup-edit-line-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.pickup-edit-day-chip small {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pickup-edit-day-chip.active,
.pickup-edit-line-chip.active {
    border-color: rgba(var(--primary-rgb, 147, 51, 234), 0.5);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.18);
    color: var(--primary-light);
}

.pickup-edit-line-chip.active {
    box-shadow: inset 0 0 0 1px var(--line-color, var(--primary-light));
}

.pickup-edit-station-grid,
.pickup-edit-time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pickup-edit-station-chip,
.pickup-edit-time-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.pickup-edit-station-chip.active,
.pickup-edit-time-chip.active {
    border-color: rgba(var(--primary-rgb, 147, 51, 234), 0.5);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.2);
    color: var(--primary-light);
}

.pickup-edit-time-chip.disabled,
.pickup-edit-time-chip:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.order-pickup-edit-save {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: var(--primary, #22c55e);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.order-pickup-edit-save:disabled {
    opacity: 0.6;
    cursor: wait;
}
