/* PushBell frontend */
.pushbell-wrap { margin: 2em 0; text-align: center; }
.pushbell-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #14b8a6; color: #fff; border: none; border-radius: 999px;
  padding: 12px 28px; font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(20,184,166,.35); transition: transform .15s, box-shadow .15s, background .15s;
}
.pushbell-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,184,166,.45); }
.pushbell-btn.is-subscribed { background: #0f766e; }
.pushbell-btn.is-blocked { background: #9ca3af; cursor: not-allowed; box-shadow: none; }
.pushbell-bell { font-size: 18px; }
.pushbell-note { font-size: 13px; color: #6b7280; margin-top: 8px; }
.pushbell-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: #14b8a6; font-size: 24px; line-height: 1; color: #fff;
  box-shadow: 0 6px 20px rgba(20,184,166,.5); transition: transform .15s;
}
.pushbell-float:hover { transform: scale(1.08); }
.pushbell-float.is-blocked { filter: grayscale(0.5); }
.pushbell-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: #0f1b2d; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; max-width: 90vw; text-align: center; z-index: 10000;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.pushbell-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 600px) {
  .pushbell-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* Force-permission gate: full-screen overlay until notifications are allowed */
.pushbell-gate {
  position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(10, 18, 32, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.pushbell-gate-card {
  background: #fff; border-radius: 16px; max-width: 420px; width: 100%;
  padding: 32px 28px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  font-family: inherit;
}
.pushbell-gate-bell { font-size: 52px; margin-bottom: 12px; }
.pushbell-gate-card h2 { margin: 0 0 12px; font-size: 22px; color: #0f1b2d; }
.pushbell-gate-card p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #444; }
.pushbell-gate-btn {
  background: #0f1b2d; color: #fff; border: 0; border-radius: 10px;
  padding: 14px 28px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%;
}
.pushbell-gate-btn:hover { background: #1d2f4d; }
.pushbell-gate-help { font-size: 13px !important; color: #666 !important; margin-top: 16px !important; }
.pushbell-gate-help .pushbell-gate-btn { margin-top: 8px; }

/* Notification history (inbox) panel */
.pushbell-inbox {
  position: fixed; right: 18px; bottom: 92px; z-index: 2147483646;
  width: 340px; max-width: calc(100vw - 36px); max-height: 60vh;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
  font-family: inherit;
}
.pushbell-inbox-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #eee;
  font-size: 15px; color: #0f1b2d;
}
.pushbell-inbox-x {
  background: none; border: 0; font-size: 22px; line-height: 1;
  cursor: pointer; color: #888; padding: 0 4px;
}
.pushbell-inbox-list { overflow-y: auto; padding: 6px 0; }
.pushbell-inbox-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 16px; text-decoration: none; color: inherit;
}
.pushbell-inbox-item:hover { background: #f5f7fa; }
.pushbell-inbox-img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #eee; }
.pushbell-inbox-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pushbell-inbox-txt { display: flex; flex-direction: column; min-width: 0; }
.pushbell-inbox-title { font-size: 14px; font-weight: 700; color: #0f1b2d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pushbell-inbox-body { font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pushbell-inbox-empty { padding: 18px; text-align: center; font-size: 13px; color: #888; margin: 0; }
.pushbell-inbox-unsub {
  border: 0; border-top: 1px solid #eee; background: #fafafa;
  padding: 10px; font-size: 13px; color: #b00; cursor: pointer;
}
.pushbell-inbox-unsub:hover { background: #f3e6e6; }
@media (max-width: 600px) {
  .pushbell-inbox { right: 12px; bottom: 78px; width: calc(100vw - 24px); }
}
