/**
 * Misc / Scrollbar Component
 * Scrollbar, comment avatars, popup tooltips, image upload.
 */

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Scrollbar progress bar */
.scrollbar {
  position: fixed;
  top: 0;
  height: 3px;
  background: var(--article-theme-highlight, var(--theme-skin-matching));
  transition-property: width, background;
  transition-duration: 1s, 1s;
  z-index: 999;
}

/* Webkit scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 3px;
}

/* Comment user avatar */
.comment-user-avatar {
  position: absolute;
  display: inline-block;
  width: 48px;
  height: 48px;
  margin-top: 10px;
  pointer-events: none;
}

.comment-user-avatar .socila-check {
  display: none;
  width: 1.5em;
  height: 1.5em;
  font-size: 1em;
  line-height: 1.4em;
  text-align: center;
  color: #fff;
  border-radius: 50%;
  position: absolute;
  margin: -25px 0 0 30px;
  font-weight: var(--global-font-weight);
}

.gravatar-check {
  background-color: #FF6347;
}

.cmt-popup {
  margin: 0 0 30px 1%;
  --widthA: 97%;
  --widthB: calc(var(--widthA) - 71px);
  --widthC: calc(var(--widthB) / 3);
  width: var(--widthC);
  margin-top: 10px;
}

/* Popup tooltip */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 3px;
  position: absolute;
  z-index: 1;
  bottom: 110%;
  left: 50%;
  margin-left: -80px;
}

.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.popup .insert-img-popuptext {
  visibility: hidden;
  width: 66px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 3px;
  position: absolute;
  z-index: 1;
  bottom: 9%;
  right: -180%;
  margin-right: 0;
}

.popup .insert-img-popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Image upload */
.insert-image-button {
  cursor: pointer;
}

.upload-image-preview {
  max-width: 100px;
  max-height: 100px;
}

.comment_inline_img {
  max-width: 100%;
  height: auto;
}

/* QQ check */
.qq-check {
  display: inline-block;
}
