/* Daily Diverse — coupon / offer cards */
.dd-coupon-card {
  position: relative;
  margin: 0 0 1.25rem;
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(26, 26, 46, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  max-width: 100%;
}

.dd-coupon-card:hover {
  border-color: #d4c4e8;
  box-shadow: 0 8px 28px rgba(166, 21, 179, 0.12);
}

.dd-coupon-card--exclusive {
  border: 2px solid #1a1a2e;
}

.dd-coupon-ribbon {
  position: absolute;
  top: 14px;
  left: -32px;
  z-index: 2;
  padding: 6px 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f07818, #e85d00);
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(240, 120, 24, 0.35);
}

.dd-coupon-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-width: 48px;
  padding: 7px 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2286ed, #1a6fc7);
  border-radius: 8px;
}

.dd-coupon-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem 1rem;
  row-gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  align-items: start;
}


.dd-coupon-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 10px;
  background: #f8f9fc;
  border: 1px solid #eef0f4;
  border-radius: 12px;
}

.dd-coupon-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dd-coupon-content {
  min-width: 0;
}

.dd-coupon-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  padding-right: 3.5rem;
}

.dd-coupon-type {
  display: inline-block;
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #210051;
  background: #f0eef5;
  border-radius: 6px;
}

.dd-coupon-store {
  font-size: 14px;
  font-weight: 600;
  color: #04acff;
  text-decoration: none;
  min-width: 0;
}

.dd-coupon-store:hover {
  color: #a615b3;
  text-decoration: underline;
}

.dd-coupon-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2d2d3a;
}

.dd-coupon-desc {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.dd-coupon-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.dd-coupon-code-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dd-coupon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #a615b3, #7c1090);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(166, 21, 179, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dd-coupon-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(166, 21, 179, 0.45);
}

.dd-coupon-btn--deal {
  background: linear-gradient(135deg, #c11ccf, #9a14a8);
}

/* Desktop / tablet: footer under content column, inline row (original style) */
.dd-coupon-footer {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1.25rem;
  width: 100%;
  padding: 0.75rem 0 0;
  margin-top: 0;
  border-top: 1px solid #f0f1f4;
  font-size: 13px;
  color: #8b919a;
}

.dd-coupon-foot-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
  padding: 0;
  text-align: left;
  line-height: 1.3;
  white-space: nowrap;
}

.dd-coupon-foot-label {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  word-break: normal;
}

.dd-hide-mobile {
  display: inline;
}

.dd-hide-desktop {
  display: none;
}

.dd-coupon-foot-item .fa {
  flex-shrink: 0;
  font-size: 14px;
  color: #a615b3;
}

.dd-coupon-verified {
  color: #16a34a;
  font-weight: 600;
}

.dd-coupon-verified .fa {
  color: #16a34a;
}

/* Kill legacy broken styles inside new cards */
.dd-coupon-card .note:before,
.dd-coupon-card .note::before {
  display: none !important;
  content: none !important;
}

/* ── Tablet ── */
@media (max-width: 991px) {
  .dd-coupon-grid {
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
    padding: 1.1rem 1rem 0.9rem;
  }

  .dd-coupon-logo {
    min-height: 80px;
    padding: 8px;
  }

  .dd-coupon-logo img {
    max-height: 64px;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .dd-coupon-card {
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  .dd-coupon-card--exclusive .dd-coupon-ribbon {
    top: 10px;
    left: -36px;
    font-size: 10px;
    padding: 5px 36px;
  }

  .dd-coupon-pill {
    top: 10px;
    right: 10px;
    min-width: 44px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .dd-coupon-grid {
    grid-template-columns: 72px 1fr;
    gap: 0.65rem 0.75rem;
    padding: 2.65rem 0.85rem 0.8rem;
  }

  .dd-coupon-logo {
    min-height: 72px;
    padding: 6px;
    border-radius: 10px;
  }

  .dd-coupon-logo img {
    max-height: 52px;
  }

  .dd-coupon-meta {
    padding-right: 0;
    margin-bottom: 0.35rem;
    gap: 0.35rem 0.5rem;
  }

  .dd-coupon-store {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .dd-coupon-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    clear: both;
  }

  .dd-coupon-desc {
    display: block;
    margin: 0 0 0.65rem;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
  }

  .dd-coupon-action {
    width: 100%;
    margin-bottom: 0.65rem;
  }

  .dd-coupon-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Mobile: full-width 3-column footer */
  .dd-coupon-footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.55rem 0 0;
    margin-top: 0.25rem;
  }

  .dd-coupon-foot-item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.3rem 0.15rem;
    text-align: center;
    white-space: normal;
  }

  .dd-coupon-foot-item .fa {
    font-size: 15px;
  }

  .dd-coupon-foot-label {
    display: block;
    font-size: 10px;
    line-height: 1.3;
    word-break: break-word;
  }

  .dd-coupon-foot-expiry .dd-coupon-foot-label {
    font-size: 9px;
  }

  .dd-hide-mobile {
    display: none;
  }

  .dd-hide-desktop {
    display: inline;
  }
}

@media (max-width: 360px) {
  .dd-coupon-foot-label {
    font-size: 9px;
  }
}

/* ── Small phones ── */
@media (max-width: 400px) {
  .dd-coupon-grid {
    grid-template-columns: 64px 1fr;
    padding: 2.5rem 0.75rem 0.7rem;
  }

  .dd-coupon-logo {
    min-height: 64px;
  }

  .dd-coupon-logo img {
    max-height: 46px;
  }

  .dd-coupon-type {
    font-size: 10px;
    padding: 3px 8px;
  }

  .dd-coupon-title {
    font-size: 0.9rem;
  }

  .dd-coupon-pill {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* Store listing column — prevent horizontal scroll */
.entries .dd-coupon-card,
.col-lg-9 .dd-coupon-card {
  width: 100%;
  box-sizing: border-box;
}
