.sw-brand-notifications {
  align-items: center;
  display: flex;
  gap: 20px;
}

.sw-brand-notifications .wp-block-site-logo {
  border-right: 1px solid #ccc;
  height: 25px;
  padding-right: 30px;
}

.sw-brand-notifications .wp-block-site-logo > a {
  transform: translateY(-10px);
}

.sw-notification-bell {
  appearance: none !important;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: #17212b !important;
  cursor: pointer;
  display: inline-flex !important;
  flex: 0 0 auto;
  height: 31px !important;
  justify-content: center;
  line-height: 1 !important;
  margin: 0 !important;
  max-width: 31px !important;
  min-height: 31px !important;
  min-width: 31px !important;
  padding: 0 !important;
  position: relative !important;
  transform: translateY(1px);
  width: 31px !important;
}

.sw-notification-bell:hover,
.sw-notification-bell:focus-visible {
  background: #e5f1f6 !important;
  color: #087eaa !important;
  outline: 2px solid transparent;
}

.sw-notification-bell .fa-bell-o {
  color: darkslategray !important;
  font-family: FontAwesome !important;
  font-size: 17px !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
}

.sw-notification-badge {
  background: #118cc2;
  border: 1px solid #fff;
  border-radius: 50%;
  height: 8px;
  position: absolute;
  right: 3px;
  top: 3px;
  width: 8px;
}

.sw-notification-panel {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(18, 38, 52, 0.18);
  box-sizing: border-box !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  max-height: min(470px, calc(100vh - 110px));
  overflow: hidden;
  padding: 0 !important;
  position: fixed;
  text-align: left !important;
  text-transform: none !important;
  width: min(380px, calc(100vw - 24px));
  z-index: 1035;
}

.sw-notification-panel *,
.sw-notification-toasts * {
  box-sizing: border-box;
}

.sw-notification-panel button,
.sw-notification-toasts button {
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.sw-notification-panel__header {
  align-items: center;
  border-bottom: 1px solid #e5eaed;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px 10px 16px;
}

.sw-notification-panel__heading,
.sw-notification-panel__actions {
  align-items: center;
  display: flex;
}

.sw-notification-panel__heading {
  gap: 7px;
}

.sw-notification-panel__actions {
  gap: 15px;
}

.sw-notification-panel__header h2 {
  color: #17212b;
  font-family: inherit !important;
  font-size: 14px;
  font-style: normal !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  line-height: 1.3;
  margin: 0;
  text-transform: none !important;
}

.sw-notification-panel__count {
  align-items: center;
  background: #edf0f2;
  border-radius: 10px;
  color: #69757e;
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 5px;
}

.sw-notification-panel__close {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #65727a !important;
  cursor: pointer;
  font-size: 22px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 1px !important;
  transform: translateY(-1px);
}

.sw-notification-sound,
.sw-notification-mark-all,
.sw-notification-load-more {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #087eaa !important;
  cursor: pointer;
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sw-notification-sound {
  color: #17212b !important;
  font-size: 13px !important;
}

.sw-notification-sound:hover,
.sw-notification-sound:focus-visible,
.sw-notification-mark-all:hover,
.sw-notification-mark-all:focus-visible,
.sw-notification-panel__close:hover,
.sw-notification-panel__close:focus-visible {
  color: #087eaa !important;
  outline: none;
}

.sw-notification-history {
  max-height: min(370px, calc(100vh - 210px));
  overflow-y: auto;
  scrollbar-color: #8a8f93 transparent;
  scrollbar-width: thin;
}

.sw-notification-history::-webkit-scrollbar {
  width: 8px;
}

.sw-notification-history::-webkit-scrollbar-thumb {
  background: #8a8f93;
  border: 2px solid #fff;
  border-radius: 8px;
}

.sw-notification-history__item {
  border-bottom: 1px solid #edf0f2;
  cursor: pointer;
  min-height: 78px;
  padding: 11px 18px 10px 39px;
  position: relative;
}

.sw-notification-history__item:hover,
.sw-notification-history__item:focus-visible {
  background: #f4f9fb;
  outline: none;
}

.sw-notification-history__item.is-unread {
  background: #fff;
}

.sw-notification-history__item.is-unread::before {
  background: #0b88b4;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 20px;
  position: absolute;
  top: 18px;
  width: 6px;
}

.sw-notification-history__title,
.sw-notification-toast__title {
  color: #17212b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.sw-notification-history__item.is-unread .sw-notification-history__title {
  font-weight: 600;
}

.sw-notification-history__message,
.sw-notification-toast__message {
  color: #65717b;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 1px;
}

.sw-notification-history__time,
.sw-notification-toast__time {
  color: #8a969f;
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 5px;
}

.sw-notification-history__empty {
  color: #6d7880;
  font-size: 14px;
  padding: 34px 18px 38px;
  text-align: center;
}

.sw-notification-load-more {
  border-top: 1px solid #e5eaed;
  display: block;
  padding: 8px 18px !important;
  text-align: center;
  width: 100%;
}

.sw-notification-load-more:disabled {
  cursor: wait;
  opacity: 0.55;
}

.sw-notification-toasts {
  bottom: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-style: normal !important;
  gap: 10px;
  letter-spacing: normal !important;
  max-width: calc(100vw - 32px);
  pointer-events: none;
  position: fixed;
  right: 24px;
  text-align: left !important;
  text-transform: none !important;
  width: 360px;
  z-index: 1035;
}

.sw-notification-toast {
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  align-items: start;
  background: rgba(249, 251, 252, 0.78);
  border: 1px solid rgba(110, 130, 143, 0.3);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(25, 43, 55, 0.22), 0 3px 8px rgba(25, 43, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: default;
  display: grid;
  gap: 9px;
  grid-template-columns: 17px minmax(0, 1fr) auto 23px;
  min-height: 78px;
  opacity: 0;
  overflow: hidden;
  padding: 11px 9px 11px 14px;
  pointer-events: auto;
  position: relative;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sw-notification-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sw-notification-toast.is-dismissing {
  transition-duration: 700ms;
}

.sw-notification-toast:hover,
.sw-notification-toast:focus-visible {
  border-color: rgba(88, 139, 166, 0.34);
  outline: none;
}

.sw-notification-toast__icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #1684bd;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  height: 14px;
  justify-content: center;
  line-height: 1;
  margin: 3px auto 0;
  width: 14px;
}

.sw-notification-toast__content {
  min-width: 0;
}

.sw-notification-toast .sw-notification-toast__title {
  color: #313a40;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.sw-notification-toast .sw-notification-toast__message {
  color: #5e6972;
  font-size: 13px;
  line-height: 18px;
  margin-top: 0;
}

.sw-notification-toasts .sw-notification-toast__view {
  appearance: none !important;
  background: rgba(235, 246, 252, 0.82) !important;
  border: 1px solid #b7d7e9 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #1475aa !important;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 500 !important;
  height: 28px;
  line-height: 18px !important;
  margin: 0 !important;
  min-width: 53px;
  padding: 4px 12px !important;
}

.sw-notification-toasts .sw-notification-toast__view:hover,
.sw-notification-toasts .sw-notification-toast__view:focus-visible {
  background: rgba(220, 239, 249, 0.96) !important;
  border-color: #84bcd8 !important;
  outline: none;
}

.sw-notification-toasts .sw-notification-toast__close {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #7a8790 !important;
  cursor: pointer;
  font-size: 20px !important;
  height: 28px;
  line-height: 20px !important;
  margin: 0 !important;
  padding: 3px 2px 5px !important;
  width: 23px;
}

.sw-notification-toasts .sw-notification-toast__close:hover,
.sw-notification-toasts .sw-notification-toast__close:focus-visible {
  color: #4f5d66 !important;
  outline: none;
}

@media (max-width: 640px) {
  .sw-brand-notifications {
    gap: 10px;
  }

  header .sw-brand-notifications .wp-block-site-logo img {
    height: auto !important;
    margin-left: 0 !important;
    width: min(72vw, 250px) !important;
  }

  .sw-notification-panel {
    border-radius: 10px 10px 0 0;
    bottom: 0;
    left: 0;
    max-height: min(76vh, 470px);
    right: 0;
    top: auto;
    width: 100%;
  }

  .sw-notification-history {
    max-height: calc(76vh - 95px);
  }

  .sw-notification-toasts {
    bottom: 14px;
    left: 14px;
    max-width: none;
    right: 14px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-notification-toast {
    transition: none;
  }
}
