/* Variables */

:root {
    --comfino-green: #5BA446;
    --comfino-blue: #006FB2;
    --comfino-light-grey: #D9D9D9;
    --comfino-mid-grey: #878787;
    --comfino-grey: #666666;
    --comfino-light-green: #D6E4CE;
    --comfino-dark-green: #579D33;
}

/* Banner */

iframe.comfino-widget-banner {
    width: 100%;
    height: auto;
    border: none;
    overflow: hidden;
    display: none;
}

iframe.comfino-widget-banner-visible {
    display: block;
}

/* Calculator */

div.comfino-widget-calculator-overlay {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: fixed;
    display: none;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

div.comfino-widget-calculator-close-icon {
    top: 0;
    right: 0;
    transform: translate3d(35%, -35%, 0);
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    z-index: 10000;
}

div.comfino-widget-calculator-container {
    max-width: 450px;
    min-height: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    border: 1px solid var(--comfino-light-green);
    border-radius: 8px;
    background-color: #FFF;
}

iframe.comfino-widget-calculator {
    width: 100%;
    position: relative;
    height: 0;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

div.comfino-widget-calculator-visible {
    display: block;
}

@media (max-width: 390px) {
    div.comfino-widget-calculator-close-icon {
        top: 20px;
        right: 20px;
    }
}

/* Loading animation - begin */

.comfino-widget-calculator-loader {
    height: 216px;
    overflow: hidden;
}

@keyframes ldio-comfino {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.ldio-comfino div {
    position: absolute;
    width: 164px;
    height: 164px;
    border: 10px solid #579d33;
    border-top-color: transparent;
    border-radius: 50%;
}

.ldio-comfino div {
    animation: ldio-comfino 1.6666666666666667s linear infinite;
    top: 108px;
    left: 128px
}

.loadingio-spinner-rolling-comfino {
    width: 256px;
    height: 256px;
    display: block;
    overflow: hidden;
    margin: auto;
    background: #ffffff;
}

.ldio-comfino {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0; /* see note above */
}

.ldio-comfino div { box-sizing: content-box; }

/* Loading animation - end */
