/*
   checkout.css — стили чекаут-страницы.
   Mobile-first: верстка стартует с мобильного, для больших экранов
   добавлены медиа-запросы.

   Стиль: минималистичный, чтобы не бесить игрока. Никаких градиентов
   и анимаций сверх необходимого. Главное — чёткое отображение суммы и реквизитов.
*/

/* === Сброс / общие правила === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f6f8;
    color: #1a1d22;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* === Контейнер страницы === */
.page {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}

@media (min-height: 600px) {
    .page { align-items: center; }
}

/* === Карточка === */
.card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 24px 20px;
}

.card__header {
    text-align: center;
    margin-bottom: 24px;
}

.brand {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #5b6573;
}

/* === Блок суммы === */
.amount {
    text-align: center;
    margin-bottom: 24px;
}

.amount__label {
    font-size: 13px;
    color: #5b6573;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.amount__value {
    font-size: 40px;
    font-weight: 700;
    color: #1a1d22;
    letter-spacing: -0.02em;
}

.amount__method {
    margin-top: 8px;
    font-size: 14px;
    color: #5b6573;
}

/* === Таймер === */
.timer {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: #5b6573;
}

#timer {
    font-weight: 600;
    color: #1a1d22;
    font-variant-numeric: tabular-nums;
}

/* === Блок состояния === */
.state {
    border-top: 1px solid #eef0f3;
    padding-top: 24px;
}

.state-block {
    text-align: center;
}

.state-block h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.state-block p {
    color: #5b6573;
    font-size: 14px;
}

/* === Спиннер === */
.spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    border: 3px solid #eef0f3;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Реквизиты получателя === */
.recipient {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
}

.recipient__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
}

.recipient__row + .recipient__row {
    border-top: 1px solid #eef0f3;
}

.recipient__label {
    font-size: 13px;
    color: #5b6573;
}

.recipient__value {
    font-size: 14px;
    color: #1a1d22;
    font-weight: 500;
    text-align: right;
}

.recipient__value--big {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.hint {
    font-size: 13px;
    color: #5b6573;
    margin-top: 12px;
}

.warning {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 3px solid #d97706;
    color: #92400e;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

/* === Кнопки === */
.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn--primary {
    background: #2563eb;
    color: #ffffff;
}

.btn--primary:active {
    opacity: 0.85;
}

.btn--ghost {
    background: transparent;
    color: #5b6573;
}

.btn--ghost:active {
    background: #f1f3f6;
}

/* === Иконки статуса === */
.status-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.status-icon--ok {
    background: #dcfce7;
    color: #16a34a;
}

.status-icon--bad {
    background: #fee2e2;
    color: #dc2626;
}
