/* Store badge: demo only, never in the buyer's edition (scripts/kestrane_store_badge.py).
   A slim tab on the left edge at mid-height, inside the page gutter; the right edge belongs to the scrollbars. */
.ukd-store-badge {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 40;                                   /* under the header (60), menus, strip (50), dock (45) and dialogs */
  display: flex;
  flex-direction: column-reverse;                /* the label reads upward: mark at its start, arrow at its end */
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  width: 22px;
  padding: 11px 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(13, 15, 23, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9);
  color: #F3F5FA;
  text-decoration: none;
  transform: translateY(-50%);
  transition: background-color .3s cubic-bezier(.2, .8, .2, 1), border-color .3s cubic-bezier(.2, .8, .2, 1);
}
/* the template's two-colour light as a fine line on the tab's outer edge */
.ukd-store-badge::after {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  right: -1px;
  width: 1px;
  background: linear-gradient(180deg, #3DE0FF, #FF3D81);
  opacity: .6;
  transition: opacity .3s cubic-bezier(.2, .8, .2, 1);
}
.ukd-store-badge:hover, .ukd-store-badge:focus-visible { background: rgba(27, 32, 51, .97); border-color: rgba(255, 255, 255, .26); }
.ukd-store-badge:hover::after, .ukd-store-badge:focus-visible::after { opacity: 1; }
.ukd-store-badge:focus-visible { outline: 2px solid #3DE0FF; outline-offset: 2px; }
.ukd-store-badge__mark { width: 13px; height: 13px; fill: none; stroke: #FF3D81; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ukd-store-badge__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 560 11.5px / 1 "Onest Variable", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ukd-store-badge__arrow { width: 12px; height: 12px; fill: none; stroke: #3DE0FF; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.ukd-store-badge:hover .ukd-store-badge__arrow,
.ukd-store-badge:focus-visible .ukd-store-badge__arrow { transform: translate(1.5px, -1.5px); }
.ukd-store-badge[hidden] { display: none; }
@media (max-width: 1100px) {
  .ukd-store-badge { width: 18px; border-radius: 0 8px 8px 0; }
  .ukd-store-badge__label { font-size: 11px; }
  .ukd-store-badge__mark, .ukd-store-badge__arrow { width: 11px; height: 11px; }
}
/* Phones: the gutter (16px) is too narrow for a tab that neither touches the content nor is too small to tap, so
   the link becomes a full-width row at the very end of the page, after the template's own footer. It covers
   nothing, and on dashboard pages it stays clear of the fixed bottom tab bar. */
@media (max-width: 640px) {
  .ukd-store-badge {
    position: static; transform: none; flex-direction: row; justify-content: center; gap: 10px;
    width: auto; min-height: 52px; margin: 8px 16px calc(20px + env(safe-area-inset-bottom)); padding: 0 18px;
    border-left: 1px solid rgba(255, 255, 255, .16); border-radius: 14px;
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  }
  .ukd-store-badge::after { top: auto; bottom: -1px; left: 18px; right: 18px; width: auto; height: 1px; background: linear-gradient(90deg, #FF3D81, #3DE0FF); }
  .ukd-store-badge__label { writing-mode: horizontal-tb; transform: none; font-size: 14px; letter-spacing: 0; }
  .ukd-store-badge__mark, .ukd-store-badge__arrow { width: 15px; height: 15px; }
  /* the dashboard footer already reserves 100px for the tab bar: the row moves up into that space */
  body:has(.tabbar) .ukd-store-badge { margin-top: -76px; margin-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ukd-store-badge, .ukd-store-badge::after, .ukd-store-badge__arrow { transition: none; }
  .ukd-store-badge:hover .ukd-store-badge__arrow, .ukd-store-badge:focus-visible .ukd-store-badge__arrow { transform: none; }
}
html[data-motion="reduce"] .ukd-store-badge, html[data-motion="reduce"] .ukd-store-badge::after, html[data-motion="reduce"] .ukd-store-badge__arrow { transition: none; }
html[data-motion="reduce"] .ukd-store-badge:hover .ukd-store-badge__arrow, html[data-motion="reduce"] .ukd-store-badge:focus-visible .ukd-store-badge__arrow { transform: none; }
