/* Rainori Club — quiet travel-club details in the existing warm storefront. */
:root {
  --rainori-club-paper: #f4efe5;
  --rainori-club-card: #fbf8f1;
  --rainori-club-ink: #302d26;
  --rainori-club-muted: #756e61;
  --rainori-club-line: #ded5c6;
  --rainori-club-rust: #a6533b;
  --rainori-club-rust-deep: #88432f;
  --rainori-club-green: #547a54;
}

.rainori-club-perks,
.rainori-club-perks *,
.rainori-club-modal,
.rainori-club-modal *,
.rainori-season-banner,
.rainori-season-banner *,
.rainori-club-cart-discount,
.rainori-club-cart-discount * {
  box-sizing: border-box;
}

.rainori-club-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin: 18px 0 11px;
}

.rainori-club-perk {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 13px 22px;
  border: 1px solid #bfa17c;
  border-radius: 12px;
  background: #f8f4ec;
  color: var(--rainori-club-ink);
  text-align: center;
  font: inherit;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

button.rainori-club-perk:hover {
  border-color: #cbbba4;
  background: #f2ecdf;
  transform: translateY(-1px);
}

.rainori-club-perk:focus-visible,
.rainori-season-banner button:focus-visible,
.rainori-club-tab:focus-visible,
.rainori-club-close:focus-visible,
.rainori-club-submit:focus-visible {
  outline: 2px solid var(--rainori-club-rust);
  outline-offset: 3px;
}

.rainori-club-perk-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid #d5c7b1;
  border-radius: 50%;
  color: #806b4e;
  background: #fdfbf6;
}

.rainori-club-perk-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rainori-club-perk-label {
  display: block;
  min-width: 0;
  padding-right: 0;
  color: #474238;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.45;
}

.rainori-club-check {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--rainori-club-green);
  color: #fffdf7;
  opacity: 0;
  visibility: hidden;
  transform: scale(.82);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.rainori-club-check svg {
  display: block;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rainori-club-perk.is-active .rainori-club-check,
.rainori-club-perk:first-child .rainori-club-check {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Both rows remain visible; the measured offset also handles wrapped mobile copy. */
.rainori-season-banner {
  position: sticky;
  top: 0;
  z-index: 110;
  width: 100%;
  background: linear-gradient(100deg, #171612 0%, #171612 52%, #625743 100%);
  color: #f8f4eb;
}

.rainori-season-banner button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 9px 24px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.rainori-season-banner button::after {
  content: none;
}

.rainori-season-banner button:hover { background: #fff8e90a; }
.rainori-season-copy { display: flex; align-items: center; gap: 14px; }
.rainori-season-copy strong { padding-right: 14px; border-right: 1px solid #fff8e970; font-weight: 800; color: #d8c6a7; }
.rainori-season-countdown { display: flex; align-items: flex-start; gap: 5px; flex-shrink: 0; }
.rainori-season-countdown i { padding-top: 5px; font-style: normal; font-weight: 700; color: #fff5df; }
.rainori-season-unit { display: grid; gap: 3px; min-width: 32px; text-align: center; }
.rainori-season-unit b {
  display: grid; place-items: center; min-width: 32px; height: 29px;
  padding: 2px 4px; border: 1px solid #ffe4bc60; border-radius: 4px;
  background: #fff3d929; box-shadow: inset 0 1px 0 #ffffff18;
  color: #fff; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: 0; line-height: 1;
}
.rainori-season-unit small { font-size: 8px; font-weight: 600; letter-spacing: .06em; line-height: 1.1; color: #fff3df; }
body header.shell.nav { top: var(--rainori-season-height, 64px); }
body .rbp-detail .rbp-hero { --rbp-sticky-top: calc(var(--rainori-season-height, 64px) + 98px); }
@media (max-width: 900px) {
  .rainori-season-banner button { gap: 14px; padding: 10px 14px; }
  .rainori-season-copy { gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 430px; }
  .rainori-season-copy strong { padding-right: 8px; }
}

/* Fixed invitation is intentionally outside the purchase-control footprint. */
.rainori-club-tab {
  position: fixed;
  z-index: 99;
  top: 50%;
  left: 0;
  display: flex;
  min-height: 174px;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: #171612;
  color: #f5efe4;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(45, 38, 27, .16);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .17em;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  transition: background-color .18s ease, padding .18s ease;
}

.rainori-club-tab:hover {
  padding-block: 21px;
  background: #51483a;
}

/* Native dialog: full-bleed editorial split with a tactile paper-colored form. */
.rainori-club-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  background: var(--rainori-club-paper);
  color: var(--rainori-club-ink);
  overscroll-behavior: contain;
}

.rainori-club-modal[open] {
  display: grid;
  place-items: stretch;
  animation: rainori-club-enter .28s ease-out both;
}

.rainori-club-modal::backdrop {
  background: rgba(38, 34, 28, .66);
  backdrop-filter: blur(3px);
}

.rainori-club-modal[hidden],
.rainori-club-modal [hidden],
.rainori-club-success[hidden] {
  display: none !important;
}

.rainori-club-layout {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100%;
  grid-template-columns: minmax(370px, .86fr) minmax(0, 1.14fr);
}

.rainori-club-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 690px;
  flex-direction: column;
  justify-content: center;
  justify-self: end;
  padding: clamp(62px, 9vh, 100px) clamp(34px, 7vw, 100px);
}

.rainori-club-copy > img {
  display: block;
  width: min(150px, 40%);
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 clamp(45px, 8vh, 88px);
}

.rainori-club-copy .rainori-club-eyebrow,
.rainori-club-copy .eyebrow {
  margin: 0 0 15px;
  color: #8a704d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.rainori-club-copy h2 {
  max-width: 470px;
  margin: 0;
  color: #302d26;
  font-family: inherit;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .99;
  text-wrap: balance;
}

.rainori-club-copy > p:not(.rainori-club-eyebrow):not(.eyebrow) {
  max-width: 420px;
  margin: 19px 0 0;
  color: #6b6357;
  font-size: 14px;
  line-height: 1.75;
}

.rainori-club-form {
  width: 100%;
  max-width: 450px;
  margin-top: 30px;
}

.rainori-club-form > label,
.rainori-club-form label[for] {
  display: block;
  margin-bottom: 8px;
  color: #50483c;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}

.rainori-club-form input[type="email"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid #d4c8b6;
  border-radius: 3px;
  outline: none;
  background: #fdfbf7;
  color: var(--rainori-club-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rainori-club-form input[type="email"]::placeholder { color: #9a9081; opacity: 1; }

.rainori-club-form input[type="email"]:focus-visible {
  border-color: #a56d4a;
  background: #fffdf9;
  box-shadow: 0 0 0 3px rgba(165, 109, 74, .13);
}

.rainori-club-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 0;
  color: #71695e;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.6;
}

.rainori-club-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 1px 0 0;
  accent-color: var(--rainori-club-rust);
}

.rainori-club-consent a {
  color: var(--rainori-club-rust-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rainori-club-submit {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  margin-top: 19px;
  padding: 12px 20px;
  border: 1px solid var(--rainori-club-rust);
  border-radius: 3px;
  background: var(--rainori-club-rust);
  color: #fffaf2;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.rainori-club-submit:hover:not(:disabled) {
  border-color: var(--rainori-club-rust-deep);
  background: var(--rainori-club-rust-deep);
}

.rainori-club-submit:active:not(:disabled) { transform: translateY(1px); }
.rainori-club-submit:disabled { cursor: wait; opacity: .66; }

.rainori-club-status {
  min-height: 1.5em;
  margin: 11px 0 0;
  color: var(--rainori-club-green);
  font-size: 12px;
  line-height: 1.55;
}

.rainori-club-status.is-error {
  color: #9b4935;
  font-weight: 600;
}

.rainori-club-success {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid #bfd0b8;
  border-radius: 4px;
  background: #edf2e9;
  color: #3d6742;
  font-size: 13px;
  line-height: 1.55;
}

.rainori-club-success svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rainori-club-close {
  position: fixed;
  z-index: 5;
  top: 22px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(64, 55, 43, .2);
  border-radius: 50%;
  background: rgba(251, 248, 241, .82);
  color: #38342c;
  cursor: pointer;
  font: inherit;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  transition: background-color .18s ease, transform .18s ease;
}
.rainori-club-close-left { left: 24px; right: auto; }

.rainori-club-close:hover {
  background: #fffdf8;
  transform: rotate(90deg);
}

.rainori-club-art {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 100%;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr .76fr;
  gap: 13px;
  overflow: hidden;
  padding: clamp(55px, 8vh, 90px) clamp(24px, 5vw, 72px) clamp(28px, 5vh, 55px) 0;
  background: #e6ddce;
}

.rainori-club-art::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 79% 12%, rgba(255, 252, 242, .62), transparent 34%),
    linear-gradient(145deg, #e8dfd0 0%, #d8c9b4 100%);
  content: "";
}

.rainori-club-art img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #d8cbb8;
}

.rainori-club-art img:first-child {
  grid-row: 1 / 3;
  border-radius: 180px 180px 5px 5px;
}

.rainori-club-art img:nth-child(2) {
  align-self: end;
  height: 86%;
  border-radius: 5px 5px 100px 5px;
}

.rainori-club-art img:nth-child(3) {
  height: 100%;
  border-radius: 5px;
}

.rainori-club-art img[src=""] { display: none; }

.rainori-club-cart-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #d6cbb9;
  border-radius: 5px;
  background: #f5f0e7;
  color: #514a3f;
  font-size: 12px;
  line-height: 1.4;
}

.rainori-club-cart-discount strong,
.rainori-club-cart-discount [data-money],
.rainori-club-cart-discount .money {
  flex: 0 0 auto;
  color: #4f754d;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@keyframes rainori-club-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .rainori-club-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rainori-club-copy {
    max-width: none;
    justify-self: stretch;
    padding: 86px clamp(25px, 8vw, 66px) 55px;
  }

  .rainori-club-copy > img { margin-bottom: 43px; }

  .rainori-club-art {
    min-height: 280px;
    max-height: 360px;
    grid-template-columns: .9fr 1.1fr 1fr;
    grid-template-rows: 1fr;
    padding: 22px clamp(25px, 8vw, 66px) 30px;
  }

  .rainori-club-art img:first-child {
    grid-row: 1;
    border-radius: 100px 100px 4px 4px;
  }

  .rainori-club-art img:nth-child(2),
  .rainori-club-art img:nth-child(3) {
    height: 100%;
    border-radius: 4px;
  }
}

@media (max-width: 560px) {
  .rainori-club-perks {
    gap: 7px;
    margin-top: 16px;
  }

  .rainori-club-perk {
    min-height: 68px;
    gap: 8px;
    padding: 10px 9px;
    border-radius: 10px;
  }

  .rainori-club-perk-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .rainori-club-perk-label { padding-right: 9px; font-size: 10px; }
  .rainori-club-check { right: 5px; bottom: 5px; width: 15px; height: 15px; }

  .rainori-season-banner button {
    min-height: 100px;
    flex-direction: column;
    gap: 9px;
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: .015em;
  }
  .rainori-season-copy { gap: 3px 7px; }
  .rainori-season-copy strong { padding: 0; border: 0; }
  .rainori-season-countdown { gap: 5px; }

  .rainori-club-tab {
     top: 50%;
     bottom: auto;
    min-height: 144px;
    padding: 15px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 9px;
     transform: translateY(-50%) rotate(180deg);
  }

  .rainori-club-modal[open] { display: block; }

  .rainori-club-layout {
    min-height: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .rainori-club-copy {
    min-height: 100vh;
    justify-content: center;
    padding: 80px 24px 42px;
  }

  .rainori-club-copy > img {
    width: 122px;
    max-height: 43px;
    margin-bottom: 39px;
  }

  .rainori-club-copy .rainori-club-eyebrow,
  .rainori-club-copy .eyebrow { margin-bottom: 11px; font-size: 9px; }

  .rainori-club-copy h2 {
    max-width: 390px;
    font-size: clamp(36px, 11vw, 52px);
  }

  .rainori-club-copy > p:not(.rainori-club-eyebrow):not(.eyebrow) {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.65;
  }

  .rainori-club-form { margin-top: 24px; }
  .rainori-club-form input[type="email"] { min-height: 52px; }
  .rainori-club-submit { min-height: 53px; }

  .rainori-club-close {
    top: max(12px, env(safe-area-inset-top));
    right: 13px;
    width: 46px;
    height: 46px;
  }
  .rainori-club-close-left { left: 13px; right: auto; }

  .rainori-club-art { display: none; }
}

@media (max-width: 360px) {
  .rainori-club-copy { padding-inline: 19px; }
  .rainori-club-perk { gap: 6px; padding-inline: 7px; }
  .rainori-club-perk-label { font-size: 9px; }
  .rainori-club-perk-icon { width: 24px; height: 24px; flex-basis: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .rainori-club-modal[open],
  .rainori-club-perk,
  .rainori-club-check,
  .rainori-season-banner button::after,
  .rainori-club-tab,
  .rainori-club-form input[type="email"],
  .rainori-club-submit,
  .rainori-club-close {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 560px) {
  .rainori-club-modal {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .rainori-club-layout { min-height: 100dvh; }
  .rainori-club-copy {
    min-height: 100dvh;
    justify-content: flex-start;
    padding-top: max(76px, calc(env(safe-area-inset-top) + 64px));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .rainori-club-copy h2 {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .rainori-club-form,
  .rainori-club-form input,
  .rainori-club-submit { min-width: 0; }
  .rainori-club-consent { font-size: 11px; }
  .rainori-club-close { z-index: 8; }
  .rainori-club-tab { min-height: 122px; }
}

/* Separate controls: closing the teaser must never open the signup dialog. */
.rainori-club-teaser {
  position: fixed;
  z-index: 99;
  top: 50%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(-50%);
  pointer-events: none;
  width: 44px;
  overflow: hidden;
  border-radius: 0 5px 5px 0;
  background: #171612;
}
.rainori-club-teaser[hidden] { display: none !important; }
.rainori-club-teaser > .rainori-club-tab {
  position: static;
  top: auto;
  bottom: auto;
  left: auto;
  transform: rotate(180deg);
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
}
.rainori-club-tab-dismiss {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #171612;
  color: #fff;
  font: 400 26px/1 sans-serif;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.rainori-club-tab-dismiss:hover { background: #51483a; }
.rainori-club-tab-dismiss:focus-visible { outline: 3px solid #d8c6a7; outline-offset: 2px; }
