/* ==========================================================================
   Recursos Worship — Popup «Recordarme» del calendario de ofertas (prefijo rwr-)
   Autónomo: no depende de black-friday.css ni de cal-hero.css (usa variables del sitio si existen).
   Lo crea js/bf-remind.js al primer clic en un botón [data-ics] / [data-remind].
   ========================================================================== */
.rwr-modal {
  --rwr-bg: var(--panel, #ffffff);
  --rwr-ink: var(--ink, #0b0b10);
  --rwr-ink2: var(--ink-2, #25252d);
  --rwr-muted: var(--muted, #5f6068);
  --rwr-muted2: var(--muted-2, #8b8c95);
  --rwr-line: var(--line-2, rgba(11, 11, 16, 0.16));
  --rwr-field: var(--bg, #ffffff);
  --rwr-fill: var(--fill, rgba(11, 11, 16, 0.06));
  --rwr-accent: var(--accent, #5b21f5);
  width: min(100% - 32px, 460px); max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: 28px; overflow: auto;
  background: var(--rwr-bg); color: var(--rwr-ink);
  font-family: var(--font, "Geist", system-ui, -apple-system, "Segoe UI", sans-serif);
  text-transform: none; letter-spacing: 0;
}
:root[data-theme="dark"] .rwr-modal {
  --rwr-bg: var(--bg-soft, #15151b); --rwr-ink: var(--ink, #f4f4f7); --rwr-ink2: var(--ink-2, #d9d9e0);
  --rwr-muted: var(--muted, #a6a7b2); --rwr-muted2: var(--muted-2, #7d7e89); --rwr-line: var(--line-2, rgba(255, 255, 255, 0.2));
  --rwr-field: var(--bg, #0b0b10); --rwr-fill: var(--fill, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.rwr-modal::backdrop { background: rgba(8, 6, 16, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rwr-modal[open] { animation: rwr-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rwr-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.rwr-modal *, .rwr-modal *::before, .rwr-modal *::after { box-sizing: border-box; }
.rwr-card { position: relative; padding: clamp(26px, 5vw, 36px); }
.rwr-x {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 99px; background: transparent; color: var(--rwr-muted); cursor: pointer;
}
.rwr-x:hover { background: var(--rwr-fill); color: var(--rwr-ink); }
.rwr-x svg { width: 18px; height: 18px; }
.rwr-view { display: grid; gap: 16px; }
.rwr-view[hidden] { display: none; }
.rwr-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #5b21f5 0%, #9d2cf6 50%, #ff3d9a 100%);
}
.rwr-ico svg { width: 22px; height: 22px; }
.rwr-ico--rw { background: #ffffff; box-shadow: inset 0 0 0 1px var(--rwr-line); }
.rwr-ico--rw img { width: 20px; height: 24px; }
.rwr-logo { width: 15px; height: 18px; flex: none; }
.rwr-h { margin: 0; font-size: clamp(24px, 3vw, 28px); font-weight: 650; line-height: 1.12; letter-spacing: -0.02em; text-transform: none; }
.rwr-p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--rwr-muted); }
.rwr-p b { color: var(--rwr-ink); font-weight: 600; word-break: break-all; }
.rwr-field { display: grid; gap: 7px; }
.rwr-field label { font-size: 14px; font-weight: 560; color: var(--rwr-ink2); }
.rwr-field input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--rwr-line);
  background: var(--rwr-field); color: var(--rwr-ink); font: inherit; font-size: 16px; letter-spacing: 0;
}
.rwr-field input:focus { outline: none; border-color: var(--rwr-accent); box-shadow: 0 0 0 3px rgba(91, 33, 245, 0.18); }
.rwr-field input[aria-invalid="true"] { border-color: #e5484d; }
.rwr-err { margin: 0; font-size: 13.5px; line-height: 1.4; color: #d93036; }
:root[data-theme="dark"] .rwr-err { color: #ff8a8d; }
.rwr-err[hidden] { display: none; }
.rwr-check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.rwr-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.rwr-check-box {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 1.5px solid var(--rwr-line); background: var(--rwr-field); color: transparent;
}
.rwr-check-box svg { width: 14px; height: 14px; }
.rwr-check input:checked + .rwr-check-box { background: var(--rwr-accent); border-color: var(--rwr-accent); color: #fff; }
.rwr-check input:focus-visible + .rwr-check-box { outline: 2px solid var(--rwr-accent); outline-offset: 2px; }
.rwr-check-t { font-size: 14px; line-height: 1.45; color: var(--rwr-muted); }
.rwr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rwr-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 4px;
  border: 0; border-radius: 99px; background: var(--rwr-ink); color: var(--rwr-bg); font: inherit; font-size: 16px; font-weight: 600;
  letter-spacing: 0; cursor: pointer;
}
.rwr-submit:hover { opacity: 0.92; }
.rwr-submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.rwr-link { justify-self: center; border: 0; background: none; padding: 4px; color: var(--rwr-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.rwr-fine { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--rwr-muted2); text-align: center; }
