:root {
  color-scheme: light;
}

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

.discount-modal {
  --discount-modal-green: #63AB45;
  --discount-modal-deep-green: #315924;
  --discount-modal-ink: #182814;
  --discount-modal-muted: #4a5b44;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.discount-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(68, 74, 72, 0.42);
  cursor: default;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.discount-modal__panel {
  position: relative;
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--discount-modal-ink);
  text-align: center;
  box-shadow: 0 26px 70px rgba(24, 40, 20, 0.28), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  animation: discount-modal-enter 180ms ease-out both;
}

.discount-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(49, 89, 36, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--discount-modal-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  justify-content: center;
  padding: 0;
}

.discount-modal__close:hover,
.discount-modal__close:focus-visible {
  border-color: rgba(49, 89, 36, 0.42) !important;
  background: #ffffff;
  outline: none;
}

.discount-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid rgba(99, 171, 69, 0.34);
  border-radius: 999px;
  background: rgba(99, 171, 69, 0.13);
  color: var(--discount-modal-deep-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.discount-modal__panel h2 {
  margin: 0;
  color: var(--discount-modal-ink);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.1;
}

.discount-modal__panel p {
  margin: 12px auto 22px;
  max-width: 330px;
  color: var(--discount-modal-muted);
  font-size: 15px;
  line-height: 1.55;
}

.discount-modal__code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
  gap: 10px;
  margin: 0 auto;
}

.discount-modal__code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin: 0;
  padding: 12px 16px;
  border: 1px dashed rgba(49, 89, 36, 0.52);
  border-radius: 8px;
  background: rgba(99, 171, 69, 0.09);
  color: var(--discount-modal-deep-green);
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(20px, 6vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.discount-modal__copy-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  min-height: 60px;
  border: 1px solid rgba(49, 89, 36, 0.48);
  border-radius: 8px;
  background: #63AB45 !important;
  color: #182814;
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.discount-modal__copy-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discount-modal__copy-icon:hover,
.discount-modal__copy-icon:focus-visible {
  background: #57993d !important;
  box-shadow: 0 10px 22px rgba(99, 171, 69, 0.28);
  outline: none;
  transform: translateY(-1px);
}

@keyframes discount-modal-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .discount-modal {
    padding: 16px;
  }

  .discount-modal__panel {
    padding: 28px 20px 22px;
  }

  .discount-modal__panel h2 {
    font-size: 24px;
  }
}
.discount-modal__copy-icon {
     justify-content: center;
     color: white;
}

.discount-modal__panel {
    z-index: 10 !important;
}