/* Compact, non-blocking customer notices and a bounded bell inbox. */
.store-notice-host {
  position: fixed;
  z-index: 2147482000;
  top: calc(82px + env(safe-area-inset-top));
  inset-inline-end: 16px;
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}
.store-notice {
  pointer-events: auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px 10px;
  padding: 13px 14px;
  border: 1px solid rgba(56, 189, 248, .38);
  border-radius: 14px;
  background: #092d4d;
  color: #f8fafc;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  direction: rtl;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}
.store-notice[data-priority="critical"] { border-color: rgba(251, 191, 36, .7); }
.store-notice-title {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.store-notice-close,
.store-inbox-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.store-notice-body {
  grid-column: 1 / -1;
  margin: 0;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}
.store-notice-action {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 8px;
  background: #0ea5e9;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.store-notice-action:hover { background: #0284c7; }
.notifications-dropdown[hidden] { display: none !important; }
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 1200;
  box-sizing: border-box;
  width: min(350px, calc(100vw - 24px));
  max-height: min(360px, 42vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 14px;
  background: #0a2d4d;
  color: #f8fafc;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  direction: rtl;
}
.store-inbox-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.store-inbox-head h3 { flex: 1; margin: 0; font-size: 14px; line-height: 1.3; }
.store-inbox-count { color: #a5d8ef; font-size: 11px; white-space: nowrap; }
.store-inbox-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.store-inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
  font: inherit;
}
.store-inbox-item:hover,
.store-inbox-item:focus-visible { background: rgba(56, 189, 248, .1); }
.store-inbox-item.is-read { opacity: .7; }
.store-inbox-thumb { flex: none; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.store-inbox-copy { min-width: 0; flex: 1; }
.store-inbox-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-inbox-body {
  display: -webkit-box;
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.store-inbox-item.is-expanded .store-inbox-title { overflow: visible; white-space: normal; }
.store-inbox-item.is-expanded .store-inbox-body { display: block; overflow: visible; }
.store-inbox-empty { margin: 0; padding: 26px 12px; color: #cbd5e1; text-align: center; font-size: 12px; }
@media (max-width: 640px) {
  .store-notice-host {
    top: calc(72px + env(safe-area-inset-top));
    inset-inline: 12px;
    width: auto;
  }
  .notifications-dropdown {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top));
    inset-inline: 12px;
    width: auto;
    max-height: min(300px, 38dvh);
  }
}
