/**
 * New release bar — [jt_release_bar]
 * Always black bar (#000) — dark & light site mode.
 */
:root {
  --jt-release-bar-h: 44px;
  --jt-header-offset: 0px;
  --jt-release-bg: #000000;
  --jt-release-text: #ffffff;
}

html.jt-light,
body.jt-light {
  --jt-release-bg: #000000;
  --jt-release-text: #ffffff;
}

.jt-release-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100002;
  min-height: var(--jt-release-bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #000000;
  color: #ffffff;
  border-bottom: none;
  box-sizing: border-box;
  transform: translateZ(0);
}

/* Single fixed stack — bar + header menyatu, anti gap scroll */
.jt-top-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100002;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
}

.jt-top-stack .jt-release-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 auto;
  width: 100% !important;
  min-height: 0;
  z-index: 2;
  margin: 0 !important;
}

.jt-top-stack .elementor-location-header,
.jt-top-stack header.elementor-location-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 auto;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1;
  transform: none !important;
}

.jt-top-stack .elementor-section,
.jt-top-stack .e-con,
.jt-top-stack .e-con-inner {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.jt-top-stack .jt-header {
  margin-top: 0 !important;
  border-top: none !important;
}

.jt-release-bar__inner {
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jt-release-bar__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  color: #ffffff;
}

.jt-release-bar__badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ff8a00;
  color: #111111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  animation: jt-release-badge-blink 0.65s step-end infinite;
}

@keyframes jt-release-badge-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jt-release-bar__badge {
    animation: none;
  }
}

.jt-release-bar__link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.jt-release-bar__link:hover {
  opacity: 0.75;
}

/* Always black bar — beat Elementor / inline overrides in any theme mode */
.jt-release-bar,
html.jt-light .jt-release-bar,
body.jt-light .jt-release-bar {
  background: #000000 !important;
  color: #ffffff !important;
}

.jt-release-bar__text,
.jt-release-bar__link,
html.jt-light .jt-release-bar__text,
html.jt-light .jt-release-bar__link,
body.jt-light .jt-release-bar__text,
body.jt-light .jt-release-bar__link {
  color: #ffffff !important;
}

body.jt-has-release-bar {
  --jt-header-offset: var(--jt-release-bar-h);
  padding-top: var(--jt-top-stack-h, calc(var(--jt-header-h, 72px) + var(--jt-release-bar-h, 44px)));
}

body.jt-has-top-stack .elementor-location-header,
body.jt-has-top-stack header.elementor-location-header,
body.jt-has-top-stack .jt-release-bar {
  position: relative !important;
  top: auto !important;
  margin-top: 0 !important;
}

body.jt-has-release-bar:not(.jt-has-top-stack) .elementor-location-header,
body.jt-has-release-bar:not(.jt-has-top-stack) header.elementor-location-header {
  top: var(--jt-release-bar-h) !important;
}

body.jt-has-release-bar:not(.jt-has-top-stack):not(:has(.elementor-location-header)) .jt-header {
  top: var(--jt-release-bar-h) !important;
}

body.jt-has-release-bar .jt-header {
  border-top: none !important;
}

@media (max-width: 767px) {
  .jt-release-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .jt-release-bar__text {
    font-size: 13px;
  }
}
