/* =========================================
   TRYZUB Help Widget
   lightweight contact widget, no external libs
   Version: 1.6.5.1
   ========================================= */

.tryzub-help-widget,
.tryzub-help-widget *{
  box-sizing: border-box;
}

.tryzub-help-widget{
  position: fixed;
  right: var(--tryzub-hw-desktop-right, 24px);
  bottom: var(--tryzub-hw-desktop-bottom, 24px);
  z-index: 99998;
  font-family: inherit;
  color: #111216;
  line-height: normal;
}

.tryzub-help-widget--smart{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .34s ease, visibility 0s linear .34s;
}

.tryzub-help-widget.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}


.tryzub-help-widget.is-visible.is-entering{
  animation: tryzubHelpWidgetFadeIn .26s ease both;
}

.tryzub-help-widget.is-visible.is-entering:not(.is-open) .tryzub-help-launch{
  animation: tryzubHelpLaunchBounce 1.55s cubic-bezier(.18, 1.16, .28, 1) .10s 1 both;
}

@keyframes tryzubHelpWidgetFadeIn{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

@keyframes tryzubHelpLaunchBounce{
  0%{
    transform: translate3d(0, 18px, 0) scale(.82);
    box-shadow: 0 10px 26px rgba(17, 18, 22, 0.10), 0 2px 7px rgba(17, 18, 22, 0.06);
    filter: saturate(.96);
  }
  38%{
    transform: translate3d(0, -10px, 0) scale(1.075);
    box-shadow: 0 26px 60px rgba(17, 18, 22, 0.24), 0 0 0 9px rgba(246, 207, 79, .22);
    filter: saturate(1.08);
  }
  56%{
    transform: translate3d(0, 4px, 0) scale(.985);
    box-shadow: 0 15px 34px rgba(17, 18, 22, 0.15), 0 0 0 15px rgba(246, 207, 79, .10);
  }
  72%{
    transform: translate3d(0, -4px, 0) scale(1.025);
    box-shadow: 0 20px 46px rgba(17, 18, 22, 0.18), 0 0 0 0 rgba(246, 207, 79, 0);
  }
  88%{
    transform: translate3d(0, 1px, 0) scale(.997);
  }
  100%{
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 14px 34px rgba(17, 18, 22, 0.14), 0 2px 7px rgba(17, 18, 22, 0.08);
    filter: saturate(1);
  }
}

.tryzub-help-widget button,
.tryzub-help-widget a{
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.tryzub-help-widget button{
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.tryzub-help-widget svg{
  display: block;
  flex: 0 0 auto;
}

.tryzub-help-launch-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tryzub-help-launch{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 60px;
  padding: 0 26px 0 21px;
  max-width: min(calc(100vw - 32px), 420px);
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe47b 0%, #f6cf4f 100%);
  color: #111216;
  box-shadow: 0 14px 34px rgba(17, 18, 22, 0.14), 0 2px 7px rgba(17, 18, 22, 0.08);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.tryzub-help-launch:hover,
.tryzub-help-launch:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17, 18, 22, 0.18), 0 4px 12px rgba(17, 18, 22, 0.10);
  filter: saturate(1.04);
}

.tryzub-help-launch:active{
  transform: translateY(0) scale(.98);
}


.tryzub-help-launch__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 0;
  flex: 0 0 28px;
}

.tryzub-help-launch__icon svg{
  width: 25px;
  height: 25px;
  transform: translateY(.2px);
}

.tryzub-help-panel[hidden]{
  display: none !important;
}

.tryzub-help-panel{
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  width: min(420px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  padding: 28px 24px 20px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 72px rgba(17, 18, 22, 0.17), 0 5px 16px rgba(17, 18, 22, 0.08);
  animation: tryzubHelpPanelIn .18s ease both;
  transform-origin: right bottom;
}

@keyframes tryzubHelpPanelIn{
  from{
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tryzub-help-close{
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111216;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}

.tryzub-help-close svg{
  width: 18px;
  height: 18px;
}

.tryzub-help-close:hover,
.tryzub-help-close:focus-visible{
  background: rgba(17, 18, 22, 0.06);
}

.tryzub-help-close:active{
  transform: scale(.94);
}

.tryzub-help-panel__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 0 16px;
  border-radius: 50%;
  background: #ffe06f;
  color: #111216;
  line-height: 0;
}

.tryzub-help-panel__icon svg{
  width: 23px;
  height: 23px;
  transform: translateY(.2px);
}

.tryzub-help-panel__title{
  margin: 0 42px 8px 0;
  color: #111216;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.tryzub-help-panel__text{
  margin: 0 0 18px;
  color: #3c3f46;
  font-size: 15.5px;
  line-height: 1.52;
}

.tryzub-help-channels{
  display: grid;
  width: 100%;
  gap: 10px;
}

.tryzub-help-channel{
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 13px;
  background: #fff;
  color: #111216;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(17, 18, 22, 0.05);
  overflow: visible;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.tryzub-help-channel:hover,
.tryzub-help-channel:focus-visible{
  color: #111216;
  transform: translateY(-1px);
  border-color: rgba(17, 18, 22, 0.14);
  box-shadow: 0 8px 20px rgba(17, 18, 22, 0.09);
  background: #fffef8;
}

.tryzub-help-channel__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  line-height: 0;
  flex: 0 0 30px;
}

.tryzub-help-channel__icon svg{
  display: block;
  width: 19px;
  height: 19px;
  margin: auto;
}

.tryzub-help-channel--telegram .tryzub-help-channel__icon svg{
  width: 18px;
  height: 18px;
  transform: translateX(-.3px);
}

.tryzub-help-channel--instagram .tryzub-help-channel__icon svg{
  width: 18px;
  height: 18px;
  transform: translateY(.1px);
}

.tryzub-help-channel--viber .tryzub-help-channel__icon svg{
  width: 20px;
  height: 20px;
}

.tryzub-help-channel--telegram .tryzub-help-channel__icon{
  background: #32a9df;
}

.tryzub-help-channel--viber .tryzub-help-channel__icon{
  background: #7360f2;
}

.tryzub-help-channel--instagram .tryzub-help-channel__icon{
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 52%, #fcb045 100%);
}

.tryzub-help-channel--mail .tryzub-help-channel__icon{
  background: #f0ca4e;
  color: #111216;
}

.tryzub-help-channel--tracking .tryzub-help-channel__icon{
  background: #111216;
  color: #f6cf4f;
}

.tryzub-help-channel--tracking .tryzub-help-channel__icon svg{
  width: 18px;
  height: 18px;
}

.tryzub-help-channel__label{
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #111216;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.tryzub-help-channel--mail .tryzub-help-channel__label{
  font-size: 13.6px;
  letter-spacing: -0.01em;
}

.tryzub-help-channel__arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #111216;
  line-height: 0;
  opacity: .76;
  flex: 0 0 18px;
}

.tryzub-help-channel__arrow svg{
  width: 17px;
  height: 17px;
}

.tryzub-help-hours{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #3c3f46;
  font-size: 14px;
  line-height: 1.2;
}

.tryzub-help-hours__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #3c3f46;
  line-height: 0;
  flex: 0 0 18px;
}

.tryzub-help-hours__icon svg{
  width: 17px;
  height: 17px;
}

.tryzub-help-snooze{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b6f78;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease;
}

.tryzub-help-snooze:hover,
.tryzub-help-snooze:focus-visible{
  color: #111216;
}

.tryzub-help-snooze:active{
  transform: scale(.98);
}

@media (max-width: 767px){
  .tryzub-help-widget{
    right: var(--tryzub-hw-mobile-right, 18px);
    bottom: var(--tryzub-hw-mobile-bottom, 82px);
  }

  .tryzub-help-launch{
    width: 62px;
    height: 62px;
    min-height: 62px;
    padding: 0;
    border-radius: 50%;
  }


  .tryzub-help-launch__text{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .tryzub-help-launch__icon{
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .tryzub-help-launch__icon svg{
    width: 27px;
    height: 27px;
  }

  .tryzub-help-panel{
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(var(--tryzub-hw-mobile-bottom, 82px) + 78px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--tryzub-hw-mobile-bottom, 82px) - 104px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - var(--tryzub-hw-mobile-bottom, 82px) - 104px - env(safe-area-inset-bottom));
    overflow: auto;
    padding: 22px 18px 18px;
    border-radius: 20px;
    transform-origin: right bottom;
  }

  .tryzub-help-panel__icon{
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .tryzub-help-panel__icon svg{
    width: 22px;
    height: 22px;
  }

  .tryzub-help-panel__title{
    font-size: 20px;
  }

  .tryzub-help-panel__text{
    font-size: 14.5px;
  }

  .tryzub-help-channel{
    min-height: 46px;
    border-radius: 12px;
  }

  .tryzub-help-channel__label{
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce){
  .tryzub-help-widget,
  .tryzub-help-launch,
  .tryzub-help-panel,
  .tryzub-help-close,
  .tryzub-help-channel{
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================
   TRYZUB Help Widget debug panel
   visible only when debug mode is enabled for admins
   ========================================= */

.tryzub-debug-panel,
.tryzub-debug-panel *{
  box-sizing: border-box;
}

.tryzub-debug-panel{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 100000;
  width: min(420px, calc(100vw - 36px));
  max-height: min(72vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(17, 18, 22, .18);
  border-radius: 16px;
  background: rgba(17, 18, 22, .96);
  color: #fff;
  box-shadow: 0 22px 72px rgba(0, 0, 0, .28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
}

.tryzub-debug-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .06);
}

.tryzub-debug-head strong{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.tryzub-debug-head button,
.tryzub-debug-actions button{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.tryzub-debug-head button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.tryzub-debug-body{
  max-height: calc(min(72vh, 680px) - 51px);
  overflow: auto;
  padding: 12px;
}

.tryzub-debug-panel.is-collapsed .tryzub-debug-body{
  display: none;
}

.tryzub-debug-note{
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .68);
}

.tryzub-debug-status{
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 10px;
}

.tryzub-debug-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
}

.tryzub-debug-row span{
  color: rgba(255, 255, 255, .70);
}

.tryzub-debug-row strong{
  max-width: 56%;
  color: #ffe47b;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.tryzub-debug-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.tryzub-debug-actions button{
  padding: 7px 10px;
  font-size: 11.5px;
}

.tryzub-debug-actions button:hover,
.tryzub-debug-head button:hover{
  background: rgba(246, 207, 79, .22);
  border-color: rgba(246, 207, 79, .45);
}

.tryzub-debug-log{
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.tryzub-debug-entry{
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .88);
  overflow-wrap: anywhere;
}

.tryzub-debug-entry b{
  color: #9ee5ff;
  font-weight: 800;
}

.tryzub-debug-entry small{
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .56);
}

@media (max-width: 767px){
  .tryzub-debug-panel{
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 58vh;
  }

  .tryzub-debug-body{
    max-height: calc(58vh - 51px);
  }
}
