/* OttoCare OFFERS look — shared by the deals, donate and partners sections, their list pages, and the offer viewer.
 * Moved from rewards_review_3.html (deal-*, donate-*, poll-*, pcf-*, empty-state-card, cp-*, coupon-*, info-modal).
 * Each section sets its own colors on its root: --ofr-bg, --ofr-bg-hover (fade-to-black gradients) and --ofr-accent. */
.ofr-section, .ofr-section *, .ofr-page, .ofr-page *, .oc-offer, .oc-offer * { box-sizing: border-box; }

/* ── home sections ── */
.ofr-section {
  --ofr-bg: linear-gradient(145deg, rgba(26, 37, 53, 0.32), rgba(26, 37, 53, 0.2) 60%, rgba(0, 0, 0, 0.08));
  --ofr-bg-hover: var(--ofr-bg);
  --ofr-accent: #4a8fd4;
  width: min(100%, 370px);
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  text-align: left;
}
.ofr-section[hidden] { display: none; }
.ofr-label {
  padding: 10px 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.ofr-stack { display: flex; flex-direction: column; gap: 10px; }

.ofr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--ofr-accent) 30%, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  background: var(--ofr-bg);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.ofr-card:hover { background: var(--ofr-bg-hover); }
.ofr-card.empty { cursor: default; }
.ofr-card.empty:hover { background: var(--ofr-bg); }
.ofr-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}
.ofr-info { flex: 1; min-width: 0; }
.ofr-kicker { margin-bottom: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ofr-accent); }
.ofr-kicker.urgent { color: #e8533a; }
.ofr-name { margin-bottom: 3px; font-family: 'DM Serif Display', serif; font-size: 17px; line-height: 1.2; color: #fff; }
.ofr-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}
.ofr-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}
.ofr-see-all {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font: 500 13px 'DM Sans', sans-serif;
  cursor: pointer;
}
.ofr-see-all:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.ofr-see-all i { color: rgba(255, 255, 255, 0.3); }
.ofr-loading { padding: 20px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.35); }

/* ── full list pages (See all …) ── */
.ofr-page {
  position: absolute;
  inset: 0;
  z-index: 4000;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 110px;
  background: #000;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}
.ofr-page[hidden] { display: none; }
.ofr-page::-webkit-scrollbar { display: none; }
.ofr-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 22px 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 75%, transparent 100%);
}
.ofr-back {
  position: absolute;
  left: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.ofr-title { font-family: 'DM Serif Display', serif; font-size: 18px; }
.ofr-list { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 0; }
.ofr-full {
  padding: 22px 20px;
  border: 1px solid color-mix(in srgb, var(--ofr-accent) 30%, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  background: var(--ofr-bg);
}
.ofr-full .ofr-name { margin-bottom: 10px; font-size: 19px; }
.ofr-body {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.ofr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ofr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: 50px;
  background: var(--ofr-accent);
  color: #fff;
  font: 600 12px 'DM Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.ofr-exp { font-size: 10px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.35); white-space: nowrap; }
.ofr-exp.urgent { color: #e8533a; }

/* ── offer viewer (full-screen coupon / donation) ── */
.oc-offer {
  position: absolute;
  inset: 0;
  z-index: 4600;
  display: flex;
  flex-direction: column;
  background: #000;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
}
.oc-offer[hidden], .oc-offer [hidden] { display: none !important; }
.oc-offer-top { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 44px 20px 14px; }
.oc-offer-back {
  position: absolute;
  left: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.oc-offer-meta { margin-right: 100px; padding-left: 44px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); text-align: center; }
.oc-offer-meta b { color: #c9a84c; font-weight: 600; }
.oc-offer-nav { position: absolute; right: 56px; display: flex; align-items: center; gap: 5px; }
.oc-offer-nav button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
  color: #c9a84c;
  font-size: 9px;
  cursor: pointer;
}
.oc-offer-nav span { min-width: 30px; font-size: 10px; font-weight: 600; text-align: center; color: rgba(255, 255, 255, 0.6); }
.oc-offer-info {
  position: absolute;
  right: 20px;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font: 600 13px 'DM Sans', sans-serif;
  cursor: pointer;
}
.oc-offer-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.oc-offer-stage img { width: 100%; height: 100%; object-fit: contain; }
.oc-offer-card {   /* shown when an offer has no image */
  width: calc(100% - 40px);
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(145deg, #1a2e2a, #0a1614);
}
.oc-offer-card .ofr-name { font-size: 22px; margin-bottom: 12px; }
.oc-offer-card .ofr-body { border: 0; margin: 0; padding: 0; font-size: 14px; }

.oc-offer-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.oc-offer-caret {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
}
.oc-offer-panel-body {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 8, 0, 0.9);
  backdrop-filter: blur(20px);
  transition: max-height 0.35s ease, padding 0.3s;
}
.oc-offer-panel.open .oc-offer-panel-body { max-height: 60vh; padding: 22px 24px 110px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(201, 168, 76, 0.55) transparent; }
.oc-offer-panel-body p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.65); }
.oc-offer-panel-body p.title { font-size: 15px; color: #fff; }
.oc-offer-panel-body b { color: #c9a84c; font-weight: 600; }
.oc-offer-give { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.oc-offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.oc-offer-amount { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
.oc-offer-amount input { width: 64px; border: 0; outline: 0; background: transparent; color: #fff; font: 600 14px 'DM Sans', sans-serif; }
.oc-offer-give-btn { padding: 10px 20px; border: 0; border-radius: 50px; background: #c9a84c; color: #0a0800; font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
.oc-offer-note { margin-top: 12px; font-size: 12px; color: #f3c06d; }

.oc-offer-sheet-scrim { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, 0.5); }
.oc-offer-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 26px 24px 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  background: #1a1a1a;
}
.oc-offer-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.oc-offer-sheet-title { font-family: 'DM Serif Display', serif; font-size: 20px; }
.oc-offer-sheet-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); cursor: pointer; }
.oc-offer-sheet-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
