/* ===========================
   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: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* ===========================
   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;
    }
}

/* 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;
}