/* -------------------------------------------------------------------------
   Preview
   ------------------------------------------------------------------------- */

.fmp-upload-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 8px 0;
    vertical-align: top;
}

.fmp-upload-img-preview {
    margin: 8px 0;
    max-width: 100%;
    display: block;
}

.fmp-upload-img-wrap .fmp-upload-img-preview {
    margin: 0;
}

.fmp-upload-img-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fmp-upload-img-remove:hover,
.fmp-upload-img-remove:focus {
    background: rgba(217, 83, 79, 0.95);
    outline: none;
}

.fmp-upload-img-remove i {
    font-size: 14px;
    margin: 0;
    line-height: 1;
}

/* -------------------------------------------------------------------------
   Alerts
   ------------------------------------------------------------------------- */

.fmp-upload-alert {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid #c5d0d8;
    border-radius: 4px;
    background: #f4f7f9;
    color: #334048;
    font-size: 14px;
    line-height: 1.4;
}

.fmp-upload-alert i {
    flex: 0 0 auto;
    margin: 1px 0 0;
    font-size: 1.15em;
    line-height: 1;
    color: #5a6b76;
}

.fmp-upload-alert > div {
    flex: 1 1 auto;
    margin: 0;
    text-align: left;
}

.fmp-upload-alert.fmp-upload-success,
.fmp-upload-alert.fmp-upload-notify {
    align-items: center;
    background: #f2f7f3;
    border-color: #b7d0bc;
    color: #2f5a3a;
}

.fmp-upload-alert.fmp-upload-success i,
.fmp-upload-alert.fmp-upload-notify i {
    margin-top: 0;
    color: #3f8f55;
}

.fmp-upload-alert.fmp-upload-warn {
    background: #fbf6ee;
    border-color: #e2c891;
    color: #6a4e16;
}

.fmp-upload-alert.fmp-upload-warn i {
    color: #c48a1a;
}

.fmp-upload-alert.fmp-upload-err {
    background: #fbf1f1;
    border-color: #e0b4b4;
    color: #7a3434;
}

.fmp-upload-alert.fmp-upload-err i {
    color: #d9534f;
}

.fmp-upload-alert-remove {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 0 0 auto;
    padding: 4px 10px;
    border: 1px solid #b7d0bc;
    border-radius: 3px;
    background: #fff;
    color: #2f5a3a;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.fmp-upload-alert-remove:hover,
.fmp-upload-alert-remove:focus {
    border-color: #d43f3a;
    color: #a94442;
    outline: none;
}

/* -------------------------------------------------------------------------
   Form errors
   ------------------------------------------------------------------------- */

.mainbox-container .mainbox-body .err {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 0 16px;
    border: 1px solid #e0b4b4;
    border-radius: 4px;
    background: #fbf1f1;
    color: #7a3434;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

.mainbox-container .mainbox-body .err::before {
    flex: 0 0 auto;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    content: "\f06a"; /* fa-exclamation-circle */
    color: #d9534f;
    font-size: 1.15em;
    line-height: 1;
    margin: 1px 0 0;
}

.mainbox-container .mainbox-body .err ul {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.mainbox-container .mainbox-body .err li {
    margin: 0;
    padding: 0;
}

.mainbox-container .mainbox-body .err li + li {
    margin-top: 4px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.uppy-btn-el {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 12px 0 8px;
    padding: 6px 14px;
    border: 1px solid #c5d0d8;
    border-radius: 3px;
    background: #fff;
    color: #334048;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.uppy-btn-el:hover,
.uppy-btn-el:focus {
    background: #f4f7f9;
    border-color: #9aadb8;
    color: #1f2a30;
    outline: none;
}

.uppy-btn-el:active {
    background: #e8eef2;
    border-color: #7f93a0;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.fmp-upload-info:not(:empty) {
    margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   Loader
   ------------------------------------------------------------------------- */

.fmp-upload-loader {
    text-align: center;
}

.fmp-upload-loader i {
    color: #5a6b76;
    font-size: 2.2em;
    padding: 32px 0;
}

/* -------------------------------------------------------------------------
   Icons
   ------------------------------------------------------------------------- */

.fmp-upload-container .fas {
    font-family: "Font Awesome 5 Free" !important;
}

/* EOF */
