/* =========================================================
   v14.css
   Baseado na estrutura de seletores do v13.css
   Melhorias:
   - Bordas médias (nem tão redondas, nem quadradas)
   - Modal boleto otimizado para mobile
   - Prevenção de overflow horizontal
   - Quebra de linha automática
   - Min-width 350px para elementos
   - Bordas de campos mais espessas com melhor contraste
   ========================================================= */

:root{
    --c-navy:       #16213E;
    --c-navy-2:     #223159;
    --c-ink:        #0F172A;
    --c-muted:      #64748B;
    --c-green:      #0E9F6E; 
    --c-green-dark: #16A34A;
    --c-green-bg:   #E7F8F1;
    --c-line:       #D1D5DB;  /* Mais escuro para melhor contraste */
    --c-bg:         #F5F7FA;
    --c-bg-modal:   #F5F6FA;
    --c-white:      #FFFFFF;
    --c-red:        #DC2626;
    --c-red-bg:     #FEF2F2;
    --c-orange:     #F97316;
    --radius-md:    12px;     /* Raio médio */
    --radius-lg:    16px;     /* Raio médio-grande */
    --border-width: 1.5px;    /* Espessura da borda */
    --min-width:    350px;    /* Largura mínima */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    min-width: 0; /* Permite que elementos encolham sem vazar */
}

html, body {
    overflow-x: hidden; /* Previne scroll horizontal */
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--c-bg) 0%, #e9ecef 100%);
    min-height: 100vh;
    min-width: var(--min-width); /* Não permite que body fique menor que 350px */
}

/* Timer Bar */
.timer-bar {
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: var(--min-width);
}

.timer-bar .clock-icon { 
    margin-right: 8px; 
    animation: pulse 1.5s infinite; 
}

@keyframes pulse { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.6; } 
}

#timer-display {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-left: 8px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-width: var(--min-width);
}

.left-column { 
    display: flex; 
    flex-direction: column; 
    gap: 30px;
    min-width: 0;
}

.left-column > div { 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

.left-column > div:hover { 
    transform: translateY(-2px); 
}

/* Product Header */
.product-header {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 35px -12px rgba(15,23,42,0.12);
    position: relative;
    overflow: hidden;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-header::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 4px;
    background: linear-gradient(90deg, var(--c-navy), var(--c-navy-2), var(--c-navy));
}

.product-header img { 
    max-width: 75%; 
    height: auto; 
    margin-bottom: 20px; 
    transition: transform 0.3s ease; 
}

.product-header img:hover { 
    transform: scale(1.02); 
}

.guarantee-badge {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
    color: white; 
    padding: 8px 20px; 
    border-radius: var(--radius-md);
    font-size: 12px; 
    font-weight: bold; 
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(22,33,62,0.3);
    max-width: 100%;
    word-wrap: break-word;
}

.guarantee-badge::before { 
    content: '✓'; 
    font-size: 14px; 
    font-weight: bold; 
}

.product-title {
    font-size: 28px; 
    font-weight: 800;
    background: linear-gradient(135deg, var(--c-ink), var(--c-navy));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-subtitle {
    color: var(--c-green-dark);
    font-size: 16px; 
    font-weight: 600; 
    text-align: left; 
    line-height: 1.6;
    background: var(--c-green-bg); 
    padding: 12px; 
    border-radius: var(--radius-md);
    border-left: 3px solid var(--c-green);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Order Summary */
.order-summary { 
    background: white; 
    padding: 25px; 
    border-radius: var(--radius-lg); 
    box-shadow: 0 20px 35px -12px rgba(15,23,42,0.12);
    min-width: 0;
}

.order-title {
    color: var(--c-ink); 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 20px;
    padding-bottom: 12px; 
    border-bottom: 2px solid var(--c-line);
    display: flex; 
    align-items: center; 
    gap: 8px;
    word-wrap: break-word;
}

.order-title::before { 
    content: '🛒'; 
    font-size: 20px; 
}

.order-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 15px 0; 
    border-bottom: 1px solid var(--c-line);
    gap: 16px;
}

.order-item:last-child { 
    border-bottom: none; 
}

.item-name { 
    font-weight: 600; 
    color: var(--c-ink); 
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.item-price {
    background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    font-weight: 800; 
    font-size: 20px;
    white-space: nowrap;
}

.item-features { 
    list-style: none; 
    margin-top: 10px; 
}

.item-features li { 
    color: #475569; 
    font-size: 13px; 
    margin: 6px 0; 
    position: relative; 
    padding-left: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.item-features li:before { 
    content: '✓'; 
    color: var(--c-green); 
    font-weight: bold; 
    position: absolute; 
    left: 0; 
}

/* Testimonials */
.testimonials { 
    background: white; 
    padding: 25px; 
    border-radius: var(--radius-lg); 
    box-shadow: 0 20px 35px -12px rgba(15,23,42,0.12);
    min-width: 0;
}

.testimonials-title { 
    color: var(--c-ink); 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.testimonials-title::before { 
    content: '⭐'; 
    font-size: 20px; 
}

.testimonial { 
    margin-bottom: 20px; 
    padding: 16px; 
    background: #f8fafc; 
    border-radius: var(--radius-md); 
    border-left: 4px solid var(--c-navy); 
    transition: transform 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial:hover { 
    transform: translateX(4px); 
}

.testimonial-stars { 
    color: #fbbf24; 
    margin-bottom: 8px; 
    font-size: 14px; 
    letter-spacing: 2px; 
}

.testimonial-text { 
    font-style: italic; 
    color: var(--c-ink); 
    margin-bottom: 8px; 
    line-height: 1.5; 
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-author { 
    font-weight: 600; 
    color: var(--c-navy-2); 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.testimonial-author::before { 
    content: '👤'; 
    font-size: 12px; 
}

.testimonials-carousel-wrapper { 
    position: relative; 
    overflow: hidden; 
    min-height: 260px; 
}

.testimonials-carousel { 
    position: relative; 
}

.testimonial-set { 
    position: absolute; 
    width: 100%; 
    opacity: 0; 
    transform: translateX(100%); 
    transition: opacity 0.6s ease, transform 0.6s ease; 
}

.testimonial-set.active { 
    opacity: 1; 
    transform: translateX(0); 
    position: relative; 
}

.testimonial-set.exit { 
    opacity: 0; 
    transform: translateX(-100%); 
}

.testimonial-dots { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-top: 20px; 
    margin-bottom: 20px; 
}

.testimonial-dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    background: #cbd5e0; 
    transition: all 0.3s ease; 
    cursor: pointer; 
}

.testimonial-dot:hover { 
    background: #a0aec0; 
}

.testimonial-dot.active { 
    background: var(--c-navy); 
    width: 24px; 
    border-radius: 5px; 
}

/* Security Badge */
.security-badge {
    background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
    color: white; 
    padding: 18px; 
    border-radius: var(--radius-md); 
    text-align: center; 
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(22,33,62,0.3);
    word-wrap: break-word;
}

.security-badge h4 { 
    margin-bottom: 8px; 
    font-size: 14px; 
    font-weight: 700; 
}

.security-badge p { 
    font-size: 11px; 
    opacity: 0.9; 
    margin: 0; 
}

/* Checkout Form */
.checkout-form { 
    background: white; 
    padding: 35px; 
    border-radius: var(--radius-lg); 
    box-shadow: 0 25px 45px -12px rgba(15,23,42,0.18); 
    position: sticky; 
    top: 20px;
    min-width: 0;
}

.checkout-title { 
    color: var(--c-ink); 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 30px; 
    text-align: center; 
    position: relative;
}

.checkout-title::after {
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 60px; 
    height: 3px; 
    background: linear-gradient(90deg, var(--c-navy), var(--c-navy-2)); 
    border-radius: 3px;
}

.checkout-step { 
    display: none; 
    animation: fadeIn 0.3s ease; 
}

.checkout-step.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.form-group { 
    margin-bottom: 24px;
    min-width: 0;
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    color: var(--c-ink); 
    font-weight: 600; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-select {
    width: 100%; 
    padding: 14px 16px; 
    border: var(--border-width) solid var(--c-line); 
    border-radius: var(--radius-md);
    font-size: 14px; 
    transition: all 0.2s ease; 
    background: #fefefe;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-group input:focus, 
.form-group select:focus, 
.form-select:focus {
    outline: none; 
    border-color: var(--c-navy); 
    box-shadow: 0 0 0 4px rgba(22,33,62,0.1); 
    background: white;
}

.form-group input:hover:not(:focus), 
.form-group select:hover:not(:focus) { 
    border-color: #9CA3AF; /* Melhor contraste no hover */
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 4px;
    min-width: 0;
}

.form-row-3 { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 4px;
    min-width: 0;
}

.address-fields { 
    display: none; 
    margin-top: 20px; 
    padding-top: 8px; 
    border-top: 1px solid var(--c-line);
}

.address-display {
    background: var(--c-green-bg); 
    border: 1px solid var(--c-green); 
    border-radius: var(--radius-md);
    padding: 14px; 
    margin-top: 12px; 
    font-size: 14px; 
    color: var(--c-ink); 
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.loading-address { 
    display: none; 
    color: var(--c-green-dark); 
    font-size: 12px; 
    margin-top: 8px; 
    padding: 8px; 
    background: var(--c-green-bg); 
    border-radius: var(--radius-md); 
}

/* Buttons */
.btn-continuar {
    margin-top: 32px; 
    width: 100%; 
    height: 56px; 
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
    color: white; 
    font-weight: 700; 
    font-size: 16px; 
    border: none; 
    cursor: pointer;
    transition: all 0.2s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
}

.btn-continuar:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    transform: none; 
}

.btn-continuar:hover:not(:disabled) { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 28px rgba(22,33,62,0.35); 
}

.d-flex.justify-content-between { 
    display: flex; 
    justify-content: space-between; 
    gap: 16px; 
    margin-top: 32px;
}

.btn-voltar, .btn-payment {
    flex: 1; 
    height: 56px; 
    border-radius: var(--radius-md); 
    font-weight: 700; 
    font-size: 16px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    transition: all 0.2s ease; 
    border: none; 
    cursor: pointer;
    min-width: 0;
}

.btn-voltar { 
    background: #f1f5f9; 
    color: #475569; 
}

.btn-voltar:hover { 
    background: #e2e8f0; 
    transform: translateY(-2px); 
}

.btn-payment { 
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%); 
    color: white; 
}

.btn-payment:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 28px rgba(22,33,62,0.35); 
}

.btn-payment:disabled, .btn-voltar:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    transform: none; 
}

/* Payment Methods */
.payment-methods { 
    margin: 0 0 24px 0;
    min-width: 0;
}

.payment-methods h3 { 
    color: var(--c-ink); 
    margin-bottom: 16px; 
    font-size: 18px; 
    font-weight: 700; 
}

.payment-tabs { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 28px; 
    background: #f1f5f9; 
    padding: 6px; 
    border-radius: var(--radius-md); 
}

.payment-tab {
    flex: 1; 
    padding: 12px 20px; 
    text-align: center; 
    background: transparent; 
    border: none; 
    cursor: pointer;
    font-weight: 700; 
    font-size: 14px; 
    color: #64748b; 
    transition: all 0.2s ease; 
    border-radius: var(--radius-md);
}

.payment-tab.active { 
    background: white; 
    color: var(--c-navy); 
    box-shadow: 0 4px 12px rgba(15,23,42,0.1); 
}

.payment-tab i { 
    margin-right: 8px; 
}

.payment-tab:not(.active):hover { 
    color: var(--c-navy); 
    background: rgba(255,255,255,0.5); 
}

.tab-content { 
    display: none; 
    padding: 8px 0 20px 0; 
}

.tab-content.active { 
    display: block; 
}

.pix-info, .boleto-info, .cartao-info { 
    text-align: center; 
    padding: 24px; 
    background: #f8fafc; 
    border-radius: var(--radius-md); 
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pix-info h4, .boleto-info h4, .cartao-info h4 { 
    color: var(--c-ink); 
    margin-bottom: 12px; 
    font-weight: 700; 
}

.pix-info p, .boleto-info p, .cartao-info p { 
    color: #475569; 
    font-size: 14px; 
}

/* Bonus Section */
.bonus-section {
    margin: 28px 0 24px 0; 
    padding: 20px;
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
    border-radius: var(--radius-md); 
    color: white; 
    position: relative; 
    overflow: hidden;
}

.bonus-section::before { 
    content: '🎁'; 
    position: absolute; 
    right: -10px; 
    top: -10px; 
    font-size: 60px; 
    opacity: 0.1; 
}

.bonus-title { 
    font-size: 16px; 
    font-weight: 800; 
    margin-bottom: 6px; 
}

.bonus-subtitle { 
    font-size: 12px; 
    opacity: 0.95; 
    margin-bottom: 10px; 
}

.bonus-description { 
    font-size: 13px; 
    line-height: 1.5; 
    opacity: 0.9; 
}

/* Order Bump */
.order-bump-wrapper { 
    margin: 24px 0 20px;
    min-width: 0;
}

.order-bump-badge {
    background: linear-gradient(135deg, var(--c-red), #ef4444); 
    color: #fff; 
    font-size: 11px; 
    font-weight: 800;
    letter-spacing: .06em; 
    text-align: center; 
    padding: 8px 16px; 
    border-radius: var(--radius-md) var(--radius-md) 0 0; 
    display: inline-block;
}

.order-bump-card {
    display: flex; 
    align-items: flex-start; 
    gap: 16px; 
    border: 2px solid #fee2e2; 
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 20px; 
    background: #fffaf5; 
    cursor: pointer; 
    transition: all 0.2s ease;
    min-width: 0;
}

.order-bump-card.bump-selecionado { 
    background: #fef9e8; 
    border-color: var(--c-orange); 
    border-style: solid; 
}

.bump-check-col { 
    flex-shrink: 0; 
    padding-top: 3px; 
    position: relative; 
}

.bump-check-col input[type="checkbox"] { 
    position: absolute; 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.bump-custom-check { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 26px; 
    height: 26px; 
    border: 2px solid #ccc; 
    border-radius: 8px; 
    background: #fff; 
    transition: all .2s; 
    flex-shrink: 0; 
}

.bump-custom-check.checked { 
    background: var(--c-red); 
    border-color: var(--c-red); 
}

.bump-custom-check.checked::after { 
    content: ''; 
    display: block; 
    width: 6px; 
    height: 11px; 
    border: 2px solid #fff; 
    border-top: none; 
    border-left: none; 
    transform: rotate(45deg) translateY(-1px); 
}

.bump-img-col { 
    flex-shrink: 0; 
}

.bump-img { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: var(--radius-md); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.bump-info-col { 
    flex: 1; 
    min-width: 0; 
}

.bump-titulo { 
    font-size: 12px; 
    font-weight: 800; 
    color: var(--c-orange); 
    text-transform: uppercase; 
    letter-spacing: .05em; 
    margin-bottom: 4px; 
}

.bump-nome { 
    font-size: 16px; 
    font-weight: 800; 
    color: var(--c-ink); 
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bump-descricao { 
    font-size: 12px; 
    color: #555; 
    line-height: 1.5; 
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bump-price-row { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 6px; 
}

.bump-sim { 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--c-green-dark); 
}

.bump-valor { 
    font-size: 20px; 
    font-weight: 800; 
    color: var(--c-green); 
}

/* Validation Messages */
.validation-message { 
    font-size: 11px; 
    margin-top: 6px; 
    padding-left: 4px; 
}

.text-danger { 
    color: var(--c-red); 
}

.text-success { 
    color: var(--c-green-dark); 
}

/* Alerts */
.alert { 
    padding: 14px 16px; 
    border-radius: var(--radius-md); 
    margin: 20px 0 0 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.alert-danger { 
    background: var(--c-red-bg); 
    border: 1px solid #fecaca; 
    color: var(--c-red); 
}

.alert-success { 
    background: var(--c-green-bg); 
    border: 1px solid #bbf7d0; 
    color: var(--c-green-dark); 
}

.d-none { 
    display: none !important; 
}

.d-flex { 
    display: flex; 
}

.justify-content-between { 
    justify-content: space-between; 
}

.mt-4 { 
    margin-top: 1.5rem; 
}

/* ---------- Modal base ---------- */
.modal-pix .modal-content, 
.modal-boleto .modal-content {
    border: none; 
    border-radius: var(--radius-lg); 
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15,23,42,.28);
    min-width: 0;
    max-width: 100%;
}

.modal-header {
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
    color: white; 
    padding: 22px 24px; 
    border: none; 
    position: relative;
}

.modal-header::after {
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: -1px; 
    height: 10px;
    background-image: radial-gradient(circle at 10px 0, transparent 9px, var(--c-bg-modal) 9px);
    background-size: 20px 10px; 
    background-repeat: repeat-x;
}

.modal-title { 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    word-wrap: break-word;
}

.modal-title i {
    width: 32px; 
    height: 32px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(255,255,255,.14); 
    border-radius: 9px; 
    font-size: .9rem;
}

.btn-close { 
    filter: brightness(0) invert(1); 
    opacity: .85; 
}

.btn-close:hover { 
    opacity: 1; 
}

.modal-body { 
    background: var(--c-bg-modal); 
    padding: 26px 24px 22px;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.qr-code-section { 
    text-align: center; 
    padding: 24px; 
}

.modal-pix-image { 
    max-width: 280px; 
    height: auto; 
    border-radius: var(--radius-md); 
    padding: 12px; 
    background: white; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); 
}

.countdown-section { 
    background: linear-gradient(135deg, #fef9e8, #fff4e6); 
    padding: 16px; 
    border-radius: var(--radius-md); 
    margin-bottom: 20px; 
    text-align: center; 
}

.countdown-timer { 
    font-size: 32px; 
    font-weight: 800; 
    color: var(--c-navy); 
    font-family: monospace; 
    margin: 8px 0; 
}

.progress { 
    height: 8px; 
    border-radius: 10px; 
    overflow: hidden; 
    background: #e9ecef; 
}

.progress-bar { 
    transition: width 1s linear; 
}

.progress-bar.bg-success { 
    background-color: var(--c-navy) !important; 
}

.progress-bar.bg-warning { 
    background-color: #F59E0B !important; 
}

.progress-bar.bg-danger { 
    background-color: var(--c-red) !important; 
}

.amount-display { 
    background: white; 
    padding: 16px; 
    border-radius: var(--radius-md); 
    margin: 20px 0; 
    text-align: center; 
    border: 1px solid var(--c-line); 
}

.price-label { 
    color: #6c757d; 
    font-size: 0.72rem; 
    text-transform: uppercase; 
    letter-spacing: .05em; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.amount-value { 
    font-size: 28px; 
    font-weight: 800; 
    color: var(--c-ink); 
}

.pix-code-container { 
    background: white; 
    border: 1px solid var(--c-line); 
    border-radius: var(--radius-md); 
    padding: 16px; 
    position: relative; 
    margin: 16px 0;
    min-width: 0;
}

.pix-code { 
    font-family: 'JetBrains Mono', ui-monospace, monospace; 
    font-size: 12px; 
    word-break: break-all; 
    padding: 12px; 
    background: #F7F8FC; 
    border-radius: var(--radius-md); 
    margin-top: 8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.copy-button {
    position: absolute; 
    top: 12px; 
    right: 12px; 
    width: 34px; 
    height: 34px;
    background: var(--c-navy); 
    color: white; 
    border: none; 
    border-radius: 8px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all 0.2s ease;
}

.copy-button:hover { 
    background: var(--c-navy-2); 
}

.copy-button.copied { 
    background: var(--c-green); 
}

.info-alert { 
    background: white; 
    border: 1px solid var(--c-line); 
    border-radius: var(--radius-md); 
    padding: 16px 18px; 
    margin-top: 16px;
    min-width: 0;
}

.info-alert > .d-flex > i { 
    color: var(--c-navy); 
}

.info-alert ol { 
    margin-bottom: 0; 
    padding-left: 1.5rem; 
}

.info-alert ul { 
    margin: 0; 
    padding-left: 0; 
    list-style: none; 
}

.info-alert ul li {
    position: relative; 
    padding-left: 22px; 
    font-size: .83rem; 
    color: var(--c-muted);
    line-height: 1.5; 
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-alert ul li:last-child { 
    margin-bottom: 0; 
}

.info-alert ul li::before {
    content: "\f00c"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    position: absolute; 
    left: 0; 
    top: 2px; 
    font-size: .68rem; 
    color: var(--c-green);
}

.loading-spinner { 
    display: inline-block; 
    width: 18px; 
    height: 18px; 
    border: 2px solid currentColor; 
    border-right-color: transparent; 
    border-radius: 50%; 
    animation: spin 0.6s linear infinite; 
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* =========================================================
   BOLETO — cartão "ticket" otimizado
   ========================================================= */

.boleto-loading { 
    text-align: center; 
    padding: 36px 10px 20px; 
}

.boleto-loading .spinner-border { 
    color: var(--c-navy); 
    width: 3rem; 
    height: 3rem; 
    border-width: 3px; 
}

.boleto-loading h5 { 
    margin-top: 18px; 
    font-size: 17px; 
    font-weight: 700; 
    color: var(--c-ink); 
}

.boleto-loading p { 
    color: var(--c-muted); 
    font-size: 14px; 
    margin-top: 4px; 
}

.boleto-status { 
    display: flex; 
    align-items: flex-start; 
    gap: 14px;
    min-width: 0;
}

.boleto-status i { 
    font-size: 1.5rem; 
    line-height: 1.5rem; 
    margin-top: 2px; 
}

.boleto-status h6 { 
    font-weight: 700; 
    font-size: 14px; 
    margin-bottom: 2px;
    word-wrap: break-word;
}

.boleto-status small { 
    font-size: 12px; 
    opacity: .85; 
}

/* Ticket otimizado para mobile */
.boleto-ticket { 
    background: #fff; 
    border: 1px solid var(--c-line); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    margin: 20px 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.boleto-ticket-top { 
    display: flex; 
    align-items: stretch;
    flex-wrap: wrap;
}

.boleto-field { 
    flex: 1 1 50%; 
    padding: 16px 18px;
    min-width: 0;
    box-sizing: border-box;
}

.boleto-field + .boleto-field { 
    border-left: 1px dashed var(--c-line); 
}

.boleto-field .label { 
    display: block; 
    font-size: .72rem; 
    text-transform: uppercase; 
    letter-spacing: .06em; 
    color: var(--c-muted); 
    font-weight: 600; 
    margin-bottom: 4px;
    word-wrap: break-word;
}

.boleto-field .value { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: var(--c-ink);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.boleto-ticket-divider { 
    position: relative; 
    height: 0; 
    border-top: 1px dashed var(--c-line); 
}

.boleto-ticket-divider::before, 
.boleto-ticket-divider::after {
    content: ""; 
    position: absolute; 
    top: -9px; 
    width: 18px; 
    height: 18px;
    background: var(--c-bg-modal); 
    border-radius: 50%;
}

.boleto-ticket-divider::before { 
    left: -9px; 
}

.boleto-ticket-divider::after { 
    right: -9px; 
}

.boleto-linha-wrap { 
    padding: 16px 18px 18px;
    min-width: 0;
}

.boleto-linha-wrap .label { 
    display: block; 
    font-size: .72rem; 
    text-transform: uppercase; 
    letter-spacing: .06em; 
    color: var(--c-muted); 
    font-weight: 600; 
    margin-bottom: 8px;
}

.boleto-linha-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #F7F8FC; 
    border: 1px solid var(--c-line); 
    border-radius: var(--radius-md); 
    padding: 10px 12px;
    min-width: 0;
    width: 100%;
}

.boleto-linha-row #boleto-linha-digitavel {
    font-family: 'JetBrains Mono', ui-monospace, monospace; 
    font-size: .86rem; 
    font-weight: 500;
    color: var(--c-ink); 
    letter-spacing: .02em; 
    word-break: break-all; 
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
}

.boleto-copy-btn {
    flex-shrink: 0; 
    width: 34px; 
    height: 34px; 
    border: none; 
    border-radius: 8px;
    background: var(--c-navy); 
    color: #fff; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: background .15s ease, transform .1s ease;
}

.boleto-copy-btn:hover { 
    background: var(--c-navy-2); 
}

.boleto-copy-btn:active { 
    transform: scale(.94); 
}

.boleto-copy-btn.copied { 
    background: var(--c-green); 
}

.boleto-actions { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.boleto-actions .btn {
    flex: 1; 
    height: 52px; 
    border-radius: var(--radius-md); 
    font-weight: 700; 
    font-size: .9rem;
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    border: none; 
    cursor: pointer;
    transition: all .2s ease;
    min-width: 120px;
    word-wrap: break-word;
}

.boleto-actions .btn-primary { 
    background: var(--c-navy); 
    color: #fff; 
}

.boleto-actions .btn-primary:hover { 
    background: var(--c-navy-2); 
    transform: translateY(-1px); 
}

.boleto-actions .btn-success { 
    background: var(--c-green); 
    color: #fff; 
}

.boleto-actions .btn-success:hover { 
    background: var(--c-green-dark); 
    transform: translateY(-1px); 
}

.boleto-retry {
    margin-top: 16px; 
    width: 100%; 
    height: 52px; 
    border-radius: var(--radius-md);
    background: var(--c-navy); 
    color: #fff; 
    font-weight: 700; 
    font-size: .9rem; 
    border: none; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}

.boleto-retry:hover { 
    background: var(--c-navy-2); 
}

/* Responsive */
@media (max-width: 768px) {
    .container { 
        grid-template-columns: 1fr; 
        gap: 24px; 
        padding: 20px 16px; 
        min-width: var(--min-width);
    }
    
    .checkout-form { 
        position: static; 
        padding: 24px; 
        min-width: 0;
    }
    
    .form-row, .form-row-3 { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    
    .payment-tabs { 
        flex-wrap: wrap; 
        border-radius: var(--radius-md); 
    }
    
    .payment-tab { 
        padding: 10px 16px; 
        font-size: 13px; 
    }
    
    .d-flex.justify-content-between { 
        flex-direction: column; 
        gap: 12px; 
    }
    
    .btn-voltar, .btn-payment { 
        width: 100%; 
    }
    
    .order-bump-card { 
        flex-wrap: wrap; 
    }
    
    .bump-img { 
        width: 56px; 
        height: 56px; 
    }
    
    .product-title { 
        font-size: 24px; 
    }
    
    /* Otimizações para modal boleto no mobile */
    .modal-boleto .modal-dialog,
    .modal-pix .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .boleto-actions {
        flex-direction: column;
    }
    
    .boleto-actions .btn {
        width: 100%;
        min-width: 0;
    }
    
    .boleto-ticket-top {
        flex-direction: column;
    }
    
    .boleto-field + .boleto-field { 
        border-left: none; 
        border-top: 1px dashed var(--c-line); 
    }
}

@media (max-width: 576px) {
    .modal-boleto .modal-dialog, 
    .modal-pix .modal-dialog { 
        margin: 8px; 
        max-width: calc(100% - 16px);
    }
    
    .modal-body { 
        padding: 20px 16px 18px; 
    }
    
    .boleto-field { 
        padding: 12px 14px; 
    }
    
    .boleto-linha-wrap { 
        padding: 12px 14px 14px; 
    }
    
    .boleto-field .value { 
        font-size: 1rem; 
    }
    
    /* Garante que nada vaze em telas pequenas */
    .modal-content,
    .boleto-ticket,
    .boleto-linha-row,
    .pix-code-container {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Regras adicionais para prevenir overflow */
img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

pre, code, .pix-code, #boleto-linha-digitavel {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Garante que elementos não sejam espremidos abaixo de 350px */
@media (max-width: 350px) {
    body {
        min-width: 350px;
    }
    
    .container,
    .checkout-form,
    .modal-content,
    .boleto-ticket {
        min-width: 350px;
    }
}