/* ===== Página de confirmação (obrigado) =====
   Reaproveita .checkout-bg, .checkout-card e .card-heading já existentes
   em carrinho.css. Este arquivo só cobre o que é específico dessa tela. */

.checkout-container {
    max-width: 1000px;
}

/* ===== Banner de sucesso ===== */
.obrigado-banner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    border-left: 5px solid #2ecc71;
}

.obrigado-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2ecc71;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obrigado-banner-icon svg {
    width: 20px;
    height: 20px;
}

.obrigado-banner-pedido {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0 0 2px;
}

.obrigado-banner-titulo {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* ===== Botões de ação ===== */
.obrigado-btn-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-obrigado-outline {
    flex: 1;
    min-width: 200px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d2d0d0;
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.btn-obrigado-outline:hover {
    background: #f5f5f5;
}

/* ===== Card de pagamento (PIX / Boleto) ===== */
.obrigado-card-pagamento {
    padding: 24px;
}

.obrigado-pagamento-desc {
    font-size: 13px;
    color: #666;
    margin: 4px 0 20px;
}

.obrigado-qrcode-box {
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.obrigado-boleto-box {
    text-align: center;
}

/* ===== Instruções numeradas ===== */
.obrigado-instrucoes {
    margin-top: 20px;
}

.obrigado-instrucoes-titulo {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: center;
    margin: 0 0 14px;
}

.obrigado-instrucao-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
}

.obrigado-instrucao-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #2ecc71;
    color: #2ecc71;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Aviso de e-mail ===== */
.obrigado-confirmation-note {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 8px;
    background: #eafbea;
    color: #1c8a1c;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: -20px;
}

.obrigado-confirmation-note-inline {
    margin-top: 12px;
}

/* ===== Grid de infos (pagamento / valores / entrega) ===== */
.obrigado-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 991.98px) {
    .obrigado-info-grid {
        grid-template-columns: 1fr;
    }
}

.obrigado-info-box {
    padding: 20px;
}

.obrigado-info-body {
    font-size: 13px;
    color: #333;
}

.obrigado-forma-pagamento-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.obrigado-valores p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 8px;
    color: #666;
}

.obrigado-valores p span {
    color: #1a1a1a;
    font-weight: 600;
}

.obrigado-valores-total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 4px !important;
    font-size: 15px;
}

.obrigado-valores-total strong,
.obrigado-valores-total span {
    color: #1a1a1a !important;
    font-weight: 800 !important;
}

.obrigado-prazo-box {
    padding: 20px;
    height: 100%;
}

.no-margin.font-light {
    margin: 0 0 4px;
    color: #555;
}

/* ===== Tabela de itens do pedido ===== */
.obrigado-itens-card {
    padding: 20px;
}

.obrigado-itens-header {
    display: grid;
    grid-template-columns: 90px 1fr 130px 130px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.obrigado-itens-linha {
    display: grid;
    grid-template-columns: 90px 1fr 130px 130px;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f2f2f2;
}

.obrigado-itens-linha:last-child {
    border-bottom: none;
}

.obrigado-col-foto img {
    width: 100%;
    max-width: 70px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #eee;
}

.obrigado-col-desc a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
}

.obrigado-item-ref {
    font-size: 11.5px;
    color: #999;
    margin: 2px 0 0;
}

.obrigado-col-qtd,
.obrigado-col-valor {
    text-align: center;
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .obrigado-itens-header {
        display: none;
    }
    .obrigado-itens-linha {
        grid-template-columns: 70px 1fr;
        grid-template-areas:
            "foto desc"
            "foto qtd"
            "foto valor";
    }
    .obrigado-col-foto { grid-area: foto; }
    .obrigado-col-desc { grid-area: desc; }
    .obrigado-col-qtd { grid-area: qtd; text-align: left; }
    .obrigado-col-qtd::before { content: "Quantidade: "; color: #999; }
    .obrigado-col-valor { grid-area: valor; text-align: left; }
}

/* ===== Estado de erro (pedido não realizado) ===== */
.obrigado-erro-card {
    padding: 40px;
    text-align: center;
}

.obrigado-erro-titulo {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.obrigado-erro-card .obrigado-btn-row {
    margin-bottom: 0;
    justify-content: center;
}

.obrigado-erro-card .btn-obrigado-outline {
    flex: none;
    min-width: 220px;
}

/* ===== Bloco PIX (dentro de .obrigado-qrcode-box) ===== */

.pix-box {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* QR code e copia-e-cola lado a lado no desktop */
.pix-topo {
    display: flex;
    align-items: center;
    gap: 32px;
    text-align: left;
    padding: 30px;
    border: .5px solid rgba(128, 128, 128, 0.266);
}

.pix-qrcode-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.pix-copiacola {
    flex: 1;
    min-width: 0;
    margin: 0;
    text-align: center;
}

.pix-qrcode-img {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* No mobile, empilha: QR code em cima, copia-e-cola embaixo */
@media (max-width: 600px) {
    .pix-topo {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .pix-copiacola {
        width: 100%;
    }
}

/* Badge "PIX" com ícone, se usado em algum outro lugar do fluxo */
.pix-header-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}

.pix-header-badge img {
    max-width: 31px;
}

.pix-header-badge p {
    margin: 0;
    font-weight: 700;
}

/* Total a pagar, quando exibido separadamente */
.pix-total-box {
    max-width: 80%;
    margin: 10px auto 0;
}

.pix-total-label {
    text-align: center;
    padding: 10px 10px 0;
    background-color: #d3d3d3;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.pix-total-valor {
    text-align: center;
    padding: 2px 10px 10px;
    color: #2ecc71;
    background-color: #d3d3d3;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Copia e cola */
.pix-copiacola-msg {
    font-size: 14px;
}

.pix-key {
    margin-top: 10px;
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    background-color: #f57c1f;
    overflow-wrap: break-word;
    word-break: break-all;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.2px;
    text-align: center;
}

.pix-copiar-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
}

.pix-copiar-btn:hover {
    background-color: rgba(238, 233, 233, 0.334);
}

.pix-copiar-btn b {
    font-size: 14px;
}

.pix-copy-toast {
    display: none;
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}

/* Instruções */
.pix-instrucoes {
    margin: 30px 0;
    width: 100%;
    text-align: center;
}

.pix-instrucoes-titulo {
    text-align: center;
    margin-bottom: 15px;
}

.instrucoes {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto !important;
    text-align: left;
}

.obrigado-instrucao-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

@media (max-width: 400px) {
    .pix-copiacola-msg {
        font-size: 12px;
    }
    .pix-key {
        font-size: 12px;
    }
}