/* One motion vocabulary, derived from the resin catalogue. JS adds opt-in
   attributes; nothing in this sheet changes resting spacing/type/colour. */
html.leyi-site-motion {
  --lm-ease: cubic-bezier(.22,.68,.2,1);
  --lm-fast: 160ms;
  --lm-action: 220ms;
  --lm-card: 280ms;
}
html.leyi-site-motion [data-lm] {
  touch-action: manipulation;
  will-change: auto;
}
html.leyi-site-motion [data-lm="button"] {
  transition: transform var(--lm-action) var(--lm-ease), color var(--lm-fast) ease,
    background-color var(--lm-fast) ease, border-color var(--lm-fast) ease,
    box-shadow var(--lm-action) ease, filter var(--lm-fast) ease !important;
}
html.leyi-site-motion [data-lm="chip"] {
  transition: color var(--lm-fast) ease, background-color var(--lm-fast) ease,
    border-color var(--lm-fast) ease, box-shadow var(--lm-fast) ease, transform var(--lm-fast) var(--lm-ease) !important;
}
html.leyi-site-motion :is([data-lm="text"], [data-lm="link"], [data-lm="entry"]) {
  transform: none !important;
  translate: none !important;
  scale: none !important;
  transition: color var(--lm-fast) ease, background-color var(--lm-action) ease,
    border-color var(--lm-fast) ease, opacity var(--lm-fast) ease,
    text-decoration-color var(--lm-action) ease !important;
}
html.leyi-site-motion [data-lm-arrow] {
  display: inline-block;
  transition: transform var(--lm-action) var(--lm-ease) !important;
}
html.leyi-site-motion [data-lm="text"]::after {
  transition: transform var(--lm-action) var(--lm-ease) !important;
}
html.leyi-site-motion [data-lm="card"] {
  transform: none;
  scale: none !important;
  transition: translate var(--lm-card) var(--lm-ease), box-shadow var(--lm-card) ease,
    border-color var(--lm-card) ease !important;
}
html.leyi-site-motion [data-lm-image] {
  transition: transform var(--lm-card) var(--lm-ease) !important;
}
html.leyi-site-motion [data-lm-icon] {
  transition: transform var(--lm-action) var(--lm-ease) !important;
}
html.leyi-site-motion [data-lm="field"] {
  transition: border-color var(--lm-fast) ease, box-shadow var(--lm-action) ease,
    background-color var(--lm-fast) ease !important;
}
html.leyi-site-motion [data-lm="field"]:focus:not(.bad):not([aria-invalid="true"]):not(:disabled) {
  border-color: #1e5bd8;
  box-shadow: 0 0 0 3px rgb(30 91 216 / 10%);
}
html.leyi-site-motion [data-lm]:focus-visible {
  outline: 2px solid #8fb3ff;
  outline-offset: 3px;
}
html.leyi-site-motion [data-lm="card"]:focus-within { translate: 0 -4px; }
html.leyi-site-motion [data-lm="text"]:focus-visible [data-lm-arrow="right"] { transform: translateX(4px) !important; }
html.leyi-site-motion [data-lm="text"]:focus-visible [data-lm-arrow="down"] { transform: translateY(4px) !important; }

@media (hover: hover) and (pointer: fine) {
  html.leyi-site-motion [data-lm="button"]:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.dis):not(.is-disabled):not(.is-loading):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgb(30 91 216 / 18%) !important;
    opacity: 1 !important;
    filter: brightness(.94) !important;
  }
  html.leyi-site-motion [data-lm="button"][data-lm-outline]:not(:disabled):hover { border-color: #1e5bd8 !important; }
  html.leyi-site-motion :is([data-lm="text"], [data-lm="button"], [data-lm="card"], [data-lm="entry"]):hover [data-lm-arrow="right"] { transform: translateX(4px) !important; }
  html.leyi-site-motion :is([data-lm="text"], [data-lm="button"]):hover [data-lm-arrow="down"] { transform: translateY(4px) !important; }
  html.leyi-site-motion [data-lm="text"]:hover::after { transform: translateX(4px) !important; }
  html.leyi-site-motion [data-lm="link"]:hover { text-decoration-line: underline; text-decoration-color: currentColor; }
  html.leyi-site-motion [data-lm="card"]:is(:hover, :active, :focus-visible) { transform: none !important; }
  html.leyi-site-motion [data-lm="card"]:hover { translate: 0 -4px !important; }
  html.leyi-site-motion [data-lm="card"]:hover [data-lm-image] { transform: scale(1.03) !important; }
  html.leyi-site-motion [data-lm="entry"]:hover [data-lm-icon] { transform: translateY(-3px) !important; }
  html.leyi-site-motion [data-lm="entry"]:hover { background-color: rgb(143 179 255 / 10%); }
}
html.leyi-site-motion :is([data-lm="button"], [data-lm="chip"]):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.dis):not(.is-disabled):not(.is-loading):active {
  transform: scale(.98) !important;
  transition-duration: 90ms !important;
}
html.leyi-site-motion [data-lm="entry"]:active [data-lm-icon] { transform: scale(.96) !important; }
html.leyi-site-motion [data-lm="text"]:active { opacity: .72; }
html.leyi-site-motion [data-lm="button"]:is(:disabled,[aria-disabled="true"],[aria-busy="true"],.dis,.is-disabled,.is-loading) {
  transform: none !important;
}
html.leyi-site-motion [data-lm="button"]:is(:disabled,[aria-disabled="true"],[aria-busy="true"],.dis,.is-disabled,.is-loading) [data-lm-arrow] { transform: none !important; }

/* Native details keep their summary, content, fonts and spacing. A flow-root
   only contains answer margins for exact measured-height interruption. */
html.leyi-site-motion [data-lm-disclosure] { overflow-anchor: none; }
html.leyi-site-motion .lm-answer { display: flow-root; }
html.leyi-site-motion .lm-answer > .dmf03-faq-answer {
  height: auto !important; opacity: 1 !important; overflow: visible;
  pointer-events: auto !important; transition: none !important;
}
html.leyi-site-motion [data-lm-disclosure] > summary {
  transition: color var(--lm-fast) ease, background-color var(--lm-action) ease !important;
}
html.leyi-site-motion [data-lm-disclosure] > summary [data-lm-fold-icon] {
  display: inline-block;
  transition: transform var(--lm-card) var(--lm-ease) !important;
}
html.leyi-site-motion [data-lm-disclosure] > summary[aria-expanded="false"] [data-lm-fold-icon] { transform: rotate(0deg) !important; }
html.leyi-site-motion [data-lm-disclosure] > summary[aria-expanded="true"] [data-lm-fold-icon="plus"] { transform: rotate(45deg) !important; }
html.leyi-site-motion [data-lm-disclosure] > summary[aria-expanded="true"] [data-lm-fold-icon="arrow"] { transform: rotate(90deg) !important; }
html.leyi-site-motion [data-lm-disclosure] > summary[aria-expanded="true"] [data-lm-fold-icon="chevron"] { transform: rotate(180deg) !important; }

/* Keep each existing top-button threshold. [hidden] becomes a fade, but is
   immediately inert, invisible to AT and unable to catch pointer events. */
html.leyi-site-motion [data-lm="top"] {
  transition: opacity var(--lm-action) ease, translate var(--lm-action) var(--lm-ease),
    transform var(--lm-action) var(--lm-ease), visibility 0s var(--lm-action) !important;
}
html.leyi-site-motion [data-lm="top"][hidden] {
  display: flex !important; opacity: 0 !important; visibility: hidden !important;
  pointer-events: none !important; translate: 0 8px !important;
}
html.leyi-site-motion [data-lm="top"]:not([hidden]) { transition-delay: 0s !important; }
@media (hover: hover) and (pointer: fine) {
  html.leyi-site-motion [data-lm="top"]:hover { transform: translateY(-3px) !important; }
}
html.leyi-site-motion [data-lm="top"]:active { transform: scale(.94) !important; transition-duration: 90ms !important; }
@media (hover: none), (pointer: coarse) {
  html.leyi-site-motion :is([data-lm="button"], [data-lm="card"], [data-lm="top"]):not(:active),
  html.leyi-site-motion :is([data-lm-arrow], [data-lm-image], [data-lm-icon]) {
    transform: none !important;
  }
  html.leyi-site-motion [data-lm="card"] { translate: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.leyi-site-motion { scroll-behavior: auto !important; }
  html.leyi-site-motion :is([data-lm], [data-lm]::after, [data-lm-arrow], [data-lm-image], [data-lm-icon], [data-lm-fold-icon], [data-lm-disclosure] > summary) {
    transition: none !important; animation: none !important;
  }
  html.leyi-site-motion :is([data-lm], [data-lm]::after, [data-lm-arrow], [data-lm-image], [data-lm-icon]) {
    transform: none !important; translate: none !important; scale: none !important;
  }
}

/* The product-page sticky sample button is a link too: keep its own show/hide slide, otherwise the reset above
   leaves it on screen all the time and it covers the hero and the footer on phones. */
@media (max-width: 760px) {
	html.leyi-site-motion .leyi-dmf03-v2__root .dmf03-sticky-cta { transform: translateY(140%) !important; }
	html.leyi-site-motion .leyi-dmf03-v2__root .dmf03-sticky-cta.is-on { transform: none !important; }
}
