.hrevn-consent,
.hrevn-consent-settings {
  font-family: Geist, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.hrevn-consent-settings[hidden] {
  display: none;
}

.hrevn-consent {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
  width: min(960px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin: 0 auto;
  padding: 1.1rem;
  border: 1px solid #cdbdab;
  border-radius: 18px;
  background: #fffaf3;
  color: #2b211a;
  box-shadow: 0 24px 70px rgba(43, 33, 26, 0.2);
}

.hrevn-consent__content {
  display: grid;
  gap: 0.45rem;
}

.hrevn-consent__title,
.hrevn-consent__description {
  margin: 0;
}

.hrevn-consent__title {
  color: #2b211a;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hrevn-consent__description {
  max-width: 68ch;
  color: #65574c;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hrevn-consent__privacy {
  width: fit-content;
  color: #7e3e25;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hrevn-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hrevn-consent__choice,
.hrevn-consent-settings {
  min-height: 44px;
  border: 1px solid #173632;
  border-radius: 999px;
  background: #173632;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.hrevn-consent__choice {
  min-width: 155px;
  padding: 0.7rem 1rem;
}

.hrevn-consent__choice:focus-visible,
.hrevn-consent-settings:focus-visible,
.hrevn-consent__privacy:focus-visible,
.hrevn-consent__title:focus-visible {
  outline: 3px solid #173632;
  outline-offset: 3px;
}

.hrevn-consent-settings {
  position: fixed;
  z-index: 9999;
  right: 1rem;
  bottom: 1rem;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-color: #cdbdab;
  background: #fffaf3;
  color: #173632;
  box-shadow: 0 8px 26px rgba(43, 33, 26, 0.14);
}

@media (max-width: 760px) {
  .hrevn-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hrevn-consent__choice {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .hrevn-consent__actions {
    grid-template-columns: 1fr;
  }
}
