.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 #d8e0e5;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(18, 38, 52, 0.2);
  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(620px, calc(100vh - 110px));
  overflow: hidden;
  padding: 0 !important;
  position: fixed;
  text-align: left !important;
  text-transform: none !important;
  width: min(390px, 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: flex-start;
  border-bottom: 1px solid #e5eaed;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.sw-notification-panel__header > div {
  align-items: end;
  display: flex;
  gap: 17px;
}

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

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

.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: 13px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sw-notification-sound .fa {
  margin-right: 4px;
}

.sw-notification-panel__actions {
  padding: 2px 18px;
  text-align: right;
}

.sw-notification-history {
  max-height: min(470px, calc(100vh - 245px));
  overflow-y: auto;
}

.sw-notification-history__item {
  border-top: 1px solid #edf0f2;
  cursor: pointer;
  padding: 13px 18px 12px 22px;
  position: relative;
}

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

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

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

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

.sw-notification-history__message,
.sw-notification-toast__message {
  color: #46545d;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 3px;
}

.sw-notification-history__time,
.sw-notification-toast__time {
  color: #78858d;
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

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

.sw-notification-load-more {
  border-top: 1px solid #e5eaed;
  display: block;
  padding: 11px 18px;
  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 {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d8e4e9;
  border-left: 4px solid #0b88b4;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(18, 38, 52, 0.18);
  cursor: pointer;
  opacity: 0;
  padding: 14px 38px 13px 15px;
  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: #a8cbd8;
  outline: none;
}

.sw-notification-toast__close {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #6d7880 !important;
  cursor: pointer;
  font-size: 21px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  position: absolute;
  right: 6px;
  top: 6px;
}

@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, 620px);
    right: 0;
    top: auto;
    width: 100%;
  }

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

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

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