/**
 * Одна вертикальная линия текста (эталон sk-mission__kicker) на всех витринах.
 * После spruce-rose / tablet-pages — снимает flex-end и двойные gutters.
 */

/* Миссия: текст слева, не flex-end */
html body.sk-gems:not(.woocommerce-account) .sk-home__main > .sk-mission,
html body.sk-gems:not(.woocommerce-account) .sk-shop__main > .sk-mission,
html body.sk-gems .sk-travelpage .sk-mission,
html body.sk-gems .sk-cookpage .sk-mission,
html body.sk-gems .sk-lifepage .sk-mission,
html body.sk-gems .sk-sportpage .sk-mission,
html body.sk-gems .sk-worldpage .sk-mission,
html body.sk-gems .sk-missionpage .sk-mission {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

html body.sk-gems .sk-mission__copy {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html body.sk-gems .sk-mission .sk-shopbar__world,
html body.sk-gems .sk-mission .sk-worldpage__join,
html body.sk-gems .sk-mission > .sk-mission__cta {
  align-self: flex-start !important;
  margin-left: 0 !important;
}

html body.sk-gems .sk-shopbar__mark,
html body.sk-gems .sk-shopbar__mark--official-gold {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
}

html body.sk-gems .sk-queries__title,
html body.sk-gems .sk-viewed__title,
html body.sk-gems .sk-sisters__title {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

html body.sk-gems .sk-mood-quiz__title,
html body.sk-gems .sk-mood-quiz__intro .sk-kicker {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 1023px) {
  html body.sk-gems {
    --sk-vitrine-pad: 20px;
  }

  /* Один gutter: на блоках, не на обёртке (без двойного 16+16) */
  html body.sk-gems:not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart)
    .site-content > .ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body.sk-gems .sk-home__stage,
  html body.sk-gems .sk-shop__stage,
  html body.sk-gems .sk-home__main,
  html body.sk-gems .sk-shop__main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Сброс spruce 24px; единый текстовый отступ слева на витрине */
  html body.sk-gems .sk-mission,
  html body.sk-gems .sk-shopbar,
  html body.sk-gems .sk-page-proof,
  html body.sk-gems .sk-portal-proof,
  html body.sk-gems .sk-mood-quiz,
  html body.sk-gems .sk-tv-landing-cards,
  html body.sk-gems .sk-travelpage__menu,
  html body.sk-gems .sk-travelpage__how,
  html body.sk-gems .sk-travelpage__routes,
  html body.sk-gems .sk-travelpage__bot,
  html body.sk-gems .sk-travelpage__evening,
  html body.sk-gems .sk-cookpage__menu,
  html body.sk-gems .sk-cookpage__how,
  html body.sk-gems .sk-lifepage__menu,
  html body.sk-gems .sk-sportpage__menu,
  html body.sk-gems .sk-worldpage__block,
  html body.sk-gems .sk-world-pets,
  html body.sk-gems .sk-story,
  html body.sk-gems .sk-viewed,
  html body.sk-gems .sk-queries,
  html body.sk-gems .sk-sisters,
  html body.sk-gems .sk-side-banners,
  html body.sk-gems .sk-rail-extras,
  html body.sk-gems .sk-rail-proof-stack,
  html body.sk-gems:not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart)
    .sk-home__main > :not(.sk-hero),
  html body.sk-gems:not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart)
    .sk-shop__main > :not(.sk-hero):not(.sk-catalog-hero),
  html body.sk-gems:not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart)
    .sk-home > .sk-shopbar,
  html body.sk-gems:not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart)
    .sk-worldpage > .sk-shopbar {
    padding-left: var(--sk-vitrine-pad, 16px) !important;
    padding-right: var(--sk-vitrine-pad, 16px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  html body.sk-gems .sk-shopbar__mark,
  html body.sk-gems .sk-shopbar__mark--official-gold {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Обёртка portal-proof: gutter снаружи, не на каждой панели */
  html body.sk-gems .sk-portal-proof,
  html body.sk-gems .sk-rail-extras--flow.sk-page-proof {
    padding: 0 var(--sk-vitrine-pad, 20px) !important;
    gap: 12px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.sk-gems .sk-portal-proof > .sk-side-reviews,
  html body.sk-gems .sk-portal-proof > .sk-side-buys,
  html body.sk-gems .sk-rail-extras--flow > .sk-side-reviews,
  html body.sk-gems .sk-rail-extras--flow > .sk-side-buys,
  html body.sk-gems .sk-home__main > .sk-side-reviews,
  html body.sk-gems .sk-home__main > .sk-side-buys,
  html body.sk-gems .sk-shop__main > .sk-side-reviews,
  html body.sk-gems .sk-shop__main > .sk-side-buys {
    padding: 18px var(--sk-vitrine-pad, 20px) 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body.sk-gems .sk-side-banners .sk-side-reviews,
  html body.sk-gems .sk-side-banners .sk-side-buys {
    padding: 12px 14px 10px !important;
  }

  /* Виртуальные окна — та же золотая панель, что у travel-блоков */
  html body.sk-gems .sk-home__main > .sk-tv-landing-cards,
  html body.sk-gems .sk-shop__main > .sk-tv-landing-cards,
  html body.sk-gems .sk-travelpage .sk-tv-landing-cards {
    padding: 18px var(--sk-vitrine-pad, 20px) 16px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.65) !important;
    background: linear-gradient(165deg, #fffdf6 0%, #f7ecd0 55%, #efe3c0 100%) !important;
    box-sizing: border-box !important;
    box-shadow:
      0 0 0 1px rgba(255, 246, 212, 0.75) inset,
      0 0 0 1px rgba(212, 175, 55, 0.35) !important;
  }

  html body.sk-gems .sk-tv-landing-cards .sk-tv-intro,
  html body.sk-gems .sk-tv-landing-cards .sk-worldpage__kicker {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Prefooter вне #primary: один gutter на обёртке (после pad-lock в home-fast.php) */
  html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .ast-container.sk-prefooter-rail {
    padding-left: var(--sk-vitrine-pad, 20px) !important;
    padding-right: var(--sk-vitrine-pad, 20px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .sk-prefooter-rail > .sk-viewed,
  html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .sk-prefooter-rail > .sk-queries,
  html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .sk-prefooter-rail > .sk-sisters {
    padding: 14px 20px 12px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.65) !important;
    background: linear-gradient(165deg, #fffdf6 0%, #f7ecd0 55%, #efe3c0 100%) !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  html body.sk-gems .sk-viewed__inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Золотые панели: текст не в край рамки (все витрины) */
  html body.sk-gems .sk-portal-proof > .sk-side-reviews,
  html body.sk-gems .sk-portal-proof > .sk-side-buys,
  html body.sk-gems .sk-rail-extras--flow > .sk-side-reviews,
  html body.sk-gems .sk-rail-extras--flow > .sk-side-buys,
  html body.sk-gems .sk-page-proof > .sk-side-reviews,
  html body.sk-gems .sk-page-proof > .sk-side-buys,
  html body.sk-gems .sk-page-proof > [class*='__reviews'],
  html body.sk-gems .sk-page-proof > [class*='__buys'],
  html body.sk-gems .sk-home__main > .sk-side-reviews,
  html body.sk-gems .sk-home__main > .sk-side-buys,
  html body.sk-gems .sk-shop__main > .sk-side-reviews,
  html body.sk-gems .sk-shop__main > .sk-side-buys,
  html body.sk-gems .sk-travelpage__reviews,
  html body.sk-gems .sk-travelpage__buys,
  html body.sk-gems .sk-travelpage__how,
  html body.sk-gems .sk-travelpage__routes,
  html body.sk-gems .sk-travelpage__bot,
  html body.sk-gems .sk-travelpage__evening,
  html body.sk-gems .sk-cookpage__reviews,
  html body.sk-gems .sk-cookpage__buys,
  html body.sk-gems .sk-cookpage__how,
  html body.sk-gems .sk-cookpage__pairs,
  html body.sk-gems .sk-cookpage__bot,
  html body.sk-gems .sk-cookpage__evening,
  html body.sk-gems .sk-lifepage__reviews,
  html body.sk-gems .sk-lifepage__buys,
  html body.sk-gems .sk-sportpage__reviews,
  html body.sk-gems .sk-sportpage__buys {
    padding-top: 18px !important;
    padding-right: 20px !important;
    padding-bottom: 16px !important;
    padding-left: 20px !important;
    box-sizing: border-box !important;
  }

  @media (min-width: 768px) {
    html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .ast-container.sk-prefooter-rail {
      margin-left: 16px !important;
      margin-right: 16px !important;
    }
  }

  html body.sk-gems .sk-mood-quiz__panel,
  html body.sk-gems .sk-mood-quiz__card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 767px) {
  html body.sk-gems {
    --sk-vitrine-pad: 22px;
  }

  html body.sk-gems .sk-portal-proof > .sk-side-reviews,
  html body.sk-gems .sk-portal-proof > .sk-side-buys,
  html body.sk-gems .sk-rail-extras--flow > .sk-side-reviews,
  html body.sk-gems .sk-rail-extras--flow > .sk-side-buys,
  html body.sk-gems .sk-page-proof > .sk-side-reviews,
  html body.sk-gems .sk-page-proof > .sk-side-buys,
  html body.sk-gems .sk-page-proof > [class*='__reviews'],
  html body.sk-gems .sk-page-proof > [class*='__buys'],
  html body.sk-gems .sk-home__main > .sk-tv-landing-cards,
  html body.sk-gems .sk-shop__main > .sk-tv-landing-cards,
  html body.sk-gems .sk-travelpage__reviews,
  html body.sk-gems .sk-travelpage__buys,
  html body.sk-gems .sk-travelpage__how,
  html body.sk-gems .sk-travelpage__routes,
  html body.sk-gems .sk-travelpage__bot,
  html body.sk-gems .sk-travelpage__evening,
  html body.sk-gems .sk-cookpage__reviews,
  html body.sk-gems .sk-cookpage__buys,
  html body.sk-gems .sk-cookpage__how,
  html body.sk-gems .sk-cookpage__pairs,
  html body.sk-gems .sk-cookpage__bot,
  html body.sk-gems .sk-cookpage__evening,
  html body.sk-gems .sk-lifepage__reviews,
  html body.sk-gems .sk-lifepage__buys,
  html body.sk-gems .sk-sportpage__reviews,
  html body.sk-gems .sk-sportpage__buys,
  html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .sk-prefooter-rail > .sk-viewed,
  html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .sk-prefooter-rail > .sk-queries,
  html body.sk-gems:not(.woocommerce-checkout):not(.woocommerce-cart) .sk-prefooter-rail > .sk-sisters {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}