/* -----------------------------------------------
Notifications
----------------------------------------------- */

// ICON
.b-notification-toggle {
  position: relative;
  margin: 0 0.75rem;

  @media all and (max-width: 768px) {
    margin: 0 0.25rem;
  }

  @media all and (max-width: 480px) {
    margin: 0;
  }

  .b-icon {
    width: 1.4rem;
    height: 1.4rem;
    stroke-width: 3px;
  }
}

.b-notification-count {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #fc751a;
  color: #fff;
  display: block;
  position: absolute;
  align-items: center;
  text-align: center;
  font-size: 0.6rem;
  right: -0.3rem;
  top: -0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.3s ease-in-out;

  @media all and (max-width: 480px) {
    margin: 0 0.125rem;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.1rem;
    height: 1.1rem;
  }
}

// DROP DOWN MENU
.b-notification-dropdown-menu {
  width: 280px;
  margin-bottom: 0;

  &>div:first-of-type {
    margin-top: 0.5rem;
  }

  &>div:last-of-type {
    margin-bottom: 0.5rem;
  }
}

.b-notification-dropdown-content-remove {
  float: right;
  position: relative;
  top: -1.3rem;

  &:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

.b-notification-item {
  display: flex;
  align-items: flex-start;
  font-weight: 100;
  font-size: 0.9rem;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.b-notification-item-title {
  line-height: 1.1;
  white-space: normal;
  width: 85%;
  padding-top: 0.5rem;
  padding-left: 1rem;
}

.b-notification-item-datetime {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.125rem;
  padding-bottom: 0.5rem;
}

.b-notification-item-remove {
  width: 15%;
  padding: 0.5rem 1rem;
  margin-top: -0.2rem;

  &:hover .b-icon {
    fill: #f04437;
    stroke: #f04437;
    color: #f04437;
  }
}

.b-notification-item-view-all {
  display: flex;
  justify-content: space-between;
  background-color: #eee;
  border-top: rgba(0, 0, 0, 0.1) solid 1px;
  font-size: 0.8rem;
  font-weight: 100;
  padding: 0.75rem 1rem;
  color: #777;

  &:hover {
    color: #333;
  }
}

.b-notification-dropdown-content-container {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;

  &.is-fetched {
    visibility: visible;
    opacity: 1;
  }
}

.b-notifications-dropdown-content {
  padding: 0;
}