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

.cbp-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0 auto;
  max-width: 72rem;
  color: #17202a;
}

.cbp-consent__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #cbd5df;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.5rem 2rem rgb(15 23 42 / 22%);
}

.cbp-consent__copy {
  max-width: 48rem;
}

.cbp-consent__copy h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.cbp-consent__copy p {
  margin: 0;
}

.cbp-consent__status:not(:empty) {
  margin-top: 0.5rem;
  font-weight: 700;
}

.cbp-consent__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cbp-consent-settings {
  position: fixed;
  z-index: 999;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #31465a;
  border-radius: 999px;
  background: #fff;
  color: #17202a;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.25rem 1rem rgb(15 23 42 / 16%);
}

.cbp-consent-settings[aria-expanded="true"] {
  visibility: hidden;
}

.cbp-consent :focus-visible,
.cbp-consent-settings:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .cbp-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .cbp-consent__panel {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
  }

  .cbp-consent__actions {
    flex-direction: column;
  }

  .cbp-consent__actions .btn {
    width: 100%;
  }

  .cbp-consent-settings {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbp-consent *,
  .cbp-consent-settings {
    scroll-behavior: auto;
    transition: none;
  }
}
