/* base: site-kit/corner-stack @ a43c4eb (1.1.0), copied 2026-11-25. Do not edit; themed through --kit-* tokens in site.css. */
/* site-kit corner-stack 1.1.0. Keeps things fixed in the bottom corner (a chat launcher,
   its tip, back-to-top) above the phone tab bar, and lets them ride down with the bar
   when it tucks, so nothing floats over an empty gap. CSS only; component.js is optional
   (step aside, below).

   Use: add class="kit-corner" and set --kit-corner-offset, the gap in px above the bar.
     <button class="to-top kit-corner" style="--kit-corner-offset: 90px">
   Opt out of riding (it then stays put above where the bar was): data-kit-ride="off".
   If the element has its own transitions, list them in --kit-corner-transition so the
   ride does not wipe them out, e.g. --kit-corner-transition: opacity .3s ease.
   Load this file AFTER the site's own CSS: its phone bottom rule has the same
   specificity as a plain .to-top { bottom: 24px }, so the later one wins. */

.kit-corner {
  --kit-corner-step: 0px;   /* the step-aside drop, 0 unless html.kit-corner-clear */
  translate: 0 var(--kit-corner-step);
  transition: translate .42s var(--kit-ease, cubic-bezier(.16, 1, .3, 1)), var(--kit-corner-transition, opacity .25s ease);
}

/* Same breakpoint as tabbar/component.css; edit both together. */
@media (max-width: 859px) {
  .kit-corner { bottom: calc(var(--kit-tabbar-h, 0px) + var(--kit-corner-offset, 16px)); }
  html.kit-tb-js:not(.kit-tb-up) .kit-corner:not([data-kit-ride="off"]) { translate: 0 calc(var(--kit-tabbar-h, 0px) + var(--kit-corner-step)); }
}

/* Step aside (1.1.0). component.js puts .kit-corner-clear on <html> while a control the corner
   would cover (the wheel's arrows, anything marked data-kit-float-clear) sits in the bottom band
   of a phone screen; the width cap and the band live in the script, so this rule has no @media.
   Items fade and drop a little, and cannot be tapped, so the tap reaches the control underneath.
   Not an item holding focus (a keyboard visitor keeps what they are on), not data-kit-step="off".
   The fade runs on --kit-corner-transition: keep opacity in it. */
html.kit-corner-clear .kit-corner:not([data-kit-step="off"]):not(:focus-within) {
  --kit-corner-step: 14px; opacity: 0; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .kit-corner { transition: var(--kit-corner-transition, opacity .25s ease); }
  html.kit-corner-clear .kit-corner:not([data-kit-step="off"]):not(:focus-within) { --kit-corner-step: 0px; }
}
