.serva-push-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  color: #334155;
}

.serva-push-status[hidden],
.serva-push-consent[hidden],
.serva-push-toast[hidden] {
  display: none !important;
}

.serva-push-status-copy,
.serva-push-consent-heading,
.serva-push-toast-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.serva-push-status-icon,
.serva-push-consent-icon,
.serva-push-toast-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.serva-push-status-icon svg,
.serva-push-consent-icon svg,
.serva-push-toast-icon svg {
  width: 18px;
  height: 18px;
}

.serva-push-status-text,
.serva-push-toast-text {
  min-width: 0;
}

.serva-push-status-title,
.serva-push-toast-title {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serva-push-status-description,
.serva-push-toast-description {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serva-push-status-action,
.serva-push-consent-primary,
.serva-push-consent-secondary,
.serva-push-toast-close {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.serva-push-status-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.serva-push-status-action:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.serva-push-status-action:disabled,
.serva-push-consent-primary:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.serva-push-status[data-state="granted"] {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.serva-push-status[data-state="granted"] .serva-push-status-icon {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.serva-push-status[data-state="denied"] {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.serva-push-status[data-state="denied"] .serva-push-status-icon {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.serva-push-consent {
  position: fixed;
  z-index: 2147483000;
  inset-inline-start: 50%;
  bottom: 22px;
  width: min(460px, calc(100vw - 28px));
  transform: translateX(-50%);
  animation: serva-push-consent-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="rtl"] .serva-push-consent {
  transform: translateX(50%);
}

.serva-push-consent-card {
  padding: 17px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.22);
  color: #0f172a;
  backdrop-filter: blur(16px);
}

.serva-push-consent-icon {
  width: 42px;
  height: 42px;
}

.serva-push-consent-icon svg {
  width: 21px;
  height: 21px;
}

.serva-push-consent-title {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.serva-push-consent-description {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
}

.serva-push-consent-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}

.serva-push-consent-primary,
.serva-push-consent-secondary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.serva-push-consent-primary {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
}

.serva-push-consent-primary svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.serva-push-consent-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.serva-push-consent-secondary {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: transparent;
  color: #475569;
}

.serva-push-consent-secondary:hover {
  border-color: rgba(100, 116, 139, 0.5);
  background: rgba(148, 163, 184, 0.1);
}

.serva-push-toast {
  position: fixed;
  z-index: 2147483001;
  inset-inline-end: 20px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(390px, calc(100vw - 28px));
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  animation: serva-push-toast-in 220ms ease-out;
}

.serva-push-toast-copy {
  flex: 1 1 auto;
}

.serva-push-toast-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
}

.serva-push-toast-close:hover {
  background: rgba(148, 163, 184, 0.22);
}

.serva-push-toast-close svg {
  width: 17px;
  height: 17px;
}

.notif-item-image,
.notif-detail-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
}

.notif-item-image {
  max-height: 118px;
  margin-top: 9px;
}

.notif-detail-image {
  max-height: 230px;
  margin-top: 12px;
}

html.dark .serva-push-status {
  color: #e2e8f0;
}

html.dark .serva-push-status-description,
html.dark .serva-push-toast-description {
  color: #94a3b8;
}

html.dark .serva-push-consent-card,
html.dark .serva-push-toast {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(10, 15, 26, 0.97);
  color: #f8fafc;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

html.dark .serva-push-consent-description {
  color: #94a3b8;
}

html.dark .serva-push-consent-secondary {
  border-color: rgba(148, 163, 184, 0.26);
  color: #cbd5e1;
}

html.dark .serva-push-toast-close {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

@keyframes serva-push-consent-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

[dir="rtl"] .serva-push-consent {
  animation-name: serva-push-consent-in-rtl;
}

@keyframes serva-push-consent-in-rtl {
  from { opacity: 0; transform: translate(50%, 14px); }
  to { opacity: 1; transform: translate(50%, 0); }
}

@keyframes serva-push-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .serva-push-status {
    align-items: flex-start;
    margin-inline: 10px;
  }

  .serva-push-status-description {
    white-space: normal;
  }

  .serva-push-consent,
  .serva-push-toast {
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .serva-push-toast {
    inset-inline-end: 12px;
  }

  .serva-push-consent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .serva-push-consent-primary,
  .serva-push-consent-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serva-push-consent,
  .serva-push-toast,
  .serva-push-status-action,
  .serva-push-consent-primary,
  .serva-push-consent-secondary {
    animation: none !important;
    transition: none !important;
  }
}
