/* Иконка колокольчика и бейдж */
.notifications-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #73afff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.notifications-badge {
  position: absolute;
  top: -9px;
  right: -13px;
  background: #ff4e4e;
  color: #ffffff;
  border-radius: 10px;
  width: 28px;
  height: 17px;
  font-weight: 700;
  font-size: 13px;
  line-height: 15px;
  text-align: center;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-notifications {
  position: relative;
  z-index: 1040;
}
.notifications-text,
.bd-header .bd-header-main .header-content .header-lk .lk-text {
  font-weight: 400;
  font-size: 13px;
  line-height: 15px;
  text-align: center;
  vertical-align: middle;
  color: #ffffff;
  text-decoration: none;
}

.header-notifications {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 15px;
}

/* lk icon */
.bd-header .bd-header-main .header-content .header-lk .lk-text:hover,
.header-notifications .notifications-text:hover {
  text-decoration: underline;
  cursor: pointer;
}
.bd-header .bd-header-main .header-content .header-lk > a {
  width: 61px;
  overflow: unset;
}
.bd-header .bd-header-main .header-content .header-lk .lk-logo {
  margin: auto;
}
.bd-header .bd-header-main .header-content .header-lk > a .lk-text {
  position: relative;
  top: 10px;
}

/* Выпадающий блок уведомлений */
.notifications-dropdown {
  position: absolute;
  right: 117px;
  top: 105px;
  z-index: 1040;
  display: none;
}

.notifications-dropdown.is-open {
  display: block;
}

.notifications-dropdown-inner {
  background: #ffffff;
  border-radius: 20px;
  width: 653px;
  height: 456px;
  max-width: 100%;
  overflow: hidden;
}

.notifications-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
}

.notifications-dropdown-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  vertical-align: middle;
}

.notifications-dropdown-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.notifications-dropdown-body {
  padding: 0px 30px 16px;
}
.notifications-list {
  max-height: 331px;
  min-height: 331px;
  overflow-y: auto;
}

.notifications-empty {
  position: relative;
  padding: 100px 0px 0px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.notifications-empty-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  vertical-align: middle;
  color: #000;
}

.notifications-empty-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  vertical-align: middle;
  color: #000;
}
.notifications-empty-action {
  text-align: center;
  padding-top: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notifications-empty-action a.btn-primary {
  font-weight: 600;
  font-size: 14px;
  line-height: 16.8px;
  text-align: center;
  vertical-align: middle;
  background-color: #0057bc;
  border-radius: 7px;
  width: 180px;
  height: 44px;
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notifications-empty-action a.btn-primary:hover {
  opacity: 0.8;
}
.notifications-loading {
  padding: 16px;
}

.notifications-list::-webkit-scrollbar {
  width: 7px; /* width of the vertical scrollbar */
}

.notifications-list::-webkit-scrollbar-thumb {
  background-color: #0061e3; /* color of the thumb */
  border: 2px solid transparent;
  border-radius: 20px;
  background-clip: content-box;
}

.notifications-list::-webkit-scrollbar-track {
  background-color: #f7faff; /* color of the track */
}

/* Стилизация стрелок (кнопок) */
.notifications-list::-webkit-scrollbar-button {
  background-repeat: no-repeat;
}

/* Стрелка вверх */
.notifications-list::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("/local/templates/new_rmj/icons/arr-top.svg");
}

/* Стрелка вниз */
.notifications-list::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("/local/templates/new_rmj/icons/arr-bottom.svg");
}

.notification-item {
  padding-bottom: 10px;
}

/* Элементы уведомлений */

.notification-content {
  display: flex;
  align-items: baseline;
  column-gap: 30px;
}
.notification-item.unread
  .notification-content
  .notification-content-left
  .notification-section {
  position: relative;
  padding-left: 7px;
}
.notification-content .notification-content-left {
  width: 111px;
  max-width: 100%;
}
.notification-content .notification-content-left span {
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  vertical-align: middle;
  color: #000000;
}
.notification-section-link_all a {
  font-weight: 700;
  font-size: 12px;
  line-height: 100%;
  vertical-align: middle;
  text-decoration: underline;
  white-space: nowrap;
  color: #0061e3;
}
.notification-section-link_all a:hover {
  text-decoration: none;
}
.notification-content .notification-content-right {
  width: 100%;
  padding-bottom: 2px;
  border-bottom: 1px solid #8cbdff;
  margin-right: 6px;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  height: 34px;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  vertical-align: middle;
  color: #000000;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis; /* Optional: adds the '...' */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Number of lines to show */
  line-clamp: 2; /* Standard property */
  -webkit-box-orient: vertical;
}

.notification-center {
  display: flex;
  align-items: center;
  column-gap: 8px;
  row-gap: 5px;
  flex-wrap: wrap;
}
.notification-item .notification-center {
  justify-content: space-between;
}
.notification-sections {
  display: flex;
  align-items: center;
  column-gap: 7px;
  row-gap: 5px;
  flex-wrap: wrap;
}

.notification-sections .section-badge {
  background: #fff;
  border: 1px solid #00499e;
  height: 20px;
  padding: 1px 6px 1px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  line-height: 17px;
  text-align: left;
  vertical-align: middle;
  color: #00499e;
  text-decoration: none;
  max-width: 151px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.notification-sections .section-badge:hover {
  background-color: #00499e;
  color: #fff;
  text-decoration: none;
}

.notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
}
.notification-date {
  font-weight: 600;
  font-size: 12px;
  line-height: 100%;
  vertical-align: middle;
  color: #000000;
}
.notification-views {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 5px;
}
.notification-views .count {
  font-weight: 600;
  font-size: 12px;
  line-height: 19.2px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #b0b3b9;
  position: relative;
  top: 1px;
}
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 7px;
}
.notifications-wrapper .notifications-footer button.btn,
.notifications-wrapper .notifications-list-mobile button.btn,
.notification-item .notification-actions button.btn,
.notification-item .notification-actions a.btn {
  font-weight: 600;
  font-size: 12px !important;
  line-height: 28.8px;
  vertical-align: middle;
  color: #0061e3;
  display: flex;
  align-items: center;
  column-gap: 3px;
  outline: none;
  box-shadow: none;
  height: 10px;
}
.notification-item .notification-actions a.btn {
  font-weight: 700;
}
.notifications-wrapper
  .notifications-list-mobile
  button.btn.js-notifications-mark-all,
.notifications-wrapper
  .notifications-footer
  button.btn.js-notifications-mark-all {
  padding-top: 5px;
}
.notification-item .notification-actions button.btn {
  text-decoration: none;
}
.notifications-wrapper button.js-notifications-mark-all.js-btn-noactive {
  color: #b0b3b9;
  pointer-events: none;
}
.notifications-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 131px;
  padding-right: 6px;
}
.notifications-footer.list-wth-scroll {
  padding-right: 13px;
}
.notifications-dropdown .notifications-footer {
  min-height: 21px;
}
.notifications-dropdown .notifications-footer .js-notifications-mark-all.js-btn-right {
  width: 100%;
  justify-content: flex-end;
}
.notifications-wrapper .notifications-footer .js-notifications-more {
  width: 216px;
  height: 21px;
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid #00499e;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0px 9px;
}
.notifications-wrapper .notifications-footer .js-notifications-more:hover {
  background: #0061e3;
  color: #fff;
  text-decoration: none;
}
.js-notifications-mark-all:hover {
  text-decoration: underline;
}
/* "непрочитано" для списка статей */
.unread-notification {
  position: relative;
  padding-left: 20px;
}

.unread-indicator-dot {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 5px;
  height: 5px;
  background: #0061e3;
  border-radius: 50%;
}
.bd-header .bd-header-main .header-content {
  position: relative;
}

/* Подложка под дропдаун уведомлений */
.notifications-overlay {
  position: fixed;
  inset: 0;
  background: #001c3dad;
  z-index: 1030;
  display: none;
}

.notifications-overlay.is-open {
  display: block;
}
.notifications-loading .spinner-border {
  border-color: #00499e;
  border-right-color: transparent;
}
/* panel cookies and button */
main .add-button,
.panel_block { 
  z-index: 1041 !important;
}
@media (max-width: 1200px) {
  .notifications-icon {
    width: 31px;
    height: 31px;
  }
  .notifications-icon img {
    width: 21px;
    height: 21px;
  }
  .notifications-badge {
    font-size: 10px;
  }
  /* lk icon */
  .notifications-text,
  .bd-header .bd-header-main .header-content .header-lk > a .lk-text {
    display: none;
  }
  .bd-header .bd-header-main .header-content .header-lk > a {
    width: auto;
  }
}
@media (max-width: 992px) {
  .bd-header .bd-header-main .header-content .header-lk > a .lk-text {
    display: none;
  }
  .bd-header .bd-header-main .header-content .header-lk > a {
    width: auto;
  }
  .notifications-dropdown {
    right: 0;
    left: 0;
  }
  .notifications-dropdown-inner {
    width: 100%;
  }
}
@media (max-width: 768.98px) {
  .notifications-dropdown-body {
    padding: 0px 15px 15px;
  }
  .notifications-dropdown-header {
    padding: 15px 15px;
  }
  .notification-content .notification-content-left {
    width: 114px;
  }
}
/* mobile */
.notifications-list-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.notifications-list-mobile-title {
  font-weight: 600;
  font-size: 19.6px;
  line-height: 23.52px;
  vertical-align: middle;
  color: #000000;
}

@media (min-width: 599px) {
  .notification-item .notification-actions a.btn,
  .notification-item .notification-actions button.btn {
    padding-top: 5px;
  }
  .notification-item .notification-actions a.btn svg,
  .notification-item .notification-actions button.btn svg {
    margin-top: -1px;
  }
}

@media (max-width: 650px) {
  .notification-center {
    row-gap: 21px;
    flex-direction: column;
    align-items: flex-start;
  }
  .notification-actions {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .notifications-dropdown {
    right: 8px;
    left: 8px;
    top: 64px;
  }

  .notifications-dropdown-inner {
    width: 100%;
    max-height: 80vh;
  }
  .notifications-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 3.5px;
  }
  .notifications-icon img {
    width: 16px;
    height: 16px;
  }
  .notifications-badge {
    width: 20px;
    height: 12px;
    top: -6px;
    right: -10px;
  }
  .notifications-footer {
    padding: 0px;
    padding-right: 0px !important;
    justify-content: center;
    padding-top: 17px;
  }
  .notification-content .notification-content-left {
    width: 139px;
  }
  .notification-item.unread
    .notification-content
    .notification-content-left
    .notification-section {
    padding-left: 13px;
  }
  .notification-meta {
    padding-top: 0px;
  }
  .notification-header {
    margin-bottom: 2px;
  }
  .notification-content .notification-content-right {
    padding-bottom: 7px;
  }
  .notifications-list {
    max-height: 860px;
    min-height: auto;
  }
  .notifications-empty {
    padding: 35px 29px 15px;
  }
  .notifications-empty-title {
    margin-bottom: 8px;
    line-height: 19px;
    padding-top: 16px;
  }
  .notifications-empty-text br {
    display: none;
  }
  .notifications-empty-action a.btn-primary {
    width: 164px;
  }
  .notifications-empty-action {
    padding-top: 40px;
  }
  .notifications-wrapper .notifications-footer .js-notifications-more {
    padding: 10px 0px 9px;
    height: 21px;
  }
  .header-notifications {
    z-index: 999;
  }
  .notification-views .count {
    top: 0px;
  }
}
@media (max-width: 385.98px) {
  .bd-header .bd-header-main .header-content .header-logo-text {
    padding-right: 5px;
  }
}
@media (max-width: 355.98px) {
  .bd-header .bd-header-main .header-content .header-logo-text {
    padding-right: 18px;
  }
}
@media (max-width: 320.98px) {
  .notification-content {
    column-gap: 29px;
  }
}