.contacts-widget {
  --contacts-widget-horizontal-spacing: 1.5rem;
}

.contacts-widget,
.contacts-widget * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.contacts-widget summary {
  list-style: none;
}

.contacts-widget summary::-webkit-details-marker {
  display: none;
}

.contacts-widget__menu {
  position: fixed;
  right: 30px;
  bottom: 100px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-radius: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 196px);
  min-width: calc(100vw - 60px);
  max-width: calc(100vw - 60px);
  z-index: 9999 !important;
}

@media (min-width: 768px) {
  .contacts-widget__menu {
    min-width: 320px;
    max-width: 320px;
  }
}
.contacts-widget__header {
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem var(--contacts-widget-horizontal-spacing);
  background-color: var(--widget-color);

  text-overflow: ellipsis;
  word-break: break-word;
  word-wrap: break-word;
  text-align: left;
}
.contacts-widget__title {
  font-size: 1.25rem;
  text-transform: none;
  margin: 0 0 8px 0;
}
.contacts-widget__description {
  font-size: 0.875em;
  margin: 0;
}
.contacts-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacts-widget__icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-inline-end: 1rem;

  stroke: var(--widget-color);
}

.contacts-widget__item:not(:last-child) {
  border-bottom: 1px solid #dcdcdc;
}
.contacts-widget__link:hover {
  background-color: #fafafa;
  color: var(--widget-color);
}

.contacts-widget__link {
  display: flex;
  height: 100%;
  padding: 1rem var(--contacts-widget-horizontal-spacing);
  text-decoration: none;
  align-items: center;
  color: #333;
  align-items: center;
  vertical-align: middle;
  width: 100%;
  background-color: #fff;
}

.contacts-widget__link-name {
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
  word-break: keep-all;
  word-wrap: normal;
  -webkit-transition: color 0.25s ease;
  transition: color 0.25s ease;
  line-height: 1.5;
}

.contacts-widget__button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 25px;
  right: 30px;
  cursor: pointer;
  width: 56px;
  height: 56px;
  background-color: var(--widget-color);
  border: none;
  border-radius: 50%;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  text-align: center;
  z-index: 9999 !important;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease;
  overflow: hidden;
}

.contacts-widget__button img {
  width: 1.5rem;
  height: 1.5rem;
}

.contacts-widget__chat-button {
  touch-action: manipulation;
  background-image: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.contacts-widget__open {
  display: block;
}

.contacts-widget__close {
  display: none;
}

details[open] .contacts-widget__open {
  display: none;
}
details[open] .contacts-widget__close {
  display: block;
}
