/* messengers 1:1 — Tilda t825 widget + t756 catalog popup */

div.sk-chat {
  position: fixed;
  right: 65px;
  bottom: 50px;
  z-index: 100000;
  width: 60px;
  height: 60px;
}

div.sk-chat .sk-chat__label {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 9px 13px;
  font-family: var(--sk-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: 3px;
  background: #292929;
  color: #fff;
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.1s linear, visibility 0.1s linear;
}

div.sk-chat .sk-chat__label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: #292929;
}

div.sk-chat .sk-chat__btn {
  position: relative;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f26617;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: visible;
  animation: sk-chat-fab 2s ease-out infinite;
}

.sk-chat__pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  top: -3px;
  left: -3px;
  border-radius: 100%;
  border: 3px solid #f26617;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  animation: sk-chat-ring 2s ease-out infinite;
}

.sk-chat:not(.is-open) .sk-chat__btn:hover,
.sk-chat:not(.is-open) .sk-chat__btn:hover .sk-chat__pulse {
  animation: none;
}

.sk-chat__icon,
.sk-chat__close {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transition: transform 0.2s linear, opacity 0.2s linear, visibility 0.2s linear;
}

.sk-chat__icon {
  top: 1px;
}

.sk-chat__close {
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.1);
}

div.sk-chat.is-open .sk-chat__btn {
  background: #fff;
  animation: none;
}

.sk-chat.is-open .sk-chat__pulse {
  display: none;
}

.sk-chat.is-open .sk-chat__icon {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.1);
}

.sk-chat.is-open .sk-chat__close {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

div.sk-chat.is-open .sk-chat__label {
  visibility: hidden !important;
  opacity: 0 !important;
}

div.sk-chat .sk-chat__popup {
  display: block;
  position: fixed;
  right: 65px;
  bottom: 125px;
  z-index: 100001;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
}

div.sk-chat .sk-chat__popup[hidden] {
  display: none !important;
}

.sk-chat__mobile-bar {
  display: none;
}

.sk-chat__popup-inner {
  padding: 30px 20px 20px;
  text-align: center;
  max-height: 65vh;
  overflow-y: auto;
}

.sk-chat__intro {
  margin: 0;
  padding: 0 0 30px;
  font-family: var(--sk-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
}

.sk-chat__messengers {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
}

.sk-chat__block {
  display: block;
  margin: 0 8px 12px;
  text-align: center;
  flex: 0 0 auto;
}

.sk-chat__item {
  display: block;
  width: 62px;
  height: 62px;
  margin: auto;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.sk-chat__item img {
  width: 62px;
  height: 62px;
  display: block;
}

.sk-chat__item-label {
  padding-top: 8px;
  font-family: var(--sk-font);
  font-size: 12px;
  line-height: 1.45;
  color: #000;
  opacity: 0.8;
}

@keyframes sk-chat-fab {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
}

@keyframes sk-chat-ring {
  0% { transform: scale(0.8); opacity: 0; }
  25% { opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

div.sk-modal {
  position: fixed;
  inset: 0;
  z-index: 10000001;
  display: block;
  overflow-y: auto;
  padding: 0 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

div.sk-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

body.sk-modal-open div.sk-chat {
  z-index: 0;
}

div.sk-modal[hidden] {
  display: none !important;
}

div.sk-modal .sk-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

div.sk-modal .sk-modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000002;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.3s ease;
}

.sk-modal__close:hover {
  opacity: 0.7;
}

.sk-modal__close-icon {
  display: block;
}

div.sk-modal .sk-modal__box {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 65px auto;
  background: #fff;
  cursor: default;
  padding: 40px 60px;
  text-align: center;
  transform: translateY(28px) scale(0.98);
  transition: transform 0.35s ease;
}

div.sk-modal.is-open .sk-modal__box {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  div.sk-modal,
  div.sk-modal .sk-modal__box {
    transition: none;
  }
}

div.sk-modal .sk-modal__title {
  margin: 0 0 12px;
  font-family: var(--sk-font);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.17;
  color: #000;
}

.sk-modal__title a {
  text-decoration: underline;
  color: inherit;
}

.sk-modal__title a[href^="tel"] {
  color: #f26617;
  text-decoration: none;
}

.sk-modal__btn-wrap {
  margin-top: 25px;
  margin-bottom: 10px;
}

.sk-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 45px;
  border: 0;
  border-radius: 20px;
  background: #f26617;
  color: #fff;
  font-family: var(--sk-btn);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.sk-modal__btn:hover {
  background: #f08446;
}

@media screen and (max-width: 960px) {
  div.sk-chat {
    right: 10px;
    bottom: 10px;
  }

  div.sk-chat .sk-chat__label {
    font-size: 12px;
  }

  div.sk-chat .sk-chat__label::after {
    border-width: 8px;
    right: -16px;
  }

  div.sk-chat.is-open {
    width: 0;
    height: 0;
  }

  div.sk-chat.is-open .sk-chat__btn,
  div.sk-chat.is-open .sk-chat__label {
    display: none;
  }

  div.sk-chat .sk-chat__popup {
    inset: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
  }

  .sk-chat__mobile-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 50px;
    background: #000;
  }

  .sk-chat__mobile-close {
    display: block;
    margin-right: 10px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
  }

  .sk-chat__popup-inner {
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 20px 20px;
    max-height: none;
    overflow: visible;
  }

  .sk-chat__intro {
    font-size: 22px;
  }

  .sk-chat__messengers {
    max-width: 260px;
    margin: 0 auto;
  }

  div.sk-modal .sk-modal__title {
    font-size: 30px;
  }
}

@media screen and (max-width: 640px) {
  .sk-chat__intro {
    font-size: 20px;
  }

  div.sk-modal .sk-modal__box {
    padding: 30px 20px;
  }

  div.sk-modal .sk-modal__title {
    font-size: 26px;
  }

  .sk-modal__btn {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 560px) {
  div.sk-modal {
    padding: 0;
  }

  div.sk-modal .sk-modal__close {
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    background: #000;
  }

  .sk-modal__close-icon {
    width: 16px;
    height: 16px;
  }

  div.sk-modal .sk-modal__box {
    margin: 50px 0 0;
    width: 100%;
    min-height: calc(100vh - 50px);
    border-radius: 0;
  }
}
