:root {
	--modal-frame-color: #ffffff;
	--modal-close-color: #000000;
	--modal-close-bg-color: #cccccc;
	--modal-frame-border-color:#cccccc; 
}

#Z-modal-sheet {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
}

.Z-modal-sheet-op {
    animation: Z-modal-sheet-fade-in 0.5s ease-in-out forwards;
}

.Z-modal-sheet-tr {
    animation: Z-modal-sheet-fade-out 0.5s ease-in-out forwards;
}

.Z-modal-box-in-op {
    animation: Z-modal-anim-fade-in 0.5s ease-in-out forwards;
}

.Z-modal-box-in-tr {
    animation: Z-modal-anim-fade-out 0.5s ease-in-out forwards;
}

#Z-modal-box {
    position: relative;
    margin: 0 auto;
}

#Z-modal-box-in {
    background-color: var(--modal-frame-color);
    border-radius: 20px;
    padding: 35px 10px 10px 10px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0px;
    left: 0px;
	border: 1px solid var(--modal-frame-border-color);
	width: calc(100% - 23px);
}

#Z-modal-box iframe {
    border: none;
	border-radius: 5px;
}

#Z-modal-close {
    border-radius: 10px;
    background-color: var(--modal-close-bg-color);
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

#Z-modal-close i {
    font-size: 20px;
	color: var(--modal-close-color);
}

.Z-modal-iframe-loading {
    display: none;
}

.Z-modal-iframe-loaded {
    width: 100%;
    height: 100%;
    display: block;
}

.Z-modal-box-in-loader-loading { 
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 45px);
	width: calc(100% - 20px);
	position: absolute;
	background-color:var(--modal-frame-color); 
	animation: Z-modal-anim-fade-in 0.5s ease-in-out forwards;
}

.Z-modal-box-in-loader-loading img {
    max-width: 100%;
    max-height: 100%;
}

.Z-modal-box-in-loader-hiding {
	animation: Z-modal-anim-fade-out 0.5s ease-in-out forwards;
}

.Z-modal-box-in-loader-loaded {
    display: none;
}

@keyframes Z-modal-sheet-fade-in {
    0% {
        background-color:rgb(0,0,0,0);
    }
    100% {
        background-color:rgb(0,0,0,0.7);
    }
}

@keyframes Z-modal-sheet-fade-out {
    0% {
        background-color:rgb(0,0,0,0.7);
	}
    100% {
        background-color:rgb(0,0,0,0);
    }
}

@keyframes Z-modal-anim-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes Z-modal-anim-fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
