/* ----------------------------------------------
    Глобальные переменные (скопированы из стиля сайта)
------------------------------------------------ */
:root {
    --primary-color: #38b34f;
    --primary-color-hover: rgb(65, 195, 89);
    --dark-color: #156c29;
    --accent-color: rgb(50, 159, 70);
    --light-color: #dcfade;
    --footer-text-color: white;
    --container-width: 1485px;
    --inputs-buttons-border-radius: 15px;
    --header-bottom-bar-bg-color: #38b34f;
    --font-family: 'Open Sans', 'Nunito Sans', sans-serif;
    --badge_discount_color: #ff3131;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: #f9f9f9;
    color: #1B1B1B;
    line-height: 1.5;
}

.content-decorator .container {
    max-width: var(--container-width);
    min-width: unset;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка страницы (минималистичная, в стиле megashop3) */
.page-header {
    background: white;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #1B1B1B;
}

/* ---------- Блок отслеживания (форма) ---------- */
.tracking-section {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    margin-bottom: 60px;
    text-align: center;
}

.tracking-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1B1B1B;
}

.tracking-subtitle {
    font-size: 1rem;
    color: #5a5a5a;
    margin-bottom: 32px;
}

.tracking-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 580px;
    margin: 0 auto;
}

.tracking-input {
    flex: 2;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--inputs-buttons-border-radius);
    transition: all 0.2s ease;
    background: #fff;
    outline: none;
}

.tracking-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 179, 79, 0.1);
}

.tracking-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 36px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--inputs-buttons-border-radius);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tracking-button:hover {
    background: var(--primary-color-hover);
}

.tracking-button:active {
    transform: scale(0.97);
}

/* ---------- Таймлайн (вертикальный) ---------- */
.timeline-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    margin-bottom: 60px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.order-badge {
    background: #f4f4f4;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.status-badge {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* вертикальный список */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0 10px;
}

/* центральная линия */
.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 12px;
    bottom: 20px;
    width: 2px;
    background: #e2e2e2;
}

.timeline-item {
    position: relative;
    padding-bottom: 36px;
    display: flex;
    gap: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* иконка-точка */
.timeline-dot {
    position: relative;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    z-index: 2;
    flex-shrink: 0;
    margin-top: 4px;
    transition: all 0.2s;
}

/* пройденный этап */
.timeline-item.completed .timeline-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 179, 79, 0.2);
}

/* текущий этап */
.timeline-item.current .timeline-dot {
    background: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 179, 79, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 179, 79, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(56, 179, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 179, 79, 0); }
}

/* контент этапа */
.timeline-content {
    flex: 1;
    background: #fefefe;
    padding: 10px 0;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1e2a3a;
}

.timeline-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
}

/* будущие этапы (серые) */
.timeline-item.pending .timeline-title {
    color: #9ca3af;
}
.timeline-item.pending .timeline-desc,
.timeline-item.pending .timeline-date {
    color: #b9bfc7;
}

/* информационная панель (локация / доп) */
.info-note {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    font-size: 0.9rem;
    border: 1px solid #edf2f7;
}
.info-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-icon {
    background: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Пример скелетона для статуса без данных */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1rem;
}

/* футер (минимальный) */
.site-footer {
    background: #1e2a3a;
    color: white;
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .tracking-section,
    .timeline-wrapper {
        padding: 28px 20px;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline::before {
        left: 5px;
    }
    .tracking-button {
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
    .timeline-item {
        gap: 12px;
    }
    .timeline-dot {
        width: 16px;
        height: 16px;
    }
}