/*
 * YOKO Kids v3.3.3 — screenshot audit fixes.
 * Loaded after every template stylesheet so this file is the final geometry,
 * spacing and responsive authority for the native YOKO templates.
 */

/* =========================================================
   1. Rey-aligned full-width system
   Section backgrounds remain full width. Content aligns with the Rey header.
   ========================================================= */
body.yoko-native-template,
body.yoko-pdp-php-template {
  --yoko-content-max: 1520px;
  --yoko-page-gutter: clamp(20px, 3.1vw, 56px);
}
body.yoko-native-template :where(
  .yoko-shell,.yoko-container,.yoko-pdp__container,.yoko-pdp__shell,
  .yoko-seasonal-container,.yoko-dealer-shell,.yoko-content-shell,
  .yoko-about__shell,.yoko-archive__shell,.yoko-homepage__shell,
  .yoko-sales-policy__shell,.yoko-size-guide__shell,.yoko-reading-shell,
  .yoko-commerce-shell
),
body.yoko-pdp-php-template :where(
  .yoko-shell,.yoko-container,.yoko-pdp__container,.yoko-pdp__shell,
  .yoko-seasonal-container,.yoko-dealer-shell,.yoko-content-shell,
  .yoko-about__shell,.yoko-archive__shell,.yoko-homepage__shell,
  .yoko-sales-policy__shell,.yoko-size-guide__shell,.yoko-reading-shell,
  .yoko-commerce-shell
) {
  width: min(calc(100% - (var(--yoko-page-gutter) * 2)), var(--yoko-content-max)) !important;
  max-width: var(--yoko-content-max) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
body.yoko-native-template main :where(article,section,div),
body.yoko-pdp-php-template main :where(article,section,div) { min-width: 0; }
body.yoko-native-template main :where(.yoko-dealer-intro-card,.yoko-dealer-right-card,.yoko-dealer-step,.yoko-dealer-tier-card,.yoko-dealer-testimonial,.yoko-sales-cta,.yoko-sales-assurance,.yoko-sales-grid>article),
body.yoko-pdp-php-template main :where(.yoko-quick-service__item,.yoko-trust-card,.yoko-data-card,.yoko-policy-strip>div) {
  box-sizing: border-box;
}

/* =========================================================
   2. Product detail page
   ========================================================= */
body.yoko-pdp-php-template .yoko-pdp__container {
  padding: 24px 0 76px !important;
}
body.yoko-pdp-php-template .yoko-pdp__breadcrumb { margin-bottom: 22px; }
body.yoko-pdp-php-template .yoko-pdp__hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(460px, .96fr);
  gap: clamp(42px, 4vw, 68px);
}
body.yoko-pdp-php-template .yoko-gallery__stage {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}
body.yoko-pdp-php-template .yoko-summary { top: 118px; }
body.yoko-pdp-php-template main .yoko-summary__title {
  max-width: 18ch;
  margin-top: 14px !important;
  font-size: clamp(38px, 3.2vw, 54px) !important;
  line-height: 1.08 !important;
  overflow-wrap: normal;
  word-break: normal;
}
body.yoko-pdp-php-template .yoko-summary__meta {
  gap: 10px 20px;
  font-size: 14px;
}
body.yoko-pdp-php-template .yoko-summary__rating {
  min-height: 28px;
  gap: 9px;
}
body.yoko-pdp-php-template .yoko-summary__rating .star-rating {
  width: 6.8em;
  margin: 0;
  color: #f4a51c;
  font-size: 16px;
}
body.yoko-pdp-php-template .yoko-rating-stars {
  color: #f4a51c;
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: none;
}
body.yoko-pdp-php-template .yoko-summary__rating--empty small { white-space: nowrap; }
body.yoko-pdp-php-template .yoko-summary__excerpt {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.72;
}
body.yoko-pdp-php-template .yoko-summary__secondary-actions { gap: 12px; }
body.yoko-pdp-php-template .yoko-summary__secondary-actions .yoko-button {
  border-radius: 10px;
}
body.yoko-pdp-php-template .yoko-quick-service__item,
body.yoko-pdp-php-template .yoko-policy-strip > div { padding: 20px 22px; }
body.yoko-pdp-php-template .yoko-trust-card { padding: 24px 18px; }
body.yoko-pdp-php-template .yoko-data-card { padding: clamp(22px, 2.4vw, 34px); }

/* =========================================================
   3. Sales policy spacing and contrast
   ========================================================= */
body.yoko-native-template .yoko-sales-cta {
  padding: clamp(28px, 3.2vw, 48px) clamp(28px, 3.6vw, 58px) !important;
  overflow: hidden;
}
body.yoko-native-template .yoko-sales-cta > div:first-child { min-width: 0; }
body.yoko-native-template .yoko-sales-cta h2 {
  max-width: 24ch;
  font-size: clamp(30px, 2.5vw, 40px) !important;
  line-height: 1.18;
}
body.yoko-native-template .yoko-sales-cta p {
  max-width: 70ch;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.65;
}
body.yoko-native-template .yoko-sales-assurance {
  grid-template-columns: minmax(260px, 1.08fr) repeat(4, minmax(170px, .92fr));
  gap: 16px;
  padding: 34px 30px !important;
  overflow: hidden;
  border-radius: 18px;
}
body.yoko-native-template .yoko-sales-assurance__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 14px !important;
}
body.yoko-native-template .yoko-sales-assurance__copy :where(h2,p),
body.yoko-native-template .yoko-sales-assurance > :where(h2,p,strong) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.yoko-native-template .yoko-sales-assurance h2 {
  color: #fff !important;
  font-size: clamp(30px, 2.3vw, 40px) !important;
  line-height: 1.18;
}
body.yoko-native-template .yoko-sales-assurance__copy p {
  color: rgba(255,255,255,.86) !important;
  font-size: 16px;
  line-height: 1.65;
}
body.yoko-native-template .yoko-sales-assurance article {
  min-height: 176px;
  padding: 22px 18px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 14px;
}
body.yoko-native-template .yoko-sales-assurance article strong {
  color: var(--yoko-primary) !important;
  -webkit-text-fill-color: var(--yoko-primary) !important;
  font-size: 16px;
}
body.yoko-native-template .yoko-sales-assurance article span {
  max-width: 20ch;
  font-size: 14px;
  line-height: 1.5;
}
body.yoko-native-template .yoko-sales-grid > article > header { padding: 24px 28px; }
body.yoko-native-template .yoko-sales-grid > article > div { padding: 10px 28px 26px; }

/* =========================================================
   4. Dealer policy desktop typography and card rhythm
   ========================================================= */
body.yoko-native-template .yoko-dealer-button--link,
body.yoko-native-template .yoko-dealer-button--link:link,
body.yoko-native-template .yoko-dealer-button--link:visited,
body.yoko-native-template .yoko-dealer-button--link:hover,
body.yoko-native-template .yoko-dealer-button--link:focus {
  color: var(--yoko-primary) !important;
  -webkit-text-fill-color: var(--yoko-primary) !important;
  font-weight: 700;
}
body.yoko-native-template .yoko-dealer-intro-cards__grid { gap: 20px; }
body.yoko-native-template .yoko-dealer-intro-card {
  grid-template-columns: minmax(0,1fr) 78px;
  min-height: 210px;
  gap: 20px;
  padding: 30px;
}
body.yoko-native-template .yoko-dealer-intro-card h2 {
  margin: 0;
  font-size: clamp(21px, 1.6vw, 28px) !important;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}
body.yoko-native-template .yoko-dealer-intro-card p {
  margin-top: 12px;
  font-size: 15px !important;
  line-height: 1.65;
}
body.yoko-native-template .yoko-dealer-card-icon {
  align-self: center;
  width: 72px !important;
  height: 72px !important;
}
body.yoko-native-template .yoko-dealer-rights__grid { gap: 22px; }
body.yoko-native-template .yoko-dealer-right-card {
  grid-template-columns: 76px minmax(0,1fr);
  gap: 18px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--yoko-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--yoko-shadow-sm);
}
body.yoko-native-template .yoko-dealer-right-card > span {
  width: 72px;
  height: 72px;
}
body.yoko-native-template .yoko-dealer-right-icon {
  width: 54px !important;
  height: 54px !important;
}
body.yoko-native-template .yoko-dealer-right-card h3 {
  margin: 2px 0 0;
  font-size: 20px !important;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}
body.yoko-native-template .yoko-dealer-right-card ul {
  margin: 14px 0 0 20px;
  font-size: 15px !important;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
}
body.yoko-native-template .yoko-dealer-step { padding: 24px; }
body.yoko-native-template .yoko-dealer-step h3 { font-size: 17px; }
body.yoko-native-template .yoko-dealer-step p { font-size: 14px !important; line-height: 1.6; }
body.yoko-native-template .yoko-dealer-preparation__grid article { padding: 20px; }
body.yoko-native-template .yoko-dealer-preparation__grid strong { font-size: 14px; }
body.yoko-native-template .yoko-dealer-preparation__grid small { font-size: 13px; line-height: 1.5; }
body.yoko-native-template .yoko-dealer-tier-table {
  font-size: 15px !important;
  line-height: 1.5;
}
body.yoko-native-template .yoko-dealer-tier-table th,
body.yoko-native-template .yoko-dealer-tier-table td { padding: 18px 16px; }
body.yoko-native-template .yoko-dealer-tier-table thead strong { font-size: 15px !important; }
body.yoko-native-template .yoko-dealer-tier-table thead small { font-size: 13px; }
body.yoko-native-template .yoko-dealer-testimonial {
  padding: 24px;
  overflow: hidden;
}
body.yoko-native-template .yoko-dealer-testimonial blockquote {
  font-size: 15px !important;
  line-height: 1.7;
}
body.yoko-native-template .yoko-dealer-testimonial:not(:has(img)) {
  grid-template-columns: 1fr;
}
body.yoko-native-template .yoko-dealer-avatar-placeholder { display: none !important; }

/* Partner lead: icon/image is anchored to the left and never peeks outside. */
body.yoko-native-template .yoko-dealer-lead__box {
  overflow: hidden;
  border-radius: 18px;
}
body.yoko-native-template .yoko-dealer-lead__intro {
  grid-template-columns: 78px minmax(0,1fr) !important;
  align-items: start;
  gap: 20px !important;
  min-width: 0;
}
body.yoko-native-template .yoko-dealer-lead__image {
  width: 78px;
  min-width: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible;
}
body.yoko-native-template .yoko-dealer-lead__image > img:not(.yoko-icon) {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
}
body.yoko-native-template .yoko-dealer-gift-icon {
  width: 68px !important;
  height: 68px !important;
  margin: 0 !important;
}
body.yoko-native-template .yoko-dealer-lead__intro h2 {
  margin: 0;
  font-size: clamp(28px,2.4vw,38px) !important;
  line-height: 1.2;
}
body.yoko-native-template .yoko-dealer-lead__intro p,
body.yoko-native-template .yoko-dealer-lead__intro li { font-size: 15px; line-height: 1.65; }

/* Slider dots are only shown on mobile. */
.yoko-dealer-slider-dots { display: none; }

/* =========================================================
   5. Consistent inner padding on boxed content
   ========================================================= */
body.yoko-native-template main :where(
  .yoko-dealer-intro-card,.yoko-dealer-right-card,.yoko-dealer-step,
  .yoko-dealer-tier-card,.yoko-dealer-testimonial,.yoko-sales-grid>article,
  .yoko-content-card,.yoko-policy-card,.yoko-guide-card
) > :first-child { margin-top: 0; }
body.yoko-native-template main :where(
  .yoko-dealer-intro-card,.yoko-dealer-right-card,.yoko-dealer-step,
  .yoko-dealer-tier-card,.yoko-dealer-testimonial,.yoko-sales-grid>article
) :where(h2,h3,p,ul,blockquote) { max-width: 100%; }

/* =========================================================
   6. Mobile audit
   ========================================================= */
@media (max-width: 1199px) {
  body.yoko-pdp-php-template .yoko-pdp__hero {
    grid-template-columns: minmax(0,1fr);
  }
  body.yoko-pdp-php-template .yoko-summary { position: static; }
  body.yoko-native-template .yoko-sales-assurance {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.yoko-native-template .yoko-sales-assurance__copy { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body.yoko-native-template,
  body.yoko-pdp-php-template {
    --yoko-page-gutter: 16px;
  }

  /* Product detail */
  body.yoko-pdp-php-template .yoko-pdp__container { padding: 12px 0 48px !important; }
  body.yoko-pdp-php-template .yoko-pdp__breadcrumb { margin-bottom: 14px; }
  body.yoko-pdp-php-template .yoko-pdp__hero { gap: 26px; }
  body.yoko-pdp-php-template .yoko-gallery__stage { aspect-ratio: 1 / 1.18; border-radius: 14px; }
  body.yoko-pdp-php-template main .yoko-summary__title {
    max-width: none;
    font-size: clamp(28px, 8.5vw, 36px) !important;
  }
  body.yoko-pdp-php-template .yoko-summary__meta { align-items: flex-start; }
  body.yoko-pdp-php-template .yoko-summary__rating { width: 100%; }
  body.yoko-pdp-php-template .yoko-quick-service,
  body.yoko-pdp-php-template .yoko-policy-strip { grid-template-columns: 1fr 1fr; }
  body.yoko-pdp-php-template .yoko-quick-service__item,
  body.yoko-pdp-php-template .yoko-policy-strip > div { padding: 16px 14px; }

  /* Sales policy */
  body.yoko-native-template .yoko-sales-cta {
    gap: 22px;
    padding: 26px 22px !important;
  }
  body.yoko-native-template .yoko-sales-cta h2 { font-size: 28px !important; }
  body.yoko-native-template .yoko-sales-assurance {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px 14px !important;
    border-radius: 14px;
  }
  body.yoko-native-template .yoko-sales-assurance__copy {
    grid-column: 1 / -1;
    padding: 8px 4px 14px !important;
  }
  body.yoko-native-template .yoko-sales-assurance article {
    min-height: 150px;
    padding: 16px 10px;
  }

  /* Dealer intro cards: one card per row for readable copy. */
  body.yoko-native-template .yoko-dealer-intro-cards__grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  body.yoko-native-template .yoko-dealer-intro-card {
    grid-template-columns: minmax(0,1fr) 64px;
    min-height: 0;
    gap: 14px;
    padding: 20px;
  }
  body.yoko-native-template .yoko-dealer-intro-card h2 { font-size: 21px !important; }
  body.yoko-native-template .yoko-dealer-intro-card p { font-size: 15px !important; }
  body.yoko-native-template .yoko-dealer-card-icon { width: 58px !important; height: 58px !important; }

  /* Every dealer right is one full-width row: icon left, text right. */
  body.yoko-native-template .yoko-dealer-rights__grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  body.yoko-native-template .yoko-dealer-right-card {
    grid-template-columns: 68px minmax(0,1fr) !important;
    min-height: 0;
    gap: 16px;
    padding: 20px !important;
  }
  body.yoko-native-template .yoko-dealer-right-card > span { width: 64px; height: 64px; }
  body.yoko-native-template .yoko-dealer-right-icon { width: 48px !important; height: 48px !important; }
  body.yoko-native-template .yoko-dealer-right-card h3 {
    font-size: 20px !important;
    line-height: 1.3;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  body.yoko-native-template .yoko-dealer-right-card ul {
    margin: 12px 0 0 18px;
    font-size: 15px !important;
    line-height: 1.6;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* Tier policy becomes one readable card at a time. */
  body.yoko-native-template .yoko-dealer-tier-table-wrap { display: none; }
  body.yoko-native-template .yoko-dealer-tier-tabs { display: flex; gap: 8px; padding-bottom: 8px; }
  body.yoko-native-template .yoko-dealer-tier-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 15px; font-size: 14px !important; }
  body.yoko-native-template .yoko-dealer-tier-cards { display: block; }
  body.yoko-native-template .yoko-dealer-tier-card {
    padding: 22px !important;
    font-size: 15px;
  }
  body.yoko-native-template .yoko-dealer-tier-card h3 { font-size: 21px !important; }
  body.yoko-native-template .yoko-dealer-tier-card dl div { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  body.yoko-native-template .yoko-dealer-tier-card :where(dt,dd) { font-size: 14px; line-height: 1.5; }

  /* Partner section is a genuine mobile slider, not compressed columns. */
  body.yoko-native-template .yoko-dealer-partners__top {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  body.yoko-native-template .yoko-dealer-metrics,
  body.yoko-native-template .yoko-dealer-logos,
  body.yoko-native-template .yoko-dealer-testimonials {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 1fr);
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 10px;
    scrollbar-width: none;
  }
  body.yoko-native-template .yoko-dealer-metrics::-webkit-scrollbar,
  body.yoko-native-template .yoko-dealer-logos::-webkit-scrollbar,
  body.yoko-native-template .yoko-dealer-testimonials::-webkit-scrollbar { display: none; }
  body.yoko-native-template .yoko-dealer-metrics > *,
  body.yoko-native-template .yoko-dealer-logos > *,
  body.yoko-native-template .yoko-dealer-testimonials > * { scroll-snap-align: start; }
  body.yoko-native-template .yoko-dealer-metrics article {
    min-height: 112px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--yoko-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--yoko-shadow-sm);
  }
  body.yoko-native-template .yoko-dealer-logos span {
    min-height: 88px;
    width: auto;
  }
  body.yoko-native-template .yoko-dealer-testimonial {
    min-height: 210px;
    grid-template-columns: 1fr !important;
    padding: 22px;
  }
  body.yoko-native-template .yoko-dealer-testimonial img { display: none; }
  .yoko-dealer-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .yoko-dealer-slider-dots button {
    width: 9px;
    height: 9px;
    min-height: 9px !important;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: #d9c9e4;
  }
  .yoko-dealer-slider-dots button.is-active { width: 24px; border-radius: 999px; background: var(--yoko-primary); }

  /* Partner lead icon locked to the left. */
  body.yoko-native-template .yoko-dealer-lead__box { padding: 22px 18px !important; }
  body.yoko-native-template .yoko-dealer-lead__intro {
    grid-template-columns: 62px minmax(0,1fr) !important;
    gap: 14px !important;
  }
  body.yoko-native-template .yoko-dealer-lead__image { width: 62px; min-width: 62px; }
  body.yoko-native-template .yoko-dealer-gift-icon,
  body.yoko-native-template .yoko-dealer-lead__image > img:not(.yoko-icon) {
    width: 58px !important;
    height: 58px !important;
  }
  body.yoko-native-template .yoko-dealer-lead__intro h2 { font-size: 24px !important; }
}

@media (max-width: 420px) {
  body.yoko-native-template .yoko-sales-assurance { grid-template-columns: 1fr; }
  body.yoko-native-template .yoko-sales-assurance__copy { grid-column: 1; }
  body.yoko-pdp-php-template .yoko-quick-service,
  body.yoko-pdp-php-template .yoko-policy-strip { grid-template-columns: 1fr; }
}
