/* Jerkiss V7.16 - GTranslate flags + red back-to-top button */

/* Keep GTranslate flags untouched by the theme image/fallback styling */
.gtranslate_wrapper img,
.gt_switcher img,
.gt_options img,
.gt-current-lang img,
a.glink img,
.glink img,
.gt_container img,
#google_translate_element img,
.goog-te-gadget img,
.skiptranslate img {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-width: 24px !important;
  max-height: 18px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) !important;
  filter: none !important;
  transform: none !important;
}

.gtranslate_wrapper img.jk-img-fallback,
.gt_switcher img.jk-img-fallback,
.gt_options img.jk-img-fallback,
.gt-current-lang img.jk-img-fallback,
a.glink img.jk-img-fallback,
.glink img.jk-img-fallback,
.gt_container img.jk-img-fallback,
#google_translate_element img.jk-img-fallback,
.goog-te-gadget img.jk-img-fallback,
.skiptranslate img.jk-img-fallback {
  content: normal !important;
  background: transparent !important;
  padding: 0 !important;
}

.gt_switcher,
.gtranslate_wrapper,
.gt_container {
  z-index: 999999 !important;
}

.gt_switcher .gt_options,
.gtranslate_wrapper .gt_options,
.gt_container .gt_options {
  z-index: 999999 !important;
  overflow-y: auto !important;
  scrollbar-color: #e5092f #f5f5f5 !important;
}

.gt_switcher .gt_options a,
.gtranslate_wrapper .gt_options a,
.gt_container .gt_options a,
a.glink {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Red Jerkiss back-to-top arrow */
#jk-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: radial-gradient(circle at 32% 25%, #ff4c64 0%, #f21b3b 36%, #b90019 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.92);
  box-shadow: 0 18px 42px rgba(229,9,36,.35), inset 0 1px 0 rgba(255,255,255,.26);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, box-shadow .22s ease;
}

#jk-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#jk-back-to-top:hover,
#jk-back-to-top:focus-visible {
  box-shadow: 0 24px 56px rgba(229,9,36,.48), inset 0 1px 0 rgba(255,255,255,.36);
  transform: translateY(-3px) scale(1.03);
  outline: none;
}

#jk-back-to-top::before {
  content: "↑";
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

@media (max-width: 767px) {
  #jk-back-to-top {
    right: 18px;
    bottom: 96px;
    width: 46px;
    height: 46px;
    font-size: 23px;
    z-index: 9997;
  }
}
