@charset "utf-8";

:root {
	--popupBgColor: rgba(255, 255, 255, 1);
	--popupTitleBgColor: var(--color-primary);
	--popupTitleBgColorAlert: var(--color-primary);
	--popupTitleBgColorSuccess: rgb(166, 182, 190);
	--popupTitleFontColor: #fff;
	--popupTitleFontSize: 20px;
	--popupMaskColor: rgba(0, 0, 0, 0.2);
	--popupButtonColor: var(--color-primary);
	--popupButtonColorActive: var(--color-primary-over);
	--popupButtonColorAlert: var(--color-primary);
	--popupButtonColorDisabled: rgba(150, 150, 150, 1);
	--popupButtonColorDisabledActive: rgba(200, 200, 200, 1);
	--popupButtonFontColor: #fff;
	--popupButtonFontSize: 20px;


	--popupContentBgColor: #fff;
	--popupContentFontColor: #000;
	--popupContentFontSize: 14px;

	--popupCancelColor: rgba(200, 200, 200, 1);
}



.windowModal {
	width: 1000px; max-width: 96%; height: 80vh; background: var(--popupBgColor); box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.4); border-radius: 10px; overflow: hidden;
	position: fixed; z-index: 10; left: 50%; top: 50%; transform: translate(-50%, -40%);
	opacity: 0; transition: opacity 0.5s, transform 0.5s;
}
.windowModal.active {
	opacity: 1; transform: translate(-50%, -45%);
}
.windowAlert {
	width: 400px; max-width: 90%; min-height: 200px; max-height: 80vh; background: var(--popupBgColor); box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.4); border-radius: 10px; overflow: hidden;
	position: fixed; z-index: 10; left: 50%; top: 50%; transform: translate(-50%, -40%);
	opacity: 0; transition: opacity 0.5s, transform 0.5s;
}
.windowAlert.active {
	opacity: 1; transform: translate(-50%, -45%);
}


.windowModal > div, .windowAlert > div {
	width: inherit; height: inherit; position: relative; overflow: hidden;
}
.windowModal > div > .top {
	width: 100%; height: 60px; background: var(--popupTitleBgColor); box-shadow: 3px 0 3px 0 rgba(0, 0, 0, 0.2);
	display: grid; grid-template-columns: 1fr 60px;
}
.windowAlert > div > .top {
	width: 100%; height: 60px; background: var(--popupTitleBgColorAlert); box-shadow: 3px 0 3px 0 rgba(0, 0, 0, 0.2);
	display: grid; grid-template-columns: 1fr 60px;
}
.windowModal > div > .top > .title, .windowAlert > div > .top > .title {
	padding: 10px 10px 10px 20px; text-align: left; align-self: center;
	color: var(--popupTitleFontColor); font-size: var(--popupTitleFontSize); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.windowModal > div > .top > .close, .windowAlert > div > .top > .close {
	padding: 10px; text-align: center; align-self: center;
}
.windowModal > div > .top > .close img, .windowAlert > div > .top > .close img {
	height: 30px; cursor: pointer;
}

.windowModal > div > .content {
	overflow: auto; height: 100%; padding: 20px 20px 80px 20px; line-height: 1.5em; font-size: var(--popupContentFontSize); color: var(--popupContentFontColor);
}
.windowAlert > div > .content {
	overflow: auto; height: 100%; padding: 20px; line-height: 1.5em; font-size: var(--popupContentFontSize); color: var(--popupContentFontColor);
}

.windowModal > div > .buttons, .windowAlert > div > .buttons {
	position: absolute; bottom: 0; width: 100%; display: flex; flex-flow: row nowrap; align-content: center; justify-content: center; padding: 10px 20px 10px 20px; background: #fff;
}
.windowModal > div > .buttons > div, .windowAlert > div > .buttons > div {
	flex: 1; text-align: center; height: 40px; line-height: 40px; margin: 0 5px; background: var(--popupButtonColor); color: var(--popupButtonFontColor); font-size: var(--popupButtonFontSize); cursor: pointer; border-radius: 5px;
	transition: background 0.5s;
}
.windowModal > div > .buttons > div:hover, .windowModal > div > .buttons > div.active, .windowAlert > div > .buttons > div:hover, .windowAlert > div > .buttons > div.active {
	background: var(--popupButtonColorActive);
}
.windowModal > div > .buttons > div.close, .windowModal > div > .buttons > div.disabled, .windowAlert > div > .buttons > div.close, .windowAlert > div > .buttons > div.disabled {
	background: var(--popupButtonColorDisabled);
}
.windowModal > div > .buttons > div.close:hover, .windowModal > div > .buttons > div.close.active, .windowAlert > div > .buttons > div.close:hover, .windowAlert > div > .buttons > div.close.active {
	background: var(--popupButtonColorDisabledActive);
}
.windowModal > div > .buttons > div.alert, .windowAlert > div > .buttons > div.alert {
	background: var(--popupButtonColorAlert);
}
.windowModal > div > .buttons > div.alert:hover, .windowModal > div > .buttons > div.alert.active, .windowAlert > div > .buttons > div.alert:hover, .windowAlert > div > .buttons > div.alert.active {
	background: var(--popupButtonColorDisabledActive);
}
.windowModal > div > .buttons > div.disabled, .windowAlert > div > .buttons > div.disabled {
	background: var(--popupButtonColorDisabled); cursor: auto;
}
.windowModal > div > .buttons > div.disabled:hover, .windowModal > div > .buttons > div.disabled.active, .windowAlert > div > .buttons > div.disabled:hover, .windowAlert > div > .buttons > div.disabled.active {
	background: var(--popupButtonColorDisabled);
}

.windowModal > div > .mask, .windowAlert > div > .mask {
	width: 100%; height: 100%; background: var(--popupMaskColor); position: absolute; z-index: 1; display: none;
}
.windowModal > div > .mask.active, .windowAlert > div > .mask.active {
	display: block;
}
.windowModal > div > .mask > div, .windowAlert > div > .mask > div {
	width: inherit; height: inherit; position: relative;
}
.windowModal > div > .mask img, .windowAlert > div > .mask img {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}

@media only screen and (max-width:1100px) {
	.windowModal {
		width: 100%; max-width: 100%; height: 100%; left: 0; top: 0; bottom: 0; transform: translate(0, 10%); border-radius: 0;
	}
	.windowModal.active {
		transform: translate(0, 0);
	}
}


.windowMessage {
	width: 100vw; background: var(--popupBgColor); box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.4); overflow: hidden;
	position: fixed; z-index: 11; left: 50%; bottom: 0; transform: translate(-50%, 10%);
	opacity: 0; transition: opacity 0.5s, transform 0.5s;
}
.windowMessage.active {
	opacity: 1; transform: translate(-50%, 0);
}
.windowMessage > div > .top {
	width: 100%; height: 60px; background: var(--popupTitleBgColor); box-shadow: 3px 0 3px 0 rgba(0, 0, 0, 0.2);
	display: grid; grid-template-columns: 1fr 60px;
}
.windowMessage.success > div > .top {
	background: var(--popupTitleBgColorSuccess);
}
.windowMessage.error > div > .top {
	background: var(--popupTitleBgColorAlert);
}
.windowMessage > div > .top > .title {
	padding: 10px 10px 10px 20px; text-align: center; align-self: center;
	color: var(--popupTitleFontColor); font-size: var(--popupTitleFontSize); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.windowMessage > div > .top > .close {
	padding: 10px; text-align: center; align-self: center;
}
.windowMessage > div > .top > .close img {
	height: 30px; cursor: pointer;
}


.loading {
	position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.3);
	display: none; align-items: center; justify-content: center; text-align: center;
}
.loading.show {
	display: flex;
}