/* =========================================================================
   Ballet replica — additive interaction, motion and accessibility styles
   The captured design bundles stay untouched; these rules make the static
   build's interactions resilient and progressively enhanced.
   ========================================================================= */

/* --- buy box ------------------------------------------------------------ */
.shopify-module--galleryMain--72687 img { transition: opacity .28s ease; }
.shopify-module--galleryMain--72687 img.is_swapping { animation: bl-img-swap .34s ease; }
@keyframes bl-img-swap { from { opacity: .35; } to { opacity: 1; } }

.shopify-module--row--53625:focus-visible,
.shopify-module--logoItem--a339c:focus-visible,
.shopify-module--packBtn--321f9:focus-visible,
.homepage_manage_cell:focus-visible,
.homepage_faq_question:focus-visible,
.homepage_built_material_item:focus-visible {
  outline: 2px solid #eebf29;
  outline-offset: 3px;
  border-radius: 8px;
}

/* wrap onto a second line only once the input is revealed, so the resting
   height of the promo row stays identical to the reference (20px) */
.shopify-module--promoRow--5b74f { flex-wrap: wrap; }
.shopify-module--promoInputWrap {
  display: flex; gap: 8px; flex: 0 0 100%; width: 100%; margin-top: 10px;
}
.shopify-module--promoInput {
  flex: 1 1; background: #242425; border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; color: #fff; padding: 10px 12px; font-size: 14px;
  font-family: inherit; outline: none;
}
.shopify-module--promoInput:focus { border-color: #eebf29; }
.shopify-module--promoApply {
  background: #eebf29; border: 0; border-radius: 8px; color: #161617;
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 18px;
}
.shopify-module--promoApply:hover { background: #f6cc4a; }

.shopify-module--orderBtn--f6a22:disabled,
.shopify-module--orderBtn--f6a22.is_disabled { opacity: .45; cursor: not-allowed; }

.shopify-module--termsRow--c6880.shake { animation: bl-shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes bl-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

/* --- mobile accordion (header) ------------------------------------------ */
.ant-collapse-item-active .ant-collapse-arrow { transform: rotate(90deg); }
.ballet-layout .navbar .navbar-end .ant-collapse-header { cursor: pointer; }
.ant-collapse-item .select-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.ant-collapse-item-active .select-content { max-height: 1400px; }

/* --- newsletter local confirmation -------------------------------------- */
.newsletter-ok {
  color: #eebf29; font-family: Inter, sans-serif; font-size: 15px;
  line-height: 1.5; margin: 14px 0 0; text-align: center; width: 100%;
}

/* --- language dropdown --------------------------------------------------- */
.footer_languagebar_select .footer_languagebar_dropdown .ant-select-item-option,
.header_languagebar_select .header_languagebar_dropdown .ant-select-item-option {
  cursor: pointer; padding: 6px 10px; font-size: 14px; color: #fff;
}
.footer_languagebar_select .footer_languagebar_dropdown .ant-select-item-option:hover,
.header_languagebar_select .header_languagebar_dropdown .ant-select-item-option:hover {
  color: #eebf29;
}
.footer_languagebar_select { color: silver; }

/* Keep the seven social actions inside narrow phones instead of creating
   a document-wide horizontal scroll from the newsletter section. */
@media (max-width: 480px) {
  .homepage_subscribe_social {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  .homepage_subscribe_social li { flex: 0 0 50px; }
}

/* --- pinned intro safety ------------------------------------------------- */
.homepage_pinintro_stage { z-index: 1; }
.homepage_pinintro_slide { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .homepage_pinintro_slide { transition: opacity .3s ease !important; }
}

/* -------------------------------------------------------------------------
   gatsby-plugin-image runtime styles.
   The reference injects these from JS at runtime; this build is static, so
   they are reproduced here. Without them, images that use
   .gatsby-image-wrapper-constrained render at double height (the fallback
   <img> stacks under the main one instead of being absolutely positioned).
   Verified present on www.ballet.com via document.styleSheets (inline rules).
   ------------------------------------------------------------------------- */
.gatsby-image-wrapper { position: relative; overflow: hidden; }
.gatsby-image-wrapper picture.object-fit-polyfill { position: static !important; }
.gatsby-image-wrapper img { inset: 0px; height: 100%; margin: 0px; max-width: none; padding: 0px; position: absolute; width: 100%; object-fit: cover; }
.gatsby-image-wrapper [data-main-image] { opacity: 0; transform: translateZ(0px); transition: opacity 0.25s linear; will-change: opacity; }
.gatsby-image-wrapper-constrained { display: inline-block; vertical-align: top; }

/* --- cross-page motion -------------------------------------------------- */
/* Cross-document View Transitions are progressive enhancement: browsers
   without support keep the usual full-page navigation behaviour. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ballet-page-out .14s ease both; }
::view-transition-new(root) { animation: ballet-page-in .28s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes ballet-page-out { to { opacity: .78; } }
@keyframes ballet-page-in {
  from { opacity: .78; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

/* Pause the reference-style marquee whenever a visitor points at it or tabs
   into it. The JS marks only the repeated half as decorative for screen readers. */
.homepage_award_ticker:hover .homepage_award_ticker_track,
.homepage_award_ticker:focus .homepage_award_ticker_track,
.homepage_award_ticker:focus-within .homepage_award_ticker_track {
  animation-play-state: paused;
}
.homepage_award_ticker:focus-visible {
  outline: 2px solid #111f3e;
  outline-offset: -4px;
}

/* Reduced motion turns the pinned, scroll-scrubbed story into three calm
   static panels. This also works before JavaScript has started. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .homepage_award_ticker_track,
  .homepage_trust_photowall_track,
  .homepage_supportcoins_track {
    animation: none !important;
  }
  .homepage_pinintro { height: auto !important; }
  .homepage_pinintro_stage {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    top: auto !important;
  }
  .homepage_pinintro_slide,
  .homepage_pinintro_slide:first-child {
    display: block;
    inset: auto !important;
    min-height: clamp(34rem, 75svh, 52rem);
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    will-change: auto !important;
  }
  .homepage_pinintro_slide .homepage_noaccount,
  .homepage_pinintro_slide .homepage_advantage {
    height: auto !important;
    min-height: clamp(34rem, 75svh, 52rem);
  }
  .homepage_pinintro_slide .homepage_advantage_top,
  .homepage_pinintro_slide .homepage_advantage_desc {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
  .homepage_pinintro_slide .homepage_noaccount_phone {
    max-height: 58svh;
  }
}

/* Touch and keyboard interaction fallbacks for the legacy feature diagrams. */
.homepage_howitworks_diagram_wrap,
.homepage_howitworks_mdiagram_wrap {
  touch-action: manipulation;
}
.homepage_howitworks_diagram_wrap.is_open .homepage_howitworks_diagram_close {
  opacity: 0;
}
.homepage_howitworks_diagram_wrap.is_open .homepage_howitworks_diagram_open {
  opacity: 1;
}
.homepage_howitworks_diagram_wrap:focus-visible,
.homepage_howitworks_mdiagram_wrap:focus-visible {
  border-radius: 8px;
  outline: 2px solid #eebf29;
  outline-offset: 4px;
}
.homepage_built_card_flip {
  touch-action: manipulation;
}

/* Defer the large legacy-section artwork until visitors scroll near it. */
.homepage_legacy_bg,
.homepage_legacy_bg_mo {
  background-image: none !important;
}
.homepage_legacy_bg.is-bg-loaded,
.homepage_legacy_bg_mo.is-bg-loaded {
  background-image: var(--legacy-bg-image) !important;
}
