/*
 * UAE section type `pay-methods` (S2, 2026-11-07): live `.section_pay-methods`, a
 * centred heading over a white rounded box on the grey band. Two shapes on live:
 *   - Deposits and withdrawals: five logo tiles, then a limits box (one-off Composed
 *     layout, `.raven-composed`);
 *   - Precious metals: the "Precious Metals Tables" CMS item, a 3-column table
 *     (DS comparison table, `.raven-comparison-table` / `.dtbl`).
 * Linked on UAE pages only; every rule is scoped to the slot.
 *
 * Live (measured 2026-11-07, both pages, EN + AR, 4 widths): content column 1064px,
 * centred (1328px container, 24px gutters; 16px on phones). Heading 56/64 (48/56 at
 * 768, 40/48 on phones), centred, start-aligned on phones, 48px above the content.
 * Band padding 112 / 80 / 56px.
 * Logo tiles: 5 in a row, 16px apart, 127px tall (rgba(0,0,0,.04), radius 16,
 * padded 10/14); on phones 3 per row, 8px apart, 73px tall, padded 6/8. 32px from the
 * tiles to the limits box: white, radius 24, padded 48/56 (24 on phones), groups
 * 24px apart; group name 16/24 semibold with 8px under it; rows padded 8px, three
 * equal columns 16px apart, the two amounts right-aligned (14/20 on phones).
 * Table: white, radius 16, 1px rgb(237,237,238) lines under each row and a top
 * border; cells padded 12/16 (49px rows), header row bold and centred, first column
 * bold; on phones the table keeps 200px columns and scrolls sideways.
 * Arabic: live sets the table and limits text in "Inter, Arial", so Arabic letters
 * draw in Arial (used-font report), not Noto Sans Arabic.
 */
[data-raven-slot$=":pay-methods"].raven-section-pad {
  --raven-pad-top: 56px;
  --raven-pad-bottom: 56px;
}
@media (min-width: 768px) {
  [data-raven-slot$=":pay-methods"].raven-section-pad {
    --raven-pad-top: 80px;
    --raven-pad-bottom: 80px;
  }
}
@media (min-width: 992px) {
  [data-raven-slot$=":pay-methods"].raven-section-pad {
    --raven-pad-top: 112px;
    --raven-pad-bottom: 112px;
  }
}

/* ── Table shape (Precious metals) ── */
[data-raven-slot$=":pay-methods"] .raven-comparison-table {
  max-width: 1112px;
  gap: 48px;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  [data-raven-slot$=":pay-methods"] .raven-comparison-table {
    padding-inline: 24px;
  }
}
[data-raven-slot$=":pay-methods"] .raven-comparison-table__header {
  padding-inline: 0;
}
[data-raven-slot$=":pay-methods"] .raven-comparison-table__title {
  max-width: 768px;
  margin-inline: auto;
  text-wrap: wrap;
}
[data-raven-slot$=":pay-methods"] .dtbl-section {
  padding: 0;
}
[data-raven-slot$=":pay-methods"] .dtbl-section__content {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}
/* The box: white, radius 16, a 1px line on top (live `.cmstable`); scrolls sideways
   when the 200px columns don't fit (below 992px). */
[data-raven-slot$=":pay-methods"] .dtbl {
  border: 0;
  border-top: 1px solid rgb(237, 237, 238);
  border-radius: 16px;
  background: rgb(255, 255, 255);
  overflow-x: auto;
}
[data-raven-slot$=":pay-methods"] .dtbl__scroll-wrapper {
  border: 0;
  overflow: visible;
}
/* Live's columns size to their content (auto layout): 220 / 329 / 513px at 1440. */
[data-raven-slot$=":pay-methods"] .dtbl__table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}
[data-raven-slot$=":pay-methods"] .dtbl__table :is(col, th, td) {
  width: auto;
}
[data-raven-slot$=":pay-methods"] :is(.dtbl__th, .dtbl__th-row, .dtbl__td) {
  padding: 12px 16px;
  background: rgb(255, 255, 255);
  border: 0;
  border-bottom: 1px solid rgb(237, 237, 238);
  font-size: 16px;
  line-height: 24px;
  vertical-align: middle;
}
/* Column lines (checker s2 M6): live gives every cell but the last in its row a 1px
   right border, physical right in Arabic too. */
[data-raven-slot$=":pay-methods"] .dtbl__table tr > :is(th, td):not(:last-child) {
  border-right: 1px solid rgb(237, 237, 238);
}
/* Header row: composited rgb(236,236,237) on live. */
[data-raven-slot$=":pay-methods"] .dtbl__th {
  font-weight: 700;
  text-align: center;
  background: rgb(236, 236, 237);
}
[data-raven-slot$=":pay-methods"] .dtbl__th-row {
  font-weight: 700;
  text-align: start;
}
[data-raven-slot$=":pay-methods"] .dtbl__td {
  font-weight: 400;
  text-align: start;
}
/* The DS cells read typography tokens resolved at [dir="rtl"], so set the font on the
   cells themselves. */
[dir="rtl"] [data-raven-slot$=":pay-methods"] .dtbl__table :is(th, td) {
  font-family: Inter, Arial, sans-serif;
}
/* Below 992px live caps every cell at 200px; the table keeps 3 x 200px and scrolls
   sideways on phones. */
@media (max-width: 991px) {
  [data-raven-slot$=":pay-methods"] .dtbl__table {
    width: auto;
  }
  [data-raven-slot$=":pay-methods"] .dtbl__table :is(th, td) {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
}
@media (max-width: 767px) {
  [data-raven-slot$=":pay-methods"] .raven-comparison-table__title {
    margin-inline: 0;
  }
}

/* ── Logos + limits shape (Deposits and withdrawals) ──
   Composed layout: outer stack [h2, wrapper stack [logo grid, box stack [group, group]]],
   each group [name, row grid, row grid]. Composed nodes carry inline gaps and type
   styles that read DS tokens, so sizes are set through those tokens. */
[data-raven-slot$=":pay-methods"] .raven-composed .fc-container {
  max-width: 1112px;
}
/* Live centres the heading block (shrink-wrapped) at every width; the text inside is
   centred from 768px and start-aligned on phones. */
[data-raven-slot$=":pay-methods"] .raven-composed > .fc-container > .raven-composed-stack {
  align-items: center;
}
[data-raven-slot$=":pay-methods"] .raven-composed > .fc-container > .raven-composed-stack > .raven-composed-stack {
  align-self: stretch;
}
[data-raven-slot$=":pay-methods"] .raven-composed-stack > h2 {
  max-width: 768px;
  text-align: center;
}
/* Logo tiles: a stack per logo around a full-width picture. */
[data-raven-slot$=":pay-methods"] .raven-composed-grid:has(> .raven-composed-stack > img) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
/* Tile height follows the logo's shape (live: 199x127 at 1440, 131x85 at 768, 114x73
   on phones): the picture is full width inside 10/14px padding (6/8 on phones). */
[data-raven-slot$=":pay-methods"] .raven-composed-grid > .raven-composed-stack:has(> img) {
  box-sizing: border-box;
  padding: 10px 14px;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 16px;
}
[data-raven-slot$=":pay-methods"] .raven-composed-grid > .raven-composed-stack > img {
  --radius-xl: 0px;
}
/* Limits box: group name, row, row, group name, row, row (one stack; the Composed
   validator allows 5 levels). Groups 24px apart; name 16/24 semibold, 8px under it. */
[data-raven-slot$=":pay-methods"] .raven-composed-stack:has(> .raven-composed-grid > p) {
  --font-weight-bold: 600;
  padding: 48px 56px;
  background: rgb(255, 255, 255);
  border-radius: 24px;
}
[data-raven-slot$=":pay-methods"] .raven-composed-stack:has(> .raven-composed-grid > p) > p {
  padding-bottom: 8px;
}
[data-raven-slot$=":pay-methods"] .raven-composed-stack:has(> .raven-composed-grid > p) > p:not(:first-child) {
  padding-top: 24px;
}
/* Rows: label + two amounts, three equal columns 16px apart, padded 8px. Live aligns
   the amounts with a literal `right` in both languages (the start edge in Arabic). Live
   bolds only the number ("5" of "5 USD"); ours sets the whole amount semibold. */
[data-raven-slot$=":pay-methods"] .raven-composed-grid:has(> p) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 8px;
}
[data-raven-slot$=":pay-methods"] .raven-composed-grid:has(> p) > p:not(:first-child) {
  text-align: right;
}
/* Live sets the limits text in "Inter, Arial": Arabic letters draw in Arial. */
[dir="rtl"] [data-raven-slot$=":pay-methods"] .raven-composed-stack:has(> .raven-composed-grid > p) {
  --typography-body-md-font-family: Inter, Arial, sans-serif;
}
@media (max-width: 767px) {
  [data-raven-slot$=":pay-methods"] .raven-composed-stack > h2 {
    text-align: start;
  }
  [data-raven-slot$=":pay-methods"] .raven-composed-grid:has(> .raven-composed-stack > img) {
    --spacing-16: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-raven-slot$=":pay-methods"] .raven-composed-grid > .raven-composed-stack:has(> img) {
    padding: 6px 8px;
  }
  [data-raven-slot$=":pay-methods"] .raven-composed-stack:has(> .raven-composed-grid > p) {
    --spacing-0: 4px;
    padding: 24px;
  }
  [data-raven-slot$=":pay-methods"] .raven-composed-stack:has(> .raven-composed-grid > p) > p:not(:first-child) {
    padding-top: 20px;
  }
  [data-raven-slot$=":pay-methods"] .raven-composed-grid:has(> p) {
    --typography-body-md-font-size: 14px;
    --typography-body-md-line-height: 20px;
  }
}
