.ufanilya-strength-label {
  --ufanilya-strength-marker-size: 7px;
  display: block;
  margin: 3px 0 6px;
  padding: 0;
  color: #666666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  background: none;
  border: 0;
  cursor: default;
  pointer-events: none;
}

.ufanilya-strength-level {
  white-space: nowrap;
}

.ufanilya-strength-dot {
  display: inline-block;
  width: var(--ufanilya-strength-marker-size);
  height: var(--ufanilya-strength-marker-size);
  margin-inline-end: 4px;
  vertical-align: middle;
  border-radius: 50%;
}

.ufanilya-strength-dot--light { background-color: #7ba832; }
.ufanilya-strength-dot--medium { background-color: #c79a2e; }
.ufanilya-strength-dot--strong { background-color: #d5653c; }

.ufanilya-strength-label button.ufanilya-strength-help {
  appearance: none;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  font-size: inherit;
  width: 1em;
  height: 1em;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  margin: 0 0 0 4px;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
  cursor: pointer;
  pointer-events: auto;
}

.ufanilya-strength-label .ufanilya-strength-help > svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  color: #666;
  pointer-events: none;
}

.ufanilya-strength-label button.ufanilya-strength-help::before {
  position: absolute;
  inset: -7px;
  content: '';
}

.ufanilya-strength-label .ufanilya-strength-help:hover > svg,
.ufanilya-strength-label .ufanilya-strength-help[aria-expanded="true"] > svg {
  background: #f0e9db;
  color: #3d392f;
}

.ufanilya-strength-label .ufanilya-strength-help:focus-visible {
  outline: 2px solid #6f5627;
  outline-offset: 3px;
}

.ufanilya-strength-help-popup {
  --ufanilya-strength-popup-bg: #fbf8f2;
  --ufanilya-strength-popup-border: #dfd6c6;
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  width: min(285px, calc(100vw - 24px));
  padding: 13px 15px;
  border: 1px solid var(--ufanilya-strength-popup-border);
  border-radius: 12px;
  background: var(--ufanilya-strength-popup-bg);
  color: #252820;
  box-shadow: 0 5px 16px #25282026;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: start;
}

.ufanilya-strength-help-popup[hidden] { display: none !important; }
.ufanilya-strength-help-popup p { margin: 0; color: inherit; font: inherit; }

.ufanilya-strength-help-popup::before {
  content: '';
  position: absolute;
  inset-inline-start: var(--ufanilya-strength-pointer-x, 50%);
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  background: var(--ufanilya-strength-popup-bg);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.ufanilya-strength-help-popup[data-side="below"]::before {
  top: -7px;
  border-top: 1px solid var(--ufanilya-strength-popup-border);
  border-left: 1px solid var(--ufanilya-strength-popup-border);
}

.ufanilya-strength-help-popup[data-side="above"]::before {
  bottom: -7px;
  border-right: 1px solid var(--ufanilya-strength-popup-border);
  border-bottom: 1px solid var(--ufanilya-strength-popup-border);
}

.ufanilya-strength-help-popup .ufanilya-strength-popup-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: #30291f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.ufanilya-strength-popup-heading > svg {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #a77c28;
}

.ufanilya-strength-popup-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--ufanilya-strength-popup-border);
  color: #55534a;
  font-size: 12px;
}

.ufanilya-strength-popup-note > svg {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
