.chapa-discount-teaser,
.chapa-discount-modal {
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

.chapa-discount-teaser *,
.chapa-discount-modal * {
  box-sizing: border-box;
}

.chapa-discount-teaser {
  position: fixed;
  right: auto;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  width: min(318px, calc(100vw - 128px));
  border: 1px solid #242424;
  border-radius: 8px;
  background: #070707;
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 18px, 0);
  transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chapa-discount-teaser.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.has-open-whatsapp-widget .chapa-discount-teaser {
  opacity: 0;
  pointer-events: none;
}

.chapa-discount-teaser__close,
.chapa-discount-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: #ffffff;
  cursor: pointer;
  font: 900 20px/1 "Manrope", sans-serif;
}

.chapa-discount-modal--light .chapa-discount-modal__close {
  border-color: #e6e6e6;
  background: #ffffff;
  color: #070707;
}

.chapa-discount-teaser__line,
.chapa-discount-modal__line {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: #ff6600;
}

.chapa-discount-teaser__line {
  margin: 16px 16px 12px;
}

.chapa-discount-teaser__body {
  padding: 0 16px 16px;
}

.chapa-discount-teaser__eyebrow,
.chapa-discount-modal__eyebrow {
  margin: 0 0 8px;
  color: #ff6600;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.chapa-discount-teaser__title,
.chapa-discount-modal__title {
  margin: 0;
  color: inherit;
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.chapa-discount-teaser__title {
  margin-bottom: 8px;
  padding-right: 30px;
  font-size: 22px;
  line-height: 1.02;
}

.chapa-discount-teaser__text,
.chapa-discount-modal__text,
.chapa-discount-modal__note {
  margin: 0;
  font-weight: 600;
}

.chapa-discount-teaser__text {
  margin-bottom: 14px;
  color: #d8d8d8;
  font-size: 12px;
  line-height: 1.45;
}

.chapa-discount-button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #ff6600;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 18px 48px rgba(255, 102, 0, 0.28);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease;
}

.chapa-discount-button::before {
  content: "";
  position: absolute;
  inset: -70% -30%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.42), transparent 62%);
  transform: translateX(-70%);
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chapa-discount-button:hover {
  background: #e85d00;
  transform: translateY(-2px);
}

.chapa-discount-button:hover::before {
  transform: translateX(70%);
}

.chapa-discount-button__label {
  position: relative;
  z-index: 1;
}

.chapa-discount-button:focus-visible,
.chapa-discount-teaser__close:focus-visible,
.chapa-discount-modal__close:focus-visible,
.chapa-discount-modal__secondary:focus-visible {
  outline: 2px solid #ff6600;
  outline-offset: 4px;
}

.chapa-discount-overlay {
  position: fixed;
  inset: 0;
  z-index: 9991;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.52), rgba(7, 7, 7, 0.78)),
    rgba(7, 7, 7, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.chapa-discount-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.chapa-discount-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid #242424;
  border-radius: 8px;
  background: #070707;
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  transform: translate3d(0, 16px, 0) scale(0.98);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chapa-discount-overlay.is-visible .chapa-discount-modal {
  transform: translate3d(0, 0, 0) scale(1);
}

.chapa-discount-modal--light {
  border-color: #e6e6e6;
  background: #ffffff;
  color: #070707;
}

.chapa-discount-modal__media {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: #070707;
}

.chapa-discount-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapa-discount-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.12), rgba(7, 7, 7, 0.8));
}

.chapa-discount-modal__content {
  padding: 24px;
}

.chapa-discount-modal__line {
  margin-bottom: 18px;
}

.chapa-discount-modal__title {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.94;
}

.chapa-discount-modal__text {
  margin-bottom: 20px;
  color: #d8d8d8;
  font-size: 16px;
  line-height: 1.48;
}

.chapa-discount-modal--light .chapa-discount-modal__text {
  color: #404040;
}

.chapa-discount-modal__secondary {
  display: inline-flex;
  min-height: 42px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.chapa-discount-modal__note {
  margin-top: 14px;
  color: #9f9f9f;
  font-size: 12px;
  line-height: 1.35;
}

.chapa-discount-modal--light .chapa-discount-modal__note {
  color: #666666;
}

html.has-chapa-discount-modal {
  overflow: hidden;
}

@media (max-width: 767px) {
  .chapa-discount-teaser {
    right: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: min(258px, calc(100vw - 104px));
  }

  .chapa-discount-teaser__line {
    width: 34px;
    height: 3px;
    margin: 11px 12px 8px;
  }

  .chapa-discount-teaser__body {
    padding: 0 12px 12px;
  }

  .chapa-discount-teaser__close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .chapa-discount-teaser__eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .chapa-discount-teaser__title {
    margin-bottom: 10px;
    padding-right: 28px;
    font-size: 18px;
    line-height: 1.05;
  }

  .chapa-discount-teaser__text {
    display: none;
  }

  .chapa-discount-button {
    min-height: 38px;
    padding-inline: 10px;
    border-radius: 7px;
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .chapa-discount-overlay {
    align-items: end;
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .chapa-discount-modal {
    width: 100%;
    max-height: calc(100dvh - 108px);
  }

  .chapa-discount-modal__media {
    height: 118px;
  }

  .chapa-discount-modal__content {
    padding: 16px;
  }

  .chapa-discount-modal__line {
    width: 48px;
    margin-bottom: 14px;
  }

  .chapa-discount-modal__title {
    font-size: 28px;
    line-height: 0.98;
  }

  .chapa-discount-modal__text {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.42;
  }

  .chapa-discount-modal__secondary {
    min-height: 40px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapa-discount-teaser,
  .chapa-discount-overlay,
  .chapa-discount-modal,
  .chapa-discount-button,
  .chapa-discount-button::before {
    transition: none;
  }

  .chapa-discount-teaser,
  .chapa-discount-modal,
  .chapa-discount-button:hover {
    transform: none;
  }
}
