.product-card__coupon-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.product-card__coupon-badge {
  align-items: center;
  background: #fff6e5;
  border: 1px solid #ffd18a;
  border-radius: 5px;
  color: #8a4d00;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  max-width: 100%;
  min-height: 20px;
  padding: 3px 6px;
}

.coupon-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
  padding: 14px;
}

.coupon-panel--store {
  margin: 0 18px 18px;
}

.coupon-panel--cart,
.coupon-panel--checkout {
  background: #fffaf2;
  border-color: #ffd7a3;
  margin: 0 0 16px;
}

.coupon-panel__heading {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.coupon-panel__heading span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.coupon-panel__heading strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.coupon-card-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.coupon-card-list--product {
  grid-template-columns: 1fr;
}

.coupon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.coupon-card--best {
  border-color: #ffbf65;
  box-shadow: 0 10px 24px rgba(242, 117, 11, .08);
}

.coupon-card.is-applied {
  border-color: #54a66e;
}

.coupon-card__topline {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.coupon-card__topline span,
.coupon-card__topline small {
  border-radius: 999px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  padding: 4px 7px;
}

.coupon-card__topline span {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.coupon-card__topline small {
  background: #eef9f0;
  color: #2c6b3e;
  flex: 0 0 auto;
}

.coupon-card__code {
  background: #201713;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 40px;
  overflow-wrap: anywhere;
  padding: 0 10px;
  text-align: center;
}

.coupon-card__value {
  color: var(--orange);
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.coupon-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

.coupon-card__meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 8px;
}

.coupon-card__meta div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.coupon-card__meta dt,
.coupon-card__meta dd {
  font-size: 10px;
  line-height: 1.3;
  margin: 0;
}

.coupon-card__meta dt {
  color: var(--muted);
  font-weight: 800;
}

.coupon-card__meta dd {
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.coupon-card__actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coupon-card__actions .button {
  font-size: 10px;
  min-height: 34px;
  padding: 0 8px;
}

.coupon-card__actions .button[disabled] {
  cursor: default;
  opacity: .62;
}

.coupon-card__feedback {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  min-height: 14px;
}

.coupon-card__feedback.is-success {
  color: #2c6b3e;
}

.coupon-card__feedback.is-error {
  color: var(--orange-dark);
}

@media (max-width: 760px) {
  .coupon-panel {
    padding: 12px;
  }

  .coupon-panel--store {
    margin: 0 14px 14px;
  }

  .coupon-card-list {
    grid-template-columns: 1fr;
  }

  .coupon-card__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .product-card__coupon-badges {
    margin-top: 4px;
  }

  .product-card__coupon-badge {
    font-size: 8px;
    min-height: 18px;
    padding-inline: 5px;
  }
}
