/* mcoves PWA - notification bell (website, admin and seller panels) */
.mcpwa-bell {
  position: fixed; z-index: 9990; box-sizing: border-box;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #222; text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  -webkit-tap-highlight-color: transparent; transition: bottom .25s ease;
}
.mcpwa-bell:hover, .mcpwa-bell:focus { color: #000; text-decoration: none; }
.mcpwa-bell--top-right    { top: calc(12px + env(safe-area-inset-top, 0px));    right: calc(12px + env(safe-area-inset-right, 0px)); }
.mcpwa-bell--top-left     { top: calc(12px + env(safe-area-inset-top, 0px));    left: calc(12px + env(safe-area-inset-left, 0px)); }
.mcpwa-bell--bottom-right { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.mcpwa-bell--bottom-left  { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); }
/* keep clear of the installed app's bottom tab bar */
html.pwa-app.has-tabbar .mcpwa-bell--bottom-right,
html.pwa-app.has-tabbar .mcpwa-bell--bottom-left { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

/* the tab bar slid away: the bell drops back to the corner */
html.pwa-app.has-tabbar.tabbar-hidden .mcpwa-bell--bottom-right,
html.pwa-app.has-tabbar.tabbar-hidden .mcpwa-bell--bottom-left { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* placed in the theme's header through [data-pwa-bell-slot] */
.mcpwa-bell--inline {
  position: relative; top: auto; right: auto; bottom: auto; left: auto;
  width: 40px; height: 40px; background: transparent; border: 0; box-shadow: none; color: inherit;
}

.mcpwa-bell__badge {
  position: absolute; top: -4px; right: -4px; box-sizing: border-box;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e53935; color: #fff; text-align: center;
  font: 700 11px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mcpwa-bell__badge[hidden] { display: none; }

.mcpwa-bell.has-unread svg { animation: mcpwa-ring 1.2s ease-in-out 1; transform-origin: 50% 8%; }
@keyframes mcpwa-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }  80% { transform: rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) { .mcpwa-bell.has-unread svg { animation: none; } }
@media (prefers-color-scheme: dark) {
  .mcpwa-bell:not(.mcpwa-bell--inline) { background: #2b2b2e; color: #f2f2f2; border-color: rgba(255, 255, 255, .12); }
}
@media print { .mcpwa-bell { display: none; } }
