/* =========================================================
   WHO IT'S FOR (.gmchoice47-section, grid = .wf-panel > .wf-grid > .wf-cell)
   A glass panel holding a ruled card grid: 4 across on desktop with the last 2 sharing the
   full width, 2 across below 992px. Each cell: the image over a soft accent glow, a ribbon carrying the
   title across the image's foot, and one line of copy. Ribbon accents cycle green, orange,
   violet, blue, pink.
   The rules are each cell's own right/bottom border; the per-breakpoint blocks drop the
   borders on the outer edges.
========================================================= */

/* ---------- heading: eyebrow pill, big title with "For" on a glowing plate, star rule ---------- */
.wf-head {
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
}
/* soft light behind the title */
.wf-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 50%;
  width: min(760px, 100%);
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(157, 109, 255, .32), rgba(255, 95, 162, .08) 60%, transparent);
  filter: blur(20px);
  pointer-events: none;
}

.wf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(182, 143, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 30px -12px rgba(125, 75, 240, .8);
  color: #d9c8ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.wf-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fe3a0;
  box-shadow: 0 0 0 3px rgba(79, 227, 160, .2), 0 0 12px #4fe3a0;
}

body.cyber-monday.cyber-monday .wf-title {
  margin: 22px 0 0 !important;
  padding: 0;
  background: linear-gradient(180deg, #fff 30%, #d6c4ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-family: var(--display, "Archivo", "Arial Black", Arial, sans-serif) !important;
  font-stretch: 112%;
  font-size: clamp(40px, 5.4vw, 74px) !important;
  font-weight: 900 !important;
  letter-spacing: -.02em;
  line-height: 1.1 !important;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none !important;
}
/* "For" on a tilted, glowing plate */
body.cyber-monday.cyber-monday .wf-title > span {
  position: relative;
  display: inline-block;
  margin-left: .12em;
  padding: .04em .34em .06em;
  border-radius: .22em;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 48%),
    linear-gradient(120deg, #b68fff, #7d4bf0 42%, #ff5fa2) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: rotate(-3deg);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .28),
    0 0 0 6px rgba(157, 109, 255, .12),
    0 18px 40px -12px rgba(255, 95, 162, .65),
    0 0 60px -10px rgba(125, 75, 240, .9);
  text-shadow: 0 2px 10px rgba(40, 0, 90, .35) !important;
}
/* sparkle on the plate's corner */
body.cyber-monday.cyber-monday .wf-title > span i {
  position: absolute;
  top: -.26em;
  right: -.22em;
  width: .46em;
  height: .46em;
  background: linear-gradient(140deg, #fff, #ffd6ec);
  clip-path: var(--star);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9));
  animation: wf-twinkle 2.8s ease-in-out infinite;
}
@keyframes wf-twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.72) rotate(20deg); opacity: .75; }
}

/* rule: two fading lines with a glowing star between them */
.wf-rule {
  position: relative;
  width: min(300px, 70%);
  height: 18px;
  margin-top: 22px;
}
.wf-rule::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #9d6dff 30%, transparent 44%, transparent 56%, #ff5fa2 70%, transparent);
}
.wf-rule i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  background: linear-gradient(140deg, #fff, #c9adff);
  clip-path: var(--star);
  filter: drop-shadow(0 0 8px rgba(182, 143, 255, 1));
}

@media (prefers-reduced-motion: reduce) {
  body.cyber-monday.cyber-monday .wf-title > span i { animation: none; }
}
@media (max-width: 575px) {
  .wf-head { margin-bottom: 30px; }
  .wf-eyebrow { padding: 7px 14px 7px 11px; font-size: 11px; letter-spacing: .12em; }
  body.cyber-monday.cyber-monday .wf-title { margin-top: 16px !important; font-size: 38px !important; }
  .wf-rule { margin-top: 16px; }
}


/* ---------- accents ---------- */
.wf-cell { --a1: #3fd68a; --a2: #0f8a4f; --ac-rgb: 63, 214, 138; }
.wf-cell:nth-child(5n + 2) { --a1: #ff9a4a; --a2: #d24f0c; --ac-rgb: 255, 154, 74; }
.wf-cell:nth-child(5n + 3) { --a1: #a97fff; --a2: #5a1fd0; --ac-rgb: 169, 127, 255; }
.wf-cell:nth-child(5n + 4) { --a1: #4aa8ff; --a2: #1556d1; --ac-rgb: 74, 168, 255; }
.wf-cell:nth-child(5n + 5) { --a1: #ff5fa2; --a2: #c0186a; --ac-rgb: 255, 95, 162; }


/* ---------- panel + grid ---------- */
.wf-panel {
  position: relative;
  max-width: 1220px;
  margin: 10px auto 34px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  box-shadow:
    inset 0 0 0 1px rgba(182, 143, 255, .26),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 50px 90px -40px rgba(0, 0, 0, .9),
    0 0 80px -30px rgba(125, 75, 240, .55);
}
.wf-grid {
  --rule: 1px solid rgba(182, 143, 255, .18);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}


/* ---------- a cell ---------- */
.wf-cell {
  position: relative;
  display: flex;
  flex: 0 0 25%;
  flex-direction: column;
  align-items: center;
  max-width: 25%;
  padding: 30px 18px 28px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: radial-gradient(70% 46% at 50% 34%, rgba(var(--ac-rgb), .10), transparent 72%);
  text-align: center;
}
/* 4 across: no rule on the right edge, none under the last line; the last pair shares the full width */
@media (min-width: 992px) {
  .wf-cell:nth-child(4n) { border-right: 0; }
  .wf-cell:nth-child(n + 9) { flex-basis: 50%; max-width: 50%; border-bottom: 0; }
  .wf-cell:nth-child(10) { border-right: 0; }

  /* the wide pair lies on its side: image left, ribbon + copy right */
  .wf-cell:nth-child(n + 9) {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 34px;
    align-items: center;
    padding: 30px 36px;
    background: radial-gradient(36% 70% at 22% 50%, rgba(var(--ac-rgb), .12), transparent 72%);
    text-align: left;
  }
  .wf-cell:nth-child(n + 9) .wf-art { grid-column: 1; grid-row: 1 / -1; }
  body.cyber-monday.cyber-monday .wf-cell:nth-child(n + 9) .wf-ribbon {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    max-width: 290px;
    margin: 0 0 0 -6px !important;
    transform: rotate(-2deg);
  }
  body.cyber-monday.cyber-monday .wf-cell:nth-child(n + 9) p {
    grid-column: 2;
    grid-row: 3;
    max-width: 290px;
    margin: 18px 0 0;
    font-size: 17px;
    text-wrap: pretty;
  }
}
/* wide screens: bigger image tucked close to the copy, ribbon title on one line */
@media (min-width: 1200px) {
  .wf-cell:nth-child(n + 9) { grid-template-columns: 225px minmax(0, 1fr); column-gap: 16px; padding: 30px 28px; }
  .wf-cell:nth-child(n + 9) .wf-art { max-width: 225px; }
  /* the ribbon is as wide as its one-line title, not the column */
  body.cyber-monday.cyber-monday .wf-cell:nth-child(n + 9) .wf-ribbon { width: max-content; max-width: none; margin-left: -8px !important; }
  body.cyber-monday.cyber-monday .wf-cell:nth-child(n + 9) .wf-ribbon > span { padding: 10px 26px 11px; font-size: 13.5px !important; white-space: nowrap; }
  body.cyber-monday.cyber-monday .wf-cell:nth-child(n + 9) p { margin-top: 16px; max-width: 250px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .wf-cell:nth-child(n + 9) { grid-template-columns: 200px minmax(0, 1fr); }
  .wf-cell:nth-child(n + 9) .wf-art { max-width: 200px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .wf-cell:nth-child(n + 9) { column-gap: 22px; padding: 26px 22px; }
  body.cyber-monday.cyber-monday .wf-cell:nth-child(n + 9) p { font-size: 15px; }
}

.wf-art {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1166 / 970;   /* the perfect-choice images' shape, so every ribbon sits at the same height */
}
/* glow behind the image */
.wf-art::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 6% 8% 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--ac-rgb), .5), rgba(var(--ac-rgb), .14) 62%, transparent);
  filter: blur(18px);
  pointer-events: none;
}
body.cyber-monday .wf-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6));
}
/* the product box is wider than the photos: pin it to the same foot line */
body.cyber-monday .wf-img-box { position: absolute; left: -7%; bottom: 6%; width: 114%; max-width: none; }

/* ribbon title across the foot of the image */
body.cyber-monday.cyber-monday .wf-ribbon {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 256px;
  margin: -26px 0 0 !important;
  padding: 0;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(var(--ac-rgb), .35));
  transform: rotate(-3deg);
  font-size: 0;
  line-height: 0;
}
body.cyber-monday.cyber-monday .wf-ribbon > span {
  display: block;
  padding: 10px 24px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 55%),
    linear-gradient(90deg, var(--a2), var(--a1) 50%, var(--a2));
  clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: var(--display, "Archivo", "Arial Black", Arial, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  text-wrap: balance;
}

body.cyber-monday.cyber-monday .wf-cell p {
  max-width: 250px;
  margin: 20px 0 0;
  color: #e4daf6 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}


/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
  .wf-panel { padding: 16px; }
  .wf-cell { padding: 26px 12px 24px; }
  body.cyber-monday.cyber-monday .wf-ribbon > span { padding: 9px 20px 10px; font-size: 13px !important; }
  body.cyber-monday.cyber-monday .wf-cell p { font-size: 15px; }
}
@media (max-width: 991px) {
  .wf-cell { flex-basis: 50%; max-width: 50%; padding: 30px 18px 28px; }
  .wf-cell:nth-child(2n) { border-right: 0; }
  .wf-cell:nth-child(n + 9) { border-bottom: 0; }
  .wf-art { max-width: 260px; }
  body.cyber-monday.cyber-monday .wf-ribbon { max-width: 270px; }
  body.cyber-monday.cyber-monday .wf-ribbon > span { font-size: 15px !important; }
  body.cyber-monday.cyber-monday .wf-cell p { max-width: 280px; font-size: 16px; }
}
@media (max-width: 575px) {
  .wf-panel { padding: 8px; border-radius: 20px; }
  .wf-cell { padding: 20px 8px 18px; }
  body.cyber-monday.cyber-monday .wf-ribbon { margin-top: -16px !important; transform: rotate(-2deg); }
  body.cyber-monday.cyber-monday .wf-ribbon > span { padding: 7px 14px 8px; font-size: 11.5px !important; }
  body.cyber-monday.cyber-monday .wf-cell p { margin-top: 14px; font-size: 13.5px; }
}

/* smaller "Who It's For" title */
body.cyber-monday.cyber-monday .wf-title { font-size: clamp(30px, 3.6vw, 48px) !important; }
body.cyber-monday.cyber-monday .wf-title > span { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), 0 0 0 4px rgba(157, 109, 255, .12), 0 12px 26px -10px rgba(255, 95, 162, .55), 0 0 36px -10px rgba(125, 75, 240, .8); }
@media (max-width: 767px) { body.cyber-monday.cyber-monday .wf-title { font-size: 30px !important; } }
@media (min-width: 992px) { body.cyber-monday p.one-line-lg { max-width: none !important; white-space: nowrap; } }