:root.rkf-scroll-lock,
:root.rkf-scroll-lock body { overflow: hidden !important; }

.rkf-modal,
.rkf-modal * { box-sizing: border-box; }

.rkf-modal[hidden],
.rkf-screen[hidden],
.rkf-progress[hidden] { display: none !important; }

.rkf-modal {
  --rkf-ink: #101914;
  --rkf-muted: #566159;
  --rkf-green-950: #003d2d;
  --rkf-green-900: #074d36;
  --rkf-green-800: #155f36;
  --rkf-green-700: #2f7d27;
  --rkf-green-600: #3f942f;
  --rkf-pale: #edf5e9;
  --rkf-warm: #fbfaf7;
  --rkf-line: #dfe4de;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--rkf-ink);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rkf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 12, .76);
  backdrop-filter: blur(3px);
}

.rkf-dialog {
  position: relative;
  display: grid;
  width: min(100%, 960px);
  height: min(720px, calc(100vh - 48px));
  max-height: 100%;
  grid-template-columns: minmax(310px, 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 22, 14, .32);
  outline: none;
  animation: rkf-enter .24s ease-out both;
}

.rkf-dialog__close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #354139;
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.rkf-dialog__close:hover { background: #edf5e9; }

.rkf-modal :where(button, a, input):focus-visible {
  outline: 3px solid #72b95f;
  outline-offset: 3px;
}

.rkf-dialog__visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: var(--rkf-green-950);
}

.rkf-dialog__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 45, 29, .03) 25%, rgba(0, 50, 30, .92) 100%);
  content: "";
}

.rkf-dialog__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rkf-dialog__visual > div {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 42px;
  left: 36px;
  display: flex;
  flex-direction: column;
}

.rkf-dialog__visual strong {
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 790;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.rkf-dialog__visual span { margin-top: 12px; color: rgba(255, 255, 255, .82); }

.rkf-dialog__panel {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 44px 28px;
  scrollbar-gutter: stable;
}

.rkf-heading { padding-right: 28px; }
.rkf-eyebrow {
  margin: 0 0 8px;
  color: var(--rkf-green-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rkf-heading h2,
.rkf-result h3,
.rkf-signup h3,
.rkf-waiting h3 {
  margin: 0;
  color: var(--rkf-green-950);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.rkf-heading > p:last-child { margin: 10px 0 0; color: var(--rkf-muted); }

.rkf-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.rkf-progress li {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  color: #818984;
  font-size: 11px;
  text-align: center;
}

.rkf-progress li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 16px;
  left: calc(50% + 21px);
  width: calc(100% - 42px);
  height: 1px;
  background: #cfd5d0;
  content: "";
}

.rkf-progress li.is-complete:not(:last-child)::after { background: var(--rkf-green-700); }

.rkf-progress li span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid #cbd1cc;
  border-radius: 50%;
  color: #6f7772;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

.rkf-progress li small { margin-top: 7px; font: inherit; white-space: nowrap; }
.rkf-progress li.is-current { color: var(--rkf-green-700); font-weight: 700; }
.rkf-progress li.is-current span,
.rkf-progress li.is-complete span { border-color: var(--rkf-green-700); color: #fff; background: var(--rkf-green-700); }

.rkf-question fieldset { margin: 0; padding: 0; border: 0; }
.rkf-question legend {
  width: 100%;
  margin: 0 0 18px;
  color: var(--rkf-green-950);
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.28;
}

.rkf-choice {
  position: relative;
  display: grid;
  min-height: 76px;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
  border: 1px solid #d8ddd9;
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.rkf-choice:hover { border-color: #91b78a; background: #fcfefb; }
.rkf-choice:has(input:checked) { border-color: var(--rkf-green-700); background: #f7fbf5; box-shadow: 0 0 0 1px var(--rkf-green-700); }
.rkf-choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rkf-choice input:focus-visible ~ .rkf-choice__mark { outline: 3px solid #72b95f; outline-offset: 4px; }

.rkf-choice__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--rkf-green-800);
  background: var(--rkf-pale);
}

.rkf-choice__icon svg { width: 26px; height: 26px; }
.rkf-choice__copy { display: flex; min-width: 0; flex-direction: column; }
.rkf-choice__copy strong { color: #123425; font-size: 16px; line-height: 1.25; }
.rkf-choice__copy small { margin-top: 3px; color: var(--rkf-muted); font-size: 13px; line-height: 1.35; }
.rkf-choice__mark { width: 23px; height: 23px; border: 2px solid #aeb6b0; border-radius: 50%; }
.rkf-choice input:checked ~ .rkf-choice__mark { border: 7px solid var(--rkf-green-700); }

.rkf-hint,
.rkf-duration,
.rkf-small { margin: 13px 0 0; color: var(--rkf-muted); font-size: 12px; }
.rkf-duration { display: flex; align-items: center; justify-content: center; gap: 7px; }
.rkf-duration svg { color: var(--rkf-green-700); }
.rkf-error { margin: 12px 0 0; color: #a52d22; font-size: 13px; font-weight: 650; }

.rkf-actions { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.rkf-actions .rkf-button:only-child { grid-column: 1 / -1; }

.rkf-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.rkf-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 52, 34, .13); }
.rkf-button:disabled { cursor: wait; opacity: .65; transform: none; }
.rkf-button--primary { color: #fff !important; background: linear-gradient(135deg, #247729, #3e9636); }
.rkf-button--dark { color: #fff !important; background: var(--rkf-green-950); }
.rkf-button--secondary { border-color: var(--rkf-green-700); color: var(--rkf-green-800); background: #fff; }
.rkf-link-button,
.rkf-back { border: 0; padding: 0; color: var(--rkf-green-700); background: transparent; cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; }
.rkf-back { margin-bottom: 20px; text-decoration: none; }

.rkf-result__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--rkf-green-700);
  background: var(--rkf-pale);
  font-size: 13px;
  font-weight: 750;
}

.rkf-result__summary { margin: 10px 0 0; color: var(--rkf-muted); font-size: 16px; }
.rkf-result__image { display: block; width: 100%; height: 220px; margin-top: 18px; border-radius: 13px; object-fit: cover; }
.rkf-result__price { margin: 9px 0 0; color: var(--rkf-green-800); font-weight: 700; }
.rkf-result h4,
.rkf-result__newsletter h4 { margin: 22px 0 0; color: var(--rkf-green-950); font-size: 18px; }
.rkf-result ul { margin: 12px 0 0; padding: 0; list-style: none; }
.rkf-result li { margin: 7px 0; color: #37423b; }
.rkf-result li::first-letter { color: var(--rkf-green-700); }
.rkf-result__logic { margin: 14px 0; color: var(--rkf-muted); font-size: 13px; text-align: center; }
.rkf-result > .rkf-button { width: 100%; }
.rkf-result > .rkf-link-button { display: block; margin: 14px auto 0; }

.rkf-result__notice {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  border: 1px solid var(--rkf-line);
  border-radius: 12px;
  padding: 14px;
  color: var(--rkf-muted);
  background: var(--rkf-warm);
}

.rkf-result__notice > svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; color: var(--rkf-green-700); background: var(--rkf-pale); }
.rkf-result__notice p { margin: 0; font-size: 13px; }

.rkf-result__newsletter {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  margin-top: 20px;
  border: 1px solid #cfe0c6;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #f2f8ee, #fbfdf9);
}

.rkf-result__newsletter > svg { width: 50px; height: 50px; padding: 10px; border-radius: 50%; color: var(--rkf-green-700); background: #fff; }
.rkf-result__newsletter h4 { margin: 0; }
.rkf-result__newsletter p { margin: 5px 0 0; color: var(--rkf-muted); font-size: 13px; }
.rkf-result__newsletter .rkf-button { grid-column: 1 / -1; width: 100%; margin-top: 4px; }

.rkf-signup > p:not(.rkf-result__badge),
.rkf-waiting > p:not(.rkf-result__badge) { color: var(--rkf-muted); }
.rkf-signup form { margin-top: 22px; }
.rkf-field { display: flex; flex-direction: column; gap: 7px; color: #173426; font-size: 14px; font-weight: 700; }
.rkf-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #cbd3cd;
  border-radius: 9px;
  padding: 0 14px;
  color: var(--rkf-ink);
  background: #fff;
  font: inherit;
}

.rkf-consent { display: grid; grid-template-columns: 21px 1fr; align-items: start; gap: 10px; margin-top: 17px; color: var(--rkf-muted); font-size: 12px; line-height: 1.55; }
.rkf-consent input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--rkf-green-700); }
.rkf-consent a { color: var(--rkf-green-800); text-decoration: underline; }
.rkf-signup form > .rkf-button { width: 100%; margin-top: 20px; }
.rkf-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.rkf-waiting { text-align: center; }
.rkf-waiting__icon,
.rkf-status__icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rkf-green-700);
  font-size: 34px;
  font-weight: 800;
}
.rkf-waiting .rkf-result__badge { margin-inline: auto; }
.rkf-waiting__email { font-weight: 750; color: var(--rkf-green-800) !important; }
.rkf-waiting .rkf-button { width: 100%; margin-top: 22px; }
.rkf-escape { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 0; color: #767e78; font-size: 11px; }
.rkf-escape svg { width: 18px; height: 18px; color: var(--rkf-green-700); }
.rkf-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Confirmation, unsubscribe and coupon-terms pages. */
.rkf-status,
.rkf-terms {
  width: min(calc(100% - 32px), 780px);
  margin: 54px auto;
  border: 1px solid #dfe4de;
  border-radius: 18px;
  padding: clamp(24px, 5vw, 48px);
  color: #101914;
  background: #fff;
  box-shadow: 0 14px 42px rgba(10, 47, 27, .08);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}

.rkf-status { text-align: center; }
.rkf-status h1,
.rkf-terms h1 { margin: 0; color: #003d2d; font-size: clamp(31px, 5vw, 45px); letter-spacing: -.035em; line-height: 1.12; }
.rkf-status > p { color: #566159; }
.rkf-status__icon--muted { color: #155f36; background: #edf5e9; }
.rkf-status__product { display: grid; grid-template-columns: 44% 1fr; align-items: center; gap: 22px; margin: 28px 0; border: 1px solid #dfe4de; border-radius: 14px; padding: 13px; text-align: left; }
.rkf-status__product img { width: 100%; height: 190px; border-radius: 10px; object-fit: cover; }
.rkf-status__product h2 { margin: 0; color: #003d2d; }
.rkf-status__product p { color: #566159; }
.rkf-status__product a,
.rkf-status__coupon a { color: #155f36; font-weight: 700; }
.rkf-status__coupon { display: flex; flex-direction: column; margin: 24px 0; border: 1px solid #bfd7b5; border-radius: 14px; padding: 22px; background: #edf5e9; }
.rkf-status__coupon span { color: #155f36; font-weight: 700; }
.rkf-status__coupon strong { margin: 5px 0; color: #003d2d; font-size: 31px; letter-spacing: 1px; }
.rkf-status__coupon small { color: #566159; }
.rkf-status__coupon a { margin-top: 8px; }
.rkf-status__notice { border-radius: 9px; padding: 13px; color: #6b5200 !important; background: #fff7d6; }
.rkf-status > .rkf-button { margin-top: 18px; }
.rkf-terms h1 { margin-bottom: 18px; }
.rkf-terms li { margin: 8px 0; }

@keyframes rkf-enter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .rkf-modal { display: block; padding: 0; background: #f5f5f2; }
  .rkf-modal__backdrop { display: none; }
  .rkf-dialog {
    display: block;
    width: 100%;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .rkf-dialog__visual { display: none; }
  .rkf-dialog__panel { min-height: 100%; overflow: visible; padding: 28px 20px 34px; }
  .rkf-dialog__close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; background: #fff; box-shadow: 0 3px 12px rgba(0, 30, 20, .12); }
  .rkf-heading { padding-right: 42px; text-align: center; }
  .rkf-heading h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .rkf-heading > p:last-child { font-size: 15px; }
  .rkf-progress { margin: 28px -4px 34px; }
  .rkf-progress li small { font-size: 11px; }
  .rkf-question legend { font-size: clamp(24px, 6.8vw, 30px); }
  .rkf-choice { min-height: 88px; grid-template-columns: 56px minmax(0, 1fr) 27px; gap: 13px; padding: 13px; }
  .rkf-choice__icon { width: 56px; height: 56px; }
  .rkf-choice__icon svg { width: 29px; height: 29px; }
  .rkf-choice__copy strong { font-size: 18px; }
  .rkf-choice__copy small { font-size: 14px; }
  .rkf-choice__mark { width: 27px; height: 27px; }
  .rkf-choice input:checked ~ .rkf-choice__mark { border-width: 8px; }
  .rkf-button { min-height: 54px; font-size: 17px; }
  .rkf-actions { margin-top: 24px; }
  .rkf-duration { margin-top: 18px; font-size: 14px; }
  .rkf-result__image { height: clamp(205px, 56vw, 320px); }
  .rkf-result h3,
  .rkf-signup h3,
  .rkf-waiting h3 { font-size: 34px; }
  .rkf-escape { display: none; }
  .rkf-status,
  .rkf-terms { margin-block: 28px; }
  .rkf-status__product { grid-template-columns: 1fr; }
  .rkf-status__product img { height: 230px; }
}

@media (max-width: 390px) {
  .rkf-dialog__panel { padding-inline: 15px; }
  .rkf-progress li small { font-size: 10px; }
  .rkf-progress li:not(:last-child)::after { left: calc(50% + 18px); width: calc(100% - 36px); }
  .rkf-choice { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .rkf-choice__icon { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .rkf-dialog { animation: none; }
  .rkf-modal *, .rkf-modal *::before, .rkf-modal *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

