/* ============================================================
   aftersales-maintenance.css
   Maintenance page (Bảo dưỡng định kỳ) — maintenance-specific
   components only. Common components in aftersales-common.css.
   ============================================================ */

/* ----------------------------------------------------------------
   SECTION 1A — Checklist grid (CMS-driven: aft_mt_l_item paragraphs)
   ---------------------------------------------------------------- */
.aftersales-maintenance__checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.aftersales-checklist__item {
  border: 1px solid var(--aftersales-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.aftersales-checklist__item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.aftersales-checklist__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--aftersales-white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Mulish', sans-serif;
}

.aftersales-checklist__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aftersales-checklist__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.aftersales-checklist__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aftersales-checklist__name {
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--aftersales-text);
}

.aftersales-checklist__arrow {
  flex-shrink: 0;
  color: var(--aftersales-text-secondary);
  transition: transform 0.2s;
}

.aftersales-checklist__toggle[aria-expanded="true"] .aftersales-checklist__arrow {
  transform: rotate(180deg);
}

.aftersales-checklist__detail {
  border-top: 1px solid var(--aftersales-border);
}

.aftersales-checklist__detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  gap: 12px;
}

.aftersales-checklist__detail-header h3,
.aftersales-checklist__detail-header h4 {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.aftersales-checklist__detail-header a {
  color: var(--aftersales-primary);
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.aftersales-checklist__table {
  padding: 16px;
  overflow-x: auto;
}

.aftersales-checklist__table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
}

.aftersales-checklist__table th,
.aftersales-checklist__table td {
  padding: 10px 12px;
  border: 1px solid var(--aftersales-border);
  text-align: left;
}

.aftersales-checklist__table th {
  background: var(--aftersales-bg-light);
  font-weight: 600;
  color: var(--aftersales-text);
  white-space: nowrap;
}

.aftersales-checklist__table td {
  color: var(--aftersales-text-secondary);
}

/* ----------------------------------------------------------------
   SECTION 1B — Maintenance checklist (xe máy & eBus pages)
   Simple bullet-point checklist of periodic inspection items.
   ---------------------------------------------------------------- */
.aftersales-maintenance__checklist-header {
  margin-top: 32px;
  margin-bottom: 24px;
}

.aftersales-maintenance__checklist-subtitle {
  font-family: 'Mulish', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--aftersales-text);
  margin: 0 0 24px;
}

.aftersales-maintenance__checklist-items {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aftersales-maintenance__checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
}

/* Checkmark circle icon before each item (non-eBus only: eBus uses inline SVG) */
.aftersales-maintenance__checklist-items:not(.aftersales-maintenance__checklist-items--ebus) li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9.5' stroke='%23D9E1E2'/%3E%3Cpath d='M6 10l2.5 2.5L14 7' stroke='%231464F4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* eBus/xe-may checklist items must NOT inherit the pseudo-element (SVG icon is inline) */
.aftersales-maintenance__checklist-items--ebus li.aftersales-maintenance__checklist-item--ebus::before {
  display: none;
}

.aftersales-maintenance__checklist-cta {
  display: inline-flex;
  align-self: flex-start;
}

/* eBus variant: bg panel around the checklist list */
.aftersales-maintenance__checklist-items--ebus {
  background: #F8F9FA;
  padding: 30px;
  border-radius: 5px;
  margin: 0 0 32px;
  gap: 8px;
}

/* eBus checklist row: icon + text side-by-side */
.aftersales-maintenance__checklist-item--ebus {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
}

/* eBus green checkmark SVG icon */
.aftersales-maintenance__checklist-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
}

/* CTA wrapper: centered per Figma node I7929:93300;7818:38476 (items-center on parent section) */
.aftersales-maintenance__checklist-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

/* eBus CTA button: per Figma node 7929:93301
   bg #1464F4, white text, uppercase, w-306px, 16px, tracking 1.6px, rounded 3px */
.aftersales-maintenance__checklist-cta-ebus {
  display: inline-block;
  background: #1464F4;
  color: #ffffff;
  text-transform: uppercase;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.6px;
  border-radius: 3px;
  width: 306px;
  max-width: 100%;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s, opacity 0.2s;
}

.aftersales-maintenance__checklist-cta-ebus:hover {
  background: #0f52c4;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 480px) {
  /* eBus checklist panel: tighter padding on mobile */
  .aftersales-maintenance__checklist-items--ebus {
    padding: 20px;
  }

  /* eBus checklist row: smaller text on mobile */
  .aftersales-maintenance__checklist-item--ebus {
    font-size: 14px;
    gap: 10px;
  }

  /* eBus CTA: full width on mobile */
  .aftersales-maintenance__checklist-cta-ebus {
    width: 100%;
  }
}

/* Anchor target for hero CTA "Tải sổ lịch bảo dưỡng" */
#maintenance-schedule-download {
  scroll-margin-top: calc(var(--aftersales-header-height) + 24px);
}

/* ----------------------------------------------------------------
   SECTION 1C — Vehicle categories accordion (fallback content)
   Bordered container with 3 accordion rows per engine type.
   ---------------------------------------------------------------- */
.aftersales-maintenance__categories {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.aftersales-maintenance__category {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid #D9E1E2;
  padding-bottom: 12px;
}

.aftersales-maintenance__category:last-child {
  border-bottom: none;
}

.aftersales-maintenance__category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--aftersales-text);
  pointer-events: auto;
}

.aftersales-maintenance__category-toggle img {
  display: none;
}

.aftersales-maintenance__category-toggle svg {
  flex-shrink: 0;
  color: var(--aftersales-text-secondary);
  width: 20px;
  height: 20px;
  background: white;
  border: 1px solid #D9E1E2;
  padding: 2px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.aftersales-maintenance__category-toggle[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

/* Vehicle grid inside each expanded category */
.aftersales-maintenance__vehicles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
}

/* Flat vehicle grid (xe-may: no category headers, 4 columns) */
.aftersales-maintenance__vehicles--flat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.aftersales-maintenance__vehicles--flat .aftersales-maintenance__vehicle {
  background: #F7F9F9;
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s ease;
}

.aftersales-maintenance__vehicles--flat .aftersales-maintenance__vehicle:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.aftersales-maintenance__vehicle {
  flex: 0 0 calc((100% - 72px) / 7);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--aftersales-text);
  text-align: center;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.aftersales-maintenance__vehicle:hover {
  color: var(--aftersales-primary);
}

/* CMS-driven vehicle image (102×57 per Figma) */
.aftersales-maintenance__vehicle img {
  width: 102px;
  height: 57px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* eBus: larger logo inside same card layout */
[class*="context-"][class*="-ebus"] .aftersales-maintenance__vehicle img {
  width: 100%;
  height: auto;
  max-height: 120px;
}

/* Vehicle name label */
.aftersales-maintenance__vehicle span {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--aftersales-text);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

/* ----------------------------------------------------------------
   SECTION 2 — Ưu điểm bảo dưỡng chính hãng
   A. CMS-driven: icon grid via field_aft_mt_slides
   B. Fallback: 2-column image+text layout
   ---------------------------------------------------------------- */

/* A. CMS advantages grid (icon + title + description cards) */
.aftersales-maintenance__advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.aftersales-maintenance__advantages .paragraph {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: var(--aftersales-bg-light);
  border-radius: 8px;
}

.aftersales-maintenance__advantages .paragraph img {
  max-width: 64px;
  height: auto;
  margin-bottom: 12px;
}

/* B. Fallback 2-column benefit blocks */
.aftersales-maintenance__benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.aftersales-maintenance__benefit {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Staggered gaps per Figma: first benefit wider, second tighter */
.aftersales-maintenance__benefit:first-child {
  gap: 45px;
}

.aftersales-maintenance__benefit:last-child {
  gap: 13px;
}

/* Second benefit: text above image per Figma — HTML order is already correct */

.aftersales-maintenance__benefit img {
  width: 100%;
  aspect-ratio: 463 / 421;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.aftersales-maintenance__benefit p {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
  margin: 0;
}

/* ----------------------------------------------------------------
   SECTION 3 — Quy trình bảo dưỡng (5-step process)
   Step CSS lives in aftersales-common.css (shared with repair page).
   ---------------------------------------------------------------- */
.aftersales-maintenance__process {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* ----------------------------------------------------------------
   SECTION 3 — Info box (below step cards)
   Grey card with blue circle-check icons + descriptive text.
   ---------------------------------------------------------------- */
.aftersales-maintenance__info-box {
  background: var(--aftersales-bg-light);
  border-radius: 5px;
  padding: 30px;
}

.aftersales-maintenance__info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.aftersales-maintenance__info-item:last-child {
  margin-bottom: 0;
}

.aftersales-maintenance__info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Wrench icon fallback for CMS items without inline SVG */
.aftersales-maintenance__info-item:not(:has(> svg))::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23E8EAEB'/%3E%3Cpath d='M14.08 15.22l3.64 3.64 1.28-1.31-3.64-3.64-1.28 1.31zm2.26-3.16c-.24 0-.49-.03-.69-.12L8.74 18.85l-1.28-1.28 4.5-4.5-1.07-1.08-.44.42-0.88-.86v1.74l-.42.42L7 11.58l.42-.42h1.71l-.85-.85L10.73 6.86a3.5 3.5 0 011.28-.56c.37-.1.77-.15 1.16-.15.39 0 .78.05 1.15.15.37.1.72.28 1.02.56L12.92 9.28l.86.85-.43.43 1.09 1.08 1.1-1.14c-.08-.2-.12-.46-.12-.73a3.4 3.4 0 011.04-2.45 3.4 3.4 0 012.45-1.04c.36 0 .66.08 1.02.23l-1.62 1.62.91.91 1.62-1.62c.17.36.23.66.23 1.04a3.48 3.48 0 01-3.48 3.48z' fill='%233C3C3C'/%3E%3C/svg%3E") no-repeat center/contain;
}

.aftersales-maintenance__info-item p {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
  margin: 0;
}

/* ----------------------------------------------------------------
   CTA large button — maintenance-specific spacing only.
   Size/color/typography defined in aftersales-common.css.
   ---------------------------------------------------------------- */
.aftersales-maintenance__process .aftersales-btn--large {
  align-self: center;
}

/* ----------------------------------------------------------------
   Arrow rotation on category accordion collapse/expand
   ---------------------------------------------------------------- */
.aftersales-maintenance__category-toggle svg {
  transition: transform 0.3s ease;
}

.aftersales-maintenance__category-toggle[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

/* Smooth collapse/expand animation for vehicle grid */
.aftersales-maintenance__vehicles {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.aftersales-maintenance__vehicles[hidden] {
  display: flex !important;
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   Step panels (interactive content below clickable steps)
   ---------------------------------------------------------------- */
.aftersales-steps__panels {
  position: relative;
  width: 100%;
}

.aftersales-steps__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.aftersales-steps__panel--active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

/* Make steps clickable */
.aftersales-steps[role="tablist"] .aftersales-steps__item {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.aftersales-steps[role="tablist"] .aftersales-steps__item:hover {
  opacity: 0.8;
}

/* ----------------------------------------------------------------
   Responsive — 768px (tablet)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  #maintenance-schedule-download {
    scroll-margin-top: calc(var(--aftersales-header-height) + 68px);
  }

  /* Checklist: allow 2-column before collapsing to 1 */
  .aftersales-maintenance__checklist {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  /* Benefits: stack vertical */
  .aftersales-maintenance__benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Benefit gap tighter on tablet */
  .aftersales-maintenance__benefit {
    gap: 20px;
  }

  .aftersales-maintenance__benefit:first-child .aftersales-imgtext__image {
    order: 1;
  }

  /* Advantages: keep 2-col on tablet */
  .aftersales-maintenance__advantages {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Vehicle grid: 2 per row on mobile/tablet */
  .aftersales-maintenance__vehicles {
    flex-wrap: wrap;
  }

  .aftersales-maintenance__vehicle {
    flex: 0 0 calc(50% - 6px);
  }

  .aftersales-maintenance__vehicles--flat {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Info box: reduce padding on tablet */
  .aftersales-maintenance__info-box {
    padding: 30px;
  }
}

/* ----------------------------------------------------------------
   Responsive — 480px (mobile)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Checklist: single column */
  .aftersales-maintenance__checklist {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Checklist toggle: smaller padding and font on mobile */
  .aftersales-checklist__toggle {
    padding: 12px;
  }

  .aftersales-checklist__name {
    font-size: 14px;
  }

  /* Checklist icon: smaller on mobile */
  .aftersales-checklist__icon {
    width: 40px;
    height: 40px;
  }

  /* Advantages: single column */
  .aftersales-maintenance__advantages {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Vehicle grid: wrap 2-per-row on mobile */
  .aftersales-maintenance__vehicles {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
  }

  .aftersales-maintenance__vehicle {
    flex: 0 0 calc(50% - 6px);
    font-size: 16px;
  }

  .aftersales-maintenance__vehicle img {
    width: 160px;
    height: 90px;
  }

  .aftersales-maintenance__vehicles--escooter .aftersales-maintenance__vehicle img {
    transform: scale(1.2);
  }

  /* Info box: compact padding and smaller text on mobile */
  .aftersales-maintenance__info-box {
    padding: 30px;
  }

  .aftersales-maintenance__info-item p {
    font-size: 16px;
  }

  /* Info item: Figma mobile uses gap-[4px] between icon and text */
  .aftersales-maintenance__info-item {
    gap: 4px;
    margin-bottom: 8px;
  }

  /* Benefits: reorder on mobile per Figma — text-first, then image */
  .aftersales-maintenance__benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .aftersales-maintenance__benefit:last-child {
    order: -1;
  }

  .aftersales-maintenance__benefit,
  .aftersales-maintenance__benefit:first-child,
  .aftersales-maintenance__benefit:last-child {
    gap: 16px;
  }

  .aftersales-maintenance__benefit img {
    aspect-ratio: 400 / 270;
  }

  /* CTA button: centered on mobile */
  .aftersales-maintenance__process .aftersales-btn--large {
    display: block;
    text-align: center;
    width: 306px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* Checklist items: slightly smaller on mobile but keep SemiBold 20 feel */
  .aftersales-maintenance__checklist-subtitle {
    font-size: 18px;
  }

  .aftersales-maintenance__checklist-items li {
    font-size: 14px;
    gap: 8px;
  }

  /* Checklist CTA: full-width on mobile */
  .aftersales-maintenance__checklist-cta {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ----------------------------------------------------------------
   Maintenance schedule popup
   ---------------------------------------------------------------- */
.aftersales-maintenance__vehicle--clickable {
  cursor: pointer;
  transition: background 0.15s ease-in-out, transform 0.15s ease-in-out;
  border-radius: 6px;
}
.aftersales-maintenance__vehicle--clickable:hover,
.aftersales-maintenance__vehicle--clickable:active,
.aftersales-maintenance__vehicle--clickable:focus {
  background: rgba(20, 100, 244, 0.1);
  transform: scale(1.05);
}

/* Popup default: invisible but rendered (images preload) */
.aftersales-maintenance-popup {
  visibility: hidden;
  pointer-events: none;
}

.aftersales-maintenance-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  transition: background 0.3s ease;
}

.aftersales-maintenance-popup__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #fff;
  width: fit-content;
  max-width: min(1290px, 90vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* All vehicle content divs hidden by default, only active one shown */
.aftersales-maintenance-content {
  display: none;
}
.aftersales-maintenance-content--active {
  display: block;
}

/* Active state — JS toggles this class */
.aftersales-maintenance-popup--active {
  visibility: visible;
  pointer-events: auto;
}
.aftersales-maintenance-popup--active .aftersales-maintenance-popup__overlay {
  background: rgba(0, 0, 0, 0.5);
}
.aftersales-maintenance-popup--active .aftersales-maintenance-popup__dialog {
  opacity: 1;
}

/* Header: 3-column flex layout matching Figma (title | button | close) */
.aftersales-maintenance-popup__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
  background-color: #F0F3F3;
  flex-shrink: 0;
}

.aftersales-maintenance-popup__title {
  flex: 1 1 0;
  min-width: 0;
  font-family: 'Mulish', sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: normal;
  color: #3C3C3C;
  margin: 0;
  word-break: break-word;
}

.aftersales-maintenance-popup__header-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aftersales-maintenance-popup__header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background-color: #fff;
  border: 1px solid #1464F4;
  border-radius: 3px;
  color: #1464F4;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.aftersales-maintenance-popup__header-link:hover {
  background-color: #1464F4;
  color: #fff;
}

.aftersales-maintenance-popup__header-close {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.aftersales-maintenance-popup__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aftersales-maintenance-popup__close svg {
  width: 32px;
  height: 32px;
}
.aftersales-maintenance-popup__close:hover {
  opacity: 0.7;
}

/* Body: scrollable content area with 30px gap from header */
.aftersales-maintenance-popup__body {
  padding: 30px 18px;
  overflow-x: auto;
  overflow-y: auto;
  flex: 1;
}
.aftersales-maintenance-popup__body img {
  max-width: min(1254px, calc(90vw - 36px));
  height: auto;
}
.aftersales-maintenance-popup__body table {
  border-collapse: collapse;
}
.aftersales-maintenance-popup__body table,
.aftersales-maintenance-popup__body th,
.aftersales-maintenance-popup__body td {
  border: 1px solid #333;
}
.aftersales-maintenance-popup__body th,
.aftersales-maintenance-popup__body td {
  padding: 8px 10px;
  text-align: left;
}
.aftersales-maintenance-popup__body p {
  margin: 0;
}

.aftersales-popup-scroll-wrap {
  scrollbar-width: thin;
  scrollbar-color: #1464f4 #D9E1E2;
  -webkit-overflow-scrolling: touch;
}
.aftersales-popup-scroll-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  -webkit-appearance: none;
}
.aftersales-popup-scroll-wrap::-webkit-scrollbar-track {
  background: #D9E1E2;
  border-radius: 200px;
}
.aftersales-popup-scroll-wrap::-webkit-scrollbar-thumb {
  background: #1464f4;
  border-radius: 200px;
}

@media (max-width: 768px) {
  .aftersales-maintenance-popup__dialog {
    display: block;
    width: calc(100vw - 32px);
    height: calc(100dvh - 32px);
    max-width: none;
    max-height: none;
    left: 16px;
    top: 16px;
    transform: none;
    overflow: hidden;
  }
  .aftersales-maintenance-popup__header {
    flex-wrap: wrap;
    display: flex;
    padding: 16px;
  }
  .aftersales-maintenance-popup__title {
    flex: 1 0 60%;
    font-size: 20px;
    font-weight: 600;
  }
  .aftersales-maintenance-popup__header-btn {
    flex: 1 0 100%;
    order: 3;
  }
  .aftersales-maintenance-popup__header-link {
    font-size: 12px;
    padding: 10px;
    letter-spacing: 1.2px;
  }
  .aftersales-maintenance-popup__header-close {
    flex: 0 0 auto;
  }
  .aftersales-maintenance-popup__body {
    padding: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(100dvh - 32px - 130px);
    position: relative;
  }
  .aftersales-maintenance-popup__body img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .aftersales-maintenance-popup__body table {
    background: #fff;
    width: auto !important;
    max-width: none !important;
    table-layout: auto !important;
  }
  .aftersales-maintenance-popup__body th,
  .aftersales-maintenance-popup__body td {
    padding: 6px 8px !important;
    height: auto !important;
    width: auto !important;
    white-space: normal !important;
  }
  .aftersales-maintenance-popup__body span,
  .aftersales-maintenance-popup__body p,
  .aftersales-maintenance-popup__body div {
    height: auto !important;
  }
}
