.musdb-consent[hidden] {
  display: none;
}

.musdb-consent {
  position: fixed;
  z-index: 1200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  color: #20243a;
  font-family: inherit;
}

.musdb-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid #d8d4f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(30, 31, 69, .2);
}

.musdb-consent__copy {
  min-width: 0;
}

.musdb-consent__copy h2 {
  margin: 0 0 7px;
  color: #26274d;
  font-size: 16px;
  line-height: 1.4;
}

.musdb-consent__copy p {
  margin: 0;
  color: #4b5263;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.musdb-consent__copy p + p {
  margin-top: 3px;
}

.musdb-consent__copy a {
  display: inline-block;
  margin-top: 7px;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.musdb-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.musdb-consent__actions button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #7069db;
  border-radius: 999px;
  background: #fff;
  color: #4038bd;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.musdb-consent__actions button:hover,
.musdb-consent__actions button:focus-visible {
  background: #f1efff;
  outline: 3px solid rgba(79, 70, 229, .2);
  outline-offset: 2px;
}

.musdb-consent__actions .musdb-consent__close {
  border-color: #c9c7d9;
  color: #555a6e;
}

.musdb-consent-visible .back-to-top {
  bottom: 210px;
}

@media (max-width: 620px) {
  .musdb-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .musdb-consent__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 16px;
  }

  .musdb-consent__copy p {
    font-size: 14px;
    line-height: 1.6;
  }

  .musdb-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .musdb-consent__actions button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }

  .musdb-consent__inner--settings .musdb-consent__close:nth-child(3) {
    grid-column: 1 / -1;
  }

  .musdb-consent-visible .back-to-top {
    bottom: 270px;
  }
}
