.otonef-consent-trigger,
.otonef-consent-dialog,
.otonef-consent-dialog button {
  font: inherit;
}

.otonef-consent-trigger {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(7, 55, 42, 0.34);
  border-radius: 999px;
  background: rgba(247, 246, 241, 0.97);
  color: #0d352a;
  box-shadow: 0 8px 28px rgba(10, 38, 30, 0.14);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.otonef-consent-trigger:hover {
  border-color: #075942;
  background: #ffffff;
}

.otonef-consent-trigger:focus-visible,
.otonef-consent-dialog button:focus-visible {
  outline: 3px solid rgba(22, 143, 99, 0.34);
  outline-offset: 3px;
}

.otonef-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 24px;
  background: rgba(7, 18, 15, 0.38);
}

.otonef-consent-backdrop[hidden] {
  display: none;
}

.otonef-consent-dialog {
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid rgba(7, 55, 42, 0.18);
  border-radius: 18px;
  background: #f7f6f1;
  color: #101915;
  box-shadow: 0 28px 80px rgba(5, 24, 18, 0.28);
}

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

.otonef-consent-heading h2 {
  margin: 0;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.otonef-consent-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(7, 55, 42, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #0d352a;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.otonef-consent-dialog > p {
  margin: 13px 0 0;
  color: #394740;
  font-size: 15px;
  line-height: 1.55;
}

.otonef-consent-dialog .otonef-consent-detail {
  color: #5b6761;
  font-size: 13px;
}

.otonef-consent-dialog .otonef-consent-status {
  margin-top: 17px;
  color: #0d5943;
  font-size: 13px;
  font-weight: 700;
}

.otonef-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.otonef-consent-button {
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.otonef-consent-button--secondary {
  border: 1px solid rgba(7, 55, 42, 0.3);
  background: transparent;
  color: #0d352a;
}

.otonef-consent-button--primary {
  border: 1px solid #075942;
  background: #075942;
  color: #ffffff;
}

.otonef-consent-button--secondary:hover {
  background: #eeeee8;
}

.otonef-consent-button--primary:hover {
  border-color: #064a38;
  background: #064a38;
}

@media (max-width: 680px) {
  .otonef-consent-trigger {
    bottom: 78px;
    left: 12px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .otonef-consent-backdrop {
    padding: 12px 12px 74px;
  }

  .otonef-consent-dialog {
    max-height: min(630px, calc(100dvh - 96px));
    overflow: auto;
    padding: 20px;
    border-radius: 15px;
  }

  .otonef-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

}

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