.hj-consent[hidden], .hj-consent [hidden] { display: none !important; }
.hj-consent {
  position: fixed;
  z-index: 10000;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  width: min(440px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  margin: 0;
  padding: 20px;
  border: 1px solid #dce3dd;
  border-radius: 16px;
  background: #fff;
  color: #2c4636;
  box-shadow: 0 8px 32px rgba(23, 38, 25, .12), 0 1px 4px rgba(23, 38, 25, .04);
  font: 14px/1.55 'Inter', -apple-system, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}
.hj-consent *, .hj-consent *::before, .hj-consent *::after { box-sizing: border-box; }
.hj-consent-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hj-consent h2 { margin: 0; color: #2c4636; font-size: 21px; line-height: 1.3; }
.hj-consent p { margin: 0; }
.hj-consent .hj-consent-intro { margin-top: 10px; color: #5c615b; }
.hj-consent a { color: #2c4636; text-decoration: underline; text-underline-offset: 3px; }
.hj-consent a:hover { text-decoration-thickness: 2px; }
.hj-consent-preferences { margin-top: 8px; }
.hj-consent summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.hj-consent summary::-webkit-details-marker { display: none; }
.hj-consent summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.hj-consent details[open] > summary::after { transform: rotate(225deg); }
.hj-consent fieldset { min-width: 0; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid #e5eae6; }
.hj-consent legend { padding: 0 8px 0 0; font-size: 13px; font-weight: 600; }
.hj-consent label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; }
.hj-consent label strong { display: block; font-size: 14px; font-weight: 600; }
.hj-consent-hint { display: block; margin-top: 2px; color: #5c615b; font-size: 13px; line-height: 1.5; }
.hj-consent input[type="checkbox"] {
  appearance: auto;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0;
  accent-color: #3a5a47;
}
.hj-consent .hj-consent-detail { margin: 6px 0 14px; color: #5c615b; font-size: 13px; line-height: 1.55; }
.hj-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.hj-consent-button {
  appearance: none;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #93b2a0;
  border-radius: 9px;
  background: #eef3ef;
  color: #2c4636;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.hj-consent-button:hover { background: #dbe6df; border-color: #456a53; }
.hj-consent-button:focus-visible, .hj-consent :focus-visible { outline: 3px solid #9a4d3e; outline-offset: 3px; }
.hj-consent .hj-consent-close { padding: 8px; margin: -8px -8px -8px 0; border-color: transparent; background: transparent; font-size: 13px; }
.hj-consent .hj-consent-close:hover { background: #eef3ef; }
.hj-consent-save { width: 100%; margin-bottom: 8px; background: #fff; }
.hj-consent .hj-consent-status { margin: 10px 0; padding: 10px 12px; border-left: 3px solid #9a4d3e; background: #fdfbf7; color: #4c4842; font-size: 13px; }
.hj-consent-status:empty { display: none; }
.hj-consent-settings { display: inline-block; margin: 10px; font-size: 14px; }
.hj-consent-spacer { height: var(--hj-consent-space, 0px); }
@media (max-width: 480px) {
  .hj-consent {
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px;
    border-radius: 14px;
  }
  .hj-consent h2 { font-size: 20px; }
  .hj-consent-actions { gap: 8px; }
  .hj-consent-actions .hj-consent-button { padding-inline: 8px; }
}
@media (forced-colors: active) {
  .hj-consent { border-color: CanvasText; }
  .hj-consent-button { border-color: ButtonText; }
}
@media print { .hj-consent, .hj-consent-settings, .hj-consent-spacer { display: none !important; } }
