.jt-emergency-japa-fab {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px);
  z-index: 8998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: min(240px, calc(100vw - 92px));
  padding: 10px 13px;
  border: 1px solid rgba(255, 179, 0, 0.38);
  border-radius: 999px;
  background: rgba(74, 0, 114, 0.9);
  color: #fffdf7;
  font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(74, 0, 114, 0.22);
  opacity: 0.86;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.jt-emergency-japa-fab:hover,
.jt-emergency-japa-fab:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(74, 0, 114, 0.28);
}

.jt-emergency-japa-icon{display:inline-grid;width:24px;height:24px;place-items:center;flex:0 0 auto;color:currentColor}

.jt-emergency-japa-icon svg,.jt-action-icon{width:22px;height:22px;display:block;flex:0 0 auto}

.jt-emergency-japa-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: radial-gradient(circle at center, rgba(35, 31, 42, 0.96), #050506 72%);
  color: #fffaf0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.jt-emergency-japa-overlay[hidden] {
  display: none !important;
}

.jt-emergency-japa-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.jt-emergency-japa-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf0;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.78;
  transition: opacity 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.jt-emergency-japa-close:hover,
.jt-emergency-japa-close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}

.jt-emergency-japa-stage {
  width: min(960px, 100%);
  text-align: center;
}

.jt-emergency-japa-title {
  margin: 0 0 clamp(18px, 4vw, 34px);
  color: rgba(255, 250, 240, 0.72);
  font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.jt-emergency-japa-mantra {
  display: grid;
  gap: clamp(10px, 2.2vw, 18px);
  font-family: "Noto Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.65rem, 1.05rem + 4.4vw, 5.4rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.jt-emergency-japa-line {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.24em;
  white-space: nowrap;
}

.jt-emergency-japa-word {
  color: rgba(255, 250, 240, 0.45);
  white-space: nowrap;
  transition: color 190ms ease, opacity 190ms ease, text-shadow 190ms ease, transform 190ms ease;
}

.jt-emergency-japa-word.is-active {
  color: #ffca28;
  opacity: 1;
  text-shadow: 0 0 28px rgba(255, 202, 40, 0.34);
  transform: translateY(-0.03em);
}

.jt-emergency-japa-note {
  min-height: 1.4em;
  margin: clamp(18px, 4vw, 34px) auto 0;
  color: rgba(255, 250, 240, 0.62);
  font-size: clamp(0.9rem, 0.82rem + 0.25vw, 1rem);
  line-height: 1.55;
}



body.jt-emergency-japa-open {
  overflow: hidden;
}

body.jt-emergency-japa-open .jt-menu,
body.jt-emergency-japa-open .jt-menu-btn,
body.jt-emergency-japa-open .jt-lang-switcher,
body.jt-emergency-japa-open .japa-assistant-widget,
body.jt-emergency-japa-open .jtpwa-launcher {
  visibility: hidden;
}

@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    left: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px);
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
  }

  .jt-emergency-japa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .jt-emergency-japa-mantra {
    line-height: 1.36;
  }

  .jt-emergency-japa-overlay[data-jt-lang="ru"] .jt-emergency-japa-mantra {
    font-size: clamp(1rem, 0.5rem + 3.4vw, 2.2rem);
  }
}

.jt-emergency-japa-icon{display:inline-grid;width:24px;height:24px;place-items:center;flex:0 0 auto;color:currentColor}

body.jt-emergency-japa-open .jtal-launcher,
body.jt-emergency-japa-open .jtpwa-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.jt-emergency-japa-fab {
  left: auto;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 56px);
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.18s ease, max-width 0.18s ease, padding 0.18s ease, opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.jt-emergency-japa-fab.jt-floating-intro,
.jt-emergency-japa-fab:hover,
.jt-emergency-japa-fab:focus-visible {
  width: auto;
  min-width: 46px;
  max-width: min(230px, calc(100vw - 32px));
  padding: 0 16px 0 13px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    left: auto;
    right: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px);
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .jt-emergency-japa-fab.jt-floating-intro,
  .jt-emergency-japa-fab:hover,
  .jt-emergency-japa-fab:focus-visible {
    width: auto;
    min-width: 44px;
    max-width: min(212px, calc(100vw - 28px));
    padding: 0 13px;
    border-radius: 999px;
  }
}

.jt-emergency-japa-fab {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}

.jt-emergency-japa-fab.jt-floating-intro,
.jt-emergency-japa-fab:hover,
.jt-emergency-japa-fab:focus-visible {
  width: auto;
  min-width: 46px;
  max-width: min(230px, calc(100vw - 32px));
  padding: 0 16px 0 13px;
  border-radius: 999px;
}

.jt-emergency-japa-fab.jt-floating-intro .jt-emergency-japa-label,
.jt-emergency-japa-fab:hover .jt-emergency-japa-label,
.jt-emergency-japa-fab:focus-visible .jt-emergency-japa-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .jt-emergency-japa-fab.jt-floating-intro,
  .jt-emergency-japa-fab:hover,
  .jt-emergency-japa-fab:focus-visible {
    width: auto;
    min-width: 44px;
    max-width: min(180px, calc(60vw - 18px));
    padding: 0 13px;
    border-radius: 999px;
  }
}
.jt-emergency-japa-fab {
  left: auto;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 56px);
}
@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    left: auto;
    right: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px);
  }
  .jt-emergency-japa-fab.jt-floating-intro,
  .jt-emergency-japa-fab:hover,
  .jt-emergency-japa-fab:focus-visible {
    max-width: min(212px, calc(100vw - 28px));
  }
}

body.menu-open .jtal-launcher,body.menu-open .jtpwa-launcher,body.menu-open .jt-emergency-japa-fab,body.jtpwa-modal-open .jtal-launcher,body.jtpwa-modal-open .jt-emergency-japa-fab{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.jt-floating-label{display:inline-block;white-space:nowrap}.jt-action-icon{stroke:currentColor;fill:none}

/* final floating stack */

.jt-action-icon {
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
}
.jt-floating-label,
.jt-emergency-japa-label {
  display: inline-block;
  white-space: nowrap;
}
.jtal-launcher,
.jt-emergency-japa-fab,
.jtpwa-launcher {
  left: auto !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 0 !important;
  line-height: 1 !important;
  transition: width .18s ease, max-width .18s ease, padding .18s ease, opacity .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease, font-size .18s ease !important;
}
.jtal-launcher { bottom: max(18px, env(safe-area-inset-bottom)) !important; }
.jt-emergency-japa-fab { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 56px) !important; }
.jtpwa-launcher { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 112px) !important; }
.jtal-launcher.jt-floating-intro,
.jtal-launcher:hover,
.jtal-launcher:focus-visible,
.jt-emergency-japa-fab.jt-floating-intro,
.jt-emergency-japa-fab:hover,
.jt-emergency-japa-fab:focus-visible,
.jtpwa-launcher.jt-floating-intro,
.jtpwa-launcher:hover,
.jtpwa-launcher:focus-visible {
  width: auto !important;
  min-width: 46px !important;
  max-width: min(230px, calc(100vw - 36px)) !important;
  padding: 0 15px 0 13px !important;
  font-size: .84rem !important;
}
.jtal-launcher.jt-floating-intro .jt-floating-label,
.jtal-launcher:hover .jt-floating-label,
.jtal-launcher:focus-visible .jt-floating-label,
.jt-emergency-japa-fab.jt-floating-intro .jt-emergency-japa-label,
.jt-emergency-japa-fab:hover .jt-emergency-japa-label,
.jt-emergency-japa-fab:focus-visible .jt-emergency-japa-label,
.jtpwa-launcher.jt-floating-intro .jt-floating-label,
.jtpwa-launcher:hover .jt-floating-label,
.jtpwa-launcher:focus-visible .jt-floating-label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  opacity: 1 !important;
}
body.menu-open .jtal-launcher,
body.menu-open .jtpwa-launcher,
body.menu-open .jt-emergency-japa-fab,
body.jtal-modal-open .jtpwa-launcher,
body.jtal-modal-open .jt-emergency-japa-fab,
body.jtpwa-modal-open .jtal-launcher,
body.jtpwa-modal-open .jt-emergency-japa-fab,
body.jt-emergency-japa-open .jtal-launcher,
body.jt-emergency-japa-open .jtpwa-launcher {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 560px) {
  .jtal-launcher,
  .jt-emergency-japa-fab,
  .jtpwa-launcher {
    right: 12px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  .jtal-launcher { bottom: max(12px, env(safe-area-inset-bottom)) !important; }
  .jt-emergency-japa-fab { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px) !important; }
  .jtpwa-launcher { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 104px) !important; }
  .jtal-launcher.jt-floating-intro,
  .jtal-launcher:hover,
  .jtal-launcher:focus-visible,
  .jt-emergency-japa-fab.jt-floating-intro,
  .jt-emergency-japa-fab:hover,
  .jt-emergency-japa-fab:focus-visible,
  .jtpwa-launcher.jt-floating-intro,
  .jtpwa-launcher:hover,
  .jtpwa-launcher:focus-visible {
    width: auto !important;
    min-width: 44px !important;
    max-width: min(214px, calc(100vw - 28px)) !important;
    padding: 0 13px !important;
    font-size: .76rem !important;
  }
}

/* color-only floating buttons */
.jtal-launcher,
.jt-emergency-japa-fab,
.jtpwa-launcher {
  border: 1px solid rgba(255, 255, 255, .34) !important;
  color: #fff !important;
  text-shadow: none !important;
}
.jtal-launcher {
  background: linear-gradient(135deg, #4a0072, #6d1b9a) !important;
  box-shadow: 0 10px 26px rgba(74, 0, 114, .28) !important;
}
.jt-emergency-japa-fab {
  background: linear-gradient(135deg, #b85c00, #f59f00) !important;
  box-shadow: 0 10px 26px rgba(184, 92, 0, .28) !important;
}
.jtpwa-launcher {
  background: linear-gradient(135deg, #00695c, #00897b) !important;
  box-shadow: 0 10px 26px rgba(0, 105, 92, .28) !important;
}
.jt-floating-label,
.jt-emergency-japa-label {
  opacity: 0 !important;
}
.jtal-launcher.jt-floating-intro .jt-floating-label,
.jtal-launcher:hover .jt-floating-label,
.jtal-launcher:focus-visible .jt-floating-label,
.jt-emergency-japa-fab.jt-floating-intro .jt-emergency-japa-label,
.jt-emergency-japa-fab:hover .jt-emergency-japa-label,
.jt-emergency-japa-fab:focus-visible .jt-emergency-japa-label,
.jtpwa-launcher.jt-floating-intro .jt-floating-label,
.jtpwa-launcher:hover .jt-floating-label,
.jtpwa-launcher:focus-visible .jt-floating-label {
  opacity: 1 !important;
}

.jtal-launcher::before,
.jtpwa-launcher::before,
.jt-emergency-japa-fab::before,
.jtal-launcher svg,
.jtpwa-launcher svg,
.jt-emergency-japa-fab svg,
.jtal-launcher img,
.jtpwa-launcher img,
.jt-emergency-japa-fab img,
.jt-action-icon,
.jt-emergency-japa-icon {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

.jt-emergency-japa-stage {
  width: min(960px, 100%) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.jt-emergency-japa-mantra {
  display: grid !important;
  width: min(92vw, 960px) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  justify-items: center !important;
  gap: clamp(10px, 2.2vw, 18px) !important;
  font-size: clamp(1.55rem, 1rem + 4.1vw, 4.85rem) !important;
  line-height: 1.28 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

.jt-emergency-japa-line {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 0.24em !important;
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  .jt-emergency-japa-mantra {
    width: min(96vw, 720px) !important;
    font-size: clamp(1.05rem, 4.7vw, 2rem) !important;
    gap: clamp(8px, 2.4vw, 14px) !important;
  }

  .jt-emergency-japa-overlay[data-jt-lang="ru"] .jt-emergency-japa-mantra {
    font-size: clamp(1.05rem, 4.4vw, 1.9rem) !important;
  }
}

@media (max-width: 560px) {
  .jtal-launcher,
  .jt-emergency-japa-fab,
  .jtpwa-launcher {
    right: max(10px, env(safe-area-inset-right)) !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
  .jtal-launcher { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 0px) !important; }
  .jt-emergency-japa-fab { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 48px) !important; }
  .jtpwa-launcher { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 96px) !important; }
}
