/* Platform alert bar, the same file in every SupportNow platform app.
   Fixed and sticky top chrome uses top: var(--sn-flash-h, 0px) so it sits below the bar. */
.sn-flash-stack {
  position: sticky;
  top: 0;
  z-index: 1042; /* over fixed admin sidebars (1040), under Bootstrap offcanvas and modals */
  overflow: hidden;
}

.sn-flash {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  padding: 14px 60px;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.sn-flash.is-error { background: #dc3545; }
.sn-flash.is-success { background: #198754; }
.sn-flash.is-warning { background: #ffc107; color: #212529; }

.sn-flash-close {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -18px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: inherit;
  line-height: 0;
  opacity: .85;
  cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease;
}

.sn-flash-close:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.sn-flash.is-warning .sn-flash-close:hover { background: rgba(0, 0, 0, .08); }
.sn-flash-close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; opacity: 1; }

@media (max-width: 599.98px) {
  .sn-flash { justify-content: flex-start; padding: 12px 52px 12px 16px; font-size: 15px; text-align: left; }
  .sn-flash-close { right: 6px; }
}
