/**
 * Checkout - paleta #00b26b (rgb 0,178,107 / hsl 156,100%,35%)
 * Botões no estilo VTEX: btn btn-large btn-success
 */
:root {
    --checkout-primaria: #00b26b;
    --checkout-primaria-escura: #00965a;
}

/* VTEX-style buttons - texto sempre visível */
.btn { display: inline-block; text-align: center; text-decoration: none; cursor: pointer; border: none; border-radius: 4px; font-weight: 600; transition: background 0.2s; color: white !important; }
.btn-large { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-success { background: var(--checkout-primaria); color: white !important; }
.btn-success:hover { background: var(--checkout-primaria-escura); color: white !important; }
.btn-success:disabled { background: #ccc; cursor: not-allowed; opacity: 0.8; color: white !important; }
a.btn, a.btn-success { color: white !important; text-decoration: none; }
a.btn:hover, a.btn-success:hover { color: white !important; text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn-place-order { background: var(--checkout-primaria); color: white; padding: 0.85rem 2rem; font-size: 1rem; font-weight: 600; }
.btn-place-order.checkout-btn-pronto { box-shadow: 0 0 0 2px var(--checkout-primaria); }
.pull-left-margin { margin-left: 0.5rem; }
.shareComponentMargin { margin-top: 0.5rem; }

.checkout-page { background: #f5f5f5; min-height: 100vh; }
.checkout-header { background: var(--checkout-primaria); padding: 1rem 2rem; }
.checkout-header-inner { max-width: 1170px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.checkout-logo img { height: 32px; max-width: 140px; object-fit: contain; filter: brightness(0) invert(1); }
.checkout-seguro { display: flex; align-items: center; gap: 0.5rem; color: white; font-size: 0.95rem; }
.checkout-seguro i { width: 20px; height: 20px; background: white; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.checkout-seguro strong { font-weight: 700; }

.checkout-main { max-width: 1170px; margin: 0 auto; padding: 2rem; }
.checkout-titulo { font-size: 1.5rem; color: #333; margin-bottom: 1.5rem; font-weight: 600; }

.checkout-empty { text-align: center; padding: 4rem 2rem; background: white; border-radius: 12px; }
.checkout-empty h2 { font-size: 1.25rem; color: #333; margin-bottom: 0.5rem; }
.checkout-empty p { color: #666; margin-bottom: 1.5rem; }
.checkout-btn-escolher { display: inline-block; padding: 0.75rem 1.5rem; background: var(--checkout-primaria); color: white; text-decoration: none; border-radius: 8px; font-weight: 600; }
.checkout-btn-escolher:hover { background: var(--checkout-primaria-escura); }

.checkout-cart { background: white; border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; }
.checkout-table { width: 100%; border-collapse: collapse; }
.checkout-table th { text-align: left; padding: 0.75rem; font-size: 0.9rem; color: #666; border-bottom: 1px solid #eee; }
.checkout-table td { padding: 1rem 0.75rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.checkout-table .product { width: 45%; }
.checkout-table .preco, .checkout-table .total { color: var(--checkout-primaria); font-weight: 600; }
.checkout-table .qtd input { width: 50px; text-align: center; padding: 0.35rem; border: 1px solid #ddd; border-radius: 6px; }
.checkout-table .item-remover a { color: #c00; text-decoration: none; font-size: 0.85rem; }
.checkout-table .item-remover a:hover { text-decoration: underline; }
.checkout-table .prod-img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: #f9f9f9; }
.checkout-table .prod-nome { font-weight: 500; color: #333; }
.checkout-table .prod-sku { font-size: 0.8rem; color: #999; }
.checkout-table .preco-de { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 0.5rem; }

.checkout-link-mais { display: inline-block; margin: 1rem 0; color: var(--checkout-primaria); font-weight: 600; text-decoration: none; }
.checkout-link-mais:hover { text-decoration: underline; }

.checkout-linha { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; margin-top: 2rem; }
@media (max-width: 768px) { .checkout-linha { grid-template-columns: 1fr; } }

.checkout-entrega { }
.checkout-entrega h2 { font-size: 1.1rem; color: #333; margin-bottom: 0.5rem; }
.checkout-entrega p { font-size: 0.95rem; color: #666; margin-bottom: 1rem; }
.checkout-cep { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.checkout-cep input { flex: 1; max-width: 160px; padding: 0.6rem 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.checkout-cep input:focus { outline: none; border-color: var(--checkout-primaria); }
.checkout-btn-calc { padding: 0.6rem 1.25rem; background: var(--checkout-primaria); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.checkout-btn-calc:hover { background: var(--checkout-primaria-escura); }
.checkout-entrega a { font-size: 0.9rem; color: var(--checkout-primaria); text-decoration: none; }
.checkout-entrega a:hover { text-decoration: underline; }
.checkout-entrega a.btn { color: white !important; text-decoration: none; }
.checkout-entrega a.btn:hover { text-decoration: none; color: white !important; }

.checkout-resumo { background: #f9f9f9; border-radius: 8px; padding: 1rem; }
.checkout-resumo h2 { font-size: 1rem; color: #333; margin-bottom: 1rem; }
.checkout-totalizadores { width: 100%; }
.checkout-totalizadores td { padding: 0.5rem 0; font-size: 0.95rem; border: none; }
.checkout-totalizadores tfoot td { font-weight: 700; font-size: 1.1rem; color: var(--checkout-primaria); padding-top: 0.75rem; border-top: 1px solid #ddd; }

.checkout-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.checkout-voltar { color: var(--checkout-primaria); text-decoration: none; font-weight: 500; }
.checkout-voltar:hover { text-decoration: underline; }
.checkout-btn-fechar { padding: 0.85rem 2rem; background: var(--checkout-primaria); color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; }
.checkout-btn-fechar:hover { background: var(--checkout-primaria-escura); }

.checkout-form-area { background: white; border-radius: 12px; padding: 2rem; max-width: 520px; margin: 0 auto; }
.checkout-form-area h2 { font-size: 1.1rem; color: #333; margin-bottom: 0.25rem; }
.checkout-sub { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.checkout-form-email { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.checkout-form-email input { flex: 1; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.checkout-form-email input:focus { outline: none; border-color: var(--checkout-primaria); }
.checkout-form-email button { padding: 0.75rem 1.5rem; background: var(--checkout-primaria); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.checkout-form-email button:hover { background: var(--checkout-primaria-escura); }
.checkout-email-info { font-size: 0.9rem; color: #666; }
.checkout-email-info h3 { font-size: 0.95rem; color: #333; margin-bottom: 0.5rem; }
.checkout-email-info ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-email-info li { padding: 0.25rem 0; padding-left: 1.5rem; position: relative; }
.checkout-email-info li::before { content: '✓'; position: absolute; left: 0; color: var(--checkout-primaria); font-weight: 700; }
.checkout-form-area .link-cart { margin-bottom: 1rem; }
.checkout-form-area .link-cart a { color: var(--checkout-primaria); font-weight: 500; text-decoration: none; }
.checkout-form-area .link-cart a:hover { text-decoration: underline; }

/* Passo 2+3: dados + entrega + resumo */
.checkout-two-cols .checkout-form-dados-titulo { margin-bottom: 1rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-left { }
.checkout-right.cart-fixed { position: sticky; top: 1rem; background: white; border-radius: 12px; border: 1px solid #e8e8e8; padding: 1.25rem; }
.cart-fixed-title { font-size: 1.1rem; color: #333; margin-bottom: 0.75rem; font-weight: 600; }
.cart-items-mini { list-style: none; padding: 0; margin: 0 0 1rem; max-height: 200px; overflow-y: auto; }
.cart-items-mini li { padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: center; }
.cart-items-mini .item-img { width: 45px; height: 45px; object-fit: contain; border-radius: 6px; background: #f5f5f5; }
.cart-items-mini .item-name { flex: 1; }
.cart-items-mini .item-qty { font-weight: 600; color: var(--checkout-primaria); }
.totalizers-table { width: 100%; }
.totalizers-table td { padding: 0.5rem 0; font-size: 0.95rem; }
.totalizers-table tfoot tr { font-weight: 700; font-size: 1.15rem; }
.totalizers-table tfoot td { padding-top: 0.75rem; border-top: 1px solid #ddd; color: var(--checkout-primaria); }
.totalizers-table tfoot .info { color: var(--checkout-primaria); font-weight: 700; }
.totalizers-table tfoot .monetary { color: var(--checkout-primaria); font-weight: 700; }
.checkout-btn-finalizar { padding: 0.9rem 1.5rem; background: var(--checkout-primaria); color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 1rem; width: 100%; }
.checkout-btn-finalizar:hover:not(:disabled) { background: var(--checkout-primaria-escura); }
.checkout-btn-finalizar:disabled { background: #ccc; cursor: not-allowed; opacity: 0.8; }
.checkout-btn-finalizar.checkout-btn-pronto { box-shadow: 0 0 0 2px var(--checkout-primaria); }
.link-box-edit { float: right; color: var(--checkout-primaria); font-size: 0.85rem; text-decoration: underline; }
.link-box-edit:hover { text-decoration: none; }
.client-profile-summary p { margin: 0.25rem 0; font-size: 0.95rem; }
.address-summary-BRA { font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.5rem; }
.shp-summary-package { font-size: 0.9rem; color: #666; margin-bottom: 0.25rem; }
.shp-summary-price { font-weight: 600; color: var(--checkout-primaria); margin-bottom: 0.5rem; }
.link-change-shipping { font-size: 0.9rem; color: var(--checkout-primaria); text-decoration: underline; }
.link-change-shipping:hover { text-decoration: none; }
.step.accordion-group { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.step.accordion-group .accordion-heading { display: flex; justify-content: space-between; align-items: center; }
.icon-user { display: inline-block; width: 18px; height: 18px; margin-right: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center; vertical-align: middle; }

/* Passo 2: dados pessoais */
.checkout-form-dados { }
.checkout-form-dados .link-cart { margin-bottom: 1rem; }
.checkout-form-dados .link-cart a { color: var(--checkout-primaria); font-weight: 500; text-decoration: none; }
.checkout-form-dados .link-cart a:hover { text-decoration: underline; }
.checkout-form-dados-titulo { font-size: 1.5rem; color: #333; margin-bottom: 1.5rem; font-weight: 600; }
.checkout-dados-label { font-size: 1rem; color: #333; margin-bottom: 1rem; font-weight: 500; }
.checkout-form-pessoal { }
.checkout-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 500px) { .checkout-form-grid { grid-template-columns: 1fr; } }
.checkout-form-field input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.checkout-form-field input:focus { outline: none; border-color: var(--checkout-primaria); }
.checkout-form-field input.error { border-color: #c00; }
.checkout-link-pj { display: inline-block; margin-bottom: 1rem; color: var(--checkout-primaria); font-size: 0.9rem; text-decoration: none; }
.checkout-link-pj:hover { text-decoration: underline; }
.checkout-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.95rem; color: #333; cursor: pointer; }
.checkout-checkbox input { margin-top: 0.25rem; accent-color: var(--checkout-primaria); }
.checkout-checkbox a { color: var(--checkout-primaria); text-decoration: underline; }
.checkout-checkbox-termos { align-items: center; flex-wrap: wrap; }
.checkout-btn-privacy { color: #00a335; font-size: 12px; text-decoration: underline; margin-left: 20px; }
.checkout-newsletter-text { font-size: 0.95rem; color: #666; margin: 1rem 0 1.5rem; }
.checkout-btn-continuar { width: 100%; padding: 0.9rem 1.5rem; background: var(--checkout-primaria); color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; }
.checkout-btn-continuar:hover:not(:disabled) { background: var(--checkout-primaria-escura); }
.checkout-btn-continuar:disabled { background: #ccc; cursor: not-allowed; opacity: 0.8; }

/* Passo 3: entrega */
.checkout-form-entrega { background: white; border-radius: 12px; padding: 2rem; max-width: 520px; margin: 0 auto; }
.checkout-form-entrega .link-cart { margin-bottom: 1rem; }
.checkout-form-entrega .link-cart a { color: var(--checkout-primaria); font-weight: 500; text-decoration: none; }
.checkout-form-entrega .link-cart a:hover { text-decoration: underline; }
.checkout-step-entrega { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; }
.accordion-heading { background: #f9f9f9; padding: 1rem 1.25rem; font-weight: 600; color: #333; }
.accordion-heading .icon-home { display: inline-block; width: 18px; height: 18px; margin-right: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") no-repeat center; vertical-align: middle; }
.accordion-inner { padding: 1.25rem; }
.box-step { }
.select-delivery-text { font-size: 0.95rem; color: #666; margin-bottom: 1rem; }
.shipping-method-wrapper { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.shp-method-option { padding: 0.6rem 1.25rem; border: 1px solid #ddd; border-radius: 8px; background: white; cursor: pointer; font-size: 0.95rem; }
.shp-method-option-active { border-color: var(--checkout-primaria); background: #f0fdf4; color: var(--checkout-primaria); font-weight: 600; }
.ship-cep-row { margin-bottom: 1rem; }
.ship-cep-row label { display: block; font-size: 0.9rem; font-weight: 500; color: #333; margin-bottom: 0.4rem; }
.ship-cep-row input { padding: 0.65rem 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; width: 140px; margin-right: 0.5rem; }
.ship-cep-row input:focus { outline: none; border-color: var(--checkout-primaria); }
.ship-cep-row input.error { border-color: #c00; }
.ship-cep-row small a { font-size: 0.85rem; color: var(--checkout-primaria); text-decoration: none; margin-left: 0.5rem; }
.ship-cep-row small a:hover { text-decoration: underline; }
.ship-address-result { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; }
.shp-option-box { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; background: #f9f9f9; border-radius: 8px; margin-bottom: 1rem; }
.shp-option-radio { width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.shp-option-radio.checked { border-color: var(--checkout-primaria); background: radial-gradient(circle, var(--checkout-primaria) 40%, transparent 50%); }
.shp-option-text-label { font-weight: 600; color: #333; }
.shp-option-box span:last-child { font-size: 0.9rem; color: #666; }
.delivery-address-title { font-weight: 600; color: #333; margin-bottom: 0.5rem; font-size: 0.95rem; }
.ship-address-display { font-size: 0.95rem; color: #555; margin-bottom: 1rem; }
.ship-address-display span { display: block; }
.link-edit { color: var(--checkout-primaria); font-size: 0.9rem; text-decoration: underline; }
.link-edit:hover { text-decoration: none; }
.ship-address-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ship-address-fields .checkout-form-field-full { grid-column: 1 / -1; }
.ship-address-fields label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.4rem; }
.ship-address-fields label small { font-weight: 400; color: #888; }
.checkout-btn-pagamento { width: 100%; padding: 0.9rem 1.5rem; background: var(--checkout-primaria); color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 0.5rem; }
.checkout-btn-pagamento:hover:not(:disabled) { background: var(--checkout-primaria-escura); }
.checkout-btn-pagamento:disabled { background: #ccc; cursor: not-allowed; opacity: 0.8; }

/* Forma de pagamento */
.payment-method-select { margin: 1rem 0; }
.payment-method-label { font-weight: 600; color: #333; margin-bottom: 0.75rem; font-size: 0.95rem; }
.payment-method-options { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-group-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; background: white; }
.payment-group-item:hover { border-color: var(--checkout-primaria); background: #f9fff9; }
.payment-group-item input { accent-color: var(--checkout-primaria); }
.payment-group-item input:checked + .payment-group-item-text { font-weight: 600; color: var(--checkout-primaria); }
.payment-group-item:has(input:checked) { border-color: var(--checkout-primaria); background: #f0fdf4; }
.payment-group-item-text { font-size: 0.95rem; }

/* Modal PIX / Cartão */
.checkout-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.checkout-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.checkout-modal-content { position: relative; background: white; border-radius: 12px; padding: 2rem; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.checkout-modal-content h3 { margin: 0 0 0.5rem; font-size: 1.25rem; color: #333; }
.checkout-modal-sub { color: #666; font-size: 0.95rem; margin-bottom: 1.5rem; }
.pix-qrcode-box { text-align: center; margin: 1rem 0; min-height: 220px; }
.pix-qrcode-box img { border-radius: 8px; }
.pix-copia-cola { margin: 1rem 0; }
.pix-copia-cola label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }
.pix-codigo-row { display: flex; gap: 0.5rem; }
.pix-codigo-row input { flex: 1; padding: 0.6rem; border: 1px solid #ddd; border-radius: 8px; font-size: 0.9rem; }
.checkout-btn-copiar { padding: 0.6rem 1rem; background: var(--checkout-primaria); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.checkout-btn-copiar:hover { background: var(--checkout-primaria-escura); }
.pix-expira { font-size: 0.85rem; color: #999; margin: 0.5rem 0 1rem; }
.checkout-btn-modal-fechar { margin-top: 1rem; padding: 0.6rem 1.5rem; background: #eee; border: none; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.checkout-btn-modal-fechar:hover { background: #ddd; }
.checkout-btn-link { background: transparent; color: var(--checkout-primaria); }
.checkout-btn-link:hover { background: #f0fdf4; }

/* Form cartão */
.checkout-modal-cartao .form-cartao { margin-bottom: 1rem; }
.checkout-modal-cartao .checkout-form-field { margin-bottom: 1rem; }
.checkout-modal-cartao .checkout-form-field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.4rem; }
.checkout-modal-cartao .checkout-form-field input { width: 100%; padding: 0.65rem 1rem; border: 1px solid #ddd; border-radius: 8px; }
.checkout-modal-cartao .checkout-form-field input:focus { outline: none; border-color: var(--checkout-primaria); }
.checkout-modal-cartao .cartao-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-modal-cartao select { width: 100%; padding: 0.65rem 1rem; border: 1px solid #ddd; border-radius: 8px; }

.checkout-footer { background: #e3e7e9; border-top: 1px solid rgba(0,0,0,0.08); margin-top: 2rem; padding: 2rem; }
.checkout-footer-inner { max-width: 1170px; margin: 0 auto; text-align: center; }
.checkout-pagamento { margin-bottom: 1rem; }
.checkout-pagamento p { font-size: 0.9rem; font-weight: 700; color: #555; margin-bottom: 0.5rem; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.checkout-bandeiras { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.checkout-bandeiras img { height: 26px; width: auto; object-fit: contain; }
.checkout-selos { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.checkout-selos img { height: 18px; width: auto; object-fit: contain; }
.checkout-copy { font-size: 0.85rem; color: #666; }
.footer-vtex { height: 14px; width: auto; vertical-align: middle; margin-left: 0.5rem; }
