/* ===========================
   GLOBAL
=========================== */
body {
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    margin: 0;
    padding: 0;
}

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

/* ===========================
   FORM CARD PRINCIPAL
=========================== */
.form-card.full-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e3e8ee;
    /* padding: 32px 28px; */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ===========================
   SECTIONS TITLES
=========================== */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ===========================
   FLOATING LABEL INPUTS
=========================== */
.form-floating>label {
    font-size: 14px;
    color: #6b7280;
}

.form-control,
.form-select {
    height: 56px !important;
    font-size: 15px;
    padding-top: 1.4rem;
    padding-left: 14px;
    border-radius: 8px;
    border: 1px solid #dfe3e8;
    background-color: #ffffff;
}

.form-select {
    padding-left: 0.75rem;
}

.form-control::placeholder {
    opacity: 0;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

/* ===========================
   ORDER SUMMARY (mesmo card)
=========================== */

.order-summary-wrapper {
    margin-bottom: 30px;
}

/* Order Summary é só uma seção dentro do card, sem card próprio */
.order-summary {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0 0 24px 0;
    /* só espaço embaixo */
    margin-top: 0;
}

/* Título */
.order-summary h5 {
    font-size: 18px;
    margin-bottom: 16px;
}

/* Caixa do produto (única área com fundo e borda interna) */
.order-product-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.order-summary .row-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.order-summary hr {
    margin: 14px 0;
    opacity: 0.25;
}

.total-line span:last-child {
    font-size: 18px;
    font-weight: 600;
}


/* ===========================
   MOBILE SUMMARY TOGGLE
=========================== */

.summary-toggle {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    margin-bottom: 10px;
}

.summary-toggle i {
    transition: transform 0.25s ease;
}

#summaryContent {
    display: none;
}

#summaryContent.open {
    display: block;
}

/* Desktop: sem toggle, sempre aberto */
@media (min-width: 768px) {
    #toggleSummary {
        display: none !important;
    }

    #summaryContent {
        display: block !important;
    }
}

/* ===========================
   SHIPPING RADIO BUTTONS
=========================== */
.form-check-input {
    transform: scale(1.2);
    margin-top: 6px;
}

.form-check-label {
    font-size: 15px;
    margin-left: 6px;
}

/* ===========================
   UPSELL BOX
=========================== */
.upsell-box {
    border: 2px dashed #f6ce85;
    background: #fffbe6;
    border-radius: 6px;
    padding: 18px;
    margin-top: 25px;
}

.upsell-box p {
    margin-bottom: 6px;
}

/* ===========================
   PAYMENT BOX
=========================== */
.payment-box {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    padding: 22px;
    margin-top: 30px;
}

#payment-element {
    margin-top: 12px;
}

#error-message {
    color: #d62828;
    font-size: 14px;
}

/* ===========================
   BUTTONS
=========================== */
#submitBtn {
    height: 54px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    background: #22c55e;
    border: none;
    margin-top: 34px;
    width: 100%;
}

#submitBtn:hover {
    background: #16a34a;
}

/* ===========================
   FOOTER GUARANTEE
=========================== */
.footer-guarantee {
    background: #f5f7fa;
    padding: 50px 0;
    margin: 0 auto;
    max-width: 1000px;
}

.guarantee-badge {
    width: 110px;
    max-width: 100%;
}

.footer-guarantee h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-guarantee p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.col-right {
    border-left: 1px solid #e5e7eb;
    padding-left: 32px;
}

.footer-icons-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-icons-list li {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 10px;
    gap: 10px;
}

.footer-icons-list i {
    font-size: 20px;
    color: #374151;
}

/* MOBILE ADJUSTMENTS FOR FOOTER */
@media (max-width: 767px) {
    .col-right {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
        border-top: 1px solid #e5e7eb;
        padding-top: 20px;
    }

    .footer-guarantee {
        text-align: center;
    }

    .col-left {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .checkout-container {
        margin: 0 auto;
    }
}

/* ORDER BUMP */
.order-bump {
    border: 2px dashed #ffb703;
}

.order-bump-header {
    background: #fff3a0;
}

.order-bump-label {
    cursor: pointer;
}

.order-bump-body {
    background: #fffbe6;
}

.order-bump-img {
    width: 80px;
    height: auto;
}

/* EXPRESS CHECKOUT */
.express-title {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.express-divider span {
    flex: 1;
    height: 1px;
    background-color: #e5e5e5;
}

.express-checkout-container {
    display: flex;
    width: 100%;
}

#express-checkout {
    flex: 1;
    min-width: 0;
}

/* ======================================
   MOBILE CHECKOUT STEPS (PIXEL PERFECT)
====================================== */

.mobile-checkout-steps {
    background: #fff;
    padding: 10px 14px 0;
    border-bottom: 1px solid #e5e5e5;
}

.steps-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 12px;
    line-height: 1;
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b5b5b5;
    font-weight: 400;
}

.step .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #cfcfcf;
    box-sizing: border-box;
}

.step.active {
    color: #111;
    font-weight: 600;
}

.step.active .circle {
    background-color: #26a65b;
    border-color: #26a65b;
}

.steps-progress {
    margin-top: 8px;
    height: 2px;
    background: #e6e6e6;
    position: relative;
}

.steps-progress-bar {
    width: 100%;
    height: 100%;
    background-color: #26a65b;
}

.payment-methods {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.payment-option {
    display: block;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.payment-option:last-child {
    border-bottom: none;
}

.payment-option input[type="radio"] {
    accent-color: #2269c5;
    /* verde */
    margin-right: 5px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f9fafb;
}

.payment-option.active .payment-header {
    background: #f3f4f6;
}

.payment-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.payment-brands {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-brands img {
    height: 18px;
    display: block;
}

.payment-body {
    padding: 16px;
    background: #ffffff;
}

/* Somente o método ativo mostra o body */
.payment-option:not(.active) .payment-body {
    display: none;
}


.form-floating>.form-control, .form-floating>.form-control-plaintext, .form-floating>.form-select {
    min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
}

.form-floating>.form-select {
    padding-top: 1rem;
    padding-bottom: 0rem;
}

.form-control, .form-select {
    height: 45px !important;
}

.form-floating>label {
    padding: 0.7rem .75rem;
    border: none;
}

.invalid-feedback {
    margin-top: 0;
    font-size: 12px;
}

.checkout-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.checkout-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Indicador simples e elegante */
.checkout-loading-indicator {
    display: flex;
    gap: 8px;
}

.loading-dot {
    width: 10px;
    height: 10px;
    background: #26a65b;
    border-radius: 50%;
    animation: loadingPulse 1.2s infinite ease-in-out;
}

.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loadingPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
