/*
 * UAE section type `section_whychoose_content` (batch s3, 2026-11-07). Linked on
 * UAE pages only (JURISDICTION_SETTINGS.ae.stylesheets).
 *
 * Why choose us "Trusted by millions worldwide": DS FeatureScroll (`.fs`,
 * variant media-left = text left, sticky picture right). Live
 * (deriv.com/ae/why-choose-us, measured 2026-11-07 at 1440 / 1024 / 768 / 390,
 * EN + AR):
 * - no band padding: each of the five items is one 100vh step (900px in a
 *   900px window), its text centred in the step;
 * - from 992: content 1328px max with 24 + 64px inside (text at 144px in a
 *   1440 window, 88px at 1024), two equal columns 80px apart; the picture is
 *   a 1:1 square with 24px corners, centred in the window while the text
 *   scrolls;
 * - 768-991: still two columns (48px apart, 24px in), text and picture side by
 *   side. The DS switches the sticky picture only from 992 (its script checks
 *   min-width 992px), so here each item shows its own picture beside its text,
 *   centred in its step: the same place live's sticky picture has at rest;
 * - title 48/56 (40/48 at 768-991, 32/40 below 768), -0.4px; 16px to the copy;
 * - below 768: the DS phone list (title, picture, copy), as live; 16px corners.
 * Arabic: mirrored (text right, picture left), Noto Sans Arabic (frame.css).
 */
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] {
  --raven-pad-top: 0px;
  --raven-pad-bottom: 0px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__item-title {
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.4px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__item-desc {
  font-size: 16px;
  line-height: 24px;
}

@media (min-width: 992px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs {
    --fs-sticky-top: 0px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__inner {
    max-width: 1328px;
    padding: 0 88px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__layout {
    gap: 80px;
    --fs-step-band: 100vh;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__media-sticky {
    top: 0;
    min-height: 100vh;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__media-wrap {
    border-radius: 24px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__item {
    min-height: 100vh;
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__inner {
    padding: 0 24px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-list {
    gap: 0;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "title media"
      "desc media";
    column-gap: 48px;
    row-gap: 16px;
    align-content: center;
    min-height: 100vh;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-item > .fs__item-title {
    grid-area: title;
    align-self: end;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-item > .fs__mobile-media {
    grid-area: media;
    align-self: center;
    border-radius: 24px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-item > :not(.fs__item-title):not(.fs__mobile-media) {
    grid-area: desc;
    align-self: start;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__item-title {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (max-width: 767px) {
  /* Live phones (checker N4, item boxes measured 2026-11-07): 96px above the
     first heading and 64px below the last copy, 32px from a heading to its
     picture, 16px to the copy, 48px between items (the first item's box is
     16px taller than its content). */
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__inner {
    padding-top: 96px;
    padding-bottom: 64px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-list {
    gap: 48px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-item:first-child {
    padding-bottom: 16px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-media {
    margin-top: 16px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__item-title {
    font-size: 32px;
    line-height: 40px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] .fs__mobile-media {
    border-radius: 16px;
  }
}

/* The items have no link on live; the DS still writes an empty one (0x0, no
   name). Out of the page and the accessibility tree (checker minor 10). */
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":why-us"] a.fs__item-link:is([href=""], :not([href])) {
  display: none;
}
