/* Featured Content List (Movie List) — SRS §3.6, Figma 3299:70915 (desktop 1248) / 3299:72133 (mobile 380)
   Font: SRS Table 44/46/47 declares "UMobile Display" — declared first, with the site's real
   family 'Unbeatable' kept as the fallback for envs where the webfont isn't served (AB#132233). */

.uiw-featured-content-list {
  position: relative;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
}

.uiw-featured-content-list-heading {
  margin: 0 0 24px;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.24px;
  text-align: center;
  color: #000000;
}

/* horizontal carousel track */
/* AB#132687 — SRS Part 15 §1.3 struck out the fixed 410px tile and the 2/5-line caps: card height
   is now "fully dynamic ... all visible cards automatically stretch to match the height of the
   tallest card in view (flexbox align-items: stretch)". */
.uiw-featured-content-list-track {
  display: flex;
  align-items: stretch;
  /* AB#133107 — with fewer cards than fit the track the group was flush LEFT (leftGap 0 /
     rightGap 503). `safe center` centers the group only while there IS spare room; the moment the
     content overflows the browser falls back to flex-start, so the first card is never scrolled out
     of reach (plain `center` would clip it). The flex-start line above it is the fallback for
     engines that don't parse the `safe` keyword — they keep today's behaviour rather than clipping. */
  justify-content: flex-start;
  justify-content: safe center;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.uiw-featured-content-list-track::-webkit-scrollbar { display: none; }
.uiw-featured-content-list-track-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

.uiw-featured-content-list-item {
  box-sizing: border-box;
  flex: 0 0 360.5px;
  width: 360.5px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

/* "Coming Soon" tab — sits ABOVE the card, top-left, only when the item has a tag */
.uiw-featured-content-list-tag {
  box-sizing: border-box;
  width: 180px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #ff7300;
  color: #ffffff;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.uiw-featured-content-list-card {
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.12);
}
/* the tab occupies the top-left corner, so the card squares it off */
.uiw-featured-content-list-card-tagged { border-top-left-radius: 0; }

/* image fills whatever the text block leaves (Figma flex-1, gap A3) */
/* AB#132687 round 3 — the image must NOT absorb the slack a stretched card gains. SRS Part 15 §1.3
   Note: "every other card stretches to match it, which may leave noticeable empty space on shorter
   cards." So the extra height belongs at the BOTTOM as empty space, not stretched into the image —
   otherwise a short card shows an oversized image and the image/title/description proportions stop
   matching the other cards (BA feedback 17/08). */
.uiw-featured-content-list-image {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  object-fit: cover;
}

/* Text block sits directly under the image and keeps its natural height; the slack a stretched card
   gains stays below it as empty space (see the image rule above). */
.uiw-featured-content-list-body {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 16px;
}

.uiw-featured-content-list-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.uiw-featured-content-list-title {
  margin: 0;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #000000;
}

.uiw-featured-content-list-description {
  margin: 0;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #4d4d4d;
}

.uiw-featured-content-list-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #ff7300;
  text-decoration: none;
}
.uiw-featured-content-list-cta-icon { width: 16px; height: 16px; flex: none; }

/* navigation */
.uiw-featured-content-list-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Arrow design follows the live carousel buttons on the CMS page `personal/devices/trade-in`
   (page 3a20cb63-324c-584b-dfe4-de07dfd188d4), measured with getComputedStyle on
   `.swiper-button.swiper-button-white`: 35x35, fully round, 2px orange border on white, 24px
   feather arrow, no shadow — ONE size for desktop and mobile. This deliberately supersedes the
   earlier 32/36 Figma sizing (AB#132262): that page is now the design source for these buttons.
   Only the LOOK is taken from it; the spent-arrow BEHAVIOUR is the grey disabled state defined in
   the aria-disabled rule below (AB#132679, chốt lại 18/08). */
.uiw-featured-content-list-arrow {
  box-sizing: border-box;
  /* AB#132262 — back to the Figma sizes: 32 on desktop (node 3299:70915), 36 on mobile
     (node 3299:72133). The 35x35 taken from the trade-in reference page was an in-code decision
     with no sign-off, and Figma is the design source for this widget. */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border-style: solid;
  border-width: 2px;
  border-radius: 100%;
  box-shadow: none;
  cursor: pointer;
}
/* Enabled state: both arrows carry the same orange. Grey is the disabled state (rule below). */
.uiw-featured-content-list-arrow-prev,
.uiw-featured-content-list-arrow-next { border-color: #ff7b00; color: #ff7b00; }
.uiw-featured-content-list-arrow-icon { width: 24px; height: 24px; }
/* AB#132679 — QC/BA (comment 18/08) chốt lại: mũi tên hết tác dụng phải DISABLE (xám, vẫn thấy),
   không ẩn đi. Điều này supersede câu "hidden" của SRS Part 15 §Featured Content List (S1 +
   Table 43) — xem gap-132679 mục B1; Table 48 của chính SRS đã dùng từ "enables", nên bản disable
   này khớp Table 48 và cần BA cập nhật lại Table 43 cho nhất quán. Icon dùng stroke=currentColor
   nên chỉ cần đổi color + border-color là cả viền lẫn mũi tên chuyển xám. */
.uiw-featured-content-list-arrow[aria-disabled="true"] {
  cursor: default;
  border-color: #d8d8d8;
  color: #d8d8d8;
}

/* AB#132679 điều kiện #4: "khi chỉ có <=3 card, 2 mũi tên đều ẩn". Khi track không tràn thì không
   có gì để cuộn, nên cả cụm nav biến mất — hai nút xám nằm lại sẽ vô nghĩa. JS đặt cờ này. */
.uiw-featured-content-list-nav[data-uiw-no-scroll="true"] { display: none; }

@media (max-width: 767px) {
  .uiw-featured-content-list-heading { margin-bottom: 20px; }
  .uiw-featured-content-list-item { flex-basis: 308.5px; width: 308.5px; }
  .uiw-featured-content-list-nav { margin-top: 20px; }
  /* AB#132262 — Figma specs a bigger touch target on mobile than on desktop. */
  .uiw-featured-content-list-arrow { width: 36px; height: 36px; }
  /* SRS Table 48: the CMS toggle decides whether the mobile arrows show at all */
  .uiw-featured-content-list-nav[data-hide-mobile-nav="true"] { display: none; }
}
