/* Qyverix Mail — notification banner and settings widget.
   Shapes follow the Gmail layer: pill buttons, one soft elevation, no borders
   competing with the message list. */

.qyx-push-banner {
  position: fixed;
  z-index: 1400;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas: "icon text" "icon actions";
  gap: 4px 14px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  color: #202124;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .25), 0 12px 34px rgba(60, 64, 67, .2);
  animation: qyx-push-rise .28s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes qyx-push-rise {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.qyx-push-banner-icon { grid-area: icon; width: 40px; height: 40px; }
.qyx-push-banner-text { grid-area: text; font-size: 14px; line-height: 1.45; }
.qyx-push-banner-actions {
  grid-area: actions;
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px;
}

.qyx-push-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 20px;
  transition: background .15s, box-shadow .15s, filter .15s;
}
.qyx-push-btn[disabled] { opacity: .55; cursor: default; }

.qyx-push-btn-primary {
  color: #fff;
  background: #673de6;
  box-shadow: 0 2px 8px rgba(103, 61, 230, .35);
}
.qyx-push-btn-primary:hover:not([disabled]) { filter: brightness(1.08); }

.qyx-push-btn-flat { color: #673de6; background: transparent; }
.qyx-push-btn-flat:hover:not([disabled]) { background: rgba(103, 61, 230, .09); }

/* settings section */
.qyx-push-settings { padding: 4px 0 8px; max-width: 560px; }
.qyx-push-status { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #3c4043; }
.qyx-push-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .qyx-push-banner { bottom: 12px; border-radius: 14px; }
  .qyx-push-banner-actions { justify-content: stretch; }
  .qyx-push-banner-actions .qyx-push-btn { flex: 1; }
}

/* dark mode — Elastic sets this class on <html> */
html.dark-mode .qyx-push-banner { background: #241d38; color: #ece9f5; }
html.dark-mode .qyx-push-status { color: #c9c3da; }
html.dark-mode .qyx-push-btn-flat { color: #b49bff; }
html.dark-mode .qyx-push-btn-flat:hover:not([disabled]) { background: rgba(180, 155, 255, .14); }

/* Settings list icon: a bell (Font Awesome 5, bundled with Elastic) */
.listing.iconized tr.qyverix_pwa > td.section:before{ content:"\f0f3"; }
