/* ============================================================
   3DST OrderTracking — frontend styles
   v6.0.0 — единый файл без перекрытий.
   Логика блоков:
     • .wot-order-top-row — одна колонка (статус-карточка).
       Чек ФНС рендерится через хук в шапке статус-карточки.
     • прогресс-бар 5 шагов, на узких экранах — 2 строки (3+2).
     • под трек-номерами — плашка подсказки с иконкой и (опционально)
       кнопкой-«таблеткой» справа.
     • контакты — компактная строка под чатом (рендерит Discord-плагин).
     • состав заказа — фото на мобильных не сжимается.
   ============================================================ */

/* ============================================================
   КОНТЕЙНЕР
   ============================================================ */
.wot-order-details {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    max-width: min(1200px, 100%);
    margin: 0 auto;
    color: var(--wot-text-color, #374151);
    min-width: 0;
    box-sizing: border-box;
}
.wot-order-details *,
.wot-order-details *::before,
.wot-order-details *::after { box-sizing: border-box; }

.wot-order-details img,
.wot-order-details video,
.wot-order-details iframe { max-width: 100%; height: auto; }

/* ============================================================
   ВЕРХНИЙ РЯД — только статус-карточка (без правой колонки)
   ============================================================ */
.wot-order-top-row {
    display: block;
    margin-bottom: 16px;
    min-width: 0;
    max-width: 100%;
}
.wot-order-left-stack {
    display: block;
    min-width: 0;
    max-width: 100%;
}

/* ============================================================
   КАРТОЧКА СТАТУСА
   ============================================================ */
.wot-status-card {
    background: var(--wot-background-color, #fff);
    border: 1px solid var(--wot-border-color, #e5e7eb);
    border-left: 4px solid var(--status-color, #6b7280);
    border-radius: 12px;
    padding: 16px 20px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- Компактная шапка статуса --- */
.wot-status-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--wot-border-color, #e5e7eb);
    min-width: 0;
    flex-wrap: wrap;
}
.wot-status-card__head-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
}
.wot-status-card__head-value {
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 700;
    color: var(--status-color, #374151);
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Доп. кнопки в шапке — сюда хук wot_order_status_head_actions
   подставляет иконку-кнопку чека ФНС. */
.wot-status-card__head-action {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 100px;
    color: #6d28d9;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.wot-status-card__head-action:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #5b21b6;
}
.wot-status-card__head-action-icon { font-size: 14px; line-height: 1; }

/* --- Плашка отменённого заказа --- */
.wot-status-card__cancelled {
    padding: 12px 14px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
}

/* ============================================================
   ПРОГРЕСС-БАР — 5 шагов
   ============================================================ */
.wot-progress {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    position: relative;
    min-width: 0;
}
.wot-progress__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    min-width: 0;
    text-align: center;
}
/* Соединительные линии */
.wot-progress__step::before,
.wot-progress__step::after {
    content: '';
    position: absolute;
    top: 13px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.wot-progress__step::before { left: 0;  right: 50%; }
.wot-progress__step::after  { left: 50%; right: 0; }
.wot-progress__step:first-child::before { display: none; }
.wot-progress__step:last-child::after   { display: none; }
.wot-progress__step.is-done::before,
.wot-progress__step.is-done::after,
.wot-progress__step.is-current::before {
    background: var(--wot-primary-color, #2d9d78);
}

.wot-progress__dot {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.wot-progress__step.is-done .wot-progress__dot {
    background: var(--wot-primary-color, #2d9d78);
    border-color: var(--wot-primary-color, #2d9d78);
}
.wot-progress__step.is-current .wot-progress__dot {
    border-color: var(--wot-primary-color, #2d9d78);
    box-shadow: 0 0 0 4px rgba(45, 157, 120, 0.15);
}
.wot-progress__step.is-current.is-stage-done .wot-progress__dot {
    background: var(--wot-primary-color, #2d9d78);
}
.wot-progress__dot svg { display: block; }

.wot-progress__label {
    font-size: 12.5px;
    line-height: 1.35;
    color: #6b7280;
    font-weight: 500;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.wot-progress__step.is-done .wot-progress__label,
.wot-progress__step.is-current .wot-progress__label {
    color: var(--wot-text-color, #374151);
    font-weight: 600;
}
.wot-progress__step.is-current .wot-progress__label {
    color: var(--wot-primary-color, #2d9d78);
}

/* --- Прогресс-бар в 2 строки на узких экранах --- */
@media (max-width: 600px) {
    .wot-progress {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px 0;
        grid-template-columns: none;
    }
    .wot-progress__step {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding: 0 2px;
    }
    .wot-progress__step:nth-child(3n+1)::before { display: none !important; }
    .wot-progress__step:nth-child(3n)::after    { display: none !important; }

    .wot-progress__label { font-size: 10.5px; }
    .wot-progress__dot   { width: 24px; height: 24px; }
    .wot-progress__step::before,
    .wot-progress__step::after { top: 11px; }
}

/* ============================================================
   ТРЕК-НОМЕРА
   ============================================================ */
.wot-status-card__section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wot-text-color, #374151);
    opacity: 0.6;
    margin-bottom: 10px;
}
.wot-status-card__trackings {
    padding-top: 14px;
    border-top: 1px solid var(--wot-border-color, #e5e7eb);
    min-width: 0;
}
.wot-status-card__trackings-empty {
    padding-top: 14px;
    border-top: 1px solid var(--wot-border-color, #e5e7eb);
    font-size: 14px;
    color: var(--wot-text-color, #374151);
    opacity: 0.6;
    font-style: italic;
    line-height: 1.5;
}

.wot-tracking-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid var(--wot-border-color, #e5e7eb);
    min-width: 0;
    margin-bottom: 8px;
}
.wot-tracking-row:last-child { margin-bottom: 0; }

.wot-tracking-row__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--wot-text-color, #374151);
    opacity: 0.7;
    font-weight: 500;
    flex-wrap: wrap;
    min-width: 0;
}
.wot-tracking-row__icon { font-size: 16px; line-height: 1; flex-shrink: 0; }

.wot-tracking-row__number-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}
.wot-tracking-row__number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--wot-primary-color, #2d9d78);
    text-decoration: none;
    padding: 2px 0;
    transition: opacity 0.2s ease;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.wot-tracking-row__number:hover {
    opacity: 0.75;
    text-decoration: underline;
}
.wot-tracking-row__number--static {
    color: var(--wot-text-color, #374151);
    cursor: default;
}
.wot-tracking-row__number-arrow { font-size: 14px; opacity: 0.7; flex-shrink: 0; }

.wot-tracking-copy-btn {
    flex-shrink: 0;
    border: 1px solid var(--wot-border-color, #e5e7eb);
    background: #fff;
    color: var(--wot-text-color, #374151);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.wot-tracking-copy-btn:hover {
    background: var(--wot-primary-color, #2d9d78);
    color: #fff;
    border-color: var(--wot-primary-color, #2d9d78);
}

.wot-tracking-row__status {
    font-size: 13px;
    line-height: 1.5;
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: 2px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.wot-tracking-status--success { background: #f0fdf4; color: #065f46; border-left: 3px solid #10b981; }
.wot-tracking-status--waiting { background: #fefce8; color: #854d0e; border-left: 3px solid #eab308; }
.wot-tracking-status--error   { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }
.wot-tracking-status--warning { background: #fff7ed; color: #9a3412; border-left: 3px solid #f97316; }
.wot-tracking-status--info    { background: #eff6ff; color: #1e40af; border-left: 3px solid #3b82f6; }

/* ============================================================
   ПЛАШКА ПОДСКАЗКИ + КНОПКА-«ТАБЛЕТКА» ВНУТРИ НЕЁ
   ============================================================ */
.wot-status-card__hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 16px;
    margin: 14px 0 0;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e3a8a;
    min-width: 0;
    box-sizing: border-box;
}
.wot-status-card__hint-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.3;
}
.wot-status-card__hint-text {
    flex: 1 1 180px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.wot-next-source {
    opacity: 0.7;
    font-size: 12.5px;
    font-weight: 400;
}

/* Кнопка действия внутри плашки — компактная «таблетка». */
.wot-status-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    min-height: 36px;
    box-sizing: border-box;
    margin-left: auto;
    flex-shrink: 0;
}
.wot-status-card__action:hover { transform: translateY(-1px); }

.wot-status-card__action--primary {
    background: #2d9d78;
    border-color: #2d9d78;
    color: #fff;
    box-shadow: 0 2px 8px rgba(45, 157, 120, 0.20);
}
.wot-status-card__action--primary:hover {
    background: #247a5c;
    border-color: #247a5c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 157, 120, 0.30);
}
.wot-status-card__action--review {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.20);
}
.wot-status-card__action--review:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.30);
}

/* Если плашка содержит только кнопку (без текста) — прижимаем её влево. */
.wot-status-card__hint:not(:has(.wot-status-card__hint-text)) .wot-status-card__action {
    margin-left: 0;
}

/* ============================================================
   ГАРАНТИЯ
   ============================================================ */
.wot-order-guarantee {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px;
    background: #f9fafb;
    border: 1px solid var(--wot-border-color, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 16px;
    min-width: 0;
}
.wot-order-guarantee__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.wot-order-guarantee__icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.wot-order-guarantee__text {
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--wot-text-color, #374151);
    font-weight: 500;
    overflow-wrap: anywhere;
}
@media (max-width: 768px) {
    .wot-order-guarantee {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

/* ============================================================
   НИЖНЯЯ СЕТКА (контакты + чат) — одна колонка
   ============================================================ */
.wot-order-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    min-width: 0;
    max-width: 100%;
}
.wot-order-bottom-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* ============================================================
   ИНФО-БЛОКИ (Информация о заказе + Адрес) — компактные
   ============================================================ */
.wot-info-grid { width: 100%; min-width: 0; margin: 0 0 16px 0; }
.wot-info-grid-container { width: 100%; max-width: 100%; min-width: 0; }
.wot-info-grid-equal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}
.wot-info-card {
    background: var(--wot-background-color, #fff);
    border: 1px solid var(--wot-border-color, #e5e7eb);
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 130px;
    min-width: 0;
    max-width: 100%;
}
.wot-order-card { border-left: 3px solid var(--wot-info-color, #3b82f6); }
.wot-shipping-card { border-left: 3px solid var(--wot-success-color, #10b981); }

.wot-card-header { padding: 12px 14px 0 14px; min-width: 0; }
.wot-card-header h3 {
    margin: 0 0 8px 0;
    color: var(--wot-text-color, #374151);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}
.wot-card-content {
    padding: 0 14px 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wot-order-info,
.wot-shipping-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.wot-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3px 0;
    border-bottom: 1px dashed #f1f5f9;
    min-width: 0;
    gap: 8px;
}
.wot-info-row:last-child { border-bottom: none; }
.wot-info-label {
    font-weight: 500;
    color: #6b7280;
    min-width: 90px;
    font-size: 13px;
    line-height: 1.4;
    flex-shrink: 0;
}
.wot-info-value {
    color: #1f2937;
    text-align: right;
    flex: 1;
    min-width: 0;
    margin-left: 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.4;
}
.wot-order-status { font-weight: 600; color: var(--wot-primary-color, #2d9d78); }
.wot-phone { font-family: "Courier New", monospace; }

@media (max-width: 768px) {
    .wot-info-grid-equal { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .wot-info-card { min-height: 0; }
    .wot-info-row { flex-direction: row; gap: 6px; padding: 2px 0; }
    .wot-info-label { min-width: 80px; font-weight: 500; color: #6b7280; }
    .wot-info-value { text-align: right; margin-left: 8px; font-size: 13px; }
}

/* ============================================================
   ПРИГЛАШЕНИЕ ОСТАВИТЬ ОТЗЫВ
   ============================================================ */
.wot-reviews-invitation {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 0;
}
.wot-reviews-invitation__icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.wot-reviews-invitation__text { min-width: 0; }
.wot-reviews-invitation__title {
    font-size: 16px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 2px;
}
.wot-reviews-invitation__subtitle {
    font-size: 13.5px;
    line-height: 1.45;
    color: #92400e;
}

/* ============================================================
   СОСТАВ ЗАКАЗА
   ============================================================ */
.wot-items {
    background: var(--wot-background-color, #fff);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    min-width: 0;
    max-width: 100%;
}
.wot-title {
    margin: 0 0 16px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.wot-desktop { display: block; }
.wot-mobile  { display: none; }

/* --- Таблица (десктоп) --- */
.wot-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    table-layout: auto;
}
.wot-table th {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e5e7;
    font-weight: 600;
    color: #6d6d6f;
    text-align: left;
    font-size: 13px;
}
.wot-table td {
    padding: 14px 8px;
    border-bottom: 1px solid #f5f5f7;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.wot-img-col { width: 100px; }
.wot-name-col { min-width: 200px; }
.wot-num-col { width: 70px; text-align: center; }

.wot-img-col img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    max-width: 100%;
}
.wot-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 5px;
    background: #f9f9fb;
    border: 1px solid #f0f0f0;
    color: #8e8e93;
}

.wot-name {
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 3px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.wot-name a { color: inherit; text-decoration: none; }
.wot-name a:hover { color: #007aff; }
.wot-sku, .wot-meta, .wot-desc { font-size: 12px; color: #8e8e93; margin-top: 2px; }

.wot-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: 1px;
}
.wot-additional { background: #f0f7ff; color: #007aff; }
.wot-packaging  { background: #fff5e6; color: #ff9500; }
.wot-discount   { background: #ffeaea; color: #ff3b30; }
.wot-service    { background: #f5f0ff; color: #5856d6; }

/* --- Итоги --- */
.wot-totals {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e7;
}
.wot-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    gap: 8px;
}
.wot-total span:first-child { color: #6d6d6f; }
.wot-total span:last-child  { font-weight: 500; color: #1d1d1f; }
.wot-final {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e7;
    font-weight: 600;
    font-size: 15px;
}

/* --- Мобильные карточки --- */
@media (max-width: 768px) {
    .wot-desktop { display: none; }
    .wot-mobile  { display: block; }

    .wot-mobile-row {
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
    }
    .wot-mobile-top {
        display: flex;
        gap: 12px;
        margin-bottom: 8px;
        min-width: 0;
        align-items: flex-start;
    }
    .wot-mobile-top .wot-img {
        flex: 0 0 70px;
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }
    .wot-mobile-top .wot-img img,
    .wot-mobile-top .wot-icon {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        display: block;
        object-fit: cover;
    }
    .wot-mobile-top .wot-mobile-content {
        flex: 1 1 auto;
        min-width: 0;
    }

    .wot-numbers {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f5f5f7;
        flex-wrap: wrap;
        gap: 8px;
    }
    .wot-number {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
    }
    .wot-label { font-size: 11px; color: #8e8e93; margin-bottom: 2px; }
    .wot-value { font-size: 13px; font-weight: 500; }
}

/* ============================================================
   ЯКОРЯ
   ============================================================ */
html { scroll-behavior: smooth !important; }
#order-items   { scroll-margin-top: 120px !important; }
#tdpr-chat     { scroll-margin-top: 100px !important; }
#order-chat    { scroll-margin-top: 100px !important; }

@media (max-width: 768px) {
    #order-items, #tdpr-chat, #order-chat { scroll-margin-top: 100px !important; }
}
@media (max-width: 480px) {
    #order-items, #tdpr-chat, #order-chat { scroll-margin-top: 90px !important; }
}

/* ============================================================
   АДАПТИВ СТАТУС-КАРТОЧКИ
   ============================================================ */
@media (max-width: 720px) {
    .wot-status-card {
        padding: 14px 16px 16px;
        border-radius: 10px;
    }
    .wot-status-card__head-icon {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    .wot-status-card__head-value { font-size: 16px; }

    .wot-tracking-row { padding: 8px 12px; }
    .wot-tracking-row__number { font-size: 14px; }

    .wot-reviews-invitation { padding: 14px 16px; }
    .wot-reviews-invitation__icon { font-size: 24px; }
}

@media (max-width: 600px) {
    .wot-status-card__hint {
        padding: 10px 12px;
        gap: 8px 10px;
        font-size: 13.5px;
    }
    .wot-status-card__hint-icon { font-size: 15px; }
    .wot-status-card__action {
        margin-left: 0;
        flex-basis: 100%;
        width: 100%;
        padding: 10px 14px;
        min-height: 40px;
    }
}

/* ============================================================
   КАПЧА (на странице кабинета под email-полем)
   ============================================================ */
.wot-captcha {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 10px 0 6px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid var(--wot-border-color, #e5e7eb);
    border-radius: 10px;
    min-width: 0;
}
.wot-captcha *,
.wot-captcha *::before,
.wot-captcha *::after { box-sizing: border-box; }

.wot-captcha__question {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: #1f2937;
    margin-bottom: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.wot-captcha__icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}
.wot-captcha__text { min-width: 0; }
.wot-captcha__text strong { color: #1f2937; font-weight: 700; }

.wot-captcha__input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wot-captcha__input:focus {
    outline: none;
    border-color: var(--wot-primary-color, #2d9d78);
    box-shadow: 0 0 0 3px rgba(45, 157, 120, 0.12);
}
.wot-captcha__hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}


/* ============================================================
   ПРОГРЕСС-БАР: адаптив под 3 и 5 шагов
   ============================================================ */
@media (max-width: 600px) {
    .wot-progress {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px 0;
    }
    .wot-progress__step {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding: 0 2px;
    }
    /* Обрезаем соединительные линии на границах строк. */
    .wot-progress__step:nth-child(3n+1)::before { display: none !important; }
    .wot-progress__step:nth-child(3n)::after   { display: none !important; }
}

/* ============================================================
   ВОЗВРАТ — подсветка шага в прогресс-баре
   ============================================================ */
.wot-progress__step.is-return .wot-progress__dot {
    border-color: var(--wot-warning-color, #f59e0b);
}
.wot-progress__step.is-return.is-current .wot-progress__dot {
    border-color: var(--wot-warning-color, #f59e0b);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}
.wot-progress__step.is-return.is-current .wot-progress__label {
    color: var(--wot-warning-color, #f59e0b);
}
.wot-progress__step.is-return.is-stage-done .wot-progress__dot {
    background: var(--wot-warning-color, #f59e0b);
    border-color: var(--wot-warning-color, #f59e0b);
}
.wot-progress__step.is-return.is-done::before,
.wot-progress__step.is-return.is-done::after {
    background: var(--wot-warning-color, #f59e0b);
}