.notification-button {
  position: relative;
}

.notification-button > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button .notification-indicator {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d65045;
}

.notifications-panel {
  position: fixed;
  z-index: 1200;
  top: 72px;
  right: 20px;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 32px));
  max-height: min(72vh, 680px);
  overflow: hidden;
  border: 1px solid #dfe8e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(22 48 41 / 20%);
  color: #23332f;
}

.notifications-panel[hidden] {
  display: none;
}

.notifications-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #edf1ef;
}

.notifications-head h2 {
  margin: 0;
  font-size: 17px;
}

.notifications-head p {
  margin: 4px 0 0;
  color: #687874;
  font-size: 13px;
}

.notifications-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.notifications-close:hover,
.notifications-close:focus-visible {
  background: #eff5f3;
}

.notifications-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 12px;
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e8eeec;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.notification-item:hover,
.notification-item:focus-visible {
  border-color: #9dc9bc;
  background: #f7fbf9;
}

.notification-item strong {
  font-size: 14px;
  font-weight: 650;
}

.notification-item span {
  color: #687874;
  font-size: 13px;
}

.notification-item.is-read {
  opacity: .68;
}

.notifications-empty {
  margin: 8px;
  color: #687874;
  font-size: 14px;
}

.notifications-error {
  margin: 12px 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff3e7;
  color: #7a441b;
  font-size: 13px;
}

.notifications-error[hidden] {
  display: none;
}

.notifications-idoc:empty {
  display: none;
}

.notifications-idoc .idoc-hybrid-panel {
  margin: 0;
  border: 0;
  border-top: 1px solid #edf1ef;
  border-radius: 0;
  box-shadow: none;
}

.notifications-idoc .idoc-hybrid-bar {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.notifications-idoc .idoc-hybrid-bar [data-hybrid-notices] {
  display: grid;
  gap: 8px;
}

.notifications-idoc .notification-idoc-action {
  width: 100%;
  white-space: normal;
  text-align: left;
}

@media (max-width: 640px) {
  .notifications-panel {
    top: 62px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 74px);
  }
}
