.o24-consent[hidden],
.o24-consent-settings:not([open]) {
  display: none !important;
}

.o24-consent-unavailable [data-o24-consent-open] {
  display: none !important;
}

body.o24-consent-pending {
  padding-bottom: var(--o24-consent-height, 220px);
}

.o24-consent {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  margin-inline: auto;
  padding: 24px;
  overflow: auto;
  color: #f8fafc;
  background: #091525;
  border: 1px solid #324258;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(2, 10, 22, .28);
}

.o24-consent__copy h2,
.o24-consent-settings h2 {
  margin: 0 0 8px;
  color: inherit;
  font: 700 clamp(1.2rem, 2vw, 1.55rem)/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.o24-consent__copy h2:focus-visible {
  outline: 3px solid #8fb3ff;
  outline-offset: 4px;
  border-radius: 3px;
}

.o24-consent__copy p {
  max-width: 780px;
  margin: 0 0 8px;
  color: #d8e0ea;
  font: 400 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.o24-consent__copy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.o24-consent__actions,
.o24-consent-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.o24-consent__button,
.o24-consent-reopen,
.o24-consent-settings__close {
  min-height: 44px;
  padding: 10px 16px;
  font: 700 .95rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  border-radius: 9px;
}

.o24-consent__button--primary {
  color: #fff;
  background: #e71d36;
  border: 1px solid #e71d36;
}

.o24-consent__button--secondary {
  color: #fff;
  background: transparent;
  border: 1px solid #aab7c8;
}

.o24-consent__button:hover,
.o24-consent__button:focus-visible,
.o24-consent-reopen:hover,
.o24-consent-reopen:focus-visible,
.o24-consent-settings__close:hover,
.o24-consent-settings__close:focus-visible {
  outline: 3px solid #8fb3ff;
  outline-offset: 2px;
}

.o24-consent-settings {
  width: min(640px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 26px;
  overflow: auto;
  color: #111d2d;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 22px 80px rgba(2, 10, 22, .35);
}

.o24-consent-settings::backdrop {
  background: rgba(2, 10, 22, .64);
}

.o24-consent-settings__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.o24-consent-settings__close {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  color: #111d2d;
  background: #f0f3f7;
  border: 1px solid #c8d0dc;
  font-size: 1.5rem;
}

.o24-consent-settings > p {
  color: #536174;
  line-height: 1.55;
}

.o24-consent-setting {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 18px;
  color: #111d2d;
  background: #f5f7fa;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
}

.o24-consent-setting strong,
.o24-consent-setting span {
  display: block;
}

.o24-consent-setting span span {
  margin-top: 4px;
  color: #536174;
  font-size: .92rem;
  line-height: 1.45;
}

.o24-consent-setting input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: #e71d36;
}

.o24-consent-settings__signal {
  padding: 12px;
  color: #6c3c00 !important;
  background: #fff4dc;
  border-radius: 8px;
}

.o24-consent-settings__actions {
  margin-top: 22px;
}

.o24-consent-settings .o24-consent__button--secondary {
  color: #111d2d;
  border-color: #6d7a8d;
}

.o24-consent-reopen {
  position: fixed;
  z-index: 9998;
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: #091525;
  border: 1px solid #52647b;
  border-radius: 999px;
  font-size: .8rem;
}

body.o24-consent-pending .o24-consent-reopen {
  display: none;
}

@media (max-width: 760px) {
  .o24-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  .o24-consent__actions,
  .o24-consent-settings__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .o24-consent__button {
    width: 100%;
  }

  .o24-consent-settings {
    padding: 20px;
  }
}

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