/* ------------------------------
 トースト
------------------------------- */
.acms-toast {
	position: fixed;
	top: 100%;
	left: 10px;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 300px;
	box-shadow: 0 3px 6px rgba(0,0,0,.15);
	transform: translateY(-100%);
	transition: transform .4s ease;
}
.acms-toast-header {
	display: flex;
	width: 100%;
	padding: 10px;
	color: $acms-toast-text-color;
	background: $acms-toast-default;
	@include font-size(14);
	border-radius: 3px 3px 0 0;
	box-sizing: border-box;
}
.acms-toast-icon-btn {
	padding: 0;
	border: 0;
	appearance: none;
	color: $acms-toast-black;
	background: transparent;
}
.acms-toast-heading {
	display: flex;
	width: 100%;
	flex: 1;
	margin: 0 0 0 10px;
	color: $acms-toast-text-color;
	@include font-size(14);
	line-height: 1.3;
}
.acms-toast-body {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 10px;
	color: #333;
	@include font-size(13);
	background: #FFF;
	box-sizing: border-box;
	transition: opacity .2s;
}
.acms-toast-lead {
	margin: 0 0 15px 0;
	@include font-size(16);
	font-weight: bold;
	line-height: 1.5;
}
.acms-toast-desc {
	margin: 0;
	@include font-size(13);
	line-height: 1.7;
}
.acms-toast-desc + .acms-toast-desc {
	margin-top: 0;
}
.acms-toast-body *:first-chid,
.acms-toast-desc:first-chid {
	background: red;
}
.acms-toast-footer {
	display: flex;
	width: 100%;
	padding: 15px;
	background: #FFF;
	box-sizing: border-box;
}
.acms-toast-body + .acms-toast-footer {
	padding-top: 0;
}


.acms-toast-closed {
	transform: translateY(-36px);
}

.acms-toast-success {
	.acms-toast-header {
		color: $acms-toast-text-success-color;
		background: $acms-toast-success-color;
	}
	.acms-toast-heading,
	.acms-toast-icon-btn {
		color: $acms-toast-text-success-color;
	}
}
.acms-toast-info {
	.acms-toast-header {
		color: $acms-toast-text-info-color;
		background: $acms-toast-info-color;
	}
	.acms-toast-heading,
	.acms-toast-icon-btn {
		color: $acms-toast-text-info-color;
	}
}
.acms-toast-warning {
	.acms-toast-header {
		color: $acms-toast-text-warning-color;
		background: $acms-toast-warning-color;
	}
	.acms-toast-heading,
	.acms-toast-icon-btn {
		color: $acms-toast-text-warning-color;
	}
}
.acms-toast-danger {
	.acms-toast-header {
		color: $acms-toast-text-danger-color;
		background: $acms-toast-danger-color;
	}
	.acms-toast-heading,
	.acms-toast-icon-btn {
		color: $acms-toast-text-danger-color;
	}
}
.js-admin-toast-toggle {
	z-index: zIndex(js-admin-toast-toggle);
}


@media screen and (max-width: $breakpoint-md-max){
	.acms-toast.acms-toast-static-md {
		position: static;
		top: auto;
		left: auto;
		max-width: inherit;
		margin: 0 0 15px 0;
		transform: translateY(0);
	}
}
