/* Decorative layers only. The resting state is visible with or without JS. */
[data-cc-depth-active] {
  translate: 0 var(--cc-scene-y, 0px);
  scale: var(--cc-scene-scale, 1);
  transition:
    translate 180ms cubic-bezier(0.2, 0.7, 0.3, 1),
    scale 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Opt-in feedback for actions: a small press, with no perpetual movement. */
.cc-tactile-action {
  transition:
    scale var(--cc-duration-fast, 160ms) var(--cc-ease, ease),
    box-shadow var(--cc-duration-fast, 160ms) var(--cc-ease, ease),
    background-color var(--cc-duration-fast, 160ms) var(--cc-ease, ease);
}
.cc-tactile-action:active:not(:disabled) {
  scale: 0.975;
}
.cc-tactile-action:focus-visible {
  box-shadow: var(--cc-focus);
}

:is(
    [data-motion="paused"],
    [data-ff-motion="off"],
    [data-ml-motion="paused"],
    .ff-preview-paused
  )
  [data-cc-depth-active],
[data-cc-depth-active]:is(
  [data-motion="paused"],
  [data-ff-motion="off"],
  [data-ml-motion="paused"],
  .ff-preview-paused
) {
  translate: none;
  scale: none;
  transition: none;
}
:is([data-motion="paused"], [data-ff-motion="off"], .ff-preview-paused)
  .cc-tactile-action {
  scale: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-cc-depth-active],
  .cc-tactile-action {
    translate: none;
    scale: none;
    transition: none;
  }
}
