.hp-consent-lock {
  overflow: hidden;
}

.hp-consent-root,
.hp-consent-root * {
  box-sizing: border-box;
}

.hp-consent-root [hidden] {
  display: none !important;
}

.hp-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  align-items: end;
  padding: 20px;
  background: rgba(7, 12, 23, 0.62);
  backdrop-filter: blur(4px);
}

.hp-consent-dialog {
  position: relative;
  width: min(100%, 820px);
  max-height: calc(100vh - 40px);
  margin: 0 auto;
  padding: 28px;
  overflow: auto;
  color: #172033;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(7, 12, 23, 0.3);
}

.hp-consent-dialog h2 {
  margin: 0 40px 10px 0;
  color: #172033;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.hp-consent-dialog p {
  margin: 0 0 14px;
  color: #475066;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hp-consent-eyebrow {
  color: #9a5a14 !important;
  font-size: 0.76rem !important;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hp-consent-contact {
  font-size: 0.88rem !important;
}

.hp-consent-contact a {
  color: #7f450c;
  font-weight: 700;
}

.hp-consent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #172033;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  background: #f2f4f7;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  cursor: pointer;
}

.hp-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hp-consent-actions-primary .hp-consent-button-equal {
  flex: 1 1 190px;
}

.hp-consent-button {
  min-height: 48px;
  padding: 12px 18px;
  color: #172033;
  font: inherit;
  font-weight: 800;
  background: #ffffff;
  border: 2px solid #172033;
  border-radius: 10px;
  cursor: pointer;
}

.hp-consent-button:hover,
.hp-consent-button:focus-visible,
.hp-consent-close:hover,
.hp-consent-close:focus-visible,
.hp-consent-reopen:hover,
.hp-consent-reopen:focus-visible {
  outline: 3px solid rgba(197, 119, 35, 0.38);
  outline-offset: 2px;
}

.hp-consent-button-settings {
  flex: 1 1 150px;
  color: #5c6576;
  border-color: #b8bfca;
}

.hp-consent-button-save {
  color: #ffffff;
  background: #172033;
}

.hp-consent-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.hp-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: #f7f8fa;
  border: 1px solid #dce1e8;
  border-radius: 12px;
  cursor: pointer;
}

.hp-consent-option-required {
  cursor: default;
}

.hp-consent-option span {
  display: grid;
  gap: 4px;
}

.hp-consent-option strong {
  color: #172033;
}

.hp-consent-option small {
  color: #596274;
  font-size: 0.86rem;
  line-height: 1.45;
}

.hp-consent-option input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  accent-color: #172033;
}

.hp-consent-reopen {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99990;
  min-height: 42px;
  padding: 9px 13px;
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  background: #172033;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(7, 12, 23, 0.25);
  cursor: pointer;
}

@media (max-width: 640px) {
  .hp-consent-overlay {
    padding: 0;
  }

  .hp-consent-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }

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

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

  .hp-consent-reopen {
    right: 10px;
    bottom: 72px;
    max-width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-consent-root * {
    scroll-behavior: auto !important;
  }
}
