/* Topbar notification widget styles extracted from template.css. */
.topbar-notifications-region {
  line-height: 1;
  margin-right: 14px;
  position: relative;
}

.topbar-notifications-region .block,
.topbar-notifications-region .block-content {
  margin: 0;
  padding: 0;
}

.topbar-notifications-region .notify-widget {
  float: none !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  position: relative;
}

.topbar-notifications-region #notify_toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  border-radius: 50%;
  background: #fff none !important;
  background-image: none !important;
  background-size: auto !important;
  border: 1px solid #edf0f4;
  /* box-shadow: 0 8px 20px rgba(31, 41, 51, 0.12); */
  color: #2f3a48;
  font-size: 0;
  padding: 0 !important;
  text-indent: 0;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar-notifications-region #notify_toggle::before {
  content: "\f0f3";
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-indent: 0;
  color: inherit;
}

.topbar-notifications-region #notify_toggle::after {
  content: "";
  width: 18px;
  height: 3px;
  position: absolute;
  right: 7px;
  bottom: -7px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.topbar-notifications-region #notify_toggle:hover,
.topbar-notifications-region #notify_toggle:focus {
  background: #f7f9fc !important;
  border-color: #e3e8ef;
  /* box-shadow: 0 10px 24px rgba(31, 41, 51, 0.16); */
  color: #2f3a48;
  transform: translateY(-1px);
}

.topbar-notifications-region .notify-widget:has(#notify_widget_popup.is-open) #notify_toggle {
  background: #fff5f7 !important;
  border-color: var(--ziston-theme-color);
  /* box-shadow: 0 10px 24px rgba(176, 54, 84, 0.16); */
  color: var(--ziston-theme-color);
}

.topbar-notifications-region .notify-widget:has(#notify_widget_popup.is-open) #notify_toggle::after {
  background: var(--ziston-theme-color);
}

.topbar-notifications-region .notify-widget .unread {
  min-width: 18px;
  height: 18px;
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--ziston-theme-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0 5px;
}

.topbar-notifications-region .notify-widget .unread:empty {
  width: 12px;
  min-width: 12px;
  height: 12px;
  top: -3px;
  right: -3px;
  padding: 0;
}

.topbar-notifications-region #notify_widget #notify_widget_popup {
  width: min(520px, calc(100vw - 24px));
  position: absolute;
  top: 43px;
  right: 0;
  left: auto;
  z-index: 100;
  padding: 0;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.topbar-notifications-region #notify_widget #notify_widget_popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar-notifications-region #notify_widget #notify_widget_popup h2 {
  margin: 0;
  padding: 20px 62px 16px 70px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #0f172a;
  position: relative;
}

.topbar-notifications-region #notify_widget #notify_widget_popup h2::before {
  content: "\f0f3";
  position: absolute;
  left: 22px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(176, 54, 84, 0.08);
  display: grid;
  place-items: center;
  color: var(--ziston-theme-color);
  font-family: "Font Awesome 6 Free";
  font-size: 16px;
  font-weight: 400;
}

.topbar-notifications-region #notify_widget #notify_widget_popup h2::after {
  content: "\00d7";
  position: absolute;
  right: 18px;
  top: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .inner {

  padding: 0 18px 18px;
  padding-top: 10px !important;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(480px, calc(100vh - 180px));
  overflow: auto;
 
}

.topbar-notifications-region #notify_widget #notify_widget_popup .inner > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notification {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 16px 42px 16px 16px;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notification:hover {
  transform: translateY(-2px);
  border-color: rgba(176, 54, 84, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notification::after {
  content: "\203a";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notification-type-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  position: static;
  border-radius: 50%;
  background: rgba(176, 54, 84, 0.08) !important;
  display: grid;
  place-items: center;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notification-type-icon::before {
  content: "i";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ziston-theme-color);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .text_wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 0;
  color: #4b5563;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .text_wrapper p {
  margin: 0;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600 !important;
  color: #111827;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .text {
  font-size: 14px;
  line-height: 1.45;
  color: #4b5563;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ziston-theme-color);
}

.topbar-notifications-region #notify_widget #notify_widget_popup .time::before {
  content: "\25f7";
  font-size: 15px;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid #e5eaf1;
  background: #f8fafc;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ziston-theme-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions a:hover {
  color: var(--ziston-theme-color);
}

.topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions .mark-all-notifications-read::before,
.topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions .mark-all-notifications-read::after,
.topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions .view-all-notifications::before,
.topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions .view-all-notifications::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

@media (max-width: 640px) {
  .topbar-notifications-region #notify_widget #notify_widget_popup {
    right: -90px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup h2 {
    padding: 18px 56px 14px 64px;
    font-size: 18px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup h2::before {
    left: 18px;
    width: 34px;
    height: 34px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup h2::after {
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup .inner {
    padding: 0 14px 16px;
    max-height: min(460px, calc(100vh - 170px));
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup .notification {
    gap: 12px;
    padding: 14px 34px 14px 14px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup .notification-type-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup .title {
    font-size: 15px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup .text {
    font-size: 13px;
  }

  .topbar-notifications-region #notify_widget #notify_widget_popup .notify-widget-actions {
    flex-direction: column;
    padding: 14px;
  }
}
