#coupons-container {
  background-color: transparent !important;
  text-align: center;
  padding: 16px;
  margin-top: 5rem;
  margin-bottom: 30rem;
}

#coupons-container .coupons-header {
  width: 50%;
  text-align: center;
  margin: auto;
}

#coupons-container .coupons-header img {
  width: auto !important;
  height: auto !important;
  object-fit: cover !important;
}

.coupon-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  max-width: 900px;
  margin: 20px auto;
  gap: 20px;
}

.coupon-image {
  width: 120px;
  height: 120px;
  background-color: #ff4d4d;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coupon-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.meta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 1.27rem;
  font-weight: 500;
}

.discount {
  font-size: 1.75rem; /* Much larger title */
  font-weight: bold;
  line-height: 1.3;
}

.coupon-action {
  flex-shrink: 0;
}

.get-code-btn {
  padding: 16px 52px;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  transition: background-color 0.3s ease;
}

.couponcode-modal {
  position: fixed;
  inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0; */
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

@media (max-width: 576px) {
  .coupon-row-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0;
    overflow: hidden;
  }

  .coupon-image {
    width: 100%;
    height: auto;
    padding: 10px 0;
    border-radius: 12px 12px 0 0;
    font-size: 1.2rem;
    line-height: 2rem;
    padding: 1rem;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: #ff4d4d;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .coupon-info {
    padding: 16px;
  }

  .coupon-info .meta-row {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .coupon-info .discount {
    text-align: center;
  }

  .coupon-action {
    padding: 0 16px 16px;
  }

  .get-code-btn {
    width: 100%;
    display: block;
    text-align: center;
  }
}
