 /*Requires Bootstrap for Error Container (alert alert-danger error-bag d-flex)*/

.error-bag {
	position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;

	color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;

	display: flex;
}

.en__field {
    display: flex;
    flex-direction: column;
}

.en__field__label, .en__field__element {
    order: 1;
}

.en__field__error {
    order: 2;
}

.en__field--validationFailed .en__field__input {
    border: solid 2px #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);   
}

.en__field--validationFailed .en__field__error {
    color: red;
    font-size: 90%;
    margin-top: 2px;
}

.en__component--formblock .en__field.en__field--validationFailed {
    padding-bottom: 5px !important;
}

.en__errorHeader {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
}

.en__errorList {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    margin-bottom: 20px;
}

.en__errorList .en__error {
    padding-left: 15px;
    list-style-position: inside;
}

/* ErrorList formatting needs to be empty when loading.
C6.EN.Errors.clearEmptyErrorList for this style to be effective */

ul.en__errorList:empty {
    margin: 0 !important;
    padding: 0 !important;
}

.en__errorList.en__errorList-styled {
    font-size: 14px;
    padding: 10px !important;
    margin-bottom: 20px !important;
  }
