/* Sticky header + back-to-top + mobile row fix (acceptance 11.3 / H.1 k) */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.gleeful-back-to-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: var(--radius-radius-full, 360px);
  background: var(--button-button-primary, #8c75ff);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(33, 33, 33, 0.18);
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.gleeful-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gleeful-back-to-top:hover,
.gleeful-back-to-top:focus-visible {
  background: var(--button-button-hover, #1266bb);
  outline: none;
}

.gleeful-back-to-top svg {
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .hp-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .gleeful-back-to-top {
    right: 12px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Password show/hide eye — same grid cell as input, vertically centered (4.x) */
.hp-form__field--password {
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hp-form__field--password > label,
.hp-form__field--password > .hp-field__label {
  grid-column: 1;
  grid-row: 1;
}

.hp-form__field--password > input.hp-field.hp-field--password {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  padding-right: 2.75rem !important;
}

.hp-form__field--password > .hp-field__icon,
.hp-form__field--password > .hp-field__icon.hp-link {
  grid-column: 1;
  grid-row: 2;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 5;
  justify-self: end;
  align-self: stretch; /* full input height */
  margin: 0 14px 0 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  height: auto !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center; /* eye glyph dead-center */
  justify-content: center;
  color: var(--text-text-secondary, #959799);
  pointer-events: auto;
}

.hp-form__field--password > .hp-field__icon i {
  margin: 0 !important;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
