/**
 * CodeAndDeals Coupon Cards — screenshot-like layout.
 * Theme: positive green background, bright white text.
 */

.cd-platform-page {
  max-width: 900px;
  margin: 0 auto;
}

/* Coupon section: green panel */
.cd-coupons {
  margin: 0 0 2rem;
}

.cd-platform-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: #1a1a1a;
}

.cd-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cd-coupon-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.cd-coupon-card {
  background: #0d8f4c !important;
  color: #ffffff !important;
  border-radius: 14px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  display: flex !important;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-between;
  flex: 1 1 auto;
}

.cd-coupon-card * {
  color: inherit !important;
}

.cd-coupon-logo-outside {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
}

.cd-coupon-logo-outside img {
  max-height: 56px;
  max-width: 96px;
  width: auto;
  height: auto;
  display: block;
}

.cd-coupon-left {
  min-width: 0;
  flex: 1 1 auto;
}

.cd-coupon-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
}

.cd-coupon-toprow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.35rem;
}

.cd-headline-discount {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Tag pills removed per design request */

.cd-coupon-title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 650;
  opacity: 0.98;
}

.cd-coupon-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0 0 0.85rem;
}

.cd-coupon-metrics span {
  white-space: normal;
}

.cd-code-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin: 0 0 0.15rem;
}

.cd-code-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.95;
}

.cd-code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.20);
  border: 1px dashed rgba(255, 255, 255, 0.60);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  letter-spacing: 0.06em;
}

.cd-show-code {
  appearance: none;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.12);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  min-width: 160px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.cd-show-code:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.cd-show-code:disabled {
  opacity: 0.85;
  cursor: wait;
}

.cd-store-link a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.98rem;
}

.cd-store-link a:hover {
  opacity: 0.95;
}

.cd-coupon-footer {
  flex: 0 0 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1rem;
  opacity: 0.95;
}

.cd-coupon-footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .cd-coupon-row {
    flex-direction: column;
  }
  .cd-coupon-logo-outside {
    width: 100%;
    justify-content: flex-start;
  }
  .cd-coupon-right {
    align-items: stretch;
  }
  .cd-show-code {
    width: 100%;
  }
}
