.kd-consent[hidden],
.kd-consent-settings[hidden] {
  display: none !important;
}

.kd-consent {
  position: fixed;
  z-index: 100000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
}

.kd-consent__panel {
  box-sizing: border-box;
  max-width: 44rem;
  max-height: calc(100vh - 1rem);
  overflow-y: auto;
  margin: 0 auto;
  padding: 1rem;
  border: 2px solid #245b48;
  border-radius: .75rem;
  background: #fff;
  color: #17231f;
  box-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, .2);
}

.kd-consent__panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.kd-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.kd-consent__actions button,
.kd-consent-settings {
  box-sizing: border-box;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 2px solid #245b48;
  border-radius: .4rem;
  background: #fff;
  color: #173d31;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.kd-consent__actions button:first-child {
  background: #245b48;
  color: #fff;
}

.kd-consent__actions button:focus-visible,
.kd-consent-settings:focus-visible {
  outline: 3px solid #f0a500;
  outline-offset: 3px;
}

.kd-consent-settings-wrap {
  min-height: 44px;
  margin-top: 1rem;
}

.kd-consent-settings {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .35rem .25rem;
  border: 0;
  background: transparent;
  color: #173d31;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.kd-consent-noscript {
  padding: .75rem;
  border: 1px solid #667;
  background: #f7f7f7;
}

@media (max-width: 390px) {
  .kd-consent { right: .5rem; bottom: .5rem; left: .5rem; }
  .kd-consent__actions { display: grid; }
  .kd-consent__actions button { width: 100%; }
}
