#heresign-consent-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  color: #183b2a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.heresign-consent-panel {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: flex-end;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(24, 59, 42, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 252, 0.98);
  box-shadow: 0 18px 50px rgba(24, 59, 42, 0.18);
  box-sizing: border-box;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.heresign-consent-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #526258;
  font: 500 26px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.heresign-consent-close:hover {
  background: rgba(24, 59, 42, 0.07);
}

.heresign-consent-content {
  flex: 1 1 auto;
  min-width: 0;
}

.heresign-consent-content h2 {
  margin: 0;
  padding-right: 32px;
  color: #183b2a;
  font-size: 18px;
  line-height: 1.35;
}

.heresign-consent-content p {
  margin: 8px 0 6px;
  color: #526258;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.heresign-consent-content .heresign-consent-current {
  margin-top: 10px;
  color: #183b2a;
  font-size: 12px;
  font-weight: 750;
}

.heresign-consent-content a {
  color: #0b6338;
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 2px;
}

.heresign-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.heresign-consent-button {
  min-height: 42px;
  border-radius: 11px;
  font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  min-width: 118px;
  padding: 10px 16px;
}

.heresign-consent-essential {
  border: 1px solid rgba(24, 59, 42, 0.22);
  background: #fff;
  color: #183b2a;
}

.heresign-consent-accept {
  border: 1px solid #0b6338;
  background: #0b6338;
  color: #fff;
}

.heresign-consent-button:focus-visible,
.heresign-consent-close:focus-visible,
.heresign-consent-content a:focus-visible {
  outline: 3px solid rgba(11, 99, 56, 0.32);
  outline-offset: 3px;
}

.heresign-consent-button[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(11, 99, 56, 0.2);
}

@media (max-width: 700px) {
  .heresign-consent-panel {
    display: block;
    padding: 18px;
    border-radius: 16px;
  }

  .heresign-consent-actions {
    margin-top: 15px;
  }

  .heresign-consent-button {
    flex: 1 1 0;
    min-width: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .heresign-consent-button {
    scroll-behavior: auto;
  }
}
