.hh-v2-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100050;
  padding: 12px;
  pointer-events: none;
}

.hh-v2-consent:not([hidden]) {
  pointer-events: none;
}

.hh-v2-consent:not([hidden]) .hh-v2-consent__panel {
  pointer-events: auto;
}

.hh-v2-consent__panel {
  max-width: 560px;
  margin: 0 auto;
  background: #111;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-family: inherit;
}

.hh-v2-consent__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.hh-v2-consent__body {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.hh-v2-consent__privacy {
  margin: 0 0 14px;
}

.hh-v2-consent__privacy-link {
  color: #ff6b5a;
  text-decoration: underline;
}

.hh-v2-consent__privacy-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hh-v2-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hh-v2-consent__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.hh-v2-consent__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hh-v2-consent__btn--primary {
  background: #e31b23;
  color: #fff;
}

.hh-v2-consent__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hh-v2-consent__btn--link {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  padding-inline: 0.4rem;
}

.hh-v2-consent__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hh-v2-consent__row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.hh-v2-consent__row em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.hh-v2-consent-reopen {
  position: fixed;
  z-index: 100040;
  inset-inline-start: 12px;
  bottom: 72px;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-height: 40px;
}

.hh-v2-consent-reopen:focus-visible {
  outline: 2px solid #e31b23;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .hh-v2-consent {
    padding: 8px 8px 0;
    inset: auto 0 0 0;
  }

  .hh-v2-consent__panel {
    border-radius: 12px 12px 0 0;
    max-width: none;
    max-height: min(42vh, 340px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 10px;
  }

  .hh-v2-consent__title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .hh-v2-consent__body {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  .hh-v2-consent__privacy {
    margin-bottom: 10px;
  }

  .hh-v2-consent__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
  }

  .hh-v2-consent__btn {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    flex: 1 1 auto;
  }

  .hh-v2-consent-reopen {
    bottom: 88px;
    inset-inline-start: 8px;
  }
}
