@import 'https://www.bigacrylic.com/wp-content/plugins/bigacrylic-filestack/font-awesome/css/all.min.css';

:root {
    --ba-success: #28a745;
    --ba-info: #17a2b8;
    --ba-warning: #ffc107;
    --ba-danger: #dc3545;
}

#picker_container .fsp-modal {
    top: 5vh;
    width: 80vw;
    max-width: 80vw;
    height: 650px;
    max-height: 80vh;
    margin: auto;
}

#picker_container .fsp-header-text--visible {
    font-size: 1.3rem;
}

#picker_container .fsp-picker__brand-container,
.d-none {
    display: none !important;
}

.v-none {
    visibility: hidden;
}

.bigacrylic-filestack-wrapper .upload-image {
    width: 100%;
    background-color: #E8E8E8;
    text-align: center;
    padding: 2em 0;
}

.bigacrylic-filestack-wrapper .upload-image span {
    display: block;
    font-size: 1rem;
}

.bigacrylic-filestack-wrapper .btn,
#picker_container .btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bigacrylic-filestack-wrapper .btn:hover,
#picker_container .btn:hover {
    color: #212529;
    text-decoration: none;
}

.bigacrylic-filestack-wrapper .btn-primary,
#picker_container .btn-primary,
#picker_container .fsp-button--cancel {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.bigacrylic-filestack-wrapper .btn-primary:hover,
#picker_container .btn-primary:hover,
#picker_container .fsp-button--cancel:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.bigacrylic-filestack-wrapper .btn-primary:focus,
#picker_container .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

#picker_container .aspect-ratio {
    position: relative;
}

#picker_container .do-crop {
    position: absolute;
    right: 120px;
}

#picker_container .btn-group {
    position: absolute;
    left: -250px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    vertical-align: middle;
}

#picker_container .btn-group > .btn {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

#picker_container .btn-group > .btn:hover {
    z-index: 1;
}

#picker_container .btn-group > .btn:focus,
#picker_container .btn-group > .btn:active,
#picker_container .btn-group > .btn.active {
    z-index: 1;
}

#picker_container .btn-group > .btn-primary.disabled,
#picker_container .btn-group > .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#picker_container .btn-group > .btn:not(:first-child),
#picker_container .btn-group > .btn-group:not(:first-child) {
    margin-left: -1px;
}

#picker_container .btn-group > .btn:not(:last-child):not(.dropdown-toggle),
#picker_container .btn-group > .btn-group:not(:last-child) > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#picker_container .btn-group > .btn:not(:first-child),
#picker_container .btn-group > .btn-group:not(:first-child) > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.bigacrylic-filestack-wrapper .uploaded-image {
    display: flex;
    background-color: #ffffff;
    flex-direction: column;
}

.bigacrylic-filestack-wrapper .image-preview {
    margin: 1em;
    text-align: center;
}

.bigacrylic-filestack-wrapper .image-preview img {
    max-width: 240px;
}

.bigacrylic-filestack-wrapper .image-preview span {
    font-size: 0.7em;
    font-weight: bold;
    display: block;
}

.bigacrylic-filestack-wrapper .uploaded-image .image-actions {
    padding: 0 0 2em 0;
    text-align: center;
    flex: 1;
}

.bigacrylic-filestack-wrapper .size-ok,
#picker_container .crop-ok {
    text-align: left;
    font-weight: bold;
    color: var(--ba-success);
}

.bigacrylic-filestack-wrapper .size-ko ,
#picker_container .crop-ko {
    text-align: left;
    font-weight: bold;
    color: var(--ba-danger);
}

#picker_container .crop-ok-wrapper {
    font-size: 1rem;
    position: relative;
}

#picker_container .crop-ok {
    position: absolute;
    top: -5px;
    right: 220px;
    width: 330px;
}

#picker_container .crop-ko-wrapper {
    font-size: 1rem;
    z-index: 1000;
    position: relative;
    display: flex;
    align-content: center;
    justify-content: center;
    height: 100%;
    background-color: rgba(238, 238, 238, 0.85);
}

#picker_container .crop-ko {
    display: block;
    margin: auto;
    width: 50%;
    line-height: 1rem;
}

@media screen and (max-width: 768px) {
    .bigacrylic-filestack-wrapper .size-ok {
        font-size: 0.8rem;
    }

    #picker_container .fsp-header-text--visible {
        width: 300px;
        font-size: 1rem;
    }

    #picker_container .crop-ok-wrapper {
        font-size: 0.8rem;
    }

    #picker_container .crop-ok {
        max-width: 100%;
        top: 0;
        right: calc(50% + 55px);
    }

    #picker_container .do-crop {
        display: none;
    }
}

@media screen and (max-width: 450px) {

    #picker_container:not(.size-ko) .fsp-content--transformer {
        padding-bottom: 200px;
    }

    .bigacrylic-filestack-wrapper .image-actions {
        padding: 0;
    }

    #picker_container:not(.size-ko) .fst-sidebar {
        bottom: 110px;
    }

    #picker_container:not(.size-ko) .fsp-footer.fsp-footer--appeared {
        height: 110px;
    }

    #picker_container:not(.size-ko) .fsp-footer__nav {
        position: absolute;
        bottom: 0;
    }

    #picker_container:not(.size-ko) .crop-ok {
        top: -60px;
        right: 7vw;
        width: 70vw;
        text-align: center;
        font-weight: normal;
    }

    #picker_container:not(.size-ko) .btn-group {
        top: -54px;
        left: -55vw;
    }

    #picker_container.size-ko .crop-ko {
        width: 60vw;
        line-height: 1.9rem;
        font-weight: normal;
    }

}

input.fsp-url-source__input {
    width: calc(100% - 45px);
    border-radius: 8px 0 0 8px;
    top: 5px;
    position: relative;
}
