.hotmart-discount-modal[hidden] {
  display: none !important;
}

.hotmart-discount-modal {
  position: fixed;
  inset: 0;
  z-index: 3120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  font-family: var(--cds-font-family-sans, "Hotmart Sans", Arial, sans-serif);
}

.hotmart-discount-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.hotmart-discount-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.hotmart-discount-modal__dialog {
  position: relative;
  width: min(100%, 400px);
  border-radius: 16px;
  background: #fff;
  padding: 30px 24px 24px;
  text-align: center;
  color: #191919;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.hotmart-discount-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.hotmart-discount-modal__close:hover {
  background: #f2f2f2;
  color: #191919;
}

.hotmart-discount-modal__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid #b8dec8;
  border-radius: 50%;
  background: #effaf3;
  color: #008f3f;
}

.hotmart-discount-modal__dialog h2 {
  margin: 0 28px 6px;
  font-family: var(--cds-font-family-sans, "Hotmart Sans", Arial, sans-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.hotmart-discount-modal__dialog > p {
  margin: 0 0 22px;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

.hotmart-discount-modal__summary {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #e1ded9;
  border-radius: 12px;
  background: #faf9f7;
  text-align: left;
}

.hotmart-discount-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.35;
}

.hotmart-discount-modal__row + .hotmart-discount-modal__row {
  margin-top: 12px;
}

.hotmart-discount-modal__row strong {
  color: #191919;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.hotmart-discount-modal__row del {
  color: #777;
  text-align: right;
}

.hotmart-discount-modal__row--total {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid #ddd8d1;
  font-size: 16px;
}

.hotmart-discount-modal__row--total strong:last-child {
  color: #008f3f;
  font-size: 18px;
}

.hotmart-discount-modal__continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 8px;
  background: #0d0d0d;
  color: #fff;
  font-family: var(--cds-font-family-sans, "Hotmart Sans", Arial, sans-serif);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.hotmart-discount-modal__continue:hover {
  background: #000;
}

.hotmart-discount-modal__continue:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.24);
  outline-offset: 2px;
}

.hotmart-discount-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .hotmart-discount-modal {
    align-items: flex-end;
    padding: 0;
  }

  .hotmart-discount-modal__dialog {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding: 28px 22px max(24px, env(safe-area-inset-bottom));
  }
}
