.hq-cookie-panel,
.hq-cookie-settings {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100000;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 16%);
  font: 14px/1.5 system-ui, sans-serif;
}

.hq-cookie-panel {
  box-sizing: border-box;
  width: min(382px, calc(100% - 48px));
  padding: 20px 24px;
}

.hq-cookie-panel[hidden],
.hq-cookie-settings[hidden] {
  display: none;
}

.hq-cookie-panel h2 {
  margin: 0 0 4px;
  font: 600 20px/1.4 system-ui, sans-serif;
  color: inherit;
}

.hq-cookie-panel p {
  margin: 0 0 6px;
}

.hq-cookie-panel a {
  color: inherit;
  text-decoration: underline;
}

.hq-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hq-cookie-actions button,
.hq-cookie-settings {
  padding: 8px 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font: 600 12px/1.5 system-ui, sans-serif;
  cursor: pointer;
}

.hq-cookie-actions button {
  flex: 1 1 auto;
}

.hq-cookie-actions .hq-cookie-accept {
  background: #187d2c;
  border-color: #187d2c;
  color: #fff;
}

@media (max-width: 767px) {
  .hq-cookie-panel,
  .hq-cookie-settings {
    left: 12px;
    bottom: 12px;
  }

  .hq-cookie-panel {
    width: min(382px, calc(100% - 24px));
    padding: 16px;
  }
}
