:root { --brand-color: #147c4e; --brand-bg: #e8f6ee; --brand-border: #9ad4b4; --success-color: #147c4e; --success-deep: #0f6a41; --timer-yellow: #fbbf24; --ink: #0d0d12; --checkout-gray: #e2e5ea; --brand-blue-surface: #1c6d47; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; touch-action: manipulation; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background-color: var(--checkout-gray); color: #333; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: calc(100% - 40px); }
.toast { background: white; border-radius: 10px; padding: 14px 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; animation: slideIn 0.3s ease; border-left: 4px solid var(--brand-color); }
.toast.toast-error { border-left-color: #dc3545; } .toast.toast-success { border-left-color: #147c4e; }
.toast.toast-warning { border-left-color: #ffc107; } .toast.toast-info { border-left-color: #147c4e; }
.toast-icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.toast-icon svg { width: 20px; height: 20px; }
.toast-content { flex: 1; } .toast-title { font-weight: 600; font-size: 13px; color: #333; margin-bottom: 2px; }
.toast-message { font-size: 12px; color: #666; line-height: 1.4; }
.toast-close { background: none; border: none; cursor: pointer; padding: 4px; color: #999; transition: color 0.2s; }
.toast-close:hover { color: #333; }
.toast.hiding { animation: slideOut 0.3s ease forwards; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* Purchase notification (BrandClub) */
.purchase-notification {
  position: fixed;
  z-index: 9999;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #20242a;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 900ms ease, visibility 900ms ease;
}
.purchase-notification.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.purchase-notification > img {
  width: 74px;
  height: 74px;
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #ffffff;
  object-fit: contain;
  object-position: center;
}
.purchase-notification-copy { min-width: 0; }
.purchase-notification-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; line-height: 1.2; }
.purchase-notification-heading > strong { overflow: hidden; font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; color: #20242a; }
.purchase-notification.is-city .purchase-notification-heading { display: none; }
.purchase-verified { display: inline-flex; align-items: center; gap: 4px; color: #147c4e; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.purchase-verified svg { width: 15px; height: 15px; flex: 0 0 15px; }
.purchase-verified circle { fill: currentColor; }
.purchase-verified path { fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.purchase-notification-copy p { margin: 5px 0 1px; color: #343941; font-size: 0.86rem; line-height: 1.3; }
.purchase-notification-copy p strong { font-weight: 800; }
.purchase-notification-copy small { color: #717780; font-size: 0.72rem; }
.purchase-notification-close { width: 28px; height: 28px; align-self: start; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a9099; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.purchase-notification-close:hover { background: #f1f3f5; color: #343941; }
.purchase-notification-close:focus-visible { outline: 2px solid #147c4e; outline-offset: 2px; }
body.pix-active .purchase-notification { display: none; }

/* Header */
.header { position: relative; isolation: isolate; background: var(--brand-blue-surface); border-bottom: 0; box-shadow: none; }
.header-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; background: transparent; }
.logo-img { height: 36px; width: auto; object-fit: contain; }
.secure-icon { display: flex; align-items: center; gap: 8px; }
.secure-icon svg { color: #1fa86a; width: 24px; height: 24px; flex-shrink: 0; }
.secure-text { display: flex; flex-direction: column; line-height: 1.2; }
.secure-text-top { font-size: 12px; color: #f5f5f5; font-weight: 500; }
.secure-text-bottom { font-size: 13px; color: #1fa86a; font-weight: 700; }

/* Promo Banner */
.promo-banner { background: #FFF7E8; color: #0d2818; padding: 10px 16px; }
.promo-banner-timer { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.promo-clock { width: 18px; height: 18px; flex: 0 0 18px; color: #1a5c3a; }
.promo-banner-text { font-size: 13px; font-weight: 700; color: #0d2818; letter-spacing: 0.01em; }
.promo-timer { display: flex; align-items: center; gap: 4px; }
.promo-timer-digit { display: flex; align-items: center; justify-content: center; width: 22px; height: 28px; background: #1a5c3a; color: #FFF7E8; font-size: 0.8rem; font-weight: 800; border-radius: 4px; box-shadow: 0 1px 2px rgba(8,26,53,0.18); line-height: 1; }
.promo-timer-colon { color: #0d2818; font-size: 1rem; font-weight: 800; line-height: 1; padding: 0 1px; }
.promo-banner-verified { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: #0d2818; }
.promo-banner-verified i { color: #1a5c3a; font-size: 16px; }

/* Banner */
.checkout-banner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.checkout-banner img { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 10px; margin-top: 10px; background: transparent; box-shadow: 0 8px 24px rgba(7,20,40,0.18); }
body.pix-active .checkout-banner { display: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 15px; }
.checkout-wrapper { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.checkout-main { width: 100%; }
.checkout-sidebar { position: sticky; top: 20px; }
body.checkout-no-sidebar .checkout-sidebar { display: none; }
body.checkout-no-sidebar .checkout-wrapper { grid-template-columns: 1fr; }

/* Cards */
.card { background: white; border-radius: 10px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid #e5e5e5; }

/* Step Header */
.step-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; cursor: pointer; transition: all 0.2s; }
.step-header:hover { background: #fafafa; }
.step-header-static { cursor: default; }
.step-header-static:hover { background: #fff; }
.step-number { width: 28px; height: 28px; background: #e0e0e0; color: #999; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; transition: all 0.3s; }
.step-number.active { background: #147c4e; color: #fff; } .step-number.completed { background: #147c4e; color: #fff; }
.step-title-wrapper { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-title { font-size: 14px; font-weight: 700; color: #333; }
.step-title.inactive { color: #999; }
.step-check { color: #147c4e; font-size: 16px; display: none; } .step-check.show { display: inline-block; }
.step-edit { color: #666; font-size: 14px; cursor: pointer; display: none; padding: 4px; } .step-edit:hover { color: #333; } .step-edit.show { display: block; }

/* Step Content */
.step-content { padding: 0 20px 20px; display: none; animation: fadeIn 0.3s ease; }
.step-content.open { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Sidebar */
.summary-card { background: white; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e5e5e5; }
.summary-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #147c4e; }
.summary-product { display: flex; gap: 12px; padding-bottom: 14px; }
.summary-product-image { width: 70px; height: 70px; object-fit: contain; border-radius: 8px; border: 1px solid #eee; background: #ffffff; }
.summary-product-name { font-size: 14px; color: #333; font-weight: 600; line-height: 1.4; }
.summary-product-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.summary-product-desc { font-size: 11px; color: #666; line-height: 1.4; }
.summary-product-price-old { font-size: 12px; font-weight: 600; color: #9ca3af; text-decoration: line-through; }
.summary-product-price { font-size: 14px; font-weight: 800; color: #147c4e; margin-top: 2px; }
.summary-bumps { display: none; padding: 10px 0; margin-bottom: 4px; border-top: 1px solid #f0f0f0; }
.summary-bumps.visible { display: block; }
.summary-bumps-row { display: flex; justify-content: space-between; align-items: center; }
.summary-bumps-label { font-size: 13px; color: #666; } .summary-bumps-value { font-size: 13px; color: #666; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #e8e8e8; }
.summary-total-label { font-size: 13px; font-weight: 600; color: #555; }
.summary-total-value { font-size: 18px; font-weight: 800; color: #111; }

/* Form */
.form-group { margin-bottom: 12px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #333; }
.form-label span { font-size: 11px; color: #999; font-weight: 400; }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; transition: all 0.2s; }
.form-input:focus { outline: none; border-color: #147c4e; box-shadow: 0 0 0 3px rgba(22,119,255,0.1); }
.form-input.error { border-color: #f44336; background: #fff8f8; }
.form-input.valid { border-color: rgba(22,119,255,0.4); background: #f7fbff; }
.form-input::placeholder { color: #aaa; }
.form-input[readonly] { background: #f5f5f5; color: #555; }
.error-message { color: #f44336; font-size: 11px; margin-top: 4px; display: none; }
.form-input.error + .error-message { display: block; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Number Input S/N */
.number-input-wrapper { position: relative; }
.number-input-wrapper .form-input { padding-right: 60px; }
.sn-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 4px 8px; border-radius: 4px; background: #f0f0f0; font-size: 11px; font-weight: 600; color: #666; transition: all 0.2s; }
.sn-toggle:hover { background: #e0e0e0; }
.sn-toggle.active { background: #147c4e; color: #fff; }
.sn-toggle .sn-check { display: none; font-size: 10px; } .sn-toggle.active .sn-check { display: inline; }

/* Select */
.form-select { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; background: white; cursor: pointer; }
.form-select:focus { outline: none; border-color: #147c4e; box-shadow: 0 0 0 3px rgba(22,119,255,0.1); }

/* CEP */
.cep-group { position: relative; transition: opacity 0.22s ease, transform 0.22s ease; }
.cep-loading { position: absolute; right: 12px; bottom: 14px; width: 18px; height: 18px; border: 2px solid #f3f3f3; border-top: 2px solid #147c4e; border-radius: 50%; animation: spinCep 0.8s linear infinite; display: none; }
@keyframes spinCep { to { transform: rotate(360deg); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Address Fields */
.address-fields { margin-top: 12px; display: none; opacity: 0; transform: translateY(8px); }
.address-fields.visible { display: block; animation: addressIn 0.32s ease forwards; }
@keyframes addressIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cep-group.is-leaving, .address-fields.is-leaving { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* Delivery Confirmation */
.delivery-confirmation { display: none; margin-top: 4px; padding: 14px 16px; background: #e8f6ee; border: 1px solid #9ad4b4; border-radius: 8px; opacity: 0; }
.delivery-confirmation.visible { display: flex; align-items: center; gap: 12px; animation: confirmIn 0.32s ease forwards; }
@keyframes confirmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
#step2Content.is-confirmed .cep-group,
#step2Content.is-confirmed .address-fields { display: none; }
.delivery-confirmation-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #147c4e; }
.delivery-confirmation-icon svg { width: 36px; height: 36px; display: block; }
.delivery-confirmation-content { flex: 1; }
.delivery-confirmation-title { font-size: 14px; font-weight: 700; color: #147c4e; margin-bottom: 2px; }
.delivery-confirmation-text { font-size: 12px; color: #666; }

/* Incentive Box */
.incentive-box { background: #fffbf0; border: 1px solid #f5a623; border-radius: 8px; padding: 10px 12px; margin: 12px 0; display: flex; align-items: center; gap: 8px; }
.incentive-box.hidden { display: none; }
.incentive-text { flex: 1; font-size: 11px; font-weight: 600; color: #666; } .incentive-text span { color: #147c4e; }

/* Buttons */
.btn { width: 100%; padding: 16px 24px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; position: relative; }
.btn-primary { background: #147c4e; color: #ffffff; }
.btn-primary:hover { background: #0f6a41; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(22,119,255,0.4); }
.btn-pix { background: #2dbb2f; color: #ffffff; }
.btn-pix:hover { background: #28a92a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(45,187,47,0.4); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-continue { margin-top: 16px; }
.btn-content { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-loading { pointer-events: none; }
.btn-loading .btn-content { display: none !important; }
.btn-loading .btn-spinner-wrapper { display: flex !important; }
.btn-spinner-wrapper { display: none; align-items: center; justify-content: center; width: 100%; height: 22px; }
.btn-spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spinBtn 0.8s linear infinite; }
@keyframes spinBtn { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Payment Method Selector */
.payment-method-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.payment-method-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 2px solid #e0e0e0; border-radius: 10px; cursor: pointer; transition: all 0.2s; background: #fff; }
.payment-method-option:hover { border-color: #147c4e; background: #e8f6ee; }
.payment-method-option.selected { border-color: #147c4e; background: #147c4e; box-shadow: 0 0 0 1px #147c4e; }
.payment-method-option.selected .pm-label { color: #fff; font-weight: 700; }
.payment-method-option.selected .pm-card-icon { color: #fff; }
.pm-icon { width: 32px; height: 32px; object-fit: contain; }
.pm-card-icon { font-size: 28px; color: #666; }
.pm-label { font-size: 12px; font-weight: 600; color: #333; text-align: center; }

/* PIX Info Box */
.pix-info-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.pix-info-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #555; line-height: 1.3; white-space: nowrap; overflow: hidden; }
.pix-info-item span { overflow: hidden; text-overflow: ellipsis; }
.pix-info-item strong { color: #333; }
.pix-info-number { width: 22px; height: 22px; min-width: 22px; background: #147c4e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.cpf-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.cpf-label { font-size: 12px; font-weight: 700; color: #333; text-transform: uppercase; margin-bottom: 8px; }
.cpf-sublabel { font-size: 11px; color: #999; font-weight: 400; text-transform: none; }

/* Order Bumps - Verde claro */
.order-bumps { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.order-bumps[hidden] { display: none !important; }
.order-bumps-header { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 10px; }
.order-bump { border: 2px dashed #147c4e; background: transparent; border-radius: 10px; padding: 14px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; transition: all 0.2s; }
.order-bump:hover { border-color: #147c4e; background: rgba(238,245,255,0.5); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(22,119,255,0.12); }
.order-bump.selected { border-color: #147c4e; border-style: solid; background: rgba(238,245,255,0.4); box-shadow: 0 2px 12px rgba(22,119,255,0.18); }
.bump-checkbox { width: 22px; height: 22px; border: 2px solid #147c4e; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; transition: all 0.2s; background: #fff; }
.order-bump.selected .bump-checkbox { background: #147c4e; border-color: #147c4e; }
.bump-checkbox svg { display: none; width: 12px; height: 12px; color: white; }
.order-bump.selected .bump-checkbox svg { display: block; }
.bump-image { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid #d1fae5; background: #e8f6ee; }
.bump-content { flex: 1; }
.bump-header { margin-bottom: 4px; }
.bump-title { font-weight: 700; color: #166534; font-size: 13px; }
.bump-description { font-size: 12px; color: #666; line-height: 1.4; margin-bottom: 1px; }
.bump-price-row { display: flex; align-items: center; gap: 5px; }
.bump-price-old { font-size: 12px; color: #999; text-decoration: line-through; }
.bump-price-new { font-weight: 700; color: #333; font-size: 14px; }
.bump-price-value { color: #147c4e; }

/* Esconder bumps desativados */
.order-bump[data-bump-enabled="false"] { display: none !important; }

/* Purchase Summary Box */
.purchase-summary-box { margin-top: 16px; padding: 16px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.purchase-summary-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.purchase-summary-header span { font-size: 14px; font-weight: 700; color: #333; }
.purchase-summary-content { margin-bottom: 14px; }
.purchase-summary-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fafafa; border-radius: 10px; border: 1px solid #f0f0f0; margin-bottom: 6px; }
.purchase-summary-item:last-child { margin-bottom: 0; }
.purchase-summary-image { width: 88px; height: 88px; border-radius: 10px; object-fit: contain; border: 1px solid #eee; background: #ffffff; flex-shrink: 0; }
.purchase-summary-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.purchase-summary-name { font-size: 15px; font-weight: 700; color: #333; line-height: 1.3; }
.purchase-summary-price-old { font-size: 13px; font-weight: 600; color: #9ca3af; text-decoration: line-through; }
.purchase-summary-price-now { font-size: 18px; font-weight: 800; color: #13803D; line-height: 1.2; }
.coupon-applied-tag { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 2px; padding: 3px 8px; border-radius: 4px; background: #e8f8ef; color: #00a650; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; }
.coupon-applied-tag svg { flex: 0 0 12px; }
.coupon-applied-tag b { font-weight: 800; }
.coupon-applied-tag[hidden] { display: none !important; }
.purchase-summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.purchase-summary-total-label { font-size: 14px; font-weight: 600; color: #333; }
.purchase-summary-total-value { font-size: 18px; font-weight: 800; color: #111; }

/* Service Fee */
.purchase-summary-fee { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eee; cursor: pointer; transition: opacity 0.2s; }
.purchase-summary-fee.hidden { display: none; }
.purchase-summary-fee:hover { opacity: 0.7; }
.fee-left { display: flex; align-items: center; gap: 6px; }
.fee-icon { color: #434343; font-size: 13px; }
.fee-label { font-size: 12px; color: #5e5a5a; }
.fee-value { font-size: 12px; color: #5e5a5a; font-weight: 500; }

/* Summary Bump Items (inside purchase summary) */
#summaryBumpItems .purchase-summary-item { background: #fafafa; border-color: #f0f0f0; }
#summaryBumpItems .purchase-summary-name { font-size: 13px; font-weight: 600; color: #333; }
#summaryBumpItems .purchase-summary-image { width: 40px; height: 40px; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10001; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s ease; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; border-radius: 14px; padding: 28px 24px; max-width: 360px; width: 100%; text-align: center; position: relative; animation: modalPop 0.3s ease; }
@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; color: #999; font-size: 16px; padding: 4px; transition: color 0.2s; }
.modal-close:hover { color: #333; }
.modal-icon-wrap { margin-bottom: 12px; }
.modal-pix-icon { font-size: 40px; color: #147c4e; }
.modal-shield-icon { font-size: 36px; color: #147c4e; }
.modal-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 8px; }
.modal-text { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 20px; }
.modal-text p + p { margin-top: 8px; }
.modal-btn { min-height: 44px; font-size: 14px; }

/* Testimonials */
.step-header-centered { justify-content: center; }
.step-header-centered .step-title-wrapper { flex: unset; }
#step4Card { content-visibility: auto; contain-intrinsic-size: 1px 640px; }
#step4Card .step-header { padding-bottom: 8px; }
#step4Card .step-content { padding-top: 0; padding-bottom: 18px; }
.testimonials-score { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #eef0f3; }
.testimonials-score-number { font-size: 28px; font-weight: 800; color: #1f2937; line-height: 1; }
.testimonials-score-stars { color: #f59e0b; font-size: 13px; display: flex; gap: 2px; }
.testimonials-score-meta { font-size: 12px; color: #6b7280; }
.testimonials-grid { display: flex; flex-direction: column; gap: 10px; }
.testimonial-card { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e8eaee; border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: #e5e7eb; flex-shrink: 0; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-body { flex: 1; min-width: 0; }
.testimonial-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.testimonial-name { font-size: 14px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.testimonial-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.testimonial-verified { display: inline-flex; align-items: center; gap: 4px; color: #147c4e; font-size: 11px; font-weight: 700; }
.testimonial-verified svg { width: 13px; height: 13px; }
.testimonial-verified circle { fill: currentColor; }
.testimonial-verified path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.testimonial-date { font-size: 11px; color: #9ca3af; }
.testimonial-stars { color: #f59e0b; font-size: 11px; display: flex; gap: 1px; flex-shrink: 0; }
.testimonial-text { font-size: 13px; color: #4b5563; line-height: 1.5; margin: 0 0 12px; }
.testimonial-actions { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.testimonial-helpful { font-size: 11px; font-weight: 600; color: #9ca3af; margin-right: 2px; }
.testimonial-like, .testimonial-dislike { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 10px; min-height: 32px; border-radius: 999px; background: #f8fafc; border: 1px solid #e5e7eb; font-size: 12px; font-weight: 600; color: #4b5563; }
.testimonial-like:hover { background: #eff6ff; border-color: #bfdbfe; color: #147c4e; }
.testimonial-like.liked { background: #dbeafe; border-color: #93c5fd; color: #147c4e; }
.testimonial-dislike:hover { background: #fef2f2; border-color: #fecaca; color: #ef4444; }
.testimonial-dislike.disliked { background: #fee2e2; border-color: #fca5a5; color: #ef4444; }
.testimonial-like i, .testimonial-dislike i { font-size: 12px; }

/* Check Payment Button States */
.check-btn-content { display: flex; align-items: center; gap: 8px; }
.check-btn-loading { display: none; align-items: center; gap: 8px; }
.pix-new-btn-secondary.checking .check-btn-content { display: none; }
.pix-new-btn-secondary.checking .check-btn-loading { display: flex; }
.check-btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(20,124,78,0.3); border-top-color: #147c4e; border-radius: 50%; animation: spinBtn 0.8s linear infinite; }

/* Site Seguro */
.site-seguro-global { text-align: center; padding: 20px; }
.site-seguro-global img { max-width: 280px; width: 100%; height: auto; }

/* Footer */
.footer-minimal { background: #f5f5f5; padding: 15px; text-align: center; border-top: 1px solid #e0e0e0; }
.footer-minimal p { font-size: 12px; color: #666; }
.footer-brand { background: var(--brand-blue-surface); padding: 14px 16px 16px; text-align: center; border-top: 0; }
.footer-logo { height: 32px; width: auto; margin: 0 auto 6px; object-fit: contain; }
.footer-seals { width: min(100%, 420px); margin: 8px auto 0; }
.footer-seal { display: block; width: 100%; height: auto; object-fit: contain; }
.footer-brand-copy { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: #fafafa; line-height: 1.25; }
.footer-brand-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.footer-lock { width: 13px; height: 13px; flex: 0 0 13px; color: #1fa86a; }
.footer-brand-legal { margin: 4px auto 0; max-width: 360px; font-size: 11px; line-height: 1.3; color: #9aa0ab; }

/* One-step checkout */
body.checkout-one-step .checkout-main .step-header { cursor: default; }
body.checkout-one-step .checkout-main .step-header:hover { background: #fff; }
body.checkout-one-step .checkout-main .step-edit,
body.checkout-one-step .checkout-main .step-check { display: none !important; }
body.checkout-one-step #step1Content,
body.checkout-one-step #step2Content,
body.checkout-one-step #step3Content { display: block !important; }
body.checkout-one-step #continueStep1,
body.checkout-one-step #saveAddress,
body.checkout-one-step #confirmAddress,
body.checkout-one-step #deliveryConfirmation { display: none !important; }

/* Loading Screen */
.loading-screen { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; z-index: 9999; flex-direction: column; align-items: center; justify-content: center; }
.loading-screen.active { display: flex; }
.loading-video { width: 200px; height: 200px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.loading-video i { font-size: 120px; color: #147c4e; animation: pixFlip 2s ease-in-out infinite; }
@keyframes pixFlip { from { transform: perspective(400px) rotateY(0); } to { transform: perspective(400px) rotateY(360deg); } }
.loading-text { font-size: 18px; color: #333; font-weight: 600; text-align: center; padding: 0 20px; }
.loading-subtext { font-size: 14px; color: #666; margin-top: 8px; text-align: center; }

/* ==================== PIX SCREEN ==================== */
.pix-screen { display: none; min-height: 100vh; background: #f0f0f0; }
.pix-screen.active { display: block; }
body.pix-active .header:not(.pix-screen .header), body.pix-active .promo-banner, body.pix-active .checkout-banner,
body.pix-active .container, body.pix-active .site-seguro-global, body.pix-active .footer-minimal, body.pix-active .footer-brand { display: none; }
.pix-new-container { max-width: 28rem; margin: 0 auto; width: 100%; padding: 24px 16px 40px; }
.pix-new-header { text-align: center; margin-bottom: 24px; }
.pix-new-header h1 { font-size: 1rem; font-weight: 700; color: #1f2937; line-height: 1.5; }
.pix-new-header p { font-size: 0.875rem; color: #6b7280; margin-top: 4px; }
.pix-new-card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.pix-new-timer-section { background: #f9fafb; border-bottom: 1px solid #f3f4f6; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.pix-new-timer-label { font-size: 0.875rem; font-weight: 500; color: #6b7280; }
.pix-new-timer-digits { display: flex; align-items: center; gap: 6px; }
.pix-digit { display: flex; align-items: center; justify-content: center; width: 24px; height: 32px; background: #147c4e; color: #fff; font-size: 0.875rem; font-weight: 700; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.pix-timer-colon { font-size: 1.125rem; font-weight: 700; color: #1f2937; margin: 0 2px; }
.pix-new-payment-info { border-bottom: 1px solid #f3f4f6; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.pix-new-info-label { font-size: 0.75rem; color: #6b7280; }
.pix-new-info-left .pix-new-info-value { font-size: 1.125rem; font-weight: 700; color: #1f2937; }
.pix-new-info-right { text-align: right; }
.pix-new-info-right .pix-new-info-value { font-size: 0.875rem; font-weight: 500; color: #1f2937; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pix-new-qr-section { display: flex; flex-direction: column; align-items: center; padding: 24px; }
.pix-new-qr-wrapper { position: relative; border: 2px dashed #e5e7eb; border-radius: 12px; background: #fff; padding: 16px; }
.pix-new-qr-wrapper img, .pix-new-qr-wrapper canvas { display: block; max-width: 100%; height: auto; }
.pix-new-qr-label { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; padding: 2px 12px; font-size: 10px; font-weight: 500; color: #6b7280; border-radius: 9999px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #e5e7eb; }
.pix-new-trust-badges { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 24px; margin-bottom: 24px; }
.pix-new-trust-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 1; }
.pix-new-trust-badge svg { flex-shrink: 0; } .pix-new-trust-badge p { font-size: 0.75rem; color: #6b7280; line-height: 1.3; }
.pix-new-badge-divider { width: 1px; height: 32px; background: #e5e7eb; flex-shrink: 0; }
.pix-new-buttons-section { padding: 0 24px 24px; }
.pix-new-buttons-wrapper { max-width: 20rem; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.pix-new-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; height: 44px; padding: 8px 16px; border: none; cursor: pointer; transition: all 0.15s; width: 100%; }
.pix-new-btn:active { transform: scale(0.98); }
.pix-new-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.pix-new-btn-primary { background: #147c4e; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.pix-new-btn-primary:hover { background: #0f6a41; }
.pix-new-btn-primary.copied { background: #22c55e; }
.pix-new-btn-primary.copied:hover { background: #22c55e; }
.pix-new-btn-secondary { background: rgba(20,124,78,0.12); color: #147c4e; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.pix-new-btn-secondary:hover { background: rgba(20,124,78,0.18); }
.pix-new-btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }
.pix-new-btn-hint { text-align: center; font-size: 0.75rem; color: #6b7280; margin-top: 8px; }
.pix-new-ticket-divider { position: relative; }
.pix-new-divider-line { border-top: 2px dashed #e5e7eb; }
.pix-new-circle-left, .pix-new-circle-right { position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: #f0f0f0; border-radius: 50%; }
.pix-new-circle-left { left: -12px; } .pix-new-circle-right { right: -12px; }
.pix-new-how-to-pay { padding: 24px; }
.pix-new-how-to-pay h2 { text-align: center; font-size: 0.875rem; font-weight: 600; color: #1f2937; margin-bottom: 16px; }
.pix-new-steps { display: flex; flex-direction: column; gap: 16px; }
.pix-new-step { display: flex; align-items: flex-start; gap: 12px; }
.pix-new-step-number { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: rgba(20,124,78,0.12); font-size: 0.75rem; font-weight: 700; color: #147c4e; }
.pix-new-step-title { font-size: 0.875rem; font-weight: 500; color: #1f2937; }
.pix-new-step-desc { font-size: 0.75rem; color: #6b7280; }
.pix-new-footer { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.pix-new-footer-badge { display: flex; align-items: center; gap: 8px; }
.pix-new-footer-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; }
.pix-new-icon-blue { background: rgba(20,124,78,0.12); } .pix-new-icon-green { background: rgba(20,124,78,0.12); }
.pix-new-footer-text p:first-child { font-size: 0.75rem; color: #6b7280; }
.pix-new-footer-text p:last-child { font-size: 0.75rem; font-weight: 600; color: #1f2937; }
.pix-new-footer-divider { width: 1px; height: 32px; background: #e5e7eb; }

/* PIX Approved Loading */
.pix-approved-loading { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.97); z-index: 10000; flex-direction: column; align-items: center; justify-content: center; }
.pix-approved-loading.active { display: flex; }
.pix-approved-spinner { width: 60px; height: 60px; border: 4px solid #f3f3f3; border-top: 4px solid #147c4e; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
.pix-approved-text { font-size: 20px; color: #333; font-weight: 700; margin-bottom: 8px; }
.pix-approved-subtext { font-size: 14px; color: #666; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) { .checkout-wrapper { grid-template-columns: 1fr; gap: 15px; } .checkout-sidebar { position: static; order: -1; } }
@media (max-width: 768px) { .container { padding: 12px; } .logo-img { height: 32px; } .form-grid-2 { grid-template-columns: 1fr; gap: 10px; } .step-header { padding: 14px 16px; } .step-content { padding: 0 16px 16px; } }
@media (min-width: 640px) { .pix-new-header h1 { font-size: 1.125rem; } }
@media (max-width: 480px) {
    .header-content { padding: 10px 15px; } .logo-img { height: 28px; }
    .promo-banner { padding: 8px 12px; }
    .promo-banner-timer { gap: 8px; }
    .promo-banner-text { font-size: 12px; }
    .promo-clock { width: 16px; height: 16px; }
    .promo-timer { gap: 3px; }
    .promo-timer-digit { width: 20px; height: 26px; font-size: 0.75rem; }
    .form-input { padding: 11px 12px; font-size: 14px; }
    .btn { padding: 14px 20px; font-size: 15px; min-height: 50px; } .btn-spinner { width: 20px; height: 20px; }
    .summary-product-image { width: 60px; height: 60px; } .summary-product-name { font-size: 13px; }
    .summary-total-value { font-size: 16px; }
    .testimonial-card { padding: 12px; }
    .testimonial-top { flex-wrap: wrap; }
    .purchase-summary-box { padding: 14px; } .purchase-summary-image { width: 76px; height: 76px; }
    .purchase-summary-name { font-size: 14px; } .purchase-summary-price-now { font-size: 16px; } .purchase-summary-total-value { font-size: 16px; }
    .payment-method-selector { gap: 8px; } .payment-method-option { padding: 10px 8px; }
    .purchase-notification {
        left: 14px;
        right: auto;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 315px;
        max-width: calc(100vw - 28px);
        grid-template-columns: 62px minmax(0, 1fr) 26px;
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
    }
    .purchase-notification > img { width: 62px; height: 62px; }
    .purchase-notification-heading { gap: 4px 7px; }
    .purchase-notification-heading > strong { font-size: 0.86rem; }
    .purchase-verified { font-size: 0.7rem; }
    .purchase-notification-copy p { margin-top: 4px; font-size: 0.8rem; }
    .pix-new-container { padding: 16px 12px 30px; } .pix-new-header h1 { font-size: 0.9375rem; }
    .pix-new-timer-section { padding: 12px 16px; } .pix-new-payment-info { padding: 12px 16px; }
    .pix-new-qr-section { padding: 16px; } .pix-new-buttons-section { padding: 0 16px 16px; }
    .pix-new-how-to-pay { padding: 16px; } .pix-new-trust-badges { padding: 0 16px; gap: 10px; margin-bottom: 16px; }
    .pix-new-footer { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .testimonial-card { padding: 10px; gap: 10px; }
    .testimonial-avatar { width: 36px; height: 36px; font-size: 14px; }
    .pix-info-item { font-size: 11px; gap: 8px; }
    .pix-info-number { width: 18px; height: 18px; min-width: 18px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .address-fields.visible, .delivery-confirmation.visible,
    .cep-group.is-leaving, .address-fields.is-leaving {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
    .purchase-notification { transition: none; }
    .coupon-box { animation: none; }
    .coupon-cta { animation: none; box-shadow: 0 6px 16px rgba(45, 187, 47, 0.28); }
}

body.coupon-lock { overflow: hidden; }
.coupon-overlay { z-index: 10020; background: rgba(8, 16, 32, 0.62); }
.coupon-box { max-width: 380px; padding: 32px 22px 24px; }
.coupon-kicker { font-size: 13px; font-weight: 700; color: #E10600; margin-bottom: 8px; }
.coupon-title { font-size: 22px; font-weight: 800; color: #111827; line-height: 1.2; margin: 0 0 10px; }
.coupon-lead { font-size: 14px; color: #4b5563; line-height: 1.45; margin: 0 0 16px; }
.coupon-code { display: inline-block; padding: 10px 18px; border: 2px dashed #2dbb2f; border-radius: 10px; background: #f3fff4; color: #13803D; font-size: 22px; font-weight: 800; letter-spacing: 0.12em; margin-bottom: 16px; }
.coupon-cta { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: #2dbb2f; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; outline: none; transition: none; box-shadow: 0 0 0 0 rgba(45, 187, 47, 0.55); animation: couponPulse 1.7s ease-in-out infinite; }
.coupon-cta:hover { background: #28a92a; }
.coupon-cta:focus, .coupon-cta:focus-visible { outline: none; }
@keyframes couponPulse {
    0%, 100% { background: #2dbb2f; box-shadow: 0 0 0 0 rgba(45, 187, 47, 0.5), 0 6px 16px rgba(45, 187, 47, 0.28); }
    50% { background: #3ad63e; box-shadow: 0 0 0 12px rgba(45, 187, 47, 0), 0 8px 22px rgba(45, 187, 47, 0.38); }
}
.coupon-fine { margin: 12px 0 0; font-size: 12px; color: #6b7280; line-height: 1.35; }
.confetti-canvas { position: fixed; inset: 0; z-index: 10030; pointer-events: none; width: 100%; height: 100%; }