/**
 * @file
 * Styles for system messages.
 */

.messages {
  padding: 0.9375rem 1.25rem 0.9375rem 2.1875rem; /* LTR */
  border: 1px solid;
  border-width: 1px 1px 1px 0; /* LTR */
  border-radius: 0.125rem;

  word-wrap: break-word;
  overflow-wrap: break-word;

  background: no-repeat 0.625rem 1.0625rem; /* LTR */
}

[dir="rtl"] .messages {
  padding-right: 2.1875rem;
  padding-left: 1.25rem;
  border-width: 1px 0 1px 1px;

  text-align: right;

  background-position: right 0.625rem top 1.0625rem;
}

.messages + .messages {
  margin-top: 1.538em;
}

.messages__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.messages__item + .messages__item {
  margin-top: 0.769em;
}

.messages--status {
  border-color: #c9e1bd #c9e1bd #c9e1bd transparent; /* LTR */

  color: #325e1c;

  background-color: #f3faef;
  background-image: url("../../images/icons/check.svg");
  box-shadow: -0.5rem 0 0 #77b259; /* LTR */
}

[dir="rtl"] .messages--status {
  margin-left: 0;
  border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
  box-shadow: 0.5rem 0 0 #77b259;
}

.messages--warning {
  border-color: #f4daa6 #f4daa6 #f4daa6 transparent; /* LTR */

  color: #734c00;

  background-color: #fdf8ed;
  background-image: url("../../images/icons/warning.svg");
  box-shadow: -0.5rem 0 0 #e09600; /* LTR */
}

[dir="rtl"] .messages--warning {
  border-color: #f4daa6 transparent #f4daa6 #f4daa6;
  box-shadow: 0.5rem 0 0 #e09600;
}

.messages--error {
  border-color: #f9c9bf #f9c9bf #f9c9bf transparent; /* LTR */

  color: #a51b00;

  background-color: #fcf4f2;
  background-image: url("../../images/icons/error.svg");
  box-shadow: -0.5rem 0 0 #e62600; /* LTR */
}

[dir="rtl"] .messages--error {
  border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
  box-shadow: 0.5rem 0 0 #e62600;
}

.messages--error p.error {
  color: #a51b00;
}
