
/* ============================================================
   INBOX / NOTIFICATIONS
   ============================================================ */

.inbox-dropdown {
  width: 430px;
  max-width: calc(100vw - 24px);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
}


/* ------------------------------------------------------------
   Wrapper
   ------------------------------------------------------------ */

.inbox-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
}


/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.inbox-header {
  padding: 15px 16px;
  background: var(--bs-body-bg, #fff);
  border-bottom: 1px solid var(--bs-border-color, #e7e7e7);
}

.inbox-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 11px;

  background: rgba(255, 193, 7, .14);
  color: #f0ad00;

  font-size: 16px;
}

.inbox-header-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  color: var(--bs-heading-color, #384551);
}

.inbox-header-subtitle {
  margin-top: 2px;

  font-size: 11px;
  line-height: 14px;

  color: var(--bs-secondary-color, #8592a3);
}

.inbox-mark-all {
  padding: 4px 6px;

  color: var(--bs-primary, #696cff) !important;

  font-size: 12px;
  font-weight: 600;

  text-decoration: none !important;
}

.inbox-mark-all:hover {
  opacity: .75;
}


/* ------------------------------------------------------------
   Scroll
   ------------------------------------------------------------ */

.inbox-scroll {
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
}


/* ------------------------------------------------------------
   List
   ------------------------------------------------------------ */

.inbox-list {
  display: flex;
  flex-direction: column;
}


/* ------------------------------------------------------------
   Notification
   ------------------------------------------------------------ */

.inbox-notification {
  position: relative;

  display: flex;

  padding: 14px 38px 14px 16px;

  border-bottom: 1px solid var(--bs-border-color, #eeeeee);

  background: var(--bs-body-bg, #fff);

  transition:
    background-color .15s ease,
    transform .2s ease,
    opacity .2s ease;
}

.inbox-notification-removing {
  transform: translateX(100%);
  transition: transform .3s ease;
}

.inbox-notification:last-child {
  border-bottom: 0;
}

.inbox-notification:hover {
  background: rgba(105, 108, 255, .045);
}



/* ------------------------------------------------------------
   Unread indicator
   ------------------------------------------------------------ */

.inbox-notification-indicator {
  flex-shrink: 0;

  width: 7px;
  height: 7px;

  margin-top: 6px;
  margin-right: 10px;

  border-radius: 50%;

  background: var(--bs-primary, #696cff);

  box-shadow: 0 0 0 3px rgba(105, 108, 255, .12);
}


/* ------------------------------------------------------------
   Icon
   ------------------------------------------------------------ */

.inbox-notification-icon {
  flex-shrink: 0;

  width: 36px;
  height: 36px;

  margin-right: 11px;

  border-radius: 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(105, 108, 255, .10);
  color: var(--bs-primary, #696cff);

  font-size: 14px;
}


/* ------------------------------------------------------------
   Content
   ------------------------------------------------------------ */

.inbox-notification-content {
  min-width: 0;
  flex: 1;
}

.inbox-notification-title {
  min-width: 0;

  font-size: 13px;
  font-weight: 700;
  line-height: 17px;

  color: var(--bs-heading-color, #384551);

  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-notification-date {
  flex-shrink: 0;

  font-size: 10px;
  line-height: 15px;

  color: var(--bs-secondary-color, #a1acb8);
}

.inbox-notification-message {
  margin-top: 4px;

  font-size: 12px;
  line-height: 17px;


  overflow-wrap: anywhere;
}

.inbox-notification-message p {
  margin-bottom: 0;
}


/* ------------------------------------------------------------
   Actions
   ------------------------------------------------------------ */

.inbox-notification-actions {
  margin-top: 8px;
}

.inbox-open {
  padding: 3px 9px;

  font-size: 11px;
  line-height: 16px;

  border-radius: 6px;
}


/* ------------------------------------------------------------
   Dismiss button
   ------------------------------------------------------------ */

.inbox-dismiss {
  position: absolute;

  top: 10px;
  right: 9px;

  width: 25px;
  height: 25px;

  padding: 0;

  border: 0;
  border-radius: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  color: var(--bs-secondary-color, #a1acb8);

  font-size: 12px;

  cursor: pointer;

  transition:
    background-color .15s ease,
    color .15s ease;
}

.inbox-dismiss:hover {
  background: rgba(220, 53, 69, .10);
  color: #dc3545;
}


/* ------------------------------------------------------------
   Empty
   ------------------------------------------------------------ */

.inbox-empty {
  padding: 45px 20px;

  text-align: center;
}

.inbox-empty-icon {
  width: 48px;
  height: 48px;

  margin: 0 auto 12px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(108, 117, 125, .10);
  color: #8592a3;

  font-size: 18px;
}

.inbox-empty-title {
  font-size: 13px;
  font-weight: 700;

  color: var(--bs-heading-color, #384551);
}

.inbox-empty-text {
  margin-top: 3px;

  font-size: 11px;

  color: var(--bs-secondary-color, #a1acb8);
}


/* ------------------------------------------------------------
   Remove animation
   ------------------------------------------------------------ */

.inbox-notification.inbox-removing {
  opacity: 0;
  transform: translateX(35px);
}


/* ------------------------------------------------------------
   Badge
   ------------------------------------------------------------ */

#inbox_total_unread {
  min-width: 18px;
  height: 18px;

  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  top: 0;
  right: -4px;

  font-size: 12px;
  font-weight: 700;

  border: 2px solid var(--bs-body-bg, #fff);
}


/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media (max-width: 575.98px) {

  .inbox-dropdown {
    position: fixed !important;

    top: 58px !important;
    right: 12px !important;
    left: 12px !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    border-radius: 13px;
  }

  .inbox-scroll {
    max-height: calc(100vh - 140px);
  }

  .inbox-notification {
    padding-left: 13px;
    padding-right: 36px;
  }

  .inbox-header {
    padding: 13px;
  }

}
