/* Sign-up-and-save section: welcome modal after successful AJAX subscribe */
.dh-newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.dh-newsletter-modal[hidden] {
  display: none !important;
}

.dh-newsletter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.56);
}

.dh-newsletter-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 28px 22px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.dh-newsletter-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  padding: 0;
}

.dh-newsletter-modal__close:hover {
  opacity: 0.65;
}

.dh-newsletter-modal__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.dh-newsletter-modal__subtitle {
  margin: 0 0 18px;
  font-size: 15px;
  text-align: center;
  line-height: 1.45;
  color: #333;
}

.dh-newsletter-modal__coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f5f5f5;
  margin-bottom: 20px;
}

.dh-newsletter-modal__code {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.dh-newsletter-modal__copy {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dh-newsletter-modal__copy:hover {
  opacity: 0.92;
}

.dh-newsletter-modal__copy.is-done {
  background: #4dad47;
  border-color: #4dad47;
  color: #fff;
}

.dh-newsletter-modal__copy .dh-newsletter-modal__copy-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.dh-newsletter-modal__primary {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.dh-newsletter-modal__primary:hover {
  opacity: 0.92;
}

.dh-newsletter-inline-success {
  margin-top: 12px;
}
