.coupon-page {
  --coupon-background: #f5f7fa;
  --coupon-surface: #ffffff;
  --coupon-border: #e1e7ef;
  --coupon-divider: #e7ebf0;
  --coupon-text: #15263f;
  --coupon-text-soft: #53647a;
  --coupon-text-muted: #718096;
  --coupon-blue: #2069a8;
  --coupon-blue-dark: #18588f;
  --coupon-blue-soft: #eef6ff;
  --coupon-amber: #d98616;
  --coupon-claim: #e05858;
  --coupon-claim-dark: #c94747;
  min-height: 70vh;
  padding: 40px 0 64px;
  background: var(--coupon-background);
  color: var(--coupon-text);
}

.coupon-container {
  width: min(1366px, calc(100% - 48px));
  margin: 0 auto;
}

.coupon-shell {
  overflow: hidden;
  border: 1px solid var(--coupon-border);
  border-radius: 10px;
  background: var(--coupon-surface);
}

.coupon-hero {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 44px 64px 36px;
}

.coupon-hero__content {
  min-width: 0;
}

.coupon-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--coupon-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.coupon-hero h1 {
  margin: 0;
  color: var(--coupon-text);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
}

.coupon-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--coupon-text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.coupon-hero__gift {
  position: relative;
  width: 240px;
  height: 150px;
  flex: 0 0 auto;
  overflow: hidden;
}

.coupon-hero__gift-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 10px 14px rgba(89, 61, 36, 0.12));
  transform: translate(-50%, -50%);
}

.coupon-message {
  display: none;
  margin: 0 64px 20px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.coupon-message.is-success {
  display: block;
  border: 1px solid #a6e1c2;
  background: #effaf4;
  color: #16794a;
}

.coupon-message.is-error {
  display: block;
  border: 1px solid #f3b6b6;
  background: #fff3f3;
  color: #b42318;
}

.coupon-preview-notice {
  margin: 0 64px 24px;
  padding: 11px 14px;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  background: var(--coupon-blue-soft);
  color: #315b7f;
  font-size: 13px;
  line-height: 1.6;
}

.coupon-section {
  padding: 0 64px;
}

.coupon-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--coupon-divider);
}

.coupon-section__heading h2,
.coupon-rules h2 {
  margin: 0;
  color: var(--coupon-blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}


.coupon-card {
  display: grid;
  grid-template-columns: 140px minmax(300px, 1fr) minmax(150px, auto);
  align-items: center;
  column-gap: 28px;
  min-width: 0;
  padding: 24px 0 30px;
  border-bottom: 0;
}

.coupon-card__amount {
  display: flex;
  align-items: baseline;
  color: var(--coupon-amber);
  white-space: nowrap;
}

.coupon-card__amount strong {
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
}

.coupon-card__currency,
.coupon-card__unit {
  font-size: 17px;
  font-weight: 700;
}

.coupon-card__currency {
  margin-right: 2px;
}

.coupon-card__unit {
  margin-left: 4px;
}

.coupon-card__body {
  min-width: 0;
}

.coupon-card__body h3 {
  margin: 0;
  color: var(--coupon-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.coupon-card__description {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
}

.coupon-card__description p {
  margin: 0;
  color: var(--coupon-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.coupon-card__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  justify-self: end;
}

.coupon-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--coupon-blue);
  border-radius: 5px;
  background: var(--coupon-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.coupon-button:hover {
  border-color: var(--coupon-blue-dark);
  background: var(--coupon-blue-dark);
}

.coupon-button:focus-visible {
  outline: 3px solid rgba(32, 105, 168, 0.25) !important;
  outline-offset: 2px;
}

.coupon-button:disabled {
  border-color: #d3dae3;
  background: #eef1f5;
  color: #758296 !important;
  cursor: not-allowed;
}

.coupon-button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.78;
}

.coupon-button--preview {
  cursor: default;
}

.coupon-button--claim-primary,
.coupon-button--claim-primary:hover {
  border-color: var(--coupon-claim);
  border-radius: 999px;
  background: var(--coupon-claim);
  box-shadow: 0 8px 18px rgba(224, 88, 88, 0.16);
}

.coupon-button--claim-primary:hover {
  border-color: var(--coupon-claim-dark);
  background: var(--coupon-claim-dark);
}

.coupon-button--claim-primary:disabled,
.coupon-button--claim-primary:disabled:hover {
  border-color: #d3dae3;
  background: #eef1f5;
  color: #758296 !important;
  box-shadow: none;
}

.coupon-rules {
  padding: 28px 64px 30px;
}

.coupon-rules h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--coupon-divider);
}

.coupon-rules__list {
  display: grid;
  gap: 7px;
  padding-top: 12px;
}

.coupon-rule-text {
  margin: 0;
  color: #7b8796;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .coupon-container {
    width: min(100% - 32px, 960px);
  }

  .coupon-card {
    grid-template-columns: 130px minmax(0, 1fr) auto;
  }

  .coupon-card__action {
    grid-column: 3;
  }

}

@media (max-width: 767px) {
  .coupon-page {
    padding: 22px 0 44px;
  }

  .coupon-container {
    width: calc(100% - 24px);
  }

  .coupon-shell {
    border-radius: 8px;
  }

  .coupon-hero {
    min-height: 0;
    gap: 18px;
    padding: 26px 22px 24px;
  }

  .coupon-hero h1 {
    font-size: 27px;
  }

  .coupon-hero p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.65;
  }

  .coupon-hero__gift {
    width: 104px;
    height: 66px;
  }

  .coupon-hero__gift-image {
    width: 104px;
    height: 104px;
  }

  .coupon-message {
    margin: 0 22px 18px;
  }

  .coupon-preview-notice {
    margin: 0 22px 18px;
  }

  .coupon-section {
    padding: 0 22px;
  }

  .coupon-card {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
    padding: 22px 0 26px;
  }

  .coupon-card__amount strong {
    font-size: 48px;
  }

  .coupon-card__action {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    margin-top: 0;
    align-items: stretch;
  }

  .coupon-card__action,
  .coupon-card__action .coupon-button {
    width: 100%;
  }

  .coupon-rules {
    padding: 24px 22px 26px;
  }

  .coupon-rules__list {
    gap: 9px;
  }
}

@media (max-width: 420px) {
  .coupon-hero {
    align-items: flex-start;
  }

  .coupon-hero__gift {
    width: 86px;
    height: 54px;
  }

  .coupon-hero__gift-image {
    width: 86px;
    height: 86px;
  }

  .coupon-hero h1 {
    font-size: 25px;
  }

}
