/*
 * پیگیری لحظه‌ای سفارش مهمان (ویترین و نقشه).
 * رنگ‌ها از متغیرهای تم استفاده می‌کنند و در نبود آن‌ها مقدار روشن دارند.
 */
.got {
    display: block;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.08);
    color: inherit;
}

.got-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.got-title {
    font-size: 13px;
    font-weight: 800;
}

.got-title b {
    font-weight: 900;
}

.got-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.16);
    color: var(--warning-text, #a16207);
    font-size: 11px;
    font-weight: 700;
}

.got[data-stage="confirmed"] .got-badge,
.got[data-stage="preparing"] .got-badge {
    background: rgba(59, 130, 246, 0.14);
    color: var(--info-text, #1d4ed8);
}

.got[data-stage="ready"] .got-badge,
.got[data-stage="awaiting_settlement"] .got-badge,
.got[data-stage="completed"] .got-badge {
    background: rgba(34, 197, 94, 0.16);
    color: var(--success-text, #15803d);
}

.got[data-stage="trashed"] .got-badge {
    background: rgba(239, 68, 68, 0.14);
    color: var(--danger-text, #b91c1c);
}

.got-steps {
    display: flex;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.got-step {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(100, 116, 139, 0.95);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}

.got-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(148, 163, 184, 0.8);
    border-radius: 50%;
    background: transparent;
}

.got-step.is-done {
    color: inherit;
    font-weight: 700;
}

.got-step.is-done .got-dot {
    border-color: var(--success, #16a34a);
    background: var(--success, #16a34a);
}

.got-step.is-current {
    color: inherit;
    font-weight: 800;
}

.got-step.is-current .got-dot {
    border-color: var(--info, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.got[data-stage="trashed"] .got-steps {
    opacity: 0.45;
}

.got-note {
    margin: 10px 0 0;
    color: rgba(100, 116, 139, 0.95);
    font-size: 11px;
    line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
    .got {
        border-color: rgba(148, 163, 184, 0.32);
        background: rgba(148, 163, 184, 0.12);
    }
}
