.exit-overlay[hidden] {
  display: none !important;
}

.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 47, 77, 0.72);
  backdrop-filter: blur(7px);
}

.exit-popup {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 40px);
  padding: 34px 28px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--cor-tinta);
  text-align: center;
  background: var(--cor-papel-clara);
  border: 2px solid var(--cor-areia);
  border-radius: var(--raio-grande);
  box-shadow: 0 28px 72px rgba(16, 47, 77, 0.4);
}

.exit-popup::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 8px;
  top: 0;
  left: 0;
  background: var(--cor-dourada);
}

.exit-close {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 12px;
  right: 12px;
  color: var(--cor-tinta-clara);
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border-radius: 50%;
}

.exit-close:hover {
  color: var(--cor-branca);
  background: var(--cor-terracota);
}

.exit-label {
  display: inline-flex;
  min-height: 36px;
  margin: 4px auto 16px;
  padding: 7px 14px;
  align-items: center;
  justify-content: center;
  color: var(--cor-dourada-escura);
  font-size: var(--f0);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--cor-creme);
  border: 1px solid var(--cor-areia);
  border-radius: 999px;
}

.exit-popup h2 {
  margin: 0 24px 10px;
  font-family: var(--fonte-titulo);
  font-size: var(--f6);
  color: var(--cor-tinta);
  line-height: 1.12;
}

.exit-description {
  color: var(--cor-tinta-clara);
  font-size: var(--f1);
  line-height: 1.55;
}

.exit-price {
  margin: 20px 0;
  padding: 16px;
  background: var(--cor-papel);
  border: 1px solid var(--cor-areia);
  border-radius: var(--raio);
}

.exit-price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.exit-old {
  color: var(--cor-tinta-clara);
  font-size: var(--f3);
  text-decoration: line-through;
}

.exit-new {
  color: var(--cor-terracota);
  font-family: var(--fonte-titulo);
  font-size: var(--f7);
  font-weight: 700;
  line-height: 1;
}

.exit-coupon {
  display: block;
  margin-top: 8px;
  color: var(--cor-verde);
  font-size: var(--f0);
  font-weight: 700;
}

.exit-btn {
  display: flex;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  align-items: center;
  justify-content: center;
  color: var(--cor-branca);
  font-weight: 800;
  line-height: 1.25;
  background: var(--cor-verde);
  border: 2px solid var(--cor-verde);
  border-radius: 12px;
  box-shadow: 0 12px 24px var(--cor-sombra);
  transition: 0.2s;
}

.exit-btn:hover {
  background: var(--cor-tinta);
  border-color: var(--cor-tinta);
  transform: translateY(-2px);
}

.exit-skip {
  margin-top: 12px;
  padding: 6px 10px;
  color: var(--cor-tinta-clara);
  font-size: var(--f1);
  text-decoration: underline;
  background: transparent;
}

body.exit-open {
  overflow: hidden;
}

@media screen and (max-width: 520px) {
  .exit-overlay {
    padding: 14px;
  }

  .exit-popup {
    padding: 30px 20px 22px;
    border-radius: 20px;
  }

  .exit-popup h2 {
    margin-right: 18px;
    margin-left: 18px;
    font-size: var(--f5);
  }
}
