/** files preview tooltips **/
.simple-tip {
     display: none;
     position: absolute;
     z-index: 9;
     bottom: 100%;
     left: 50%;
     width: auto;
     min-width: 220px;
     max-width: 220px;
     font-size: 11px;
     color: #222;
     background: #fff;
     letter-spacing: 1px;
     padding: 6px;
     border-radius: var(--radius);
     text-align: center;
     box-shadow: rgba(0, 0, 0, 0.2) 0 0 30px;
     -webkit-transform: translateX(-50%);
     transform: translateX(-50%);
     animation: fadein-up 0.2s ease-in-out;
}
 .simple-tip > span {
     display: block;
     padding: 4px 6px;
     border-radius: var(--radius);
     background-color: #dedede;
}
 .simple-tip > span:not(:last-child) { margin-bottom: 5px }
 .simple-tip .sf-preview-image {
     padding: 8px;
     text-align: center;
     background-color: #dedede;
}
 .simple-tip .sf-preview-image img {
     display: inline-block;
     margin: 0;
     border: 0;
     max-height: 300px;
}
 :hover > .simple-tip {
     display: block;
}
/** files area **/
 .simple-files {
     margin: 20px 0;
}
 .simple-files label.simple-file-label {
     display: block;
     position: relative;
     padding: 0;
     margin: 0;
     cursor: pointer;
}

.simple-files label.simple-file-label > input[type=file] { display: none }

.simple-files label.simple-file-label:focus-within .simple-files-trigger {
    outline: 2px solid -webkit-focus-ring-color; outline-offset: 1px
}

.simple-files .simple-file-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     width: 100%;
     padding: 0;
     font-size: 12px;
     position: relative;
     z-index: 1;
     font-weight: 500;
     margin-top: 3px;
     height: 24px;
     cursor: pointer;
     user-select: none;
}
 .simple-files .simple-file-item .simple-file-name {
     display: block;
     padding-left: 5px;
     overflow: hidden;
     white-space: nowrap;
     position: relative;
}
 .simple-files .simple-file-item .simple-file-remove {
     display: flex;
     height: 24px;
     width: 30px;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     opacity: 0.6;
}

.simple-files .simple-file-item .simple-file-remove:hover { opacity: 1 }
.simple-files .simple-file-item .simple-file-progress { position: absolute; bottom: 0; left: 0 }
.simple-files .simple-file-item.simple-file-error { color: var(--red)!important }
.simple-files .simple-file-item.simple-file-error .simple-file-progress > span { background-color: var(--red)!important }

 .simple-files .simple-file-tooltip {
     position: absolute;
     bottom: 100%;
     left: 50%;
     transform: translateX(-50%);
     max-width: 200px;
     border-radius: var(--radius);
     overflow: hidden;
     background: #fff;
     display: none;
     box-shadow: rgba(0, 0, 0, .2) 0 0 30px;
}

.simple-files .simple-file-tooltip img { display: block; width: auto; max-width: 200px; }

.simple-files .simple-file-tooltip > span {
     display: block;
     position: relative;
     padding: 3px 8px;
     line-height: 1.4;
     background: #f2f2f2;
}

.simple-files .simple-file-tooltip > span:not(:last-child) { margin-bottom: 3px }
.simple-files .simple-file-item:hover .simple-file-tooltip { display: block }
 
 .simple-files .simple-file-progress {
     display: block;
     width: 100%;
     height: 2px;
     border-radius: var(--radius);
     background: #eee;
     position: relative;
     z-index: 3;
}

.simple-files .simple-file-progress > span {
     position: absolute;
     top: 0;
     left: 0;
     height: 100%;
     min-width: 50%;
     background: var(--green);
     transition: all 0.15s ease-out;
}
 
.simple-files .sf-list {
    position: relative;
    margin-top: var(--margin);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in;
    background: var(--bgColor);
    padding: var(--margin);
    border-radius: 1.5rem;
    border: 1px solid var(--inputBorderColor);
}

.simple-files .sf-header {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--inputBorderColor);
}

.simple-files .sf-items { position: relative }

.simple-files .sf-file-item {
     display: flex;
     align-items: center;
     width: 100%;
     position: relative;
     padding: 3px 0;
     opacity: 0.85;
}

.simple-files .sf-file-item .sf-col-left { position: relative; z-index: 3; width: 75% }

.simple-files .sf-file-item .sf-col-right {
     position: relative;
     z-index: 3;
     width: 25%;
     display: flex;
     justify-content: flex-end;
     padding-right: 10px;
}

.simple-files .sf-file-item:hover { opacity: 1 }

.simple-files .sf-item-progress {
     position: absolute;
     z-index: 4;
     bottom: 0;
     left: 0;
     right: 0;
     height: 2px;
     overflow: hidden;
     border-radius: var(--radius);
}
 .simple-files .sf-progress {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     border-radius: var(--radius);
     background-color: #b8b8b8;
}
 .simple-files .sf-file-info {
     display: block;
     padding-left: 10px;
     font-size: 14px;
     line-height: 1;
}
 .simple-files .sf-file-info .sf-file-size {
     display: inline-block;
     font-size: 12px;
     margin-left: 5px;
     font-weight: bold;
}
 
.simple-files .sf-file-item.sf-upload-success :where(.sf-file-info, .sf-file-size) { color: var(--green) }
.simple-files .sf-file-item.sf-upload-error :where(.sf-file-info, .sf-file-size) { color: var(--red) }
.simple-files .sf-file-item.sf-upload-success .sf-progress { background: var(--green) }
.simple-files .sf-file-item.sf-upload-error .sf-progress { background: var(--red) }

 .simple-files .sf-closer {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 30px;
     height: 30px;
     text-align: center;
     color: var(--color);
     fill: var(--color);
     cursor: pointer;
     user-select: none;
     transition: all 0.15s ease-out;
}

.simple-files .sf-closer * { pointer-events: none !important }
.simple-files .sf-closer:hover { opacity: 1 }
.simple-files .sf-closer:hover svg path { fill: var(--red) }
.simple-files .sf-header .sf-closer { margin-right: 10px }
.simple-files .sf-counter { font-size: 13px; color: var(--color); font-weight: normal }
.simple-files .sf-counter > span { display: inline-block; line-height: 24px; font-size: 13px }
.simple-files .sf-counter .sf-counter-size { font-size: 13px; }
.simple-files .sf-counter svg { position: relative; top: -1px; }
.simple-files .sf-header .sf-counter { margin-left: 15px; }

 .simple-files .simple-files-trigger {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: .3rem;
    padding: var(--padding);
    border: 2px dashed var(--inputBorderColor);
    transition: all 250ms ease-in-out;
    margin: 0;
    color: var(--inputPlaceholderColor);
    background: var(--bgColor);
    border-radius: 1.2rem;
}

@media (max-width: 777px) {
    .browseFiles { margin-block: 3rem }
}

.simple-files .simple-files-trigger:hover { background: var(--inputBgHover); border-color: var(--inputBorderHover); }

/** Simple Form - end files area **/
.server-response { margin-top: 20px; display: none }
.server-response.active { display: block }
.server-response:first-child { margin-top: 0 }
.server-response:not(:last-child) .sf-message { margin-bottom: 15px }
.server-response .server-response-status { text-align: center; }
.server-response .server-response-status :where(svg, img) { margin-bottom: 20px }

.sf-error-message {
    text-align: center;
    padding: var(--inputPadding);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    color: var(--red);
    background: var(--inputBg);
    width: fit-content;
    margin: 0 auto;
}

.sf-short-response { font-size: 2.4rem; margin: var(--margin); }

.server-response-closer {
    display: none;
    position: absolute;
    z-index: 11;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    cursor: pointer;
    opacity: 0.7;
    -webkit-transition: all 0.12s ease-in;
    -moz-transition: all 0.12s ease-in;
    transition: all 0.12s ease-in;
}

.response-overlay .server-response {
    margin: 0;
    position: absolute;
    z-index: 9;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 1);
    border-radius: var(--radius);
}

.response-overlay .server-response > div { padding: 20px;}
.response-overlay .server-response-closer { display: none; }
.response-overlay :where(.server-response.active, .server-response-closer.active) { display: flex; }

/** Simple Form - errors tooltips **/
 .simple-tooltip {
     display: block;
     position: absolute;
     z-index: 9;
     bottom: 100%;
     left: 50%;
     width: 180px;
     font-size: 1.2rem;
     line-height: 1.4;
     color: var(--inputColor);
     background: var(--inputBg);
     border: 1px solid var(--inputBorderColor);
     text-align: center;
     padding: 12px 16px;
     border-radius: var(--radius);
     transform: translateX(-50%);
     box-shadow: rgba(0, 0, 0, .3) 0 0 20px;
     visibility: hidden !important;
     opacity: 0 !important;
     transition: all 0.2s ease-out;
}
.simple-tooltip:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    bottom: -4px;
    position: absolute;
    left: 50%;
    margin-left: -4px;
    background-color: inherit;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border-bottom: inherit;
    border-right: inherit;
}

.simple-tooltip.simple-alert, .simple-tooltip.simple-alert:before { background-color: var(--red)!important; color: #fff!important }
input:focus + .simple-tooltip { visibility: visible!important; opacity: 1!important; bottom: calc(100% + 6px) }