/* ============================================================
   CHECKOUT GLOBAL V2 — CSS escopado (.checkout-global-v2 / .cgv2-*)
   Não interfere em outros templates.
============================================================ */

.checkout-global-v2 *,
.checkout-global-v2 *::before,
.checkout-global-v2 *::after { box-sizing: border-box; margin: 0; padding: 0; }

.checkout-global-v2 {
  font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #eceff3;
  color: #16181d;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: block;
  background-image:
    radial-gradient(1000px 600px at 50% -10%, rgba(184,28,28,0.08), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(31,157,85,0.05), transparent 60%);
}

.checkout-global-v2 button { font-family: inherit; cursor: pointer; border: none; background: none; }
.checkout-global-v2 input,
.checkout-global-v2 select { font-family: inherit; }
.checkout-global-v2 input:focus,
.checkout-global-v2 select:focus { outline: none; }
.checkout-global-v2 a { color: inherit; }

/* ============== TOPBAR ============== */
.cgv2-topbar {
  background: linear-gradient(90deg, #a51a1a 0%, #d92626 50%, #a51a1a 100%);
  color: #fff;
  padding: 9px 14px;
  box-shadow: 0 2px 6px rgba(184,28,28,0.3), inset 0 -1px 0 rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}
.cgv2-topbar-inner {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cgv2-topbar-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.32);
  padding: 5px 11px;
  border-radius: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.cgv2-topbar-timer svg { width: 13px; height: 13px; }
.cgv2-topbar-msg { font-size: 11.5px; font-weight: 600; opacity: 0.96; }

/* ============== SHELL (container) ============== */
.cgv2-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 14px 12px 90px;
}

/* ============== BANNER CARD ============== */
.cgv2-promo-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 26px 60px -18px rgba(184,28,28,0.55),
    0 14px 28px -8px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,196,0,0.22);
  margin-bottom: 14px;
  isolation: isolate;
}
.cgv2-banner {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 18% 25%, rgba(217,38,38,0.78) 0%, transparent 45%),
    radial-gradient(circle at 92% 88%, rgba(255,140,0,0.42) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(80,30,90,0.55) 0%, transparent 60%),
    linear-gradient(135deg, #08090d 0%, #1c0f24 50%, #0a0710 100%);
  padding: 18px 18px 20px;
  overflow: hidden;
}
.cgv2-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}
.cgv2-banner::after {
  content: '';
  position: absolute;
  top: -50%; left: -40%;
  width: 50%; height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.09) 50%, transparent 70%);
  transform: rotate(15deg);
  pointer-events: none;
  animation: cgv2-banner-shine 6s ease-in-out infinite;
}
@keyframes cgv2-banner-shine {
  0%, 100% { transform: rotate(15deg) translateX(-30%); opacity: 0; }
  50% { transform: rotate(15deg) translateX(220%); opacity: 1; }
}

.cgv2-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #1d1f2a 0%, #0d1018 100%);
  color: #ffc400;
  font-size: 9.5px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255,196,0,0.45) inset, 0 4px 14px rgba(0,0,0,0.35);
  position: relative;
  z-index: 3;
}
.cgv2-promo-tag .cgv2-dot-blink {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffc400;
  box-shadow: 0 0 8px #ffc400;
  animation: cgv2-blink 1.2s ease-in-out infinite;
}
@keyframes cgv2-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.cgv2-promo-grid {
  margin-top: 12px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 14px;
  align-items: center;
}
.cgv2-promo-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}
.cgv2-promo-title .cgv2-accent {
  background: linear-gradient(95deg, #ffd54a 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: 22px;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(255,196,0,0.35));
}
.cgv2-promo-feats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.cgv2-feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(217,38,38,0.22);
  color: #ffe1e1;
  border: 1px solid rgba(255,196,0,0.4);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9.2px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cgv2-feat-pill svg { color: #ffc400; flex-shrink: 0; }

/* MOCKUP */
.cgv2-mockup {
  position: relative;
  width: 112px;
  height: 130px;
  align-self: center;
}
.cgv2-mockup-glow {
  position: absolute;
  inset: -16px;
  background: radial-gradient(circle at center, rgba(255,196,0,0.4), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: cgv2-glow-pulse 3s ease-in-out infinite;
}
@keyframes cgv2-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.cgv2-mockup-card {
  position: absolute;
  width: 64px;
  height: 88px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a1a1a 0%, #120808 100%);
  border: 1.5px solid rgba(255,196,0,0.55);
  box-shadow: 0 8px 20px rgba(0,0,0,0.55);
  overflow: hidden;
  top: 50%;
  left: 50%;
}
.cgv2-mockup-card::before {
  content: '50';
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 24px;
  font-weight: 900;
  color: #ffc400;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.cgv2-mockup-card::after {
  content: 'FORMATOS';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.6px;
  opacity: 0.92;
}
.cgv2-mockup-card.c1 {
  transform: translate(-78%, -42%) rotate(-14deg);
  z-index: 1;
  opacity: 0.78;
  background: linear-gradient(135deg, #1a0a14 0%, #0a0408 100%);
}
.cgv2-mockup-card.c2 {
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 2;
  opacity: 0.92;
}
.cgv2-mockup-card.c3 {
  transform: translate(-22%, -58%) rotate(10deg);
  z-index: 3;
  background: linear-gradient(135deg, #2a1a1a 0%, #1a0a0a 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,196,0,0.3);
}

.cgv2-promo-stripe {
  height: 4px;
  background: linear-gradient(90deg, #a51a1a 0%, #ffc400 50%, #a51a1a 100%);
  box-shadow: 0 -1px 4px rgba(255,196,0,0.4);
}

/* GREEN STRIP */
.cgv2-green-strip {
  background: linear-gradient(90deg, #15823f 0%, #1f9d55 50%, #15823f 100%);
  color: #fff;
  text-align: center;
  padding: 13px 14px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.cgv2-green-strip::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: cgv2-green-sweep 3.5s ease-in-out infinite;
}
@keyframes cgv2-green-sweep {
  0%, 100% { left: -50%; }
  50% { left: 100%; }
}

/* ============== CHECKOUT CARD ============== */
.cgv2-checkout-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(15,23,42,0.06),
    0 8px 24px rgba(15,23,42,0.06),
    0 24px 48px -12px rgba(15,23,42,0.10);
  border: 1px solid rgba(15,23,42,0.05);
}
.cgv2-secure-row {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #4a5159;
  border-bottom: 1px solid #f0f2f5;
  background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
}
.cgv2-secure-row .cgv2-secure {
  display: flex; align-items: center; gap: 6px;
  font-weight: 800;
  color: #16793f;
  letter-spacing: 0.4px;
}
.cgv2-secure-row .cgv2-country {
  display: flex; align-items: center; gap: 6px;
  color: #4a5159;
  font-weight: 700;
}
.cgv2-flag-br {
  width: 18px; height: 13px;
  border-radius: 2px;
  background: #009c3b;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  display: inline-block;
}
.cgv2-flag-br::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
  width: 14px; height: 7px;
  background: #ffdf00;
}
.cgv2-flag-br::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 5px; height: 5px;
  background: #002776;
  border-radius: 50%;
}

/* SECTION */
.cgv2-section {
  padding: 16px;
  border-bottom: 1px solid #f0f2f5;
}
.cgv2-section:last-child { border-bottom: none; }

/* PRODUCT */
.cgv2-product {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}
.cgv2-product-img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a0f1f 0%, #2c1c2c 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e9ebee;
}
.cgv2-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cgv2-product-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(217,38,38,0.5), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255,196,0,0.38), transparent 60%);
  pointer-events: none;
}
.cgv2-product-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 6px 4px;
  font-weight: 900;
  line-height: 1;
  z-index: 1;
}
.cgv2-product-img-fallback .num {
  font-size: 28px;
  color: #ffc400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  letter-spacing: -1.5px;
}
.cgv2-product-img-fallback .lbl {
  font-size: 7px;
  margin-top: 2px;
  letter-spacing: 0.6px;
}
.cgv2-product-info h1,
.cgv2-product-title {
  font-size: 14px;
  font-weight: 800;
  color: #16181d;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.cgv2-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cgv2-price-old,
.cgv2-old {
  font-size: 11.5px;
  color: #8a929b;
  font-weight: 600;
}
.cgv2-old del { text-decoration: line-through; }
.cgv2-price-old { text-decoration: line-through; }
.cgv2-price,
.cgv2-price-new {
  font-size: 19px;
  font-weight: 900;
  color: #16793f;
  letter-spacing: -0.5px;
}
.cgv2-installment,
.cgv2-price-installment { font-size: 11px; color: #4a5159; margin-top: 3px; font-weight: 600; }
.cgv2-promo,
.cgv2-price-promo {
  font-size: 10.5px;
  color: #16793f;
  margin-top: 5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* SECTION TITLE */
.cgv2-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #16181d;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cgv2-num-badge {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #16181d, #2a2d36);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* INPUTS */
.cgv2-field { margin-bottom: 10px; position: relative; }
.cgv2-field:last-child { margin-bottom: 0; }
.cgv2-input-wrap { position: relative; display: flex; align-items: center; }
.cgv2-input-icon {
  position: absolute;
  left: 12px;
  color: #9ba2aa;
  pointer-events: none;
  z-index: 2;
  display: flex;
}
.cgv2-input {
  width: 100%;
  background: #f9fafb;
  border: 1.5px solid #e2e5ea;
  border-radius: 9px;
  padding: 12px 12px 12px 38px;
  font-size: 13.5px;
  font-weight: 500;
  color: #16181d;
  transition: all 0.18s ease;
}
.cgv2-input.no-icon { padding-left: 12px; }
.cgv2-input::placeholder { color: #9ba2aa; font-weight: 500; }
.cgv2-input:focus {
  background: #fff;
  border-color: #1f9d55;
  box-shadow: 0 0 0 3px rgba(31,157,85,0.16);
}
.cgv2-input.error,
.cgv2-input.is-error {
  border-color: #d92626;
  background: #fef5f5;
}
.cgv2-input.error:focus,
.cgv2-input.is-error:focus { box-shadow: 0 0 0 3px rgba(217,38,38,0.16); }
.cgv2-field-error {
  color: #d92626;
  font-size: 11px;
  font-weight: 700;
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
}
.cgv2-field-error.is-visible { display: flex; }
.cgv2-field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* PHONE */
.cgv2-phone-row,
.cgv2-phone-wrap { display: grid; grid-template-columns: 64px 1fr; gap: 6px; }
.cgv2-ddi,
.cgv2-phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  border: 1.5px solid #e2e5ea;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  color: #4a5159;
  gap: 5px;
}
.cgv2-phone-prefix .cgv2-flag-br { width: 14px; height: 10px; }

/* TOGGLE */
.cgv2-pay-toggle,
.cgv2-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  background: #f0f2f5;
  padding: 4px;
  border-radius: 11px;
  border: 1px solid #e6e9ed;
}
.cgv2-pay-btn,
.cgv2-toggle-btn {
  background: transparent;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #4a5159;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
  position: relative;
}
.cgv2-pay-btn.is-active,
.cgv2-toggle-btn.is-active,
.cgv2-pay-btn.active {
  background: #fff;
  color: #16793f;
  box-shadow: 0 2px 6px rgba(15,23,42,0.10), 0 1px 2px rgba(15,23,42,0.06);
  font-weight: 800;
}
.cgv2-pay-btn.is-active::after,
.cgv2-toggle-btn.is-active::after,
.cgv2-pay-btn.active::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 14px; height: 14px;
  background: #1f9d55;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 9px;
  background-repeat: no-repeat;
  background-position: center;
}
.cgv2-pay-btn svg,
.cgv2-toggle-btn svg { width: 18px; height: 18px; }

.cgv2-pay-panel { display: none; }
.cgv2-pay-panel.is-active { display: block; animation: cgv2-fade-in 0.25s ease; }
.checkout-global-v2[data-method="card"] .cgv2-card-fields { display: block; animation: cgv2-fade-in 0.25s ease; }
.checkout-global-v2[data-method="card"] .cgv2-pix-panel { display: none; }
.checkout-global-v2[data-method="pix"] .cgv2-card-fields { display: none; }
.checkout-global-v2[data-method="pix"] .cgv2-pix-panel { display: block; animation: cgv2-fade-in 0.25s ease; }

@keyframes cgv2-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.cgv2-pay-section-label,
.cgv2-payment-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #16181d;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.cgv2-payment-title { font-size: 14px; letter-spacing: -0.2px; text-transform: none; margin-bottom: 12px; }

.cgv2-pix-panel {
  text-align: center;
  padding: 18px 12px;
  background: linear-gradient(135deg, #f7fdf9 0%, #fff 100%);
  border: 1.5px dashed #1f9d55;
  border-radius: 10px;
  font-size: 12px;
  color: #4a5159;
  line-height: 1.5;
}
.cgv2-pix-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #1f9d55, #16793f);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(31,157,85,0.4);
}
.cgv2-pix-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: #16181d; }
.cgv2-pix-discount {
  display: inline-block;
  background: #fff3cd;
  color: #8b6c00;
  padding: 4px 11px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 10px;
}

/* SELECIONAR TODAS */
.cgv2-select-all {
  background: #fff;
  border: 1.5px solid #e2e5ea;
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 12px;
}
.cgv2-select-all:hover { border-color: #1f9d55; background: #f7fdf9; }
.cgv2-select-all.is-active { border-color: #1f9d55; background: #f0fbf4; }
.cgv2-select-all .cgv2-radio {
  width: 22px; height: 22px;
  border: 2px solid #c8d0d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
  background: #fff;
}
.cgv2-select-all.is-active .cgv2-radio,
.cgv2-radio.checked {
  background: #1f9d55;
  border-color: #1f9d55;
}
.cgv2-radio svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity 0.18s; }
.cgv2-select-all.is-active .cgv2-radio svg,
.cgv2-radio.checked svg { opacity: 1; }
.cgv2-select-all .cgv2-label { font-weight: 800; font-size: 13px; color: #16181d; flex: 1; }
.cgv2-select-all .cgv2-counter {
  font-size: 11.5px;
  font-weight: 800;
  color: #16793f;
  background: #e6f7ee;
  padding: 3px 9px;
  border-radius: 12px;
}

/* ORDER BUMPS */
.cgv2-bumps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgv2-bump {
  background: #fff;
  border: 2px dashed #d92626;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cgv2-bump:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(217,38,38,0.18); }
.cgv2-bump.is-selected {
  border-style: solid;
  border-color: #1f9d55;
  box-shadow: 0 6px 16px rgba(31,157,85,0.18);
}
.cgv2-bump-head {
  background: linear-gradient(90deg, #a51a1a, #d92626);
  color: #fff;
  font-weight: 900;
  font-size: 11.5px;
  padding: 9px 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.18) inset;
}
.cgv2-bump.is-selected .cgv2-bump-head { background: linear-gradient(90deg, #16793f, #1f9d55); }
.cgv2-bump-head::before { content: '🔥 '; }
.cgv2-bump.is-selected .cgv2-bump-head::before { content: '✓ '; }

.cgv2-bump-body {
  padding: 12px;
  display: grid;
  grid-template-columns: 26px 56px 1fr;
  gap: 11px;
  align-items: flex-start;
}
.cgv2-bump-check,
.cgv2-bump-body .cgv2-radio.small {
  width: 22px; height: 22px;
  border: 2px solid #c8d0d8;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.cgv2-bump.is-selected .cgv2-bump-check,
.cgv2-bump.is-selected .cgv2-radio.small { background: #1f9d55; border-color: #1f9d55; }
.cgv2-bump-check svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity 0.18s; }
.cgv2-bump.is-selected .cgv2-bump-check svg { opacity: 1; }

.cgv2-bump-thumb,
.cgv2-bump-mock {
  width: 56px; height: 56px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e9ebee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cgv2-bump-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cgv2-bump-thumb .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffc400;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.cgv2-bump-mock.b1 { background: linear-gradient(135deg, #1a0a14 0%, #4a1a2a 100%); }
.cgv2-bump-mock.b2 { background: linear-gradient(135deg, #0d2818 0%, #1f4a30 100%); }
.cgv2-bump-mock.b3 { background: linear-gradient(135deg, #161a3a 0%, #2a3a6a 100%); }
.cgv2-bump-mock.b4 { background: linear-gradient(135deg, #3a1a1a 0%, #6a2a2a 100%); }
.cgv2-bump-mock-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  padding: 4px;
}
.cgv2-bump-mock-content .num {
  font-size: 18px;
  font-weight: 900;
  color: #ffc400;
  line-height: 1;
  letter-spacing: -0.5px;
}
.cgv2-bump-mock-content .lbl {
  font-size: 6px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: 0.4px;
}
.cgv2-bump-mock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,196,0,0.18) 50%, transparent 60%);
}

.cgv2-bump-info { min-width: 0; }
.cgv2-bump-title { font-size: 13px; font-weight: 900; color: #16181d; line-height: 1.2; margin-bottom: 4px; }
.cgv2-bump-title .cgv2-bump-price-inline { color: #d92626; font-weight: 900; }
.cgv2-bump-desc { font-size: 11.5px; color: #4a5159; line-height: 1.4; }
.cgv2-bump-price {
  font-size: 12px;
  font-weight: 900;
  color: #d92626;
  margin-top: 4px;
}

/* SUMMARY */
.cgv2-summary-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cgv2-summary-line,
.cgv2-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12.5px;
  color: #4a5159;
  gap: 10px;
}
.cgv2-summary-line span:first-child,
.cgv2-summary-row span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cgv2-summary-line strong,
.cgv2-summary-line span:last-child,
.cgv2-summary-row span:last-child { font-weight: 700; color: #16181d; flex-shrink: 0; }
.cgv2-summary-row.discount span:last-child,
.cgv2-summary-line.discount strong { color: #16793f; }
.cgv2-summary-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e5ea 30%, #e2e5ea 70%, transparent);
  margin: 8px 0;
}
.cgv2-summary-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid #16181d;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cgv2-summary-total .cgv2-lbl {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.cgv2-summary-total .cgv2-val {
  font-size: 24px;
  font-weight: 900;
  color: #16793f;
  letter-spacing: -0.6px;
}
.cgv2-summary-installments {
  text-align: right;
  font-size: 10.5px;
  color: #6c737b;
  font-weight: 600;
  margin-top: 2px;
}

/* CTA */
.cgv2-cta-wrap { padding: 0; }
.cgv2-cta {
  width: 100%;
  background: linear-gradient(180deg, #22b962 0%, #1f9d55 100%);
  color: #fff;
  padding: 17px 16px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 0 #16793f, 0 12px 28px rgba(31,157,85,0.5);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.cgv2-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: cgv2-shine 2.6s ease-in-out infinite;
}
@keyframes cgv2-shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}
.cgv2-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #16793f, 0 14px 32px rgba(31,157,85,0.6);
}
.cgv2-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #16793f, 0 4px 12px rgba(31,157,85,0.4);
}
.cgv2-safe-footer {
  text-align: center;
  font-size: 11px;
  color: #4a5159;
  margin-top: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* FOOTER LEGAL */
.cgv2-footer {
  margin-top: 18px;
  padding: 0 8px;
  text-align: center;
  color: #6c737b;
  font-size: 11px;
  line-height: 1.6;
}
.cgv2-footer-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cgv2-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #e2e5ea;
  padding: 7px 11px;
  border-radius: 18px;
  font-size: 10.5px;
  font-weight: 800;
  color: #4a5159;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cgv2-footer hr { border: none; border-top: 1px solid #dde0e4; margin: 12px 0; }
.cgv2-footer a { color: #4a5159; font-weight: 700; text-decoration: none; }
.cgv2-footer a:hover { color: #16181d; text-decoration: underline; }
.cgv2-legal {
  font-size: 10.5px;
  color: #8a929b;
  margin-top: 6px;
  text-align: center;
  line-height: 1.5;
}
.cgv2-powered {
  text-align: center;
  font-size: 10.5px;
  color: #8a929b;
  margin-top: 10px;
  opacity: 0.85;
}
.cgv2-powered strong { color: #4a5159; }
.cgv2-secure-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1f9d55;
  color: #fff;
  padding: 6px 13px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(31,157,85,0.3);
}

/* MOBILE */
@media (max-width: 380px) {
  .checkout-global-v2 { font-size: 13px; }
  .cgv2-promo-grid { grid-template-columns: 1fr 92px; }
  .cgv2-mockup { width: 92px; height: 110px; }
  .cgv2-mockup-card { width: 54px; height: 76px; }
  .cgv2-mockup-card::before { font-size: 20px; top: 36%; }
  .cgv2-promo-title { font-size: 16px; }
  .cgv2-promo-title .cgv2-accent { font-size: 19px; }
  .cgv2-feat-pill { font-size: 8.5px; padding: 3px 6px; }
}

/* DESKTOP */
@media (min-width: 600px) {
  .cgv2-shell { padding: 22px 16px 60px; }
}

/* ============== FIX 1: Full-width body reset (V2 only) ============== */
body.cgv2-page {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  min-height: 100vh;
  background: #eceff3;
}
body.cgv2-page > .container,
body.cgv2-page > .wrapper,
body.cgv2-page > main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* ============== FIX 2: CTA specificity fix ============== */
.checkout-global-v2 .cgv2-cta,
.checkout-global-v2 button.cgv2-cta,
button.cgv2-cta[type="submit"] {
  background: linear-gradient(180deg, #22b962 0%, #1f9d55 100%) !important;
  color: #fff !important;
  border: none !important;
  width: 100%;
  padding: 17px 16px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 0 #16793f, 0 12px 28px rgba(31,157,85,0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.checkout-global-v2 .cgv2-cta:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ============== FIX 6: Card fields 2-column ============== */
.cgv2-field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ============== FIX 5: Country selector ============== */
.cgv2-country {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.cgv2-country-arrow {
  margin-left: 2px;
  font-size: 8px;
  opacity: 0.6;
  transition: transform 0.2s;
}
.cgv2-country.is-open .cgv2-country-arrow { transform: rotate(180deg); }
.cgv2-country-dd {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  max-height: 320px;
  background: #fff;
  border: 1.5px solid #e2e5ea;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
  z-index: 999;
  overflow: hidden;
  animation: cgv2-fade-in 0.2s ease;
}
.cgv2-country.is-open .cgv2-country-dd { display: block; }
.cgv2-country-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f0f2f5;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
}
.cgv2-country-list {
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cgv2-country-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #16181d;
  transition: background 0.12s;
}
.cgv2-country-item:hover { background: #f0f2f5; }
.cgv2-country-item.is-active { background: #e6f7ee; color: #16793f; font-weight: 800; }
.cgv2-country-item .cflag { font-size: 16px; flex-shrink: 0; }
.cgv2-country-item .cname { flex: 1; }
.cgv2-country-item .cddi { color: #8a929b; font-size: 11px; }

/* ============== FIX 3: Pix real icon in toggle ============== */
.cgv2-pix-real-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}
.cgv2-pix-panel .cgv2-pix-real-icon {
  width: 28px;
  height: 28px;
}

/* ============== ETAPA 3: DESKTOP RESPONSIVO ============== */

/* Tablet: shell mais largo */
@media (min-width: 768px) {
  .cgv2-shell {
    max-width: 560px;
    padding: 20px 16px 60px;
  }
  .cgv2-topbar-inner {
    max-width: 560px;
  }
  .cgv2-promo-title { font-size: 20px; }
  .cgv2-promo-title .cgv2-accent { font-size: 24px; }
  .cgv2-section { padding: 20px; }
  .cgv2-product { gap: 16px; }
  .cgv2-product-img { width: 88px; height: 88px; }
  .cgv2-product { grid-template-columns: 88px 1fr; }
}

/* Desktop: container amplo, melhor leitura */
@media (min-width: 1024px) {
  .cgv2-shell {
    max-width: 640px;
    padding: 28px 20px 60px;
  }
  .cgv2-topbar-inner {
    max-width: 640px;
  }
  .cgv2-topbar { padding: 10px 20px; }
  .cgv2-topbar-msg { font-size: 12.5px; }
  .cgv2-promo-card {
    border-radius: 22px;
  }
  .cgv2-banner { padding: 24px 24px 28px; }
  .cgv2-promo-grid { grid-template-columns: 1fr 140px; gap: 20px; }
  .cgv2-promo-title { font-size: 22px; line-height: 1.12; }
  .cgv2-promo-title .cgv2-accent { font-size: 26px; }
  .cgv2-mockup { width: 140px; height: 160px; }
  .cgv2-mockup-card { width: 72px; height: 100px; }
  .cgv2-checkout-card { border-radius: 22px; }
  .cgv2-section { padding: 22px 24px; }
  .cgv2-product-img { width: 96px; height: 96px; }
  .cgv2-product { grid-template-columns: 96px 1fr; gap: 18px; }
  .cgv2-product-title { font-size: 16px; }
  .cgv2-price { font-size: 22px; }
  .cgv2-input { padding: 13px 14px 13px 40px; font-size: 14px; }
  .cgv2-input.no-icon { padding-left: 14px; }
  .cgv2-pay-btn { padding: 14px 12px; font-size: 14px; }
  .cgv2-bump-body { gap: 14px; padding: 14px 16px; }
  .cgv2-bump-mock { width: 64px; height: 64px; }
  .cgv2-bump-body { grid-template-columns: 26px 64px 1fr; }
  .cgv2-bump-title { font-size: 14px; }
  .cgv2-summary-total .cgv2-val { font-size: 26px; }
  .cgv2-cta { padding: 18px 20px; font-size: 16px; border-radius: 14px; }
  .cgv2-footer { padding: 0 12px; }
}

/* Wide desktop: cap para não ficar absurdo */
@media (min-width: 1280px) {
  .cgv2-shell {
    max-width: 680px;
  }
  .cgv2-topbar-inner {
    max-width: 680px;
  }
}

/* ============== TIPOGRAFIA: reduzir pesos exagerados ============== */
.cgv2-section-title { font-weight: 700; }
.cgv2-num-badge { font-weight: 800; }
.cgv2-pay-section-label { font-weight: 700; letter-spacing: 0.5px; }
.cgv2-select-all .cgv2-label { font-weight: 700; }
.cgv2-bump-head { font-weight: 800; font-size: 11px; letter-spacing: 0.6px; }
.cgv2-bump-title { font-weight: 800; }
.cgv2-summary-title { font-weight: 700; }
.cgv2-summary-total .cgv2-lbl { font-weight: 700; letter-spacing: 0.4px; }
.cgv2-secure-row .cgv2-secure { font-weight: 700; }
.cgv2-secure-row .cgv2-country { font-weight: 600; }
.cgv2-topbar-msg { font-weight: 500; }
.cgv2-promo-tag { font-weight: 800; letter-spacing: 1.2px; }
.cgv2-feat-pill { font-weight: 700; }
.cgv2-pix-title { font-weight: 700; }
.cgv2-badge { font-weight: 700; }
.cgv2-legal { font-weight: 400; }
.cgv2-powered { font-weight: 400; }
.cgv2-footer a { font-weight: 600; }
.cgv2-green-strip { font-weight: 700; font-size: 12px; }

/* ============== P4: FINAL TYPOGRAPHY REFINEMENT ============== */
/* Reduce 900 to 800/700 except price, CTA, timer */
.cgv2-promo-title { font-weight: 800; }
.cgv2-product-title { font-weight: 700; }
.cgv2-topbar-timer { font-weight: 700; }
.cgv2-bump-title { font-weight: 700; }
.cgv2-bump-mock-content .num { font-weight: 800; }
.cgv2-select-all .cgv2-counter { font-weight: 700; }
.cgv2-summary-total .cgv2-lbl { font-weight: 700; }

/* ============== FIX: PIX icon sem fundo verde ============== */
.cgv2-pix-icon {
  background: none !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
}
.cgv2-pix-icon .cgv2-pix-real-icon {
  width: 42px;
  height: 42px;
}

/* ============== FIX: Tipografia mais leve ============== */
.cgv2-bump-desc { font-weight: 400; }
.cgv2-old { font-weight: 500; }
.cgv2-installment { font-weight: 500; }
.cgv2-promo { font-weight: 600; }
.cgv2-pix-discount { font-weight: 700; }
.cgv2-footer { font-weight: 400; }
.cgv2-section-title { font-weight: 600; font-size: 13.5px; }
.cgv2-pay-section-label { font-weight: 600; font-size: 11px; }
.cgv2-input::placeholder { font-weight: 400; }
.cgv2-phone-prefix, .cgv2-ddi { font-weight: 700; }
.cgv2-bump-head { font-weight: 700; }
.cgv2-secure-row .cgv2-country { font-weight: 500; }
.cgv2-summary-row { font-weight: 400; }
.cgv2-summary-row span:last-child { font-weight: 600; }

/* ============== Banner: no glow/shadow when custom image ============== */
.cgv2-promo-card.has-custom-image {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}
.cgv2-promo-card.has-custom-image .cgv2-banner::before,
.cgv2-promo-card.has-custom-image .cgv2-banner::after {
  display: none;
}

/* ============== Global style config vars ============== */
.checkout-global-v2 {
  background: var(--cg-page-bg, #eceff3);
  color: var(--cg-text, #16181d);
}
.cgv2-checkout-card {
  background: var(--cg-card-bg, #fff);
  border-radius: var(--cg-radius, 18px);
}
.cgv2-promo-card {
  border-radius: var(--cg-radius, 18px);
}
.checkout-global-v2 .cgv2-cta {
  background: linear-gradient(180deg, color-mix(in srgb, var(--cg-primary, #22b962) 100%, white), var(--cg-primary, #1f9d55)) !important;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cg-primary, #16793f) 85%, black), 0 12px 28px rgba(31,157,85,0.5);
}
.cgv2-price { color: var(--cg-primary, #16793f); }
.cgv2-summary-total .cgv2-val { color: var(--cg-primary, #16793f); }
.cgv2-input:focus { border-color: var(--cg-primary, #1f9d55); box-shadow: 0 0 0 3px rgba(31,157,85,0.16); }

/* Design tab: page_background_color */
.checkout-global-v2[style*="--cg-page-bg"] {
  background-image: none;
}

/* ============== Banner image: respect proportions ============== */
.cgv2-banner--img {
  border-radius: 0;
}
.cgv2-banner--img img {
  display: block;
  width: 100%;
  height: auto;
}
/* When max-height is set on container, image should fill properly */
.cgv2-banner--img[style*="max-height"] img {
  object-fit: cover;
  height: 100%;
}

/* ============== FIX: Remove product image overlay ============== */
.cgv2-product-img::before {
  display: none !important;
}
.cgv2-product-img {
  background: #f5f5f5;
}

/* ============== FIX: Reduce footer bottom padding ============== */
.cgv2-shell {
  padding-bottom: 32px !important;
}
@media (min-width: 600px) {
  .cgv2-shell { padding-bottom: 40px !important; }
}

/* ============== Trust badges: image mode ============== */
.cgv2-trust-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 8px auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.cgv2-trust-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}
/* Inside footer-badges flex row, trust images sit nicely */
.cgv2-footer-badges .cgv2-trust-image-wrap {
  margin: 0;
  width: auto;
  flex-shrink: 0;
}
.cgv2-footer-badges .cgv2-trust-image {
  max-height: 44px;
}

/* ============== FIX: Remove bump image overlay ============== */
.cgv2-bump-mock::after {
  display: none !important;
}
/* When bump has real thumbnail image, clean display */
.cgv2-bump-mock img {
  position: relative;
  z-index: 1;
}

/* ============== CONFIG-DRIVEN DESIGN: CSS vars from editor Configs tab ============== */
/* These override hardcoded colors when config vars are set */
.checkout-global-v2[style*="--cg-page-bg"] { background: var(--cg-page-bg) !important; background-image: none !important; }
.checkout-global-v2[style*="--cg-text"] { color: var(--cg-text); }
.checkout-global-v2[style*="--cg-max-width"] .cgv2-shell { max-width: var(--cg-max-width) !important; }
.checkout-global-v2[style*="--cg-max-width"] .cgv2-topbar-inner { max-width: var(--cg-max-width) !important; }
.checkout-global-v2[style*="--cg-topbar"] .cgv2-topbar { background: var(--cg-topbar) !important; }
.checkout-global-v2[style*="--cg-card-bg"] .cgv2-checkout-card { background: var(--cg-card-bg) !important; }
.checkout-global-v2[style*="--cg-primary"] .cgv2-price,
.checkout-global-v2[style*="--cg-primary"] .cgv2-summary-total .cgv2-val { color: var(--cg-primary) !important; }
.checkout-global-v2[style*="--cg-primary"] .cgv2-green-strip { background: linear-gradient(90deg, color-mix(in srgb, var(--cg-primary) 85%, black), var(--cg-primary), color-mix(in srgb, var(--cg-primary) 85%, black)) !important; }
.checkout-global-v2[style*="--cg-primary"] .cgv2-input:focus { border-color: var(--cg-primary) !important; }
.checkout-global-v2[style*="--cg-primary"] .cgv2-pay-btn.is-active { color: var(--cg-primary) !important; }
.checkout-global-v2[style*="--cg-button"] .cgv2-cta { background: linear-gradient(180deg, color-mix(in srgb, var(--cg-button) 90%, white), var(--cg-button)) !important; }
.checkout-global-v2[style*="--cg-button-text"] .cgv2-cta { color: var(--cg-button-text) !important; }
.checkout-global-v2[style*="--cg-cta-radius"] .cgv2-cta { border-radius: var(--cg-cta-radius) !important; }
.checkout-global-v2[style*="--cg-radius"] .cgv2-checkout-card { border-radius: var(--cg-radius) !important; }
.checkout-global-v2[style*="--cg-radius"] .cgv2-promo-card { border-radius: var(--cg-radius) !important; }
