/*
 * Stack Gamer 2026 - Capitulo 07: Checkout, pagamentos e frete.
 * Escopo visual/UX. Nao altera calculo, frete, pagamento, checkout, banco ou payloads.
 */

.theme-stackgamer-definitive-preview.sg-page-checkout {
    --sg-checkout-blue: #2563ff;
    --sg-checkout-energy: #0ea5ff;
    --sg-checkout-cyan: #38ddf8;
    --sg-checkout-navy: #0f172a;
    --sg-checkout-muted: #64748b;
    --sg-checkout-border: rgba(15, 23, 42, .11);
    --sg-checkout-shadow: 0 18px 48px rgba(15, 23, 42, .08);
    background: #f3f4f6 !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-wrapper,
.theme-stackgamer-definitive-preview.sg-page-checkout main.center-wrapper {
    width: min(100% - 32px, 1320px) !important;
    margin: clamp(24px, 4vw, 54px) auto !important;
    padding: 0 !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-shell,
.theme-stackgamer-definitive-preview.sg-page-checkout .center-box.sg-checkout-shell {
    width: 100% !important;
    max-width: none !important;
    padding: clamp(20px, 3vw, 34px) !important;
    color: var(--sg-checkout-navy) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.92)),
        radial-gradient(circle at 88% 12%, rgba(14,165,255,.14), transparent 30%) !important;
    border: 1px solid rgba(37, 99, 255, .14) !important;
    border-radius: 14px !important;
    box-shadow: var(--sg-checkout-shadow) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 20px !important;
    align-items: start !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(15, 23, 42, .09) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-heading span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 9px !important;
    color: var(--sg-checkout-blue) !important;
    font: 900 .72rem/1 Inter, system-ui, sans-serif !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-heading span::before {
    content: "" !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    background: var(--sg-checkout-cyan) !important;
    box-shadow: 0 0 0 4px rgba(56, 221, 248, .15) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-heading .box-title,
.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-heading h1 {
    margin: 0 !important;
    color: var(--sg-checkout-navy) !important;
    font: 950 clamp(1.9rem, 4vw, 3.05rem)/1.02 Inter, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-heading p {
    max-width: 720px !important;
    margin: 12px 0 0 !important;
    color: var(--sg-checkout-muted) !important;
    font: 650 1rem/1.55 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-security {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid rgba(4, 120, 87, .18) !important;
    border-radius: 999px !important;
    font: 900 .82rem/1 Inter, system-ui, sans-serif !important;
    white-space: nowrap !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-progress {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-progress span {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    color: var(--sg-checkout-muted) !important;
    background: #ffffff !important;
    border: 1px solid var(--sg-checkout-border) !important;
    border-radius: 8px !important;
    font: 850 .86rem/1.25 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-progress .is-complete {
    color: #047857 !important;
    background: #f0fdf4 !important;
    border-color: rgba(4, 120, 87, .18) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-progress .is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--sg-checkout-blue), var(--sg-checkout-energy)) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 26px rgba(37, 99, 255, .2) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-assurance {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 22px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-assurance article {
    display: grid !important;
    gap: 6px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(37, 99, 255, .12) !important;
    border-radius: 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-assurance strong {
    color: var(--sg-checkout-navy) !important;
    font: 900 .9rem/1.2 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-assurance span {
    color: var(--sg-checkout-muted) !important;
    font: 650 .83rem/1.42 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px) !important;
    gap: 22px !important;
    align-items: start !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-main,
.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-summary,
.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-payment {
    color: var(--sg-checkout-navy) !important;
    background: #ffffff !important;
    border: 1px solid var(--sg-checkout-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-main {
    padding: clamp(18px, 2.4vw, 26px) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-summary {
    position: sticky !important;
    top: 18px !important;
    display: grid !important;
    gap: 16px !important;
    padding: clamp(18px, 2.4vw, 24px) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-main h2,
.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-summary h2 {
    margin: 0 0 14px !important;
    color: var(--sg-checkout-navy) !important;
    font: 950 1.25rem/1.2 Inter, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .cart-list-preview {
    display: grid !important;
    gap: 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 12px 14px !important;
    color: var(--sg-checkout-navy) !important;
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    border-radius: 8px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-item-qty {
    display: inline-grid !important;
    place-items: center !important;
    min-width: 38px !important;
    height: 32px !important;
    color: var(--sg-checkout-blue) !important;
    background: #eff6ff !important;
    border: 1px solid rgba(37, 99, 255, .16) !important;
    border-radius: 999px !important;
    font: 900 .82rem/1 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-item-name {
    min-width: 0 !important;
    color: var(--sg-checkout-navy) !important;
    font: 800 .95rem/1.32 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-item strong {
    color: var(--sg-checkout-energy) !important;
    white-space: nowrap !important;
    font: 950 .98rem/1.1 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-shipping-row,
.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-method-note {
    margin-top: 8px !important;
    padding: 12px 14px !important;
    background: #ecfdf5 !important;
    border: 1px solid rgba(4, 120, 87, .18) !important;
    border-radius: 8px !important;
    color: #047857 !important;
    font: 800 .86rem/1.4 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-shipping-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cupom {
    margin: 20px 0 0 !important;
    padding: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 255, .14) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cupom h2 {
    color: var(--sg-checkout-navy) !important;
    font: 950 1.05rem/1.2 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .cupom-input-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .form-control,
.theme-stackgamer-definitive-preview.sg-page-checkout .cupom-input-row input,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-row input {
    min-height: 46px !important;
    color: var(--sg-checkout-navy) !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 8px !important;
    padding: 0 13px !important;
    font: 750 .95rem/1 Inter, system-ui, sans-serif !important;
    outline: none !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .form-control:focus,
.theme-stackgamer-definitive-preview.sg-page-checkout .cupom-input-row input:focus,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-row input:focus {
    border-color: rgba(37, 99, 255, .52) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 255, .12) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .cupom-input-row button,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-row button,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-payment-option,
.theme-stackgamer-definitive-preview.sg-page-checkout .btn-continuar-pagamento {
    min-height: 46px !important;
    border-radius: 8px !important;
    font: 950 .9rem/1 Inter, system-ui, sans-serif !important;
    cursor: pointer !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .cupom-input-row button,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-row button {
    color: #ffffff !important;
    background: var(--sg-checkout-blue) !important;
    border: 1px solid rgba(37, 99, 255, .2) !important;
    padding: 0 16px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .cupons-publicos {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .cupom-publico {
    color: var(--sg-checkout-blue) !important;
    background: #eff6ff !important;
    border: 1px solid rgba(37, 99, 255, .18) !important;
    border-radius: 999px !important;
    padding: 8px 12px !important;
    font: 850 .78rem/1 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .cupom-feedback,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-feedback {
    color: var(--sg-checkout-muted) !important;
    font: 700 .88rem/1.42 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-resumo {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-resumo-linha {
    display: flex !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    color: var(--sg-checkout-muted) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
    font: 800 .92rem/1.3 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-resumo-linha span:last-child {
    color: var(--sg-checkout-navy) !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-resumo-linha.desconto,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-resumo-linha.frete-simbolico {
    color: #047857 !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-frete-beneficio,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-prazo-estrategico {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid rgba(4, 120, 87, .18) !important;
    border-radius: 8px !important;
    font: 750 .86rem/1.4 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-payment-choice {
    margin: 0 !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-payment-choice label,
.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-panel strong,
.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-total-label {
    display: block !important;
    margin-bottom: 8px !important;
    color: var(--sg-checkout-navy) !important;
    font: 950 .9rem/1.2 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-payment-options {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-payment-option {
    color: var(--sg-checkout-navy) !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .13) !important;
    padding: 0 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-payment-option.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--sg-checkout-blue), var(--sg-checkout-energy)) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 24px rgba(37, 99, 255, .18) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-panel {
    margin: 0 !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 1px solid rgba(37, 99, 255, .14) !important;
    border-left: 4px solid var(--sg-checkout-blue) !important;
    border-radius: 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-panel label {
    display: block !important;
    margin: 0 0 10px !important;
    color: var(--sg-checkout-muted) !important;
    font: 700 .86rem/1.45 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .total-display-large {
    margin-top: -8px !important;
    color: var(--sg-checkout-energy) !important;
    font: 950 clamp(2rem, 4vw, 2.8rem)/1 Inter, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .btn-continuar-pagamento {
    width: 100% !important;
    min-height: 52px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--sg-checkout-blue), var(--sg-checkout-energy)) !important;
    border: 1px solid rgba(37, 99, 255, .18) !important;
    box-shadow: 0 14px 28px rgba(37, 99, 255, .24) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .btn-continuar-pagamento:disabled {
    color: #94a3b8 !important;
    background: #e5e7eb !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .checkout-whatsapp-help,
.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-back,
.theme-stackgamer-definitive-preview.sg-page-checkout .btn-back {
    color: var(--sg-checkout-blue) !important;
    font: 850 .88rem/1.35 Inter, system-ui, sans-serif !important;
    text-decoration: none !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .whatsapp-safety-note {
    color: var(--sg-checkout-muted) !important;
    font: 650 .78rem/1.35 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-payment {
    margin-top: 22px !important;
    padding: clamp(16px, 2.4vw, 24px) !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout #paymentBrick_container {
    margin: 0 !important;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 255, .12) !important;
    border-radius: 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout #paymentBrick_container[hidden] {
    display: none !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-empty {
    display: grid !important;
    gap: 10px !important;
    padding: 28px !important;
    color: var(--sg-checkout-muted) !important;
    text-align: center !important;
    background: #f8fafc !important;
    border: 1px dashed rgba(37, 99, 255, .26) !important;
    border-radius: 10px !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-empty strong {
    color: var(--sg-checkout-navy) !important;
    font: 950 1.15rem/1.2 Inter, system-ui, sans-serif !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-empty a {
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    color: #ffffff !important;
    background: var(--sg-checkout-blue) !important;
    border-radius: 8px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.theme-stackgamer-definitive-preview.sg-page-checkout button:hover:not(:disabled),
.theme-stackgamer-definitive-preview.sg-page-checkout button:focus-visible,
.theme-stackgamer-definitive-preview.sg-page-checkout a:focus-visible {
    outline: 3px solid rgba(56, 221, 248, .36) !important;
    outline-offset: 2px !important;
}

@media (max-width: 980px) {
    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-layout,
    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-heading,
    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-assurance {
        grid-template-columns: 1fr !important;
    }

    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-summary {
        position: static !important;
    }
}

@media (max-width: 640px) {
    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-wrapper,
    .theme-stackgamer-definitive-preview.sg-page-checkout main.center-wrapper {
        width: min(100% - 20px, 100%) !important;
        margin: 18px auto !important;
    }

    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-shell,
    .theme-stackgamer-definitive-preview.sg-page-checkout .center-box.sg-checkout-shell {
        padding: 14px !important;
        border-radius: 10px !important;
    }

    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-progress,
    .theme-stackgamer-definitive-preview.sg-page-checkout .checkout-payment-options,
    .theme-stackgamer-definitive-preview.sg-page-checkout .cupom-input-row,
    .theme-stackgamer-definitive-preview.sg-page-checkout .checkout-cep-row {
        grid-template-columns: 1fr !important;
    }

    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-item {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    .theme-stackgamer-definitive-preview.sg-page-checkout .sg-checkout-item strong {
        grid-column: 2 !important;
        justify-self: start !important;
    }
}
