/*
 * Loader for user interaction feedback.
 *
 * You can add a new color as a class name giving that class name 
 * the styling with the color for: .waiting-icon.{color name}:before { border-top-color: {color here}; }
 * Example: .waiting-icon.red:before { border-top-color: #ff0000; }
 *
 * To add more than 1 color to the spinner animation:
 * Example:
    .waiting-icon.red:before {
        border-top-color: #ff0000;
        border-right-color: #00ff00;
        border-bottom-color: #0000ff;
        border-left-color: #0000ff;
    }

*/

/* 
    Created on : Oct 23, 2019, 3:11:43 PM
    Author     : Ranbert Hernandez
*/
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Class for use to hide scrollbars behind the modal fade on the body: */
body.spinner-loaded {
    overflow: hidden;
    cursor: wait;
}
.waiting-loading-wrapper * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.waiting-loading-wrapper.show>.waiting-loader {
    -webkit-transition: opacity 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}

.waiting-loading-wrapper.show>.waiting-loader.show {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: black;
    opacity: 0.5;
}

.waiting-loading-wrapper.show>.waiting-loader.hide {
    opacity: 0;
}

.waiting-loading-wrapper.show>.waiting-icon {
    position: fixed;
    z-index: 2001;
    top: 50%;
    left: calc(50% - (32px / 2));
    width: 32px;
    height: 32px;
    display: inline-block;
    text-align: center;
    line-height: 32px;
    -webkit-transition: opacity 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}

.waiting-loading-wrapper.show>.waiting-icon.show {
    -webkit-transition: opacity 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

.waiting-loading-wrapper.show>.waiting-icon:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: 32px;
    height: 32px;
    top: 50%;
    left: calc(50% - (32px / 2));
    margin-top: -16px;
    margin-left: -16px;
    border-radius: 50%;
    border: 6px solid #ccc;
    border-top-color: #4d4b4b;
    animation: spinner .8s linear infinite;
}
.waiting-loading-wrapper.show>.waiting-icon.blue:before {
    border-top-color: #4165AF;
}

.waiting-loading-wrapper.show>.waiting-icon.green:before {
    border-top-color: #90c73e;
}

.waiting-loading-wrapper.show>.waiting-icon.standard:before {
    border-top-color: #4d4b4b;
}

/* Use this to modify your style changing the colors or put some colors to unset/transparent */
.waiting-loading-wrapper.show>.waiting-icon.multi:before {
    border-top-color: #ff0000;
    border-right-color: #00cc66;
    border-bottom-color: #0033cc;
    border-left-color: #ffff00;
}

/* Use this to in your CSS to apply e.g. glyphicon instead such as Font-Awesome or other custom glyphicon or SVG icon. Add font-family to your style. */
.waiting-loading-wrapper.show>.waiting-icon.icon:before {
    background-image: unset;
    border: 0;
    content: "";
    width: 32px;
    height: 32px;
    display: inline-block;
    text-align: center;
}

/* Use this to use an image instead: change the url for your image such as GIF */
.waiting-loading-wrapper.show>.waiting-icon.image {
    position: absolute;
    top: 48%;
    left: calc(50% - ((205px + 32px) / 2));
    min-width: 205px;
    min-height: 50px;
    max-width: 205px;
    max-height: 50px;
    height: auto;
    width: auto;
    background-image: url('sg-spinner/sg-spinner.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 32px;
    overflow: hidden;
}
/* Use this to use an image instead: change the url for your image such as GIF. Remove animation: none if the image needs to rotate. */
.waiting-loading-wrapper.show>.waiting-icon.image:before {
    position: relative;
    top: 0;
    left: 0;
    border: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    min-width: 205px;
    min-height: 50px;
    animation: none;
}

/* Loading text should be as short as possible for the user: the 4th param in the function */
.waiting-loading-wrapper.show>.loading-text {
    -webkit-transition: opacity 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    position: fixed;
    top: calc(50% + 40px);
    text-align: center;
    left: calc(50% - ((205px + 32px) / 2));
    display: inline-block;
    width: 205px;
    color: #fff;
    font-size: 12px;
    z-index: 2000;
    line-height: 17px;
}
.waiting-loading-wrapper.show>.loading-text:not(.show) {
    opacity: 0;
}
.waiting-loading-wrapper.show:not(.text-loading)>.loading-text.show {
    opacity: 1;
}
/* Elements not the body element (such as a button or a tag) to be replaced with the spinner */
.waiting-loading-wrapper.show.text-loading>.loading-text.show {
    opacity: 1;
    color: #333;
    position: relative;
    left: 0px;
    margin-left: 32px;
    text-align: left;
}
.waiting-loading-wrapper.element.show {
    position: relative;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    display: inline-block !important;
}
.waiting-loading-wrapper.element.show.text-loading {
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    height: inherit;
    display: inline-block !important;
}
.waiting-loading-wrapper.element.show>.waiting-icon {
    margin: 0;
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 0;
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
    text-align: center;
}
.waiting-loading-wrapper.element>.waiting-icon:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    min-width: 20px;
    min-height: 20px;
    width: inherit;
    height: 100%;
    top: 80%;
    left: calc(50% + 6px);
    border-radius: 50%;
    border: 4px solid #ccc;
    border-top-color: #4d4b4b;
    animation: spinner 0.8s linear infinite;
}
.waiting-loading-wrapper.element.show>.waiting-icon.text-loading {
    left: 0px;
}
.sg-spinner-inside {
    background-color: unset !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    cursor: wait !important;
    color: #fff !important;
}

#spinner-replaced-elements {
    display: none;
}