/*
 * UAE section type `section_whychoose_awards` (batch s3, 2026-11-07). Linked on
 * UAE pages only (JURISDICTION_SETTINGS.ae.stylesheets).
 *
 * Why choose us "Our awards": DS FeatureAwards (`.fa`). Live
 * (deriv.com/ae/why-choose-us, measured 2026-11-07 at 1440 / 1024 / 768 / 390,
 * EN + AR, tmp/uae-batches/s3/measure/ and the CSS probe):
 * - top padding only: 112px (>=992), 80px (768-991), 56px (<768); heading
 *   56/64 (48/56, 40/48), -0.48px, centred from 768 (start-aligned below);
 *   48px from the heading to the awards (16px below 768);
 * - from 768 a centred wrap of 211.64px cells, 32px apart and 16px between
 *   rows (12px both ways at 768-991): leaf 27.42x72, 4px, a 148.8px text
 *   column (title 14/16 800 -0.42px black, 8px, subtitle 12/15.6), 4px, leaf;
 *   a cell is 82px tall;
 * - below 480 one moving row 72px tall, 16px under the heading, cells 16px
 *   apart from 16px in: leaf 20.8x72, ~96px text (10/12, title 800 -0.3px,
 *   4px apart). The band ends with the row (no bottom padding). 480-767 keep
 *   the wrapped grid (block at the end of this file).
 * Arabic: live keeps the award names in English and draws them in Inter (used
 * font measured per element), so the names keep Inter on /ae/ar too.
 */
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] {
  --raven-pad-top: 0px;
  --raven-pad-bottom: 0px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__inner {
  max-width: 1328px;
  padding: 112px 24px 0;
  gap: 48px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__title {
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -0.48px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__grid {
  column-gap: 32px;
  row-gap: 16px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__grid .fa__item {
  flex: 0 0 211.64px;
  max-width: 211.64px;
  height: 82px;
  gap: 4px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__leaf {
  width: 27.42px;
  height: 72px;
  object-fit: contain;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__item-text {
  flex: 0 0 148.8px;
  width: 148.8px;
  gap: 8px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__item-title {
  font-size: 14px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: -0.42px;
  color: rgb(0, 0, 0);
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__item-subtitle {
  font-size: 12px;
  line-height: 15.6px;
  font-weight: 400;
  color: rgb(24, 28, 37);
}
/* Live /ae/ar draws the (English) award names in Inter. */
[dir="rtl"] [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] :is(.fa__item-title, .fa__item-subtitle) {
  font-family: Inter, Arial, sans-serif;
}

@media (max-width: 991px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__inner {
    padding-top: 80px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__title {
    font-size: 48px;
    line-height: 56px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__grid {
    column-gap: 12px;
    row-gap: 12px;
  }
}

@media (max-width: 767px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__inner {
    padding: 56px 0 0;
    gap: 16px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__title {
    padding-inline: 16px;
    box-sizing: border-box;
    font-size: 40px;
    line-height: 48px;
    text-align: start;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__track-group {
    gap: 16px;
    padding-inline-start: 16px;
    padding-right: 0;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__track-group .fa__item {
    flex: 0 0 auto;
    height: 72px;
    gap: 4px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__leaf {
    width: 20.8px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__item-text {
    flex: 0 0 96px;
    width: 96px;
    gap: 4px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__item-title {
    font-size: 10px;
    line-height: 12px;
    letter-spacing: -0.3px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__item-subtitle {
    font-size: 10px;
    line-height: 12px;
  }
}

/*
 * Live breaks every award name and subtitle by hand ("Ultimate Fintech<br>2026");
 * the recipe carries those breaks as new lines (checker minor 1).
 */
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] :is(.fa__item-title, .fa__item-subtitle) {
  white-space: pre-line;
}
/* Phone row speed (checker minor 2): live moves 43.9 px/s; the DS loops half
   its 3,555px track in 32s (55.6 px/s), so 1,777px / 43.9 = 40.5s. The DS
   writes the duration inline on the track, hence !important. */
@media (max-width: 767px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__track {
    --fa-duration: 40.5s !important;
  }
}

/*
 * 480-767 px: live keeps the wrapped grid; its moving row shows only below 480
 * (Webflow hides `.awards_awards-wrapper-desktop` at max-width 479 only; measured
 * 2026-11-13 at 375 / 479 / 480 / 600 / 768). The DS switches at 768, so this
 * range showed the moving row before. Live here: grid 16px in from each side, cells
 * 12px apart both ways, 48px under the centred heading, 14px above the band's end;
 * a cell is a 14px leaf, 4px, the text (10/12, as wide as its longest line, at
 * least 92.8px), 4px, a leaf; 82px tall.
 */
@media (min-width: 480px) and (max-width: 767px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__inner {
    gap: 48px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__title {
    text-align: center;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__grid {
    display: flex;
    box-sizing: border-box;
    padding-inline: 16px;
    column-gap: 12px;
    row-gap: 12px;
    margin-bottom: 14px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__scroller {
    display: none;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__grid .fa__item {
    flex: 0 0 auto;
    max-width: none;
    height: 82px;
    gap: 4px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__grid .fa__leaf {
    width: 14px;
    height: 72px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":awards"] .fa__grid .fa__item-text {
    flex: 0 0 auto;
    width: auto;
    min-width: 92.8px;
    gap: 4px;
  }
}
