/* Toast */
/* !Don't remove this!
 * Material Toast plugin styles
 * 
 * Author: Dionlee Uy
 * Email: dionleeuy@gmail.com
 */




.mdtoast {
    position: fixed;
    display: -webkit-box;
    display: -ms-flexbox;
	display: flex;
	flex-direction: row;
	-ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

	/* this is the original position: bottom left corner */
	/*left: 24px;
    bottom: 24px;*/

	/* by mihael: top center position */
	top: 24px;
	left: 50%;
	transform: translate(-50%, 0);

	padding: 0 24px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-align: left;
    outline: none;
    pointer-events: auto;
    touch-action: auto;
    /*-moz-user-select: none;*/
    -ms-user-select: none;
    user-select: none;
    background-color: #323232;
    /*-moz-transform: translateY(0);*/
    /* once we added on X above, we added the Y as well above so we comment bellow: */
	/*transform: translateY(0);*/
    /*-moz-transition: -moz-transform 0.23s 0ms cubic-bezier(0, 0, 0.2, 1);*/
    transition: transform 0.23s 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.23s 0ms cubic-bezier(0, 0, 0.2, 1);
    will-change: transform;
    z-index: 100002;
}
    .mdtoast.mdt--load {
        /*-moz-transform: translateY(200%);*/

		/* this is the original transform for the toast to appear from bottom */
		/*transform: translateY(200%);*/

		/* by mihael: to appear from top: */
		transform: translate(-50%, -200%);

		/*-moz-transition: -moz-transform 0.23s 0ms cubic-bezier(0.4, 0, 1, 1);*/
        transition: transform 0.23s 0ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 0.23s 0ms cubic-bezier(0.4, 0, 1, 1);
    }
    .mdtoast.mdt--interactive { padding-right: 16px; }
    .mdtoast.mdt--withCloseX { padding-right: 40px; }
    .mdtoast.mdt--info { background-color: #1565c0; }
    .mdtoast.mdt--error { background-color: #e53935; }
    .mdtoast.mdt--warning { background-color: #ef6c00; }
    .mdtoast.mdt--success { background-color: #2e7d32; }
    .mdtoast .mdt-message {
    	display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        min-height: 48px;
        padding: 8px 0;
        opacity: 1;
        margin-left: 0;
        /*-moz-box-sizing: border-box;*/
        box-sizing: border-box;
        /*-moz-transition: opacity 0.3s 0ms cubic-bezier(0.4, 0, 1, 1);*/
        transition: opacity 0.3s 0ms cubic-bezier(0.4, 0, 1, 1);
    }
        .mdtoast.mdt--load .mdt-message { opacity: 0; }
        .mdtoast.mdt--interactive .mdt-message { margin-right: auto; }

.mdtoast .mdt-action {
	display: flex;
	align-items: center;
	color: #ffeb3b;
	text-decoration: none;
	cursor: pointer;
	letter-spacing: 0.07em;
	font-weight: 500;
	padding: 8px;
	margin: 0 24px 0 24px;
	opacity: 1;
	min-height: 32px;
	background: none;
	border: none;
	outline: none;
	/*-moz-box-sizing: border-box;*/
	box-sizing: border-box;
	/*-moz-border-radius: 4px;*/
	border-radius: 4px;
	/*-moz-transition: opacity 0.3s 0ms cubic-bezier(0.4, 0, 1, 1);*/
	transition: opacity 0.3s 0ms cubic-bezier(0.4, 0, 1, 1), background-color .15s linear;
}

        .mdtoast.mdt--load .mdt-action { opacity: 0; }
        .mdtoast .mdt-action:focus, .mdtoast .mdt-action:hover/*, .mdtoast .mdt-label*/ { background-color: #3e3e3e; }
        .mdtoast .mdt-action:active { background-color: #4e4e4e; }
        .mdt--info .mdt-action:focus, .mdt--info .mdt-action:hover/*, .mdt--info .mdt-label*/ { background-color: #1976d2; }
        .mdt--info .mdt-action:active { background-color: #1e88e5; }
        .mdt--error .mdt-action:focus, .mdt--error .mdt-action:hover/*, .mdt--error .mdt-label*/ { background-color: #f44336; }
        .mdt--error .mdt-action:active { background-color: #ef5350; }
        .mdt--warning .mdt-action:focus, .mdt--warning .mdt-action:hover/*, .mdt--warning .mdt-label*/ { background-color: #f57c00; }
        .mdt--warning .mdt-action:active { background-color: #fb8c00; }
        .mdt--success .mdt-action:focus, .mdt--success .mdt-action:hover/*, .mdt--success .mdt-label*/ { background-color: #388e3c; }
        .mdt--success .mdt-action:active { background-color: #43a047; }

	.mdt-closeX {

		position: absolute;
		right: 20px;

		/*margin-left: 10px;
		margin-right: -18px;*/
	}

	.mdt-closeX img {vertical-align: middle;}
        
body.mdtoast--modal { 
	pointer-events: none;
    touch-action: none;
    -ms-user-select: none;
	user-select: none;
}


.mdt-label {
	margin: 0 16px 0 -10px;
	/*border-radius: 7px;*/
	padding: 2px;
	color: #ffeb3b;
}


@media (min-width: 600px) {
    .mdtoast {
        /*min-width: 288px;*/
		min-width: 388px;
       max-width: 568px;
        /*-moz-border-radius: 4px;*/
        border-radius: 4px;
    }
}

@media (max-width: 599px) {

	.mdtoast {
        /* these were the original for bottom toast */
		/*left: 0;
        bottom: 0;*/

		/* now for top toast: make it appear on the bottom - actually commented as we didn't pursue this avenue as it was hiding the save button */
		/*top: auto;
		bottom: 0;*/
		top: 0;
		left: 0;

		right: 0;
        /*font-size: 14px;*/
		max-width: 100%;
        /*-moz-transform: translateY(0);*/
        transform: translateY(0);
    }
    
	.mdtoast.mdt--load {
		/*-moz-transform: translateY(100%);*/

		/* this is the original transform for the toast to appear from bottom */
		/*transform: translateY(100%);*/

		/* by mihael: to appear from top:*/
		transform: translateY(-100%);
	}

	/* this class is added to body when toast is displayed */
	.mdtoast--open {
	}

}
