/* Animate a measured block height. This avoids Safari's intermittent grid-row
 * repaint flash and keeps the footer stable while switching sections. */
@media (max-width: 767px) {
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] :is(.egs-footer-panel, .egs-footer-legal) {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    will-change: max-height;
    overflow-anchor: none;
    transition: max-height 280ms cubic-bezier(.2, .72, .22, 1) !important;
  }
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] .is-open > :is(.egs-footer-panel, .egs-footer-legal) {
    max-height: var(--elika-footer-panel-height, 720px) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: max-height 280ms cubic-bezier(.2, .72, .22, 1) !important;
  }
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] .elika-footer-reveal {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] .elika-footer-reveal-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 0 24px !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] .egs-footer-legal .elika-footer-reveal-content {
    gap: 12px !important;
    padding: 0 24px 24px !important;
  }
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] .egs-footer-toggle b {
    transition: transform 340ms cubic-bezier(.2, .72, .22, 1) !important;
  }
}
/* These wrappers are animation-only: preserve the desktop footer structure. */
@media (min-width: 768px) {
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] :is(.elika-footer-reveal, .elika-footer-reveal-content) {
    display: contents !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body #elika-global-shell-footer#elika-global-shell-footer[data-elika-motion="9612"] :is(.egs-footer-panel, .egs-footer-legal, .egs-footer-toggle b) {
    transition: none !important;
  }
}
