/* =============================================================
   CSL WooCheckout — Wizard de Checkout v1.0.2
   ============================================================= */

/* ---------- Reset / Base ---------- */
.csl-wchk-wrapper *,
.csl-wchk-wrapper *::before,
.csl-wchk-wrapper *::after {
    box-sizing: border-box;
}

/* Esconder <br> e <p></p> vazios injetados pelo wpautop / Elementor */
.csl-wchk-wrapper br,
.csl-wchk-wrapper p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.csl-wchk-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 860px;
    margin: 30px auto;
    color: #333;
}

/* ---------- Estado Vazio ---------- */
.csl-wchk-empty {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #795548;
}

/* ---------- Barra de Progresso ---------- */
.csl-wchk-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0;
}

.csl-wchk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.csl-wchk-step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid var(--csl-wchk-step-inactive, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--csl-wchk-step-inactive, #adb5bd);
    transition: all 0.35s ease;
    position: relative;
}

/* Número oculto por padrão (ícone visível) */
.csl-wchk-step-num {
    display: none;
}

.csl-wchk-step-label {
    font-size: 12px;
    color: var(--csl-wchk-step-inactive, #adb5bd);
    font-weight: 500;
    text-align: center;
    transition: color 0.35s ease;
    white-space: nowrap;
}

/* Ativo */
.csl-wchk-step.active .csl-wchk-step-circle {
    background: var(--csl-wchk-step-active, #1e6eb5);
    border-color: var(--csl-wchk-step-active, #1e6eb5);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(30, 110, 181, 0.15);
}

.csl-wchk-step.active .csl-wchk-step-label {
    color: var(--csl-wchk-step-active, #1e6eb5);
    font-weight: 700;
}

/* Concluído */
.csl-wchk-step.done .csl-wchk-step-circle {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.csl-wchk-step.done .csl-wchk-step-circle i {
    display: none;
}

.csl-wchk-step.done .csl-wchk-step-circle::after {
    content: '✓';
    font-size: 22px;
    font-weight: 700;
}

.csl-wchk-step.done .csl-wchk-step-label {
    color: #28a745;
}

/* Conector */
.csl-wchk-step-connector {
    flex: 1;
    height: 3px;
    background: var(--csl-wchk-step-inactive, #dee2e6);
    min-width: 20px;
    max-width: 80px;
    border-radius: 3px;
    transition: background 0.35s ease;
    margin-bottom: 20px;
}

.csl-wchk-step-connector.done {
    background: var(--csl-wchk-step-active, #28a745);
}

/* ---------- Avisos ---------- */
.csl-wchk-notices {
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: csl-wchk-fadein 0.3s ease;
}

.csl-wchk-notices.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.csl-wchk-notices.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ---------- Painel (Step Body) ---------- */
.csl-wchk-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--csl-wchk-border, #e0e5eb);
    border-radius: var(--csl-wchk-radius, 14px);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: csl-wchk-slidein 0.35s ease;
}

.csl-wchk-panel.active {
    display: block;
}

@keyframes csl-wchk-slidein {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes csl-wchk-fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.csl-wchk-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.csl-wchk-sum-card-header {
    background: var(--csl-wchk-primary, #1e6eb5) !important;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
}

.csl-wchk-panel-title i {
    color: #1e6eb5;
}

.csl-wchk-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.csl-wchk-sub-heading {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 14px 0;
}

.csl-wchk-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* ---------- Formulários ---------- */
.csl-wchk-field-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.csl-wchk-field-group label:not(.csl-wchk-radio-card) {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    /* Sobrescrever margin do tema */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    display: block;
}

.csl-wchk-field-group label span {
    color: #e53e3e;
}

.csl-wchk-input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1.5px solid var(--csl-wchk-border, #d1d9e0);
    border-radius: var(--csl-wchk-radius, 8px);
    font-size: 14px;
    color: #333;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    /* Sobrescrever margin do tema */
    margin: 0 !important;
    box-sizing: border-box;
}

.csl-wchk-input:focus {
    border-color: var(--csl-wchk-primary, #1e6eb5);
    box-shadow: 0 0 0 3px rgba(30, 110, 181, 0.12);
    background: #fff;
}

.csl-wchk-input.csl-wchk-select {
    cursor: pointer;
    appearance: auto;
}

.csl-wchk-field-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.csl-wchk-field-cep {
    flex: 0 0 180px;
}

.csl-wchk-field-num {
    flex: 0 0 100px;
}

.csl-wchk-field-state {
    flex: 0 0 180px;
}

/* CEP wrap */
.csl-wchk-cep-wrap,
.csl-wchk-password-wrap {
    display: flex;
    gap: 6px;
}

.csl-wchk-btn-cep,
.csl-wchk-toggle-pass {
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #d1d9e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.csl-wchk-btn-cep:hover,
.csl-wchk-toggle-pass:hover {
    background: #1e6eb5;
    color: #fff;
    border-color: #1e6eb5;
}

/* ---------- Usuário Logado (Passo 1) ---------- */
.csl-wchk-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: color-mix(in srgb, var(--csl-wchk-primary), transparent 92%);
    border: 1px solid color-mix(in srgb, var(--csl-wchk-primary), transparent 80%);
    border-radius: var(--csl-wchk-radius, 10px);
    padding: 18px 22px;
    margin-bottom: 16px;
}

.csl-wchk-check-icon {
    font-size: 36px;
    color: #28a745;
}

.csl-wchk-user-info {
    display: flex;
    flex-direction: column;
}

.csl-wchk-user-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e3a5f;
}

.csl-wchk-user-email {
    color: #555;
    font-size: 13px;
}

.csl-wchk-logged-note {
    color: #666;
    font-size: 13px;
    margin-bottom: 0;
}

.csl-wchk-register-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

.csl-wchk-register-link a {
    color: #1e6eb5;
    font-weight: 600;
}

/* ---------- Login Form ---------- */
.csl-wchk-login-form {
    max-width: 420px;
}

/* Nav de login (sem borda superior) */
.csl-wchk-nav-login {
    border-top: none;
    padding-top: 8px;
    margin-top: 8px;
}

/* ---------- Radio-cards PF / PJ ---------- */
.csl-wchk-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.csl-wchk-radio-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px !important;
    border: 2px solid #d1d9e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #fff;
    transition: all 0.2s;
    user-select: none;
}

.csl-wchk-radio-card input[type="radio"] {
    accent-color: #1e6eb5;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.csl-wchk-radio-card.selected,
.csl-wchk-radio-card:has(input:checked) {
    border-color: var(--csl-wchk-primary, #1e6eb5);
    background: color-mix(in srgb, var(--csl-wchk-primary), transparent 92%);
    color: var(--csl-wchk-primary, #1e6eb5);
    font-weight: 600;
}

.csl-wchk-radio-card:hover {
    border-color: #1e6eb5;
}

/* Erro de validação de campo */
.csl-wchk-input.csl-wchk-field-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.18);
}

/* Animação de pulso no campo com erro (scroll + foco) */
@keyframes csl-wchk-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-5px);
    }

    30% {
        transform: translateX(5px);
    }

    45% {
        transform: translateX(-4px);
    }

    60% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-2px);
    }

    90% {
        transform: translateX(2px);
    }
}

.csl-wchk-input.csl-wchk-field-pulse {
    animation: csl-wchk-shake 0.5s ease;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.35) !important;
}

/* ---------- Botões de Navegação ---------- */
.csl-wchk-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

button.csl-wchk-btn-next,
button.csl-wchk-btn-login,
button.csl-wchk-btn-place-order {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 26px;
    background: var(--csl-wchk-primary, #1e6eb5);
    color: #fff;
    border: none;
    border-radius: var(--csl-wchk-radius, 8px);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1 !important;
    white-space: nowrap;
    vertical-align: middle;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

button.csl-wchk-btn-next i,
button.csl-wchk-btn-login i,
button.csl-wchk-btn-place-order i {
    display: inline !important;
    line-height: 1 !important;
    vertical-align: middle;
    font-size: 14px;
    flex-shrink: 0;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

button.csl-wchk-btn-next:hover,
button.csl-wchk-btn-login:hover {
    background: #155a9a;
    transform: translateY(-1px);
}

button.csl-wchk-btn-place-order {
    background: #28a745;
    font-size: 16px;
    padding: 14px 32px;
}

button.csl-wchk-btn-place-order:hover {
    background: #218838;
    transform: translateY(-1px);
}

button.csl-wchk-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: #666;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button.csl-wchk-btn-back:hover {
    background: #f5f5f5;
    color: #333;
}

button:disabled,
button.csl-wchk-btn-next:disabled,
button.csl-wchk-btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Loading ---------- */
.csl-wchk-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

/* ---------- Opções de Frete ---------- */
.csl-wchk-shipping-options,
.csl-wchk-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.csl-wchk-shipping-card,
.csl-wchk-payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #e0e5eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.csl-wchk-shipping-card:hover,
.csl-wchk-payment-card:hover {
    border-color: #1e6eb5;
    background: #f0f7ff;
}

.csl-wchk-shipping-card.selected,
.csl-wchk-payment-card.selected {
    border-color: var(--csl-wchk-primary, #1e6eb5);
    background: color-mix(in srgb, var(--csl-wchk-primary), transparent 92%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--csl-wchk-primary), transparent 90%);
}

.csl-wchk-shipping-card input[type="radio"],
.csl-wchk-payment-card input[type="radio"] {
    accent-color: #1e6eb5;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.csl-wchk-shipping-info,
.csl-wchk-payment-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.csl-wchk-payment-info {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.csl-wchk-shipping-name,
.csl-wchk-payment-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e3a5f;
}

.csl-wchk-shipping-time {
    font-size: 12px;
    color: #777;
}

.csl-wchk-payment-desc {
    font-size: 12px;
    color: #777;
}

.csl-wchk-shipping-price {
    font-weight: 700;
    font-size: 15px;
    color: #1e6eb5;
    margin-left: auto;
    white-space: nowrap;
}

.csl-wchk-payment-icon {
    display: flex;
    align-items: center;
}

.csl-wchk-payment-icon img {
    max-height: 30px;
    width: auto;
}

.csl-wchk-no-shipping {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 14px;
    border-radius: 8px;
    color: #795548;
    font-size: 14px;
}

/* Campos do gateway dentro do card selecionado */
.csl-wchk-payment-fields {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    margin-top: 8px;
}

/* ---------- Resumo ---------- */
.csl-wchk-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.csl-wchk-summary-section {
    background: #f9fafb;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    padding: 20px;
}

.csl-wchk-summary-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e5eb;
}

.csl-wchk-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.csl-wchk-summary-table th {
    text-align: left;
    color: #888;
    font-weight: 600;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.csl-wchk-summary-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.csl-wchk-totals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.csl-wchk-totals-table td {
    padding: 6px 4px;
    color: #555;
}

.csl-wchk-totals-table td:last-child {
    text-align: right;
    color: #333;
}

.csl-wchk-total-final td {
    font-size: 17px !important;
    color: #1e3a5f !important;
    padding-top: 12px !important;
    border-top: 2px solid #e0e5eb;
}

.csl-wchk-discount td {
    color: #28a745 !important;
}

.csl-wchk-summary-address {
    font-style: normal;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.csl-wchk-chosen-payment {
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Termos ---------- */
.csl-wchk-terms {
    margin-top: 4px;
}

.csl-wchk-terms .form-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.csl-wchk-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1e6eb5;
    flex-shrink: 0;
}

/* ---------- Erro inline de finalização de pedido ---------- */
.csl-wchk-order-error {
    display: none;
    background: #fff5f5;
    border: 2px solid #e53e3e;
    border-left-width: 5px;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
    font-size: 14px;
    color: #7b1a1a;
    line-height: 1.6;
    animation: csl-wchk-shake 0.45s ease;
}

.csl-wchk-order-error i.fa-circle-xmark {
    color: #e53e3e;
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.csl-wchk-order-error strong {
    color: #c53030;
    display: block;
    margin-bottom: 4px;
}

.csl-wchk-order-error small {
    display: block;
    margin-top: 6px;
    color: #a0522d;
    font-size: 12px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
    .csl-wchk-panel {
        padding: 20px 16px;
    }

    .csl-wchk-step-label {
        font-size: 10px;
    }

    .csl-wchk-step-circle {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .csl-wchk-step-connector {
        min-width: 10px;
        max-width: 30px;
    }

    .csl-wchk-field-row {
        flex-direction: column;
    }

    .csl-wchk-field-cep,
    .csl-wchk-field-num,
    .csl-wchk-field-state {
        flex: 1;
    }

    .csl-wchk-nav {
        flex-direction: column;
    }

    button.csl-wchk-btn-next,
    button.csl-wchk-btn-place-order,
    button.csl-wchk-btn-login,
    button.csl-wchk-btn-back {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Passo 5 — Resumo Premium
   ============================================================ */

/* Grid superior: 3 cards (Endereço | Frete | Pagamento) */
.csl-wchk-sum-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

/* Card base */
.csl-wchk-sum-card {
    border-radius: 14px;
    border: 1.5px solid #e0e5eb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.csl-wchk-sum-card:hover {
    box-shadow: 0 6px 20px rgba(30,110,181,0.1);
    transform: translateY(-2px);
}

/* Header do card */
.csl-wchk-sum-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e6eb5 100%);
    color: #fff;
}

.csl-wchk-sum-card-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.csl-wchk-sum-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.9);
}

/* Corpo do card */
.csl-wchk-sum-card-body {
    padding: 14px 16px;
}

/* Card: Endereço */
.csl-wchk-sum-addr-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 6px;
}

.csl-wchk-sum-addr-line {
    font-size: 13px;
    color: #555;
    margin: 0 0 3px;
    line-height: 1.5;
}

.csl-wchk-sum-addr-cep {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.csl-wchk-sum-addr-cep i {
    color: #1e6eb5;
    font-size: 11px;
}

/* Card: Frete */
.csl-wchk-sum-ship-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 6px;
}

.csl-wchk-sum-ship-price {
    font-size: 22px;
    font-weight: 800;
    color: #1e6eb5;
    margin: 0;
}

.csl-wchk-sum-ship-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
    vertical-align: top;
    margin-top: 5px;
    display: inline-block;
}

/* Card: Pagamento */
.csl-wchk-sum-pay-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 8px;
}

.csl-wchk-sum-pay-icon img {
    max-height: 28px;
    width: auto;
    display: block;
    margin-top: 4px;
}

/* Tabela de itens renovada */
.csl-wchk-summary-heading i {
    color: #1e6eb5;
    margin-right: 4px;
}

.csl-wchk-summary-table th {
    background: #f4f7fb;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a8a9a;
    padding: 9px 10px;
}

.csl-wchk-summary-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f4f8;
    vertical-align: middle;
}

.csl-wchk-summary-table tbody tr:last-child td {
    border-bottom: none;
}

/* Célula de produto com thumbnail */
.csl-wchk-sum-td-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.csl-wchk-sum-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e5eb;
    display: block;
    flex-shrink: 0;
}

.csl-wchk-sum-item-name {
    font-weight: 600;
    color: #1e3a5f;
    font-size: 14px;
}

/* Alinhamentos */
.csl-wchk-th-c { text-align: center; color: #555; }
.csl-wchk-th-r { text-align: right; color: #1e3a5f; font-weight: 600; }

/* Rodapé da tabela */
.csl-wchk-summary-table tfoot td {
    padding: 8px 10px;
    font-size: 13px;
    color: #666;
    border-bottom: none;
}

.csl-wchk-sum-tfoot-sub td {
    border-top: 1px solid #e0e5eb;
    color: #555;
    padding-top: 12px;
}

.csl-wchk-sum-tfoot-ship td {
    color: #1e6eb5;
    font-weight: 600;
}

.csl-wchk-sum-tfoot-ship i {
    margin-right: 4px;
    opacity: 0.8;
}

.csl-wchk-sum-tfoot-disc td {
    color: #28a745;
    font-weight: 600;
}

.csl-wchk-sum-total-row td {
    border-top: 2px solid #1e6eb5;
    padding-top: 12px;
    font-size: 16px !important;
    color: #1e3a5f !important;
    background: #f0f7ff;
}

.csl-wchk-sum-total-row .csl-wchk-th-r {
    color: #1e6eb5 !important;
    font-size: 18px !important;
}

/* Seção de campos do gateway */
.csl-wchk-sum-gateway-fields {
    border-left: 4px solid #1e6eb5;
}

/* Responsivo: grid de 3 → 1 coluna no mobile */
@media (max-width: 680px) {
    .csl-wchk-sum-top-grid {
        grid-template-columns: 1fr;
    }
}

.csl-wchk-thanks {
    max-width: 820px;
    margin: 32px auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---- Hero de sucesso ---- */
.csl-wchk-thanks-hero {
    text-align: center;
    background: linear-gradient(135deg, #0f3d6e 0%, #1e6eb5 60%, #2e8fd9 100%);
    border-radius: 18px;
    padding: 50px 30px 42px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.csl-wchk-thanks-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='380' cy='20' r='160' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='30' cy='380' r='120' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") no-repeat;
    pointer-events: none;
}

.csl-wchk-thanks-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 20px;
    animation: csl-wchk-popin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    animation: csl-wchk-popin 0.5s ease both, csl-wchk-pulse-ring 2.5s 0.5s ease-out infinite;
}

.csl-wchk-thanks-icon-wrap .fa-circle-check {
    font-size: 48px;
    color: #4ade80;
    filter: drop-shadow(0 2px 8px rgba(74, 222, 128, 0.5));
}

.csl-wchk-thanks-icon-wrap .fa-file-invoice {
    font-size: 44px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

@keyframes csl-wchk-popin {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes csl-wchk-pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    60%  { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.csl-wchk-thanks-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -0.5px;
}

.csl-wchk-thanks-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.csl-wchk-thanks-subtitle strong {
    color: #fff;
    font-weight: 700;
}

/* ---- Grid de informações ---- */
.csl-wchk-thanks-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.csl-wchk-thanks-info-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.csl-wchk-thanks-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.csl-wchk-thanks-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.csl-wchk-thanks-info-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    word-break: break-word;
}

/* ---- Status Badge ---- */
.csl-wchk-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e2e8f0;
    color: #475569;
}

.csl-wchk-status--pending       { background: #fef9c3; color: #854d0e; }
.csl-wchk-status--processing    { background: #dbeafe; color: #1d4ed8; }
.csl-wchk-status--on-hold       { background: #fee2e2; color: #b91c1c; }
.csl-wchk-status--completed     { background: #dcfce7; color: #15803d; }
.csl-wchk-status--cancelled     { background: #f1f5f9; color: #64748b; }
.csl-wchk-status--refunded      { background: #f3e8ff; color: #7c3aed; }

/* ---- Seções principais ---- */
.csl-wchk-thanks-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.csl-wchk-thanks-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csl-wchk-thanks-section-title i {
    color: #1e6eb5;
    font-size: 16px;
}

/* ---- Tabela de itens ---- */
.csl-wchk-thanks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.csl-wchk-thanks-table th {
    text-align: left;
    padding: 9px 12px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.csl-wchk-thanks-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: middle;
}

.csl-wchk-thanks-table tbody tr:last-child td {
    border-bottom: none;
}

.csl-wchk-thanks-table tfoot td {
    padding: 10px 12px;
    border-bottom: none;
    font-size: 13px;
    color: #64748b;
}

.csl-wchk-th-center { text-align: center; }
.csl-wchk-th-right  { text-align: right;  }

/* Célula de produto com thumbnail */
.csl-wchk-td-product {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: none;
}

.csl-wchk-item-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: block;
}

.csl-wchk-item-name {
    font-weight: 600;
    color: #1e3a5f;
}

.csl-wchk-tfoot-row td {
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

.csl-wchk-tfoot-discount td {
    color: #16a34a !important;
}

.csl-wchk-thanks-total td {
    font-size: 17px;
    font-weight: 800;
    color: #1e3a5f;
    border-top: 2px solid #1e6eb5;
    padding-top: 14px;
    background: #f8fafc;
}

.csl-wchk-thanks-total .csl-wchk-th-right {
    color: #1e6eb5;
    font-size: 20px;
}

/* ---- Layout 2 colunas (endereço + pagamento) ---- */
.csl-wchk-thanks-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Endereço */
.csl-wchk-thanks-address-block {
    font-style: normal;
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
}

/* Pagamento block */
.csl-wchk-thanks-payment-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
}

.csl-wchk-thanks-payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1e6eb5;
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.csl-wchk-thanks-payment-method {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.csl-wchk-thanks-payment-instructions {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ---- CTA buttons ---- */
.csl-wchk-thanks-cta {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 4px;
}

a.csl-wchk-btn-thanks-account,
a.csl-wchk-btn-thanks-shop {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

a.csl-wchk-btn-thanks-account {
    background: #fff;
    color: #1e6eb5;
    border: 2px solid #1e6eb5;
}

a.csl-wchk-btn-thanks-account:hover {
    background: #1e6eb5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30,110,181,0.3);
}

a.csl-wchk-btn-thanks-shop {
    background: linear-gradient(135deg, #1e6eb5, #2e8fd9);
    color: #fff;
    border: 2px solid transparent;
}

a.csl-wchk-btn-thanks-shop:hover {
    background: linear-gradient(135deg, #155a9a, #1e6eb5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30,110,181,0.4);
}


/* ---- Card de Output do Gateway (PIX QR code, boleto, etc.) ---- */
.csl-wchk-thanks-gateway-output {
    border-left: 4px solid #1e6eb5;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    animation: csl-wchk-slidein 0.4s ease;
}

.csl-wchk-thanks-gateway-output .csl-wchk-thanks-section-title {
    color: #1e3a5f;
}

.csl-wchk-thanks-gateway-output .csl-wchk-thanks-section-title i {
    color: #1e6eb5;
}

/* Estilos para o conteúdo do gateway dentro do card */
.csl-wchk-thanks-gateway-body {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

/* QR code centralizado (padrão maioria dos plugins de PIX) */
.csl-wchk-thanks-gateway-body img {
    max-width: 220px;
    display: block;
    margin: 12px auto;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Botões de ação do gateway */
.csl-wchk-thanks-gateway-body a,
.csl-wchk-thanks-gateway-body button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1e6eb5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 8px;
}

.csl-wchk-thanks-gateway-body a:hover,
.csl-wchk-thanks-gateway-body button:hover {
    background: #155a9a;
    color: #fff;
}

/* Código PIX copia-e-cola */
.csl-wchk-thanks-gateway-body textarea,
.csl-wchk-thanks-gateway-body input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
    color: #333;
    background: #f9fafb;
    resize: none;
    margin-top: 8px;
}

/* ---- Responsivo ---- */
@media (max-width: 760px) {

    .csl-wchk-thanks-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .csl-wchk-thanks-cols {
        grid-template-columns: 1fr;
    }

    /* Gateway PIX/Boleto - responsivo */
    .csl-wchk-thanks-gateway-body code {
        display: block;
        word-break: break-all;
        font-size: 12px;
        padding: 10px;
        background: #f1f5f9;
        border-radius: 6px;
        margin: 8px 0;
    }
    .csl-wchk-thanks-gateway-body img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .csl-wchk-thanks-hero {
        padding: 36px 20px 30px;
    }
    .csl-wchk-thanks-title {
        font-size: 22px;
    }
    .csl-wchk-thanks-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .csl-wchk-thanks-cta {
        flex-direction: column;
    }
    a.csl-wchk-btn-thanks-account,
    a.csl-wchk-btn-thanks-shop {
        justify-content: center;
    }

    /* Gateway PIX - mobile pequeno */
    .csl-wchk-thanks-gateway-body {
        font-size: 13px;
    }
    .csl-wchk-thanks-gateway-body img {
        max-width: 180px;
    }
    .csl-wchk-thanks-gateway-body button,
    .csl-wchk-thanks-gateway-body a {
        width: 100%;
        justify-content: center;
    }
}