/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
@layer sdc {
  .messages {
    --color-error: hsl(3, 100%, 69%);
    --color-warning: hsl(35, 100%, 64%);
    --color-status: hsl(120, 60%, 67%);
    --color-text: hsl(0, 0%, 100%);
    --color-text-dark: hsl(30, 7%, 17%);
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    width: 100%;
    animation: slide-top 0.5s ease-in backwards;
  }
  .messages-list {
    overflow-y: auto;
    max-height: 60vh;
  }
  .messages-list__item {
    padding: 2rem 0;
  }
  .messages__title {
    padding-bottom: 1rem;
  }
  .messages--error {
    color: var(--color-text);
    background-color: var(--color-error);
  }
  .messages--status {
    color: var(--color-text);
    background-color: var(--color-status);
  }
  .messages--warning {
    color: var(--color-text);
    background-color: var(--color-warning);
  }
  .messages__button {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.75rem;
    height: 2.75rem;
    transition: background-color 0.3s ease-in-out;
    border: 1px solid hsl(0, 0%, 90%);
    border-right: none;
    border-bottom: none;
    outline: transparent;
    background-color: var(--color-text);
  }
  .messages__button:after,
  .messages__button:before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 0.25rem;
    content: "";
    transition: background-color 0.3s ease-in-out;
    background-color: var(--color-error);
  }
  .messages__button:before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .messages__button:after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .messages__button:hover {
    cursor: pointer;
    background-color: var(--color-error);
  }
  .messages__button:hover:after,
  .messages__button:hover:before {
    background-color: var(--color-text);
  }
  .messages.js-out {
    animation: slide-bottom 0.5s ease-out forwards;
  }

  /* link inside messages. */
  .messages a:link,
  .messages a:visited {
    -webkit-text-decoration: underline;
    text-decoration: underline;
    color: var(--color-text-dark);
  }
  .messages a:focus,
  .messages a:hover {
    -webkit-text-decoration: none;
    text-decoration: none;
  }
  /* =============================================
=            Message                           =
============================================= */
  @keyframes slide-top {
    0% {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  @keyframes slide-bottom {
    0% {
      transform: translateY(0);
    }
    to {
      transform: translateY(calc(100% + 2.8125rem));
    }
  }
}
