.tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translateX(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translateX(-5px)}

.tippy-box {
  border-radius: var(--border-radius);
  font-family: var(--system-font);
  color: var(--text-color);
  background-color: var(--white-color);
  -webkit-box-shadow: -5px 5px 20px 0px rgba(126,129,143,0.3);
  box-shadow: -5px 5px 20px 0px rgba(126,129,143,0.3);
}

.tippy-arrow {
  color: var(--white-color);
}

.tippy-arrow::before {
  border-color: rgba(0, 0, 0, 0.008);
}

.tippy-header {
  padding: 0.35rem 0 0.25rem 23px;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.tippy-close {
  padding: 0.425em 1.25em;
  font-size: large;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
}

.tippy-close > svg {
  pointer-events: none;
}

.tippy-content {
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--white-color);
}

.tippy-box .scrollable-container > .first-visible {
  margin-top: 0.35rem;
}

.tippy-box .scrollable-container > .last-visible {
  margin-bottom: 0.35rem;
}

.tippy-box .tippy-header + .scrollable-container > .first-visible {
  margin-top: 0 !important;
}

.no-touchevents .tippy-content {
  scrollbar-width: thin;
}

.no-touchevents .tippy-content::-webkit-scrollbar {
  width: 8px;
}

.no-touchevents .tippy-content::-webkit-scrollbar-track {
  background: var(--color-scrollbar-track);
}

.no-touchevents .tippy-content::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar-thumb);
}

/* menu */

.tippy-box[data-theme="menu"] .tippy-content {
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: 320px;
  /*max-height: 308px;*/
  font-size: 15px;
}

@media (min-width: 500px) {

  .tippy-box[data-theme="menu"] .tippy-content {
    max-width: 500px;
  }

}

.tippy-box[data-theme="menu"] .tippy-content ul {
  margin: 0;
}

.tippy-box[data-theme="menu"] .tippy-content ul li > :first-child {
  display: block;
  padding: 10px 23px;
  color: var(--text-color);
  text-decoration: none;
}

.tippy-box[data-theme="menu"] .tippy-content ul li > a:hover {
  background-color: var(--bg-color);
  color: var(--main-color);
}

.tippy-box[data-theme="menu"] .tippy-content ul.menu-icons li > a {
  padding-left: 15px;
}

.tippy-box[data-theme="menu"] .tippy-content ul li.checked > a {
  color: var(--link-color);
}

.tippy-box[data-theme="menu"] .tippy-content ul li:not(.checked) .checkmark {
  opacity: 0;
}

/* card */

.tippy-box[data-theme="card"] .tippy-content {
  display: flex;
  flex-direction: column;
  width: 256px;
  min-height: 144px;
  padding: 0;
  font-size: var(--font-min);
  overflow: hidden;
}

.tippy-box[data-theme="card"] img {
  flex-basis: 144px;
  object-fit: cover;
}

.tippy-box[data-theme="card"] p {
  flex-shrink: 1;
  height: 100%;
  max-height: 19.5em;
  font-size: inherit;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tippy-box[data-theme="card"] .more {
  bottom: 0.65em !important;
}

.tippy-box[data-theme="card"] .clipboard {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 0;
  left: 0;
  border-bottom-right-radius: var(--border-radius);
  text-align: center;
  line-height: 24px;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--base-color);
}

/* mobile */

:root {
  --tippy-mobile-margin: 8px;
}

[data-tippy-root].mobile {
  position: fixed !important;
  bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  inset: 0 !important;
  transform: none !important;
  background-color: transprent;
  transition: background-color 0.2s;
  z-index: 9999 !important;
  overscroll-behavior: contain;
}

[data-tippy-root].mobile.show {
  background-color: rgba(0,0,0,0.5);
}

.tippy-box[data-animation="mobile"] {
  position: absolute;
  bottom: 0;
  width: calc(100% - 2*var(--tippy-mobile-margin));
  margin: 0 var(--tippy-mobile-margin) var(--tippy-mobile-margin);
  animation-timing-function: ease;
  animation-duration: 3s;
}

.tippy-box[data-animation="mobile"][data-state="hidden"] {
  transform: translateY(100%);
}

[data-tippy-root].centered .tippy-box[data-animation="mobile"][data-state="hidden"] {
  transform: scale(0.8);
  opacity: 0;
  transition-duration: 0.15s !important;
}

.tippy-box[data-animation="mobile"] .tippy-header {
  position: sticky;
  top: 0;
  background: var(--white-color);
}

.tippy-box[data-animation="mobile"] .tippy-content {
  width: 100%;
  max-width: none;
  /*max-height: 50vh;*/
}

.tippy-box[data-animation="mobile"] .scrollable-container > .first-visible {
  margin-top: 0.5rem;
}

.tippy-box[data-animation="mobile"] .scrollable-container > .last-visible {
  margin-bottom: 0.5rem;
}