/* Oferta de saída v2 — estilos locais por identidade visual, sem alterar o checkout. */
.exit-offer-shade,
.exit-offer-shade * { box-sizing: border-box; }
.exit-offer-shade {
  position: fixed; inset: 0; z-index: 2147482000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(17, 20, 27, .66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.exit-offer-shade[hidden] { display: none !important; }
.exit-offer-dialog {
  --offer-accent: #fe2c55;
  --offer-soft: #fff1f4;
  --offer-ink: #161823;
  --offer-secondary: #606370;
  --offer-media: #f5f5f6;
  --offer-radius: 17px;
  width: min(100%, 386px); max-height: min(92dvh, 760px);
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--offer-ink);
  border-radius: var(--offer-radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .32);
  text-align: left;
  font: 400 14px/1.43 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.exit-offer-head {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 9px; min-height: 52px; padding: 13px 44px 13px 34px;
  background: var(--offer-accent); color: #fff;
}
.exit-offer-head strong { color: inherit; font-size: 13px; font-weight: 850; line-height: 1.28; letter-spacing: -.15px; text-align: center; }
.exit-offer-flame { flex: 0 0 18px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.exit-offer-flame svg { display: block; width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.exit-offer-close {
  position: absolute; top: 7px; right: 9px; display: grid; place-items: center;
  width: 35px; height: 35px; border: 0; background: transparent;
  border-radius: 50%; color: inherit; font-size: 25px; font-weight: 400; line-height: 1;
  cursor: pointer;
}
.exit-offer-close:hover, .exit-offer-close:focus-visible { background: rgba(255,255,255,.16); }
.exit-offer-content { padding: 15px 16px 17px; }
.exit-offer-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 195px; max-height: 236px; overflow: hidden;
  padding: 12px; border-radius: 13px; background: var(--offer-media);
}
.exit-offer-media img { display: block; width: 100%; max-width: 270px; height: 190px; object-fit: contain; }
.exit-offer-media.no-image { min-height: 128px; }
.exit-offer-media.no-image img { display: none; }
.exit-offer-media.no-image::after { content: 'Confira os produtos da loja'; color: var(--offer-secondary); font-size: 13px; font-weight: 650; text-align: center; }
.exit-offer-chip {
  position: absolute; z-index: 1; top: 11px; left: 11px;
  padding: 6px 10px; border-radius: 6px;
  background: var(--offer-accent); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .15px;
}
.exit-offer-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; margin: 13px 0 8px; padding: 0;
  color: var(--offer-ink); font-size: 15px; font-weight: 760; line-height: 1.44;
}
.exit-offer-price { display: flex; align-items: baseline; gap: 8px; min-height: 37px; margin: 0 0 7px; flex-wrap: wrap; }
.exit-offer-price strong { color: var(--offer-accent); font-size: 27px; font-weight: 890; line-height: 1.2; letter-spacing: -.8px; }
.exit-offer-price em { color: #858894; font-size: 11px; font-style: normal; }
.exit-offer-benefit { display: flex; align-items: flex-start; gap: 9px; margin: 9px 0; color: #4a4d57; font-size: 12px; line-height: 1.48; }
.exit-offer-benefit svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; stroke: var(--offer-accent); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.exit-offer-cta {
  display: block; width: 100%; min-height: 49px; margin: 17px 0 0;
  padding: 13px 14px; border: 0; border-radius: 12px;
  background: var(--offer-accent); color: #fff;
  font: 800 14px/1.25 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  text-align: center; cursor: pointer; transition: filter .17s ease, transform .17s ease;
}
.exit-offer-cta:hover { filter: brightness(.95); }
.exit-offer-cta:active { transform: scale(.988); }
.exit-offer-cta:focus-visible, .exit-offer-decline:focus-visible, .exit-offer-close:focus-visible { outline: 3px solid #161823; outline-offset: 2px; }
.exit-offer-decline { display: block; margin: 8px auto 0; padding: 7px 8px; border: 0; background: transparent; color: #8b8d98; font-size: 11.5px; text-align: center; cursor: pointer; }
.exit-offer-decline:hover { color: #41434c; text-decoration: underline; }

/* CASA DAS FERRAMENTAS — mesma linguagem rosa/white do catálogo TikTok. */
.exit-offer-dialog[data-store="casaferr"] {
  --offer-accent: #fe2c55; --offer-ink: #161823;
  --offer-media: #f6f6f7; --offer-radius: 16px;
}
.exit-offer-dialog[data-store="casaferr"] .exit-offer-head { background: #fe2c55; }
.exit-offer-dialog[data-store="casaferr"] .exit-offer-chip { background: #fe2c55; border-radius: 5px; }
.exit-offer-dialog[data-store="casaferr"] .exit-offer-cta { background: #fe2c55; border-radius: 999px; }
.exit-offer-dialog[data-store="casaferr"] .exit-offer-price strong { color: #fe2c55; }

/* REI DOS BRINQUEDOS — faixa vinho da loja + botão rosa e selo de destaque. */
.exit-offer-dialog[data-store="reidos"] {
  --offer-accent: #ff0050; --offer-ink: #17181d;
  --offer-media: #f8f5f6; --offer-radius: 19px;
}
.exit-offer-dialog[data-store="reidos"] .exit-offer-head {
  background: linear-gradient(110deg, #2b0c17, #4d1629 76%, #5a2035);
  min-height: 57px;
}
.exit-offer-dialog[data-store="reidos"] .exit-offer-media { background: #f6f4f6; border: 1px solid #f1e9ed; }
.exit-offer-dialog[data-store="reidos"] .exit-offer-chip {
  background: #f5d886; color: #563c12; border-radius: 7px;
}
.exit-offer-dialog[data-store="reidos"] .exit-offer-price strong { color: #fb1852; }
.exit-offer-dialog[data-store="reidos"] .exit-offer-cta {
  background: linear-gradient(105deg, #ff3869, #ff0050);
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(255, 0, 80, .13);
}
.exit-offer-dialog[data-store="reidos"] .exit-offer-benefit svg { stroke: #d91650; }

/* LIMPOTECH / FERRAMAX — interface branca clean, acento TikTok e ciano. */
.exit-offer-dialog[data-store="limpotech"] {
  --offer-accent: #fe2c55; --offer-ink: #111827;
  --offer-media: #f8f9fa; --offer-radius: 18px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.exit-offer-dialog[data-store="limpotech"] .exit-offer-head {
  background: #fff; color: #111827; border-bottom: 1px solid #e5e7eb;
  justify-content: flex-start; padding-left: 17px; min-height: 59px;
}
.exit-offer-dialog[data-store="limpotech"] .exit-offer-head::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #20d5ec 0 40%, #161823 40% 52%, #fe2c55 52%);
}
.exit-offer-dialog[data-store="limpotech"] .exit-offer-head strong { font-size: 12.5px; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-flame { color: #fe2c55; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-close { color: #474a54; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-close:hover { background: #f3f4f6; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-content { padding: 17px; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-media { border: 1px solid #edf0f2; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-chip {
  background: #dffaff; color: #08778b; border: 1px solid #bceff6; border-radius: 6px;
}
.exit-offer-dialog[data-store="limpotech"] .exit-offer-price strong { color: #fe2c55; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-benefit svg { stroke: #00a774; }
.exit-offer-dialog[data-store="limpotech"] .exit-offer-cta {
  background: linear-gradient(90deg, #fe2c55, #ff4267); border-radius: 999px;
  font-family: inherit;
}
.exit-offer-dialog[data-store="limpotech"] .exit-offer-decline { font-family: inherit; }

@media (max-width: 480px) {
  .exit-offer-shade { padding: 13px; }
  .exit-offer-dialog { width: min(100%, 386px); max-height: 94dvh; }
  .exit-offer-content { padding: 14px 15px 16px; }
  .exit-offer-media { min-height: 179px; }
  .exit-offer-media img { height: 170px; }
  .exit-offer-head strong { font-size: 12.5px; }
  .exit-offer-title { margin-top: 12px; }
}
@media (max-height: 660px) {
  .exit-offer-shade { padding: 8px; }
  .exit-offer-dialog { max-height: 96dvh; }
  .exit-offer-media { min-height: 140px; max-height: 180px; }
  .exit-offer-media img { height: 143px; }
}
@media (prefers-reduced-motion: no-preference) {
  .exit-offer-dialog { animation: exit-offer-in .2s ease-out both; }
  @keyframes exit-offer-in {
    from { opacity: 0; transform: translateY(9px) scale(.983); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
/* Mantém foco visível sem um círculo escuro contrastando com os cabeçalhos. */
.exit-offer-close:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }

/* Desconto promocional do produto atual */
.exit-offer-price s {font-size:13px;color:#8e929d;text-decoration:line-through}
.exit-offer-price em {flex-basis:100%;font-size:11px;color:#4f5562}
.exit-offer-chip {letter-spacing:.1px}

/* Faixa discreta no produto após aceitar a oferta; acompanha a identidade da loja. */
.exit-offer-applied { --offer-applied:#fe2c55; position:fixed; z-index:2147481000; left:50%; bottom:calc(78px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); display:flex; align-items:center; gap:9px; width:min(calc(100vw - 20px),440px); padding:12px 35px 12px 13px; background:#fff; color:#161823; border:1px solid #eee; border-radius:15px; box-shadow:0 12px 40px rgba(0,0,0,.22); font:500 12px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; box-sizing:border-box; }
.exit-offer-applied * { box-sizing:border-box; }
.exit-offer-applied-copy { min-width:0; display:flex; flex-wrap:wrap; column-gap:8px; align-items:baseline; flex:1; }
.exit-offer-applied-copy b { display:block; flex:0 0 100%; font-size:11px; }
.exit-offer-applied-copy s { color:#777; font-size:11px; }
.exit-offer-applied-copy strong { color:var(--offer-applied); font-size:19px; font-weight:850; }
.exit-offer-applied-buy { border:0; border-radius:9px; background:var(--offer-applied); color:white; font-family:inherit;line-height:1.15; font-weight:800; font-size:11px; padding:10px 9px; cursor:pointer; max-width:140px; }
.exit-offer-applied-dismiss { position:absolute; top:4px; right:7px; background:transparent; color:#777; padding:2px 4px; border:0; cursor:pointer; font-size:21px; }
.exit-offer-applied[data-store="casaferr"] { --offer-applied:#fe2c55; }
.exit-offer-applied[data-store="reidos"] { --offer-applied:#ed2158; }
.exit-offer-applied[data-store="limpotech"] { --offer-applied:#0a9caa; }
@media(max-width:350px) { .exit-offer-applied {gap:5px; padding:10px 28px 10px 10px;} .exit-offer-applied-copy strong {font-size:16px;} .exit-offer-applied-buy {max-width:115px; padding:8px;} }
