/* Walkind — Página /finalizado/
 * Seguindo design system do carrinho:
 *  - Cores: #0a0a0a (ink), #6b6b6b (muted), #e50914 (accent), #16a34a (ok), #e5e5e5 (border)
 *  - Fontes: "Anton" display, "Inter" body
 *  - Radius: 12-14px cards
 *  - Shadows: 0 2px 8px rgba(0,0,0,.05)
 */

.wlk-fin {
    background: #f8f8f8;
    padding: 32px 16px 64px;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: #0a0a0a;
}

.wlk-fin-box {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header */
.wlk-fin-head {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.wlk-fin-h1 {
    font-family: "Anton", "Bebas Neue", Impact, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    margin: 14px 0 10px;
    color: #0a0a0a;
    letter-spacing: 0.5px;
    text-transform: none;
}
.wlk-fin-h2 {
    font-family: "Anton", "Bebas Neue", Impact, sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 12px;
    color: #0a0a0a;
    letter-spacing: 0.3px;
}
.wlk-fin-h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0a0a0a;
    margin: 0 0 10px;
}
.wlk-fin-lead {
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}
.wlk-fin-lead strong {
    color: #0a0a0a;
    font-weight: 700;
}
.wlk-fin-muted {
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 12px;
}
.wlk-fin-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b6b6b;
    margin-bottom: 6px;
}

/* Badges de status */
.wlk-fin-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.wlk-fin-badge--ok   { background: #dcfce7; color: #15803d; }
.wlk-fin-badge--wait { background: #fef3c7; color: #a16207; }
.wlk-fin-badge--err  { background: #fee2e2; color: #b91c1c; }

/* Cards genéricos */
.wlk-fin-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

/* PIX */
.wlk-fin-pix-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.wlk-fin-pix-qr {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.wlk-fin-pix-qr img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto;
}
.wlk-fin-pix-text {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    background: #fafafa;
    resize: none;
    color: #0a0a0a;
    margin-bottom: 12px;
}
.wlk-fin-pix-text:focus {
    outline: none;
    border-color: #0a0a0a;
}

/* Itens do resumo */
.wlk-fin-items {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wlk-fin-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.wlk-fin-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.wlk-fin-item-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.wlk-fin-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wlk-fin-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #0a0a0a;
    line-height: 1.35;
}
.wlk-fin-item-meta {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 2px;
}
.wlk-fin-item-qty {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 2px;
}
.wlk-fin-item-price {
    font-weight: 700;
    font-size: 14px;
    color: #0a0a0a;
    white-space: nowrap;
}

/* Totais */
.wlk-fin-totals {
    margin: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wlk-fin-totals > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #6b6b6b;
}
.wlk-fin-totals dt { margin: 0; font-weight: 500; }
.wlk-fin-totals dd { margin: 0; color: #0a0a0a; font-weight: 600; }
.wlk-fin-totals-discount dd { color: #15803d; }
.wlk-fin-totals-grand {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.wlk-fin-totals-grand dt {
    font-size: 16px;
    font-weight: 700;
    color: #0a0a0a;
}
.wlk-fin-totals-grand dd {
    font-size: 22px;
    font-weight: 800;
    color: #0a0a0a;
}

/* Grid 2 colunas para entrega/pagamento */
.wlk-fin-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* CTA */
.wlk-fin-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.wlk-fin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .18s ease-out;
    letter-spacing: 0.02em;
}
.wlk-fin-btn--primary {
    background: #0a0a0a;
    color: #fff;
}
.wlk-fin-btn--primary:hover { background: #2a2a2a; transform: translateY(-1px); }
.wlk-fin-btn--ghost {
    background: #fff;
    color: #0a0a0a;
    border: 1.5px solid #0a0a0a;
}
.wlk-fin-btn--ghost:hover { background: #0a0a0a; color: #fff; }
.wlk-fin-btn--accent {
    background: linear-gradient(135deg, #e50914, #b30710);
    color: #fff;
}

/* Suporte */
.wlk-fin-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #6b6b6b;
}
.wlk-fin-contacts a {
    color: #0a0a0a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #d0d0d0;
}
.wlk-fin-contacts a:hover { border-color: #0a0a0a; }

/* Estado inválido */
.wlk-fin--invalid .wlk-fin-box { max-width: 560px; }
.wlk-fin--invalid .wlk-fin-h1 { color: #0a0a0a; }

/* Responsivo */
@media (max-width: 720px) {
    .wlk-fin { padding: 24px 12px 48px; }
    .wlk-fin-head { padding: 28px 18px; }
    .wlk-fin-h1 { font-size: 26px; }
    .wlk-fin-card { padding: 18px; }
    .wlk-fin-pix-grid { grid-template-columns: 1fr; gap: 16px; }
    .wlk-fin-pix-qr { max-width: 220px; margin: 0 auto; }
    .wlk-fin-grid2 { grid-template-columns: 1fr; gap: 18px; }
    .wlk-fin-item { grid-template-columns: 56px 1fr auto; gap: 10px; }
    .wlk-fin-item-img { width: 56px; height: 56px; }
    .wlk-fin-item-name { font-size: 13px; }
    .wlk-fin-totals-grand dd { font-size: 19px; }
    .wlk-fin-btn { padding: 12px 18px; font-size: 13px; }
}

@media (max-width: 420px) {
    .wlk-fin-cta { flex-direction: column; }
    .wlk-fin-btn { width: 100%; }
}
