.wpv-matomo-consent {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
  color: #121212;
  background: #fff;
  border: 1px solid #d8d8dc;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}

.wpv-matomo-consent__text {
  display: grid;
  gap: 6px;
}

.wpv-matomo-consent h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.wpv-matomo-consent p {
  max-width: 62ch;
  margin: 0;
  color: #4a4a4f;
  font-size: .9375rem;
  line-height: 1.5;
}

.wpv-matomo-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wpv-matomo-consent button,
.wpv-matomo-consent a,
.wpv-matomo-privacy-controls button {
  min-height: 42px;
  padding: .68rem .95rem;
  color: #121212;
  background: #fff;
  border: 1px solid #8b8b91;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.wpv-matomo-consent button:hover,
.wpv-matomo-consent a:hover,
.wpv-matomo-privacy-controls button:hover {
  border-color: #121212;
}

.wpv-matomo-consent button:focus-visible,
.wpv-matomo-consent a:focus-visible,
.wpv-matomo-privacy-controls button:focus-visible {
  outline: 3px solid #044fe7;
  outline-offset: 2px;
}

.wpv-matomo-consent [data-wpv-matomo-accept] {
  color: #fff;
  background: #121212;
  border-color: #121212;
}

.wpv-matomo-privacy-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.wpv-matomo-privacy-status {
  margin-top: .75rem;
  color: #4a4a4f;
  font-size: .9375rem;
}

@media (min-width: 720px) {
  .wpv-matomo-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (prefers-color-scheme: dark) {
  .wpv-matomo-consent {
    color: #f4f4f5;
    background: #232326;
    border-color: #3a3a40;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  }

  .wpv-matomo-consent p,
  .wpv-matomo-privacy-status {
    color: #c7c7cc;
  }

  .wpv-matomo-consent button,
  .wpv-matomo-consent a,
  .wpv-matomo-privacy-controls button {
    color: #f4f4f5;
    background: #232326;
    border-color: #8e8e93;
  }

  .wpv-matomo-consent [data-wpv-matomo-accept] {
    color: #121212;
    background: #f4f4f5;
    border-color: #f4f4f5;
  }
}
