.oz-consent-banner,
.oz-consent-dialog,
.oz-consent-dialog * {
  box-sizing: border-box;
}

.oz-consent-banner {
  position: fixed;
  z-index: 9998;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
  padding: 20px;
  color: #18312d;
  background: #fff;
  border: 1px solid #cbd8d5;
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(24, 49, 45, .2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.oz-consent-banner h2,
.oz-consent-dialog h2 {
  margin: 0;
  color: #18312d;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1.3;
}

.oz-consent-banner p {
  margin: 6px 0 0;
  color: #526965;
  font-size: .93rem;
  line-height: 1.55;
}

.oz-consent-banner a,
.oz-consent-dialog a {
  color: #126a5a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oz-consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  max-width: 500px;
}

.oz-consent-button,
.oz-consent-manage,
.oz-consent-close,
.cookie-preferences-link {
  font: inherit;
  cursor: pointer;
}

.oz-consent-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #176b5b;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 700;
}

.oz-consent-button.is-primary {
  color: #fff;
  background: #176b5b;
}

.oz-consent-button.is-secondary {
  color: #176b5b;
  background: #fff;
}

.oz-consent-manage {
  min-height: 44px;
  padding: 8px 6px;
  color: #176b5b;
  background: transparent;
  border: 0;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oz-consent-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  color: #18312d;
  background: #fff;
  border: 1px solid #cbd8d5;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(24, 49, 45, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.oz-consent-dialog::backdrop {
  background: rgba(8, 28, 25, .58);
}

.oz-consent-panel {
  overflow: auto;
  max-height: min(760px, calc(100dvh - 28px));
  padding: 24px;
}

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

.oz-consent-kicker {
  margin: 0 0 5px;
  color: #176b5b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.oz-consent-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #18312d;
  background: #f1f6f4;
  border: 1px solid #d4dfdc;
  border-radius: 999px;
  font-size: 1.55rem;
  line-height: 1;
}

.oz-consent-panel > p {
  color: #526965;
  line-height: 1.6;
}

.oz-consent-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  border: 0;
}

.oz-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: #f8faf9;
  border: 1px solid #d4dfdc;
  border-radius: 12px;
}

.oz-consent-option strong,
.oz-consent-option small {
  display: block;
}

.oz-consent-option small {
  margin-top: 4px;
  color: #5d716d;
  font-size: .82rem;
  line-height: 1.45;
}

.oz-consent-option input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  accent-color: #176b5b;
}

.oz-consent-option.is-required {
  background: #eef5f2;
}

.oz-consent-detail {
  font-size: .86rem;
}

.oz-consent-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.cookie-preferences-link {
  min-height: 24px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oz-consent-button:hover,
.oz-consent-button:focus-visible,
.oz-consent-manage:hover,
.oz-consent-manage:focus-visible,
.oz-consent-close:hover,
.oz-consent-close:focus-visible,
.cookie-preferences-link:hover,
.cookie-preferences-link:focus-visible {
  outline: 3px solid #e7a83f;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .oz-consent-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .oz-consent-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .oz-consent-manage {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .oz-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .oz-consent-banner-actions,
  .oz-consent-dialog-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .oz-consent-button {
    width: 100%;
  }

  .oz-consent-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oz-consent-banner,
  .oz-consent-dialog {
    scroll-behavior: auto;
  }
}
