/**
 * @file
 * Site-wide read-only mode banner.
 *
 * Values follow the afsdash theme's members notification block
 * (scss/components/blocks/_block-block-notification.scss), kept here as
 * plain CSS so the banner looks the same under the admin theme too.
 */

.afsdash-readonly-banner {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 16px auto;
  padding: 0 15px;
}

.afsdash-readonly-banner__inner {
  display: flex;
  min-height: 108px;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 16px rgba(172, 175, 199, .25);
  font-family: 'Poppins', sans-serif;
}

.afsdash-readonly-banner__icon {
  flex: 0 0 80px;
  background: url("/modules/custom/afsdash_readonly/css/../images/notification-icon.svg") #AD3131 no-repeat center;
  background-size: 45% auto;
}

.afsdash-readonly-banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
}

.afsdash-readonly-banner__title {
  margin-bottom: 6px;
  color: #7F849D;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

.afsdash-readonly-banner__text {
  color: #434963;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

@media (max-width: 600px) {
  .afsdash-readonly-banner__inner {
    display: block;
  }

  .afsdash-readonly-banner__icon {
    height: 50px;
    background-size: 27px auto;
  }
}

/* The login page is a two-column flex layout with no header: float the
   banner over the top of it instead of adding a third column. */
.user-login-page .afsdash-readonly-banner {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
}
