
.neljemark-coupon-card {
  position: fixed;
  right: 30px;
  bottom: 30px;
  max-width: 360px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  padding: 30px 32px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: #222222;
  z-index: 9999;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.45s ease-out,
    opacity 0.45s ease-out;
}

/* visible state */
.neljemark-coupon-card.neljemark-coupon-card--visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* hidden state */
.neljemark-coupon-card--hidden {
  pointer-events: none;
}

/* visible state */
.neljemark-coupon-card.neljemark-coupon-card--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.neljemark-coupon-card__inner {
  position: relative;
}

/* Close button */
.neljemark-coupon-card__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #222;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}


/* Typography */

.neljemark-coupon-card__heading {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 600;
	text-align:center;
  text-wrap:balance;
}

.neljemark-coupon-card__subheading {
  font-size: 14px;
  margin: 0;
	text-align:center;
}

/* Form */
.neljemark-coupon-card__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.neljemark-coupon-card__input {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #d0c0b0;
  padding: 10px 12px;
  background: #ffffff;
  outline: none;
  font-size: 14px;
}

.neljemark-coupon-card__input:focus {
  border-color: #225c4b;
  box-shadow: 0 0 0 1px #225c4b33;
}

/* Checkbox */
.neljemark-coupon-card__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
}

.neljemark-coupon-card__checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

.neljemark-coupon-card__checkbox-label a {
  color: #225c4b;
  text-decoration: underline;
}

/* Button */
.neljemark-coupon-card__button {
  border: none;
  border-radius: 4px;
  padding: 14px;
  margin-top:4px;
  background: #225c4b; /* Neljemark green */
  color: #ffffff;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}


.neljemark-coupon-card__button:hover {
  filter: brightness(1.05);
}

/* Error text */
.neljemark-coupon-card__error {
  min-height: 16px;
  margin: 0;
  font-size: 12px;
  color: #a32828;
}

/* Success view */
.neljemark-coupon-card__view[hidden] {
  display: none !important;
}

.neljemark-coupon-card__coupon-wrap {
  display: flex;
  align-items: stretch;
  margin: 8px 0 10px;
}

.neljemark-coupon-card__coupon {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 0 0 4px;
  background: #ffffff;
  border: 1px solid #d0c0b0;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 14px;
}

.neljemark-coupon-card__copy {
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 8px 10px;
  background: #225c4b;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.neljemark-coupon-card__copy:hover {
  filter: brightness(1.05);
}

.neljemark-coupon-card__hint {
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 600px) {
  .neljemark-coupon-card {
    right: 12px;
    left: 12px;
    max-width: none;
    bottom: 12px;
  }

  .neljemark-coupon-card__heading {
    font-size: 16px;
  }

  .neljemark-coupon-card__subheading {
    font-size: 13px;
  }
}

/* unify coupon + button height and border radius */
.neljemark-coupon-card__coupon-wrap {
  border-radius: 6px;
  overflow: hidden;
}

.neljemark-coupon-card__coupon {
  border-radius: 0;
  border-right: none;
}

.neljemark-coupon-card__copy {
  border-radius: 0;
}

.neljemark-coupon-card__coupon-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d0c0b0;
}

.neljemark-coupon-card__coupon {
  border: none;
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
}

.neljemark-coupon-card__copy {
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.neljemark-coupon-card__coupon-wrap {
  display: flex;
  align-items: stretch;
}

.neljemark-coupon-card__coupon {
  margin: 0;
  padding: 22px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neljemark-coupon-card__copy {
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}