/* eSite | Author: PhDr. Pavel Bartoš, LL.M., DBA. | Version: 0.1.0-rc.5 */
body[data-animated-background] {
  isolation: isolate;
}
.esite-page-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
.esite-background-toggle {
  position: fixed;
  left: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  padding: 7px 10px;
  border: 1px solid #c8d4e5;
  border-radius: 20px;
  color: #29405f;
  background: #fffffff0;
  font:
    11px/1.3 system-ui,
    sans-serif;
  box-shadow: 0 2px 10px #1231;
  cursor: pointer;
}
.esite-floating-window {
  position: fixed;
  z-index: 55;
  width: min(var(--floating-width, 360px), calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #c9d5e7;
  border-radius: 16px;
  background: var(--paper, #fff);
  color: var(--ink, #142747);
  box-shadow: 0 16px 65px #14274730;
  margin: 0;
  font: 15px/1.6 var(--body-font, system-ui, sans-serif);
}
.esite-floating-window[hidden] {
  display: none !important;
}
.esite-floating-window[data-position='bottom-right'] {
  bottom: 20px;
  right: 20px;
}
.esite-floating-window[data-position='bottom-left'] {
  bottom: 55px;
  left: 20px;
}
.esite-floating-window[data-position='top-right'] {
  top: 20px;
  right: 20px;
}
.esite-floating-window[data-position='top-left'] {
  top: 20px;
  left: 20px;
}
.esite-floating-window[data-position='center'] {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.esite-floating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 17px;
  border-bottom: 1px solid #c9d5e780;
  background: color-mix(in srgb, var(--accent, #2563eb) 6%, var(--paper, #fff));
}
[data-movable='true'] .esite-floating-bar {
  cursor: move;
  touch-action: none;
  user-select: none;
}
.esite-floating-bar:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: -3px;
}
.esite-floating-bar strong {
  font-size: 15px;
}
.esite-floating-bar button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font:
    25px/1 system-ui,
    sans-serif;
  cursor: pointer;
  border-radius: 8px;
}
.esite-floating-bar button:hover {
  background: #14274712;
}
.esite-floating-content {
  padding: 17px;
}
.esite-floating-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.esite-floating-content p {
  margin: 0 0 12px;
  font-size: 15px;
}
@media print {
  .esite-page-background,
  .esite-floating-window,
  .esite-background-toggle {
    display: none !important;
  }
}
