.dsg-audit-tab,
.dsg-mb {
  --dsg-w-dark: #323232;
  --dsg-w-line: #d9d9d9;
  --dsg-w-muted: #808080;
  --dsg-w-light: #f8f8f8;
  font-family: inherit;
}

.dsg-audit-tab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  align-items: stretch;
  max-width: calc(100vw - 120px);
  background: #fff;
  border: 1px solid var(--dsg-w-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transition: transform .3s ease, opacity .3s ease;
}

.dsg-audit-tab__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  color: var(--dsg-w-dark);
  text-decoration: none;
}

.dsg-audit-tab__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--dsg-w-dark);
  color: #fff;
}

.dsg-audit-tab__icon svg {
  width: 24px;
  height: 24px;
}

.dsg-audit-tab__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dsg-audit-tab__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.dsg-audit-tab__sub {
  font-size: 12px;
  line-height: 1.35;
  color: var(--dsg-w-muted);
}

.dsg-audit-tab__arrow {
  display: flex;
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform .25s ease;
}

.dsg-audit-tab__link:hover .dsg-audit-tab__arrow {
  transform: translateX(4px);
}

.dsg-audit-tab__close {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: center;
  width: 32px;
  padding: 8px 0 0;
  border: 0;
  border-left: 1px solid var(--dsg-w-line);
  background: none;
  color: var(--dsg-w-muted);
  cursor: pointer;
}

.dsg-audit-tab__close:hover {
  color: var(--dsg-w-dark);
}

.dsg-audit-tab__close svg {
  width: 16px;
  height: 16px;
}

.dsg-audit-tab.is-collapsed .dsg-audit-tab__text,
.dsg-audit-tab.is-collapsed .dsg-audit-tab__arrow,
.dsg-audit-tab.is-collapsed .dsg-audit-tab__close {
  display: none;
}

.dsg-audit-tab.is-collapsed .dsg-audit-tab__link {
  padding: 6px;
}

.dsg-audit-tab.is-collapsed {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.dsg-mb {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dsg-mb__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.dsg-mb.is-open .dsg-mb__list {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.dsg-mb__link {
  transition: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dsg-w-dark);
  text-decoration: none;
}

.dsg-mb__label {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--dsg-w-line);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.dsg-mb__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--dsg-w-line);
  border-radius: 50%;
  background: #fff;
  color: var(--dsg-w-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.dsg-mb__icon svg {
  width: 22px;
  height: 22px;
}

.dsg-mb__icon--max img {
  width: 26px;
  height: 26px;
}

.dsg-mb__link:hover .dsg-mb__icon {
  transform: scale(1.06);
  background: var(--dsg-w-dark);
  color: #fff;
}

.dsg-mb__link--max:hover .dsg-mb__icon {
  background: #fff;
}

.dsg-mb__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dsg-w-dark);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.dsg-mb__toggle:hover {
  transform: scale(1.05);
}

.dsg-mb__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--dsg-w-dark);
  animation: dsg-mb-pulse 2.4s ease-out infinite;
}

.dsg-mb.is-open .dsg-mb__toggle::after {
  display: none;
}

.dsg-mb__toggle svg {
  width: 26px;
  height: 26px;
}

.dsg-mb__ico-close,
.dsg-mb.is-open .dsg-mb__ico-open {
  display: none;
}

.dsg-mb.is-open .dsg-mb__ico-close {
  display: block;
}

@keyframes dsg-mb-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

body.no-overflow .dsg-audit-tab,
body.no-overflow .dsg-mb {
  opacity: 0;
  pointer-events: none;
}

.dsg-audit-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.dsg-audit-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.45;
}

.dsg-audit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #323232;
}

.dsg-audit-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dsg-audit-list b {
  display: block;
  font-weight: 600;
}

.dsg-audit-list span {
  color: #808080;
}

.dsg-audit-done {
  display: none;
  font-size: 20px;
  line-height: 1.4;
}

.dsg-audit-done.is-active {
  display: block;
}

@media (max-width: 767px) {
  .dsg-audit-tab {
    left: 12px;
    bottom: 16px;
    max-width: calc(100vw - 96px);
  }

  .dsg-audit-tab__link {
    gap: 10px;
    padding: 8px 10px 8px 8px;
  }

  .dsg-audit-tab__icon {
    width: 36px;
    height: 36px;
  }

  .dsg-audit-tab__icon svg {
    width: 20px;
    height: 20px;
  }

  .dsg-audit-tab__title {
    font-size: 13px;
  }

  .dsg-audit-tab__sub,
  .dsg-audit-tab__arrow {
    display: none;
  }

  .dsg-mb {
    right: 12px;
    bottom: 16px;
  }

  .dsg-mb__toggle {
    width: 54px;
    height: 54px;
  }

  .dsg-mb__icon {
    width: 48px;
    height: 48px;
  }

  .dsg-audit-list {
    margin-top: 20px;
  }

  .dsg-audit-list li {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsg-mb__toggle::after {
    animation: none;
  }
}
