/*
 * Avisos emergentes (jquery-toastmessage: «Datos guardados correctamente», errores...). Estilo propio en lugar del
 * toastmessage.css de la librería; el script y las llamadas no cambian. Tarjeta blanca con sombra, barra e icono del
 * color de cada tipo. Las clases y posiciones son las que crea el plugin.
 */
.toast-container {
	width: 340px;
	max-width: calc(100vw - 32px);
	z-index: 9999;
}

.toast-item {
	position: relative;
	display: block;
	margin: 0 0 12px 0;
	padding: 16px 40px 16px 60px;
	background: #fff;
	color: #333;
	border-radius: 6px;
	border-left: 5px solid var(--toast-color, #555);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .12);
	font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

.toast-item p {
	margin: 0;
	text-align: left;
}

/* Botón de cerrar de los avisos que no desaparecen solos (errores del panel). Vacío en los demás. */
.toast-item-close {
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 22px;
	line-height: 1;
	color: #999;
	cursor: pointer;
}

.toast-item-close:hover {
	color: #333;
}

/* Icono: círculo del color del tipo con su símbolo. */
.toast-item-image {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background: var(--toast-color, #555);
	color: #fff;
	font: bold 17px/28px Arial, sans-serif;
	text-align: center;
}

.toast-item-image-success::before { content: "\2713"; }
.toast-item-image-notice::before  { content: "i"; font-family: Georgia, serif; }
.toast-item-image-warning::before,
.toast-item-image-error::before   { content: "!"; }

.toast-type-success { --toast-color: #2e9e5b; }
.toast-type-notice  { --toast-color: #003580; }
.toast-type-warning { --toast-color: #e0962b; }
.toast-type-error   { --toast-color: #c0392b; }

/* Posiciones (la web y el panel usan middle-center). */
.toast-position-top-left      { position: fixed; top: 20px; left: 20px; }
.toast-position-top-center    { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); }
.toast-position-top-right     { position: fixed; top: 20px; right: 20px; }
.toast-position-middle-left   { position: fixed; top: 50%; left: 20px; transform: translateY(-50%); }
.toast-position-middle-center { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.toast-position-middle-right  { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); }
