:root {
  --white: #ffffff;
  --black: #1c2226;
  --gray: #484848;
  --lightgray: lightgray;
  --green: #00d084;
}

#wpadminbar.bottom-admin-toolbar #wp-admin-bar-dynamic-plugins .dyn__wrapper {
  position: fixed;
  bottom: 32px;
  border-radius: 5px 5px 0 0;
}

#wpadminbar.bottom-admin-toolbar #wp-admin-bar-dynamic-plugins .dyn__wrapper .dyn__refresh {
  border-radius: 0;
}

#wp-admin-bar-dynamic-plugins .ab-item::before {
  content: "\f106";
}

#wp-admin-bar-dynamic-plugins .ab-item.ab-empty-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper {
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--black);
  max-height: 500px;
  overflow: scroll;
  border-radius: 0 0 5px 5px;
  overflow-x: hidden;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper li {
  position: relative;
  transition: all .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper li:hover {
  background: var(--gray);
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper li:not(:last-child) {
  border-bottom: 1px solid var(--gray);
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper li label {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 15px 10px;
  cursor: pointer;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper [type="checkbox"] {
  display: none;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper span:last-child {
  position: relative;
  width: 50px;
  height: 26px;
  border-radius: 15px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
  background: var(--lightgray);
  transition: all 0.3s;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper span:last-child::before,
#wp-admin-bar-dynamic-plugins .dyn__wrapper span:last-child::after {
  content: "";
  position: absolute;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper span:last-child::before {
  left: 1px;
  top: 1px;
  width: 24px;
  height: 24px;
  background: var(--white);
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.3s;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper span:last-child::after {
  top: 50%;
  right: 10px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background: url(../svg/uncheck-switch.svg);
  background-size: 10px 10px;
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper [type="checkbox"]:checked+label span:last-child {
  background: var(--green);
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper [type="checkbox"]:checked+label span:last-child::before {
  transform: translateX(24px);
}

#wp-admin-bar-dynamic-plugins .dyn__wrapper [type="checkbox"]:checked+label span:last-child::after {
  width: 12px;
  height: 12px;
  left: 8px;
  background-image: url(../svg/check-switch.svg);
  background-size: 12px 12px;
}

#wp-admin-bar-dynamic-plugins .dyn__refresh {
  position: relative;
  padding: 10px;
  font-weight: bold;
  color: white;
  background: #444444;
  border-radius: 0 0 5px 5px;
  cursor: pointer;
}

#wp-admin-bar-dynamic-plugins .dyn__refresh::before {
  content: "\f463";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding-right: 10px;
  font: normal 20px/1 dashicons;
  -webkit-font-smoothing: antialiased;
}