/* Web Push Notification Plugin Styles
   Small top-of-screen notifications, clickable to fade and close.
*/

.s4a-push-container {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none; /* allow clicks only on notifications themselves */
  width: calc(100% - 32px);
  max-width: 420px;
  pointer-events: none;
}

.s4a-push {
  pointer-events: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
  color: #0b1220;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(2,6,23,0.12), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(11,18,32,0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 14px;
  line-height: 1.2;
  transition: opacity 280ms ease, transform 280ms ease;
  transform-origin: center top;
  cursor: pointer;
  overflow: hidden;
}

.s4a-push.s4a--hide {
  opacity: 0;
  transform: translateY(-8px) scale(0.995);
  pointer-events: none;
}

.s4a-push .s4a-push-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef2ff, #e6f0ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-weight: 700;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.s4a-push .s4a-push-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.s4a-push .s4a-push-title {
  font-weight: 700;
  font-size: 14px;
  color: #0b1220;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s4a-push .s4a-push-body {
  font-size: 13px;
  color: #334155;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* subtle accent when hovering */
.s4a-push:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(2,6,23,0.14), 0 4px 10px rgba(0,0,0,0.06);
}

/* collapsed / very small screens */
@media (max-width: 420px) {
  .s4a-push-container { top: 8px; padding: 0 8px; max-width: calc(100% - 16px); }
  .s4a-push { padding: 8px 10px; border-radius: 8px; }
  .s4a-push .s4a-push-title { font-size: 13px; }
  .s4a-push .s4a-push-body { font-size: 12px; }
}
