.cw-password-field {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.cw-password-field > input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 50px !important;
}

.cw-password-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1 !important;
  opacity: .72;
  cursor: pointer;
  z-index: 3;
}

.cw-password-toggle:hover {
  opacity: 1;
}

.cw-password-toggle:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 1px !important;
  opacity: 1;
}

.cw-password-toggle svg {
  display: block;
  width: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Opera reserves its own password-manager control at the far right of the field. */
html.cw-password-reserve-browser-slot .cw-password-field > input {
  padding-right: 88px !important;
}

html.cw-password-reserve-browser-slot .cw-password-toggle {
  right: 44px !important;
}

@media (prefers-reduced-motion: no-preference) {
  .cw-password-toggle {
    transition: opacity 120ms ease;
  }
}
