.charge-up {
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
}
.charge-up-widget__wrapper {
  display: flex;
  align-items: center;
  max-width: 370px;
  margin-left: auto;
  /* width: 100%; */
  gap: 4px;
}

.charge-up-switch {
  display: flex;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.charge-up-switch::before {
  content: "";
  display: inline-flex;
  height: 18px;
  width: 18px;
  will-change: color, border, background, background-size, box-shadow;
  transform: translate3d(0, 0, 0);
  transition:
    color 0.1s,
    border 0.1s,
    background 0.15s,
    box-shadow 0.1s;
  box-shadow: none;
  border-radius: 0.2em;
  color: rgba(0, 0, 0, 0.075);
  background-color: #fff;
  box-shadow: inset 0 0 0 0.04em #b3b3b3;
  border: solid 0.0625em #b3b3b3;
  background-size: 11px;
}

.charge-up-switch.charge-up-switch-active::before {
  border: none;
  background: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="10" viewBox="0 0 12 10" fill="none"%3E%3Cpath d="M2 5.90723L4.5 8.40723L10.1129 2" stroke="white" stroke-width="2.13953" stroke-linecap="round"/%3E%3C/svg%3E')
    no-repeat center;
  background-color: #000;
}

.charge-up-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.charge-up-widget__content {
  flex-grow: 1;
}
.charge-up-widget__content__title {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 14px;
}
.charge-up-widget__content__title__text {
  display: flex;
  gap: 5px;
  align-items: center;
}
.charge-up-widget__content__title__icon {
  cursor: pointer;
  display: inline-block;
}
.charge-up-widget__content__info {
  visibility: hidden;
  width: 100%;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 10px;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: -40px;
  left: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.charge-up-widget__content__title__icon:hover .charge-up-widget__content__info {
  visibility: visible;
}
