/* Notification Bar */
#wpls-notification {
  position: fixed;
  bottom: -100px;
  z-index: 99999;
  transition: bottom 0.5s cubic-bezier(0.42, 0, 0.58, 1);

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
  align-items: center;

  left: 10px;
  min-width: 320px;
  max-width: calc(100% - 20px);
  padding: 12px 40px 12px 18px;

  background-color: #323232;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  border-radius: 5px;
}
#wpls-notification.top-left,
#wpls-notification.top-center,
#wpls-notification.top-right {
  top: -100px;
  bottom: auto;
  transition: top 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

#wpls-notification.top-right {
  left: auto;
  right: 10px;
}
#wpls-notification.bottom-right {
  left: auto;
  right: 10px;
}

#wpls-notification .wpls-notification-text-wrapper {
  margin-right: 15px;

  order: 0;
  flex: 0 1 auto;
  align-self: auto;
}
#wpls-notification a.wpls-notification-link {
  text-decoration: none;
  margin: 0px;

  order: 0;
  flex: 0 1 auto;
  align-self: auto;

  background: #fff;
  color: #323232;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 0.925em;
  font-weight: bold;
}

/* Hiding the checkbox */
#wpls-toggle-notification {
  display: none;
}

/* The "X" to close the notification */
#wpls-hide-notification {
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);

  right: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  width: 16px;
  height: 16px;
  opacity: 0.3;
}
#wpls-hide-notification:hover {
  opacity: 1;
}
#wpls-hide-notification:before,
#wpls-hide-notification:after {
  position: absolute;
  left: 7px;
  content: " ";
  height: 17px;
  width: 2px;
  background-color: #fff;
}
#wpls-hide-notification:before {
  transform: rotate(45deg);
}
#wpls-hide-notification:after {
  transform: rotate(-45deg);
}

/* Displaying the notification bar when the checkbox is checked */
#wpls-toggle-notification:checked + #wpls-notification {
  transition: bottom 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  bottom: 30px;
}
#wpls-toggle-notification:checked + #wpls-notification.top-left,
#wpls-toggle-notification:checked + #wpls-notification.top-center,
#wpls-toggle-notification:checked + #wpls-notification.top-right {
  transition: top 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  top: 10px;
  bottom: auto;
}
#wpls-toggle-notification:checked + #wpls-notification.top-center {
  left: 0;
  right: 0;
  margin: 0px auto;
}
.admin-bar #wpls-toggle-notification:checked + #wpls-notification.top-left,
.admin-bar #wpls-toggle-notification:checked + #wpls-notification.top-center,
.admin-bar #wpls-toggle-notification:checked + #wpls-notification.top-right {
  top: 45px;
}
