.ohl-consent[hidden] {
  display: none !important;
}

.ohl-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgb(20 24 45 / 55%);
  font-family: Roboto, Arial, sans-serif;
  color: #25283d;
}

.ohl-consent__panel {
  width: min(760px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 50px rgb(0 0 0 / 30%);
}

.ohl-consent h2 {
  margin: 0 0 10px;
  color: #1f264c;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
}

.ohl-consent p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
}

.ohl-consent__details {
  margin-top: 10px;
}

.ohl-consent__details summary {
  display: inline-block;
  padding: 7px 0;
  cursor: pointer;
  color: #5b319b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ohl-consent__choices {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  padding: 8px 14px;
  border: 1px solid #d9dce8;
  border-radius: 5px;
  background: #f8f8fb;
}

.ohl-consent__choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}

.ohl-consent__choice input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #5b319b;
}

.ohl-consent__choice strong,
.ohl-consent__choice small {
  display: block;
}

.ohl-consent__choice small {
  margin-top: 2px;
  color: #5f6475;
  font-size: 14px;
  line-height: 1.4;
}

.ohl-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ohl-consent__actions button,
.ohl-consent__details button[data-action="save"] {
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #1f264c;
  border-radius: 4px;
  background: #fff;
  color: #1f264c;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.ohl-consent__actions button[data-action="accept"] {
  border-color: #5b319b;
  background: #5b319b;
  color: #fff;
}

.ohl-consent__details button[data-action="save"] {
  width: 100%;
  margin-top: 10px;
}

.ohl-consent__actions button:hover,
.ohl-consent__actions button:focus-visible,
.ohl-consent__details button[data-action="save"]:hover,
.ohl-consent__details button[data-action="save"]:focus-visible {
  outline: 3px solid #47c2ab;
  outline-offset: 2px;
}

.ohl-consent__privacy {
  display: inline-block;
  margin-top: 14px;
  color: #5b319b;
  font-size: 14px;
}

.ohl-consent-manage {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2147483000;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid #1f264c;
  border-radius: 50%;
  background: #fff;
  color: #1f264c;
  box-shadow: 0 2px 10px rgb(0 0 0 / 18%);
  cursor: pointer;
  font: 600 13px/1.2 Roboto, Arial, sans-serif;
}

.ohl-consent-manage svg {
  width: 23px;
  height: 23px;
  fill: #fff;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.ohl-consent-manage:hover,
.ohl-consent-manage:focus-visible {
  outline: 3px solid #47c2ab;
  outline-offset: 2px;
}

.ohl-consent-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ohl-consent:not([hidden]) + .ohl-consent-manage {
  display: none;
}

@media (max-width: 640px) {
  .ohl-consent {
    padding: 10px;
  }

  .ohl-consent__panel {
    padding: 18px;
  }

  .ohl-consent__actions {
    grid-template-columns: 1fr;
  }
}
