/**
 * @author Alvaro Fuentes <alvaro.fuentes.zurita@gmail.com>
 */


/* ============================================================================================== */
/* Layout principal */
/* Contenedor nativo */
.modal_component_name.w-modal--native {
	background	: none;
	border		: none;
	padding		: 0;
}

.modal_component_name.w-modal--native::backdrop {
	background-color	: rgba(0, 0, 0, .4);
}

/* Contenedor */
.modal_component_name .w-modal {
	background		: #fcf6f2 no-repeat bottom;
	background-size	: contain;
	border-radius	: 1rem;
	box-shadow		: 0 0 1.5rem .5rem rgba(0, 0, 0, .4);
	display			: flex;
	flex-direction	: column;
	padding			: 1rem 1rem 2.5rem;
}

/* Marco */
.modal_component_name .w-modal__frame {
	display			: flex;
	justify-content	: flex-end;
}

.modal_component_name .w-modal__frame:not(:empty) {
	margin-bottom	: .5rem;
}

.modal_component_name .w-modal__frame .w-action {
	align-items			: center;
	background-color	: #f9efdc;
	border				: none;
	border-radius		: .5rem;
	cursor				: pointer;
	display				: flex;
	height				: 2rem;
	justify-content		: center;
	margin				: 0;
	padding				: 0;
	width				: 2rem;
}

.modal_component_name .w-modal__frame .w-action:not(:last-child) {
	margin-right	: .5rem;
}

.modal_component_name .w-modal__frame .w-action::before {
	-webkit-mask		: no-repeat center;
	-webkit-mask-size	: contain;
	background-color	: #d2b98e;
	content				: '';
	height				: 1rem;
	width				: 1rem;
}

.modal_component_name .w-modal__frame .w-action__label {
	display	: none;
}

/* Cabecera */
.modal_component_name .w-modal__header {
	align-items		: center;
	display			: flex;
	flex-direction	: column;
	margin-bottom	: 1rem;
	padding			: 0 1.5rem;
}

.modal_component_name .w-modal__title {
	margin	: 0;
}

.modal_component_name .w-modal__title-label {
	color			: #193c82;
	display			: block;
	font			: 700 2rem/2rem 'Dosis', sans-serif;
	text-align		: center;
	text-transform	: uppercase;
}

.modal_component_name .w-modal__title-label:not(:empty) {
	margin-bottom	: .5rem;
}

.modal_component_name .w-modal__subtitle {
	margin	: 0;
}

.modal_component_name .w-modal__subtitle-label {
	color			: #737373;
	display			: block;
	font			: 700 1.7rem/1.7rem 'Dosis', sans-serif;
	text-transform	: uppercase;
}

/* Cuerpo */
.modal_component_name .w-modal__body {
	display			: flex;
	flex			: 1;
	flex-wrap		: wrap;
	justify-content	: center;
	padding 		: 0 3rem;
}

/* Pie */
.modal_component_name .w-modal__footer {
	display			: flex;
	justify-content	: center;
}

.modal_component_name .w-modal__footer:not(:empty) {
	margin-top	: 2rem;
}

.modal_component_name .w-modal__footer .w-action {
	align-items			: center;
	background-color	: #fff;
	border				: .2rem solid #d8d6d5;
	border-radius		: .5rem;
	cursor				: pointer;
	display				: flex;
	justify-content		: center;
	margin				: 0;
	padding				: .2rem 1.3rem;
	text-transform		: uppercase;
}

.modal_component_name .w-modal__footer .w-action:focus {
	outline : none;
}

.modal_component_name .w-modal__footer .w-action--primary {
	background-color	: #4267bb;
	border-color		: #4267bb;
	color				: #fff;
}

.modal_component_name .w-modal__footer .w-action:not(:last-child) {
	margin-right	: 1rem;
}

.modal_component_name .w-modal__footer .w-action__label {
	font	: 600 1.2rem/1.2rem 'Dosis', sans-serif;
}

/* ============================================================================================== */
/* Reglas por acción en marco */
.modal_component_name .w-modal__frame .w-action.close::before {
	-webkit-mask-image	: url('./icon--equis.svg');
}

/* ============================================================================================== */
/* Reglas por aplicación/unidad */
/* Ficha */
[data-app-name="ficha"] .modal_component_name.w-modal--native {
	transform	: scale(.8);
}

[data-app-name="ficha"] .modal_component_name .w-modal {
	background-color	: #fff;
	background-image	: url('./bg--modal-ficha.svg');
}

[data-app-name="ficha"] .modal_component_name .w-modal__frame .w-action {
	background-color	: #bfd4d8;
}

[data-app-name="ficha"] .modal_component_name .w-modal__frame .w-action::before {
	background-color	: #2d6370;
}

/* Ambulatoria */
[data-unit-name="ambulatoria"] .modal_component_name .w-modal {
	background-image	: url('./bg--modal-ambulatoria.svg');
}

/* Hospitalización */
[data-unit-name="hospitalizacion"] .modal_component_name .w-modal {
	background-image	: url('./bg--modal-hospitalizacion.svg');
}

/* Servicios */
[data-unit-name="servicios"] .modal_component_name .w-modal {
	background-image	: url('./bg--modal-servicios.svg');
}

/* Urgencia */
[data-unit-name="urgencia"] .modal_component_name .w-modal {
	background-image	: url('./bg--modal-urgencia.svg');
}
