/* Header bell: everything the store owner should look at.
   Markup: Views/Shared/Components/AttentionBell/Default.cshtml. Script: wwwroot/js/attention-center.js. */

/* ── Trigger ────────────────────────────────────────── */
.ac-bell__count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
}

.ac-bell--ring {
  display: inline-block;
  transform-origin: 50% 0;
  animation: ac-ring 2.4s ease-in-out 1s 3;
}

@keyframes ac-ring {
  0%, 20%, 100% { transform: rotate(0); }
  4% { transform: rotate(14deg); }
  8% { transform: rotate(-12deg); }
  12% { transform: rotate(8deg); }
  16% { transform: rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ac-bell--ring { animation: none; }
}

/* ── Dropdown ───────────────────────────────────────── */
/* Never wider than the screen: on a phone it takes the width minus a 12px gutter on each side,
   and Popper's preventOverflow keeps it on screen. */
.ac-bell__menu {
  width: 380px;
  max-width: calc(100vw - 24px);
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(24, 28, 50, .12) !important;
}

.ac-bell__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  border-bottom: 1px solid var(--bs-gray-200, #eff2f5);
}

.ac-bell__head-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-light-primary, #f1faff);
  color: var(--bs-primary);
  font-size: 1rem;
}

.ac-bell__head-icon i {
  color: inherit;
}

.ac-bell__list {
  max-height: min(440px, 65vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .25rem .5rem .5rem;
}

.ac-bell__group + .ac-bell__group {
  border-top: 1px dashed var(--bs-gray-200, #eff2f5);
  margin-top: .25rem;
}

.ac-bell__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .75rem .35rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--bs-gray-500, #a1a5b7);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ac-bell__item {
  display: flex;
  gap: .75rem;
  padding: .7rem .75rem;
  border-radius: 10px;
  transition: background .15s ease;
}

.ac-bell__item:hover {
  background: #f9f9f9;
}

.ac-bell__item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ac-bell__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  line-height: 1.6;
}

.ac-bell__empty-icon {
  width: 46px;
  height: 46px;
  margin-bottom: .25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-light-success, #e8fff3);
  color: var(--bs-success, #50cd89);
  font-size: 1.5rem;
}

.ac-bell__empty-icon i {
  color: inherit;
}

.ac-bell__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--bs-gray-200, #eff2f5);
  color: var(--bs-gray-700, #5e6278);
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s ease, color .15s ease;
}

.ac-bell__foot:hover {
  background: #f9f9f9;
  color: var(--bs-primary);
}

.ac-bell__foot i {
  color: inherit;
}

/* Phones: a little more room for the text. */
@media (max-width: 575.98px) {
  .ac-bell__head { padding: .8rem 1rem; }
  .ac-bell__list { padding-inline: .25rem; }
  .ac-bell__item { padding: .65rem .6rem; }
}
