/* — Loyalty Page Content Styles — */
/* All colors via ef.colors.css tokens */
/* All child selectors scoped under .loyalty-page (0-2-0) to beat .single-content rules (0-1-1) */

/* Reset */
.loyalty-page > p:empty { display: none; }
.loyalty-page b,
.loyalty-page strong { font-weight: 500; }
.loyalty-page ul,
.loyalty-page ol { box-sizing: border-box; }
.loyalty-page a { text-decoration: none; }

/* Container */
.loyalty-page {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--EF-Color-Text);
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================
   HERO
   ========================================== */
.loyalty-page .loyalty-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loyalty-page .loyalty-hero__banner {
  width: 100%;
  height: 200px;
  border-radius: var(--everfox-radius-lg, 12px);
  background: linear-gradient(135deg, var(--EF-Color-Primary) 0%, #7B5BAD 50%, var(--EF-Color-Primary-Soft) 100%);
  margin-bottom: 40px;
}
.loyalty-page h1.loyalty-hero__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  margin: 0 0 8px;
  color: var(--EF-Color-Text);
}
.loyalty-page p.loyalty-hero__subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: var(--EF-Color-Text-2);
  padding: 0 0 8px;
  margin: 0;
}

/* ==========================================
   BENEFITS GRID
   ========================================== */
.loyalty-page .loyalty-benefits {
  margin-bottom: 40px;
}
.loyalty-page .loyalty-benefits__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.loyalty-page .loyalty-benefits__card {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  align-items: center;
  padding: 16px 30px;
  background-color: var(--EF-Color-Surface-Violet);
  border-radius: var(--everfox-radius, 3px);
}
.loyalty-page .loyalty-benefits__icon {
  width: 96px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loyalty-page .loyalty-benefits__icon svg,
.loyalty-page .loyalty-benefits__icon img { width: 64px; height: 64px; }
.loyalty-page h3.loyalty-benefits__heading {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--EF-Color-Text);
  margin: 0 0 4px;
  text-align: center;
}
.loyalty-page p.loyalty-benefits__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: var(--EF-Color-Text-2);
  margin: 0;
}

/* ==========================================
   HOW IT WORKS — TIMELINE
   ========================================== */
.loyalty-page .loyalty-how {
  background: transparent;
  margin-bottom: 40px;
}
/* Hide stray <p> injected by WP inside timeline */
.loyalty-page .loyalty-timeline > p {
  display: none;
}
.loyalty-page h2.loyalty-how__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  margin: 0 0 40px;
  color: var(--EF-Color-Text);
}

/* --- Mobile: vertical timeline --- */
.loyalty-page .loyalty-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 48px;
  gap: 16px;
}
/* Vertical line between dots */
.loyalty-page .loyalty-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--EF-Color-Primary), var(--EF-Color-Primary-Soft));
  z-index: 0;
  clip-path: inset(40px 0 55px 0);
}
.loyalty-page .loyalty-timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--EF-Color-Surface-Violet);
  border-radius: var(--everfox-radius, 3px);
}
.loyalty-page .loyalty-timeline__dot {
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid transparent;
  background:
    linear-gradient(135deg, #3B1F6E 0%, #55368A 25%, #6B45A0 50%, #55368A 75%, #3B1F6E 100%) padding-box,
    linear-gradient(160deg, #8B6DBF 0%, #2A1452 40%, #6B45A0 60%, #1E0E3D 100%) border-box;
  color: var(--EF-Color-Btn-Primary-Text);
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
  box-shadow:
    inset 0 1px 1px 0 rgba(255,255,255,0.2),
    0 0 0 4px var(--EF-Color-Surface),
    0 0 0 6px color-mix(in srgb, var(--EF-Color-Primary) 20%, transparent);
}
.loyalty-page .loyalty-timeline__content strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--EF-Color-Text);
  margin-bottom: 4px;
}
.loyalty-page .loyalty-timeline__content p {
  font-size: 12px;
  color: var(--EF-Color-Text-2);
  line-height: 1.5;
  margin: 0;
}

/* --- Small mobile: ≤479px --- */
@media (max-width: 479px) {
  .loyalty-page {
    margin: 0 8px auto;
  }
  .loyalty-page .loyalty-timeline__content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* --- Desktop: horizontal timeline --- */
@media (min-width: 768px) {
  .loyalty-page .loyalty-hero__banner { height: 280px; }

  .loyalty-page .loyalty-benefits__grid { flex-flow: row wrap; }
  .loyalty-page .loyalty-benefits__card { width: calc(33.333% - 12px); min-width: calc(33.333% - 12px); }
  .loyalty-page .loyalty-benefits__icon { width: 120px; margin-bottom: 16px; }

  .loyalty-page .loyalty-timeline {
    flex-direction: row;
    padding: 24px 0 0;
    gap: 12px;
  }
  .loyalty-page .loyalty-timeline::before {
    top: 12.5px;
    bottom: auto;
    left: 12.5%;
    right: 12.5%;
    width: auto;
    height: 2px;
    clip-path: none;
    background: linear-gradient(to right, var(--EF-Color-Primary), var(--EF-Color-Primary-Soft));
  }
  .loyalty-page .loyalty-timeline__item {
    flex: 1;
    align-items: center;
    text-align: center;
    padding: 30px 6px 20px;
    border-radius: var(--everfox-radius, 3px);
    background: var(--EF-Color-Surface-Violet);
  }
  .loyalty-page .loyalty-timeline__dot {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-width: 1px;
    font-size: 18px;
    box-shadow:
      inset 0 1px 2px 0 rgba(255,255,255,0.2),
      0 0 0 5px var(--EF-Color-Surface),
      0 0 0 7px color-mix(in srgb, var(--EF-Color-Primary) 15%, transparent);
  }
  .loyalty-page .loyalty-timeline__content { max-width: 100%; position: relative; z-index: 1; }
  .loyalty-page .loyalty-timeline__content strong { font-size: 15px; margin-bottom: 10px; }
  .loyalty-page .loyalty-timeline__content p { font-size: 13px; }
}

@media (min-width: 1024px) {
  .loyalty-page .loyalty-hero__banner { height: 360px; }
  .loyalty-page h1.loyalty-hero__title { font-size: 24px; font-weight: 500; line-height: 36px; }
  .loyalty-page p.loyalty-hero__subtitle { font-size: 16px; line-height: 26px; }

  .loyalty-page .loyalty-benefits__grid { gap: 0 20px; }
  .loyalty-page .loyalty-benefits__card { width: calc(33.333% - 16px); min-width: calc(33.333% - 16px); padding: 24px 30px; }
}

/* ==========================================
   FAQ
   ========================================== */
.loyalty-page .loyalty-faq {
  background-color: var(--EF-Color-Surface-Violet);
  padding: 20px;
}
.loyalty-page h2.loyalty-faq__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: var(--EF-Color-Text);
  margin: 0 0 15px;
}
.loyalty-page .loyalty-faq__item {
  border: 1px solid var(--EF-Color-Border-Light);
  border-radius: var(--everfox-radius, 3px);
  background: var(--EF-Color-Surface);
  margin-bottom: 8px;
}
.loyalty-page .loyalty-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--EF-Color-Text);
  list-style: none;
}
.loyalty-page .loyalty-faq__question::-webkit-details-marker { display: none; }
.loyalty-page .loyalty-faq__question::after {
  content: '+';
  display: flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 400;
  color: var(--EF-Color-Primary-Soft);
  margin-left: 10px;
  transition: transform 0.3s;
}
.loyalty-page .loyalty-faq__item[open] .loyalty-faq__question::after { transform: rotate(45deg); }
.loyalty-page .loyalty-faq__answer {
  padding: 0 24px 16px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--EF-Color-Text-2);
}
.loyalty-page .loyalty-faq__answer p { margin: 0 0 16px; line-height: 30px; }
.loyalty-page .loyalty-faq__answer ul,
.loyalty-page .loyalty-faq__answer ol { padding-left: 20px; margin: 0 0 16px; }
.loyalty-page .loyalty-faq__answer li { margin-bottom: 8px; line-height: 22px; }
.loyalty-page .loyalty-faq__answer a { color: var(--EF-Color-Link); }
