.material-tooltip {
  padding: 24px;
  z-index: 2000;
  background-color: transparent;
  min-height: 36px;
  opacity: 0;
  position: absolute;
  max-width: 250px;
  left: 0;
  top: 0;
  pointer-events: none;
  visibility: hidden;
  border: 1px solid #FFFFFF;
  border-radius: 6px;
  background-color: #FFFFFF;
  box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.12);
  word-wrap: break-word;
  transform: translate(-10px, 50%) !important;
  margin-top: -25px;
}

.material-tooltip .material-tooltip_arrow {
  position: absolute;
  transform: translateY(-50%) rotate(180deg);
  left: 0;
  bottom: 25px;
}

.material-tooltip .material-tooltip_arrow:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  right: -4px;
  top: 50%;
  box-sizing: border-box;
  border: 8px solid black;
  border-color: transparent white white transparent;
  transform-origin: 0 0;
  transform: rotate(-45deg);
  box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.12);
}

.password-strength-tooltip {
  display: none !important;
}

.password-strength-tooltip__shown {
  display: block !important;
}

.material-tooltip_content .material-tooltip_content_title {
  color: #323232;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.material-tooltip_content .material-tooltip_content_line {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  height: 2px;
  margin-top: 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.material-tooltip_content .material-tooltip_content_line .material-tooltip_content_line-progress {
  width: 100%;
  height: 100%;
  background-color: #E84936;
  transform: translateX(-100%);
  transition: transform 0.3s, background-color 0.3s;
}

.material-tooltip_content .material-tooltip_content_line .material-tooltip_content_line-progress.progress-1 {
  transform: translateX(-75%);
  background-color: #E84936;
}

.material-tooltip_content .material-tooltip_content_line .material-tooltip_content_line-progress.progress-2 {
  transform: translateX(-50%);
  background-color: #FFB63D;
}

.material-tooltip_content .material-tooltip_content_line .material-tooltip_content_line-progress.progress-3 {
  transform: translateX(-25%);
  background-color: #FFB63D;
}

.material-tooltip_content .material-tooltip_content_line .material-tooltip_content_line-progress.progress-4 {
  transform: translateX(0);
  background-color: #70D30D;
}

.material-tooltip_content .material-tooltip_content_note {
  color: #323232;
  font-size: 14px;
}

.material-tooltip_content .material-tooltip_content_note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.material-tooltip_content .material-tooltip_content_note li::before {
  content: "-";
  margin-right: 10px;
}

.material-tooltip_content .material-tooltip_content_note li.passed {
  text-decoration: line-through;
}

/* Password tooltip header and close button styles */
.password-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.password-tooltip-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 10px;
}

.password-tooltip-close:hover {
  color: #333;
  background-color: #f0f0f0;
  border-radius: 50%;
}

.password-tooltip-close:focus {
  outline: 2px solid #007bff;
  outline-offset: 1px;
}

/* When tooltip is shown, enable pointer events */
.material-tooltip.password-strength-tooltip__shown {
  pointer-events: auto;
  z-index: 2001 !important;
}

/* Ensure tooltip content intercepts all pointer events */
.material-tooltip .material-tooltip_content {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

/* Prevent clicks from passing through the tooltip */
.material-tooltip.password-strength-tooltip__shown * {
  pointer-events: auto;
}

/* Add a subtle backdrop to better capture clicks */
.material-tooltip.password-strength-tooltip__shown::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: auto;
}

.material-tooltip {
  transform: translate(45px, -27%) !important;
}

@media (max-width: 967px) {
  .material-tooltip {
    max-width: none;
    width: calc(100% - 60px);
  }

  .material-tooltip {
    transform: translate(-10px, 130px) !important;
  }

  .material-tooltip .material-tooltip_arrow {
    display: none;
  }
}
