.offers-wrap {
  display:flex;
  flex-direction:column;
  gap:25px;
  justify-content:center;
  align-items:center;
}

.offer-card {
  width:100%;
  max-width:1000px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:20px 25px;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  transition:transform .1s ease, box-shadow .1s ease;
}

.offer-card:hover {
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
}

.offer-left {
  flex:0 0 90px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.offer-left img {
  width:70px;
  height:70px;
  object-fit:contain;
  border-radius:10px;
  background:#fafafa;
  border:1px solid #eee;
}

.offer-mid {
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* --- Auto Badges --- */
.offer-badges {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:2px;
}

.offer-badge {
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.4px;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:5px;
  line-height:1.35;
}

.offer-badge.badge-discount {
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}
.offer-badge.badge-exclusive {
  background:#ede9fe;
  color:#6d28d9;
  border:1px solid #ddd6fe;
}
.offer-badge.badge-new {
  background:#dbeafe;
  color:#1e40af;
  border:1px solid #bfdbfe;
}
.offer-badge.badge-ends {
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}
.offer-badge.badge-free-gift {
  background:#fce7f3;
  color:#be185d;
  border:1px solid #fbcfe8;
}
.offer-badge.badge-free-delivery {
  background:#cffafe;
  color:#0e7490;
  border:1px solid #a5f3fc;
}
.offer-badge.badge-hot {
  background:#ffedd5;
  color:#c2410c;
  border:1px solid #fed7aa;
}

/* --- Highlighted discount text --- */
.offer-hl {
  color:#0073aa;
  font-weight:800;
}

.offer-title {
  margin:0;
  font-size:19px;
  font-weight:700;
  color:#111827;
}

.offer-desc {
  margin:0;
  color:#374151;
  font-size:15px;
}

.offer-meta {
  font-size:13px;
  color:#6b7280;
}

.offer-warning {
  color:#b45309;
  font-weight:600;
}

/* --- Discount Code --- */
.offer-code-label {
  font-size:11px;
  font-weight:800;
  letter-spacing:0.5px;
  text-transform:uppercase;
  color:#0073aa;
  text-align:center;
  margin-bottom:-6px;
}

.offer-code {
  display:inline-block;
  border:2px dotted #EE7311;
  color:#EE7311;
  padding:8px 14px;
  font-weight:800;
  letter-spacing:0.5px;
  cursor:pointer;
  border-radius:8px;
  white-space:nowrap;
  transition:all 0.25s ease;
  font-size:17px;
  text-transform:uppercase;
  text-align:center;
}

.offer-code:hover {
  transform:scale(1.05);
  background:rgba(238,115,17,0.05);
}

.offer-code.copied {
  color:#10b981;
  border-color:#10b981;
  background:rgba(16,185,129,0.1);
  transform:scale(1.15);
  box-shadow:0 0 14px rgba(16,185,129,0.4);
}

/* --- Offer Button --- */
.offer-right {
  flex:0 0 200px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:12px;
}

.offer-btn {
  display:inline-block;
  text-decoration:none;
  background:#0073aa;
  color:#fff;
  padding:12px 20px;
  border-radius:8px;
  font-weight:800;
  text-transform:uppercase;
  transition:transform .06s ease, box-shadow .06s ease;
  font-size:15px;
}

.offer-btn:hover {
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
}

/* --- Expired Offers --- */
.offers-expired h3 {
  text-align:center;
  color:#6b7280;
  margin:16px 0 8px;
}

.offers-expired .offer-card {
  background:#f9fafb;
  opacity:0.7;
}

/* --- Responsive --- */
@media (max-width:768px){
  .offer-card {
    flex-direction:column;
    text-align:center;
    padding:22px 18px;
  }
  .offer-left {
    justify-content:center;
    margin-bottom:10px;
  }
  .offer-right {
    align-items:center;
    width:100%;
  }
  .offer-btn {
    width:95%;
    padding:18px 0;
    font-size:18px;
    text-align:center;
  }
}

/* === Expiry Highlight (Blue Default) === */
.offer-meta.expiry-blue {
  display: inline-block !important;
  width: auto !important;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  margin-top: 4px;
  align-self: flex-start;
}

/* === Expiry Highlight (Red Warning) === */
.offer-meta.expiry-red {
  display: inline-block !important;
  width: auto !important;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #fecaca;
  margin-top: 4px;
  align-self: flex-start;
}
