/* MAIN CONTAINER */
.coupon-box {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr 240px;
  gap: 24px;
  padding: 30px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin: 32px 0;
}

/* BADGE */
.coupon-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  color: #ffffff;
  z-index: 5;
}
.badge-top .coupon-badge { background: #ff9800; }
.badge-popular .coupon-badge { background: #e91e63; }
.badge-valued .coupon-badge { background: #4caf50; }
.badge-exclusive .coupon-badge { background: #3f51b5; }

/* DISCOUNT */
.coupon-left {
  background: #eef5ff;
  border-radius: 7px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top:10px;
}
.discount-inner { text-align: center; }
.discount-value { font-size: 45px; font-weight: bold; line-height: 1; }
.discount-text { font-size: 14px; font-weight: bold; margin-top: 4px; }

/* CONTENT */
.coupon-middle h3 { margin: 0 0 8px; font-size: 22px; }
.coupon-middle p { margin-bottom: 30px; font-size: 18px; }

/* META */
.meta-row { display: flex; gap: 12px; }
.valid-till {
  font-size: 12px;
  font-weight: bold;
  background: #f1f3f5;
  padding: 4px 10px;
  border-radius: 14px;
}
.votes { font-size: 14px; font-weight: bold; }

/* RIGHT */
.coupon-right { display: flex; flex-direction: column; }

/* VERIFIED */
.verified {
  font-size: 11px;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.verified::before {
  content: "✔";
  background: #2e7d32;
  color: #fff;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* LEFT OVERLAY BUTTON */
.coupon-code-wrap {
  position: relative;
  height: 55px;
  width: 100%;   /* ADD THIS */
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}

.coupon-code-text {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
  z-index: 1;
}
.coupon-btn {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  padding: 0 50px;
  background: #6aa84f;
  color: #fff;
  border: none;
  border-radius: 5px 0 0 5px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
}

/* USES TODAY */
.used-today { margin-top: 12px; font-size: 13px; }

/* =====================================================
   MOBILE MODE — DISABLE OVERLAY COMPLETELY (FINAL)
===================================================== */
@media (max-width: 768px) {

  /* Force single-column layout */
  .coupon-box {
    grid-template-columns: 1fr !important;
  }

  /* Reset wrapper behavior */
  .coupon-code-wrap {
    position: relative !important;
    display: block !important;
    height: auto !important;
    background: transparent !important;
    overflow: visible !important;
  }

  /* Remove coupon code layer entirely */
  .coupon-code-text {
    display: none !important;
    visibility: hidden !important;
  }

  /* Convert button to normal block button */
  .coupon-btn {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 24px !important;
    border-radius: 6px !important;
    display: block !important;
  }

  /* Layout safety */
  .coupon-right {
    width: 100% !important;
  }

  .coupon-left {
    width: 100% !important;
    height: auto !important;
    padding: 14px 0 !important;
  }

  .meta-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
}
