/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * Messages.
 */

/*
 * Media query breakpoints.
 * Processed by postcss/postcss-custom-media.
 */

/* Navigation related breakpoints */

/* Grid related breakpoints */

/* Grid shifts from 6 to 14 columns. */

/* Width of the entire grid maxes out. */

:root {
  --messages-icon-size: 2rem;
}

.messages-list {
  margin-block: var(--sp1);
  padding-block: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  list-style: none;
}

.messages {
  min-height: calc(var(--messages-icon-size) + var(--sp1)*2);
  padding-block: var(--sp1);
  padding-inline-start: var(--sp1-5);
  padding-inline-end: var(--sp1-5);
  color: var(--color--white);
  outline: solid 1px transparent;
  background-color: var(--color--gray-5)
}

.messages * {
    color: inherit;
  }

.messages {

  /* Additional specificity to override contrib modules. */
}

.messages.messages-list__item {
    background-image: none;
  }

.messages__list {
  margin-block: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-block: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  list-style: none;
}

.messages:not(.hidden) ~ .messages {
  margin-block-start: var(--sp1);
}

.messages__item + .messages__item {
  margin-block-start: var(--sp0-5);
}

.messages__container {
  display: flex;
}

.messages__header {
  flex-shrink: 0;
  margin-inline-end: var(--sp1)
}

.messages__header.no-icon {
    margin-inline-end: 0;
  }

.messages__content {
  overflow: auto; /* Ensure large code blocks can be scrolled to. */
  flex: 1;
  padding-block-start: 0.1875rem;
}

.messages__button {
  flex-shrink: 0;
  margin-inline-start: var(--sp1);
  padding-block-start: 0.1875rem;
}

.messages__close {
  position: relative;
  width: 1.5625rem;
  height: 1.5625rem;
  padding-block: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  cursor: pointer;
  vertical-align: top;
  border: 0;
  background: none;
  -moz-appearance: none;
  appearance: none
}

.messages__close::before,
  .messages__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 2.0625rem;
    height: 0;
    content: "";
    border-top: solid 2px var(--color--gray-60);
  }

.messages__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

.messages__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

.messages__close:hover::before,
    .messages__close:hover::after {
      border-color: var(--color--white);
    }

.messages__close:focus {
    outline: 2px solid var(--color--primary-60);
    outline-offset: 2px;
  }

.messages__icon svg {
  vertical-align: top;
}

.messages--error .messages__icon svg {
  fill: var(--color--red);
}

.messages--warning .messages__icon svg {
  fill: var(--color--gold);
}

.messages--status .messages__icon svg {
  fill: var(--color--green);
}

.messages--info .messages__icon svg {
  fill: var(--color--primary-60);
}

.messages a {
  color: var(--color--white);
}

.messages pre {
  margin: 0;
}

.js-form-managed-file .messages {
  margin-block-end: var(--sp1);
  border-inline-start: solid 0.375rem var(--color--red);
}
