﻿/*
 *  Remodal - v1.1.0
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

/* ==========================================================================
   Remodal's necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal-is-locked {
    overflow: hidden;
    -ms-touch-action: none;
    touch-action: none;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
    display: none;
}

/* Necessary styles of the overlay */

.remodal-overlay {
    position: fixed;
    z-index: 11999;
    top: -5000px;
    right: -5000px;
    bottom: -5000px;
    left: -5000px;
    display: none;
}

.invmodal-contentroot {
    position: relative;
}

/* Necessary styles of the wrapper */
.remodal-wrapper {
    position: fixed;
    z-index: 12000;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    display: none;
    overflow: auto;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

    .remodal-wrapper:after {
        display: inline-block;
        height: 100%;
        margin-left: -0.05em;
        content: "";
    }

/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Necessary styles of the modal dialog */

.remodal {
    position: relative;
    outline: none;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    border-radius: 5px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
}

.remodal-is-initialized {
    /* Disable Anti-FOUC */
    display: inline-block;
}


/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */

/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
    filter: blur(3px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
    background: rgba(43, 46, 56, 0.9);
}

    .remodal-overlay.remodal-is-opening,
    .remodal-overlay.remodal-is-closing,
    .remodal.remodal-is-opening,
    .remodal.remodal-is-closing {
        animation-duration: 0.3s;
        animation-fill-mode: forwards;
    }


    .remodal-overlay.remodal-is-opening {
        animation-name: remodal-overlay-opening-keyframes;
    }

    .remodal-overlay.remodal-is-closing {
        animation-name: remodal-overlay-closing-keyframes;
    }

/* Default theme styles of the wrapper */

.remodal-wrapper {
    padding: 10px 10px 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Default theme styles of the modal dialog */

.remodal {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 10px;
    padding: 15px;
    transform: translate3d(0, 0, 0);
    color: #2b2e38;
    background: #fff;
    position: relative;
}

    .remodal.remodal-is-opening {
        animation-name: remodal-opening-keyframes;
    }

    .remodal.remodal-is-closing {
        animation-name: remodal-closing-keyframes;
    }

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
    vertical-align: middle;
}

/* Close button */

.itf-button-close {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block;
    overflow: visible;
    width: 35px;
    height: 35px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    color: #b1b1b1;
    border: 0;
    outline: 0;
    background: transparent;
    z-index: 1;
    /* right: 0; */
}

    .itf-button-close:hover,
    .itf-button-close:focus {
        color: #2b2e38;
    }

    .itf-button-close:before {
        font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;
        font-size: 25px;
        line-height: 35px;
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 35px;
        content: "\00d7";
        text-align: center;
    }

/* Dialog buttons */

.itf-button-confirm,
.itf-button-cancel,
.itf-button-secondary,
.itf-button-terciary,
.itf-button-blue-outline {
    font: inherit;
    display: inline-block;
    overflow: visible;
    min-width: 110px;
    margin: 0px 1px;
    padding: 7px 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    border: 0;
    outline: 0;
    border-radius: 4px;
}

.itf-button-confirm {
    color: #fff;
    background-color: #28a745;
}

    .itf-button-confirm:hover,
    .itf-button-confirm:focus {
        background: #66bb6a;
        background-color: #218838;
    }

    .itf-button-confirm:disabled {
        cursor: not-allowed;
        background: gray;
    }

.itf-button-terciary,
.itf-button-blue-outline {
    color: #348be3;
    background: white;
    border: 1px solid #348be3;
}

    .itf-button-terciary:hover,
    .itf-button-terciary:focus,
    .itf-button-blue-outline:hover,
    .itf-button-blue-outline:focus {
        color: #1b5ea2;
        border: 1px solid #1b5ea2;
    }

    .itf-button-terciary:disabled,
    .itf-button-blue-outline:disabled {
        cursor: not-allowed;
        opacity: 0.7;
    }

.itf-button-cancel,
.itf-button-secondary {
    background: white;
    color: #e57373;
    border: 1px solid #e57373;
}

    .itf-button-cancel:hover,
    .itf-button-cancel:focus,
    .itf-button-secondary:hover,
    .itf-button-secondary:focus {
        background: white;
        color: #a24444;
        border: 1px solid #a24444;
    }

.idu-rm-title {
    font-size: 22px;
    /* margin-bottom: 20px; */
    font-weight: 500;
    padding-bottom: 10px;
    margin-bottom: 15px;
    margin-top: -5px;
}

.idu-rm-buttonswrap {
    margin-top: 25px;
}

.remodal.rm-no-bottompadding {
    padding-bottom: 5px;
}

.idu-rm-content {
    position: relative;
}

.remodal.invmodal-full-height {
    height: 95%;
}

    .remodal.invmodal-full-height .remodal-content-wrap {
        height: 100%;
        position: relative;
        display: flex;
        flex-flow: column;
    }

        .remodal.invmodal-full-height .remodal-content-wrap .idu-rm-content {
            height: 100%;
        }

.remodal-embedded-wrap {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-flow: column;
}

.remodal-embedded-message {
    padding-bottom: 15px;
    /*margin-top: -15px;*/
}


/* Remove inner padding and border in Firefox 4+ for the button tag. */
.itf-button-confirm::-moz-focus-inner,
.itf-button-terciary::-moz-focus-inner,
.itf-button-blue-outline::-moz-focus-inner,
.itf-button-cancel::-moz-focus-inner,
.itf-button-secondary::-moz-focus-inner,
.itf-button-close::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.itf-button-small {
    min-width: 70px;
    padding: 3px 3px;
    font-size: 12px;
}

/* Keyframes
   ========================================================================== */

@keyframes remodal-opening-keyframes {
    from {
        transform: scale(1.05);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes remodal-closing-keyframes {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(0);
    }
}

@keyframes remodal-overlay-opening-keyframes {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes remodal-overlay-closing-keyframes {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 641px) {
    .remodal {
        max-width: 700px;
    }

        .remodal.rm-size-larger {
            max-width: 800px;
        }

        .remodal.rm-size-small {
            max-width: 500px;
        }

        .remodal.rm-size-tiny {
            max-width: 420px;
        }
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
    background: #2b2e38;
}

.lt-ie9 .remodal {
    width: 700px;
}

body.inv-modal-open {
    height: 100vh;
    overflow: hidden;
}

.inviton-mode .idu-msg-error,
.inviton-mode.idu-msg-error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 12px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 40px;
    padding-right: 30px;
    position: relative;
}

.inviton-mode.idu-msg-success,
.inviton-mode .idu-msg-success {
    color: #155724;
    background-color: #d4edda;
    padding: 12px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 40px;
    padding-right: 30px;
    position: relative;
}

.inviton-mode.idu-msg-close,
.inviton-mode .idu-msg-close,
.idu-msg-close {
    position: absolute;
    right: 0px;
    top: 0px;
    font-family: arial;
    font-size: 28px;
    color: #721c24;
    opacity: 0.5;
    width: 40px;
    display: block;
    height: 100%;
    padding-top: 5px;
    cursor: pointer;
    text-align: center;
}

    .inviton-mode.idu-msg-close:hover,
    .inviton-mode .idu-msg-close:hover,
    .idu-msg-close:hover {
        opacity: 0.7;
    }


.inv-modal-toastmessage {
    position: absolute;
    top: 18px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    left: 0;
    right: 0px;
    top: -10px;
    text-align: right;
}

    .inv-modal-toastmessage.inv-modal-toastskin-1 {
        color: green;
    }

    .inv-modal-toastmessage.inv-modal-toastskin-2 {
        color: red;
    }
