.modal-overlay.mobile-cashier-overlay {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    background: #10182880;
    backdrop-filter: blur(4px);
    overscroll-behavior: contain;
}

.mobile-cashier-overlay > .mobile-cashier {
    box-sizing: border-box;
    width: min(100%, 400px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    margin: auto;
    padding: 0;
    border: 1px solid #e3e7ec;
    border-radius: 18px;
    background: #fff;
    color: #181d24;
    color-scheme: light;
    text-align: center;
    box-shadow: 0 18px 64px #10182835;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-cashier:focus { outline: none; }

.mobile-cashier-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 12px 8px 18px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
}

.mobile-cashier-mark {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    border-radius: 6px;
    background: #1677ff;
    color: #fff;
    font-size: 19px;
    line-height: 1;
    font-weight: 700;
}

.mobile-cashier-header h2 {
    margin: 0;
    color: #181d24;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.mobile-cashier-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #5a6678;
    cursor: pointer;
}

.mobile-cashier-close:hover { background: #f0f4f9; }
.mobile-cashier-close svg { width: 20px; height: 20px; }
.mobile-cashier-body { padding: 18px clamp(14px, 5vw, 24px) 20px; }

.mobile-cashier-qr {
    display: grid;
    place-items: center;
    width: min(100%, 234px);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #e3e7ec;
    border-radius: 13px;
    background: #fff;
    color: #596779;
    font-size: 14px;
}

.mobile-cashier-qr :is(canvas, img) {
    width: 100%;
    height: auto;
    max-width: 100%;
    image-rendering: pixelated;
    -webkit-touch-callout: default;
    user-select: none;
}

.mobile-cashier-instructions,
.mobile-cashier-note {
    margin: 12px 0;
    color: #4e5b6e;
    font-size: 13px;
    line-height: 1.6;
}

.mobile-cashier-status,
.mobile-cashier-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    font-size: 13px;
}

.mobile-cashier-status {
    min-height: 42px;
    padding: 7px 12px;
    border-radius: 9px;
    background: #ecf4ff;
    color: #174c98;
}

.mobile-cashier-time {
    font-size: 17px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.mobile-cashier-time.is-urgent { color: #ad341b; }

.mobile-cashier-order {
    min-height: 40px;
    color: #596779;
}

.mobile-cashier-order span:first-child { flex-shrink: 0; }
.mobile-cashier-order span:last-child { color: #344156; text-align: right; overflow-wrap: anywhere; }

.mobile-cashier-tip {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f4f7fb;
    color: #42516a;
    font-size: 13px;
    line-height: 1.5;
}

.mobile-cashier-tip[hidden] { display: none; }
.mobile-cashier-actions { display: grid; gap: 8px; }

.mobile-cashier-button {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cbdcf7;
    border-radius: 9px;
    background: #f5f9ff;
    color: #164a97;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.mobile-cashier-button:hover { background: #eaf3ff; }
.mobile-cashier-primary { border-color: #215dc3; background: #215dc3; color: #fff; }
.mobile-cashier-primary:hover { background: #194fae; }
.mobile-cashier-button:disabled { opacity: .65; cursor: default; }
.mobile-cashier button:focus-visible { outline: 2px solid #2366d1; outline-offset: 2px; }

.mobile-cashier-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
    color: #4e5b6e;
    font-size: 14px;
}

.mobile-cashier-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d9e8ff;
    border-top-color: #2366d1;
    border-radius: 50%;
    animation: mobile-cashier-spin .85s linear infinite;
}

@keyframes mobile-cashier-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mobile-cashier-spinner { animation: none; } }
