/* Floating messengers widget */

.msg-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  font-family: Roboto, Arial, sans-serif;
}

.msg-widget__toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffd801;
  color: #000;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.msg-widget__toggle:hover,
.msg-widget__toggle:focus {
  background: #eece24;
  outline: none;
}

.msg-widget.is-open .msg-widget__toggle {
  transform: rotate(45deg);
}

.msg-widget__toggle svg {
  display: block;
  width: 26px;
  height: 26px;
}

.msg-widget__list {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msg-widget.is-open .msg-widget__list {
  display: flex;
}

.msg-widget__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: #262626 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.msg-widget__link:hover,
.msg-widget__link:focus {
  color: #262626 !important;
  text-decoration: none !important;
}

.msg-widget__icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

@media (max-width: 699px) {
  .msg-widget {
    right: 16px;
    bottom: 16px;
  }

  .msg-widget__link span {
    display: none;
  }

  .msg-widget__link {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
