/* =========================================================
   DRUPAL SYSTEM MESSAGES
   ========================================================= */

[data-drupal-messages] {
    width: 100%;
    margin: 30px auto;
}


/* ---------------------------------------------------------
   BASE MESSAGE
   --------------------------------------------------------- */

[data-drupal-messages] [role="contentinfo"],
[data-drupal-messages] [role="alert"] {
    position: relative;
    box-sizing: border-box;
    width: 100%;

    margin: 0 0 15px 0;
    padding: 20px 25px 20px 55px;

    color: #222;
    font-size: 15px;
    line-height: 1.5;

    border: 1px solid #ddd;
    border-left-width: 4px;
}


/* ---------------------------------------------------------
   SUCCESS / STATUS
   --------------------------------------------------------- */

[data-drupal-messages] [aria-label="Status message"] {
    background-color: #edf7f0;
    border-color: #c7e4cf;
    border-left-color: #2e7d4f;
}


/* ---------------------------------------------------------
   WARNING
   --------------------------------------------------------- */

[data-drupal-messages] [aria-label="Warning message"] {
    background-color: #fff8e6;
    border-color: #f0dda8;
    border-left-color: #d29416;
}


/* ---------------------------------------------------------
   ERROR
   --------------------------------------------------------- */

[data-drupal-messages] [aria-label="Error message"],
[data-drupal-messages] [role="alert"] {
    background-color: #fdf0f0;
    border-color: #edc5c5;
    border-left-color: #c43d3d;
}


/* =========================================================
   FIX DRUPAL / BOOTSTRAP PLACEHOLDER CONFLICT
   ========================================================= */

/*
 * Drupal uses <em class="placeholder"> for replacement text.
 * Bootstrap uses .placeholder for loading/skeleton elements.
 *
 * Targeting em.placeholder fixes Drupal's placeholder without
 * interfering with Bootstrap placeholders elsewhere.
 */

em.placeholder,
em.placeholder.placeholder {
    display: inline !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    vertical-align: baseline !important;

    background: none !important;
    background-color: transparent !important;
    background-image: none !important;

    color: inherit !important;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: inherit !important;

    animation: none !important;
    box-shadow: none !important;

    font: inherit !important;
}


/* Remove any Bootstrap placeholder pseudo styling */

em.placeholder::before,
em.placeholder::after {
    display: none !important;
    content: none !important;
}


/* Drupal links contained inside placeholders */

em.placeholder a {
    display: inline !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: none !important;
    background-color: transparent !important;

    color: inherit !important;

    opacity: 1 !important;
    visibility: visible !important;

    font: inherit !important;

    text-decoration: underline;
    text-underline-offset: 2px;
}

em.placeholder a:hover {
    color: inherit !important;
    text-decoration: none;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

[data-drupal-messages] .visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;

    border: 0 !important;
}