
/*para boton de continuar capitulo X*/
.tokki-continue-reading-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: #9654CA;
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	line-height: 1.2;
	transition: none;
}

@media (max-width: 768px) {

	.tokki-continue-reading-btn {
		font-size: 14px;
	}

}








/*=========para pop up / popup==========*/
 
.tokki-chapter-end-marker {
	width: 100%;
	height: 1px;
}

.tokki-completed-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.tokki-completed-popup.is-visible {
	display: flex;
}

.tokki-completed-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}

.tokki-completed-popup__box {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	background: #524F56;
	border-radius: 20px;
	padding: 28px 22px 24px;
	text-align: center;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

.tokki-completed-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;

	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;

	border: 0;
	background: transparent !important;

	font-size: 18px;
	line-height: 22px;
	text-align: center;

	cursor: pointer;
	color: #999;

	box-shadow: none !important;
	border-radius: 0 !important;
}

.tokki-completed-popup__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #B98BDD;
}

.tokki-completed-popup__text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #E6E6E7;
}

.tokki-completed-popup__button {
	border: 0;
	border-radius: 999px;
	padding: 12px 22px;
	background: #B98BDD;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.tokki-completed-popup__button:disabled {
	opacity: .7;
	cursor: default;
}




.tokki-completed-popup__close:hover,
.tokki-completed-popup__close:focus,
.tokki-completed-popup__close:active {
	background: transparent !important;
	color: #999 !important;
	box-shadow: none !important;
	transform: none !important;
	border-color: transparent !important;
}


.tokki-completed-popup .tokki-completed-popup__button,
.tokki-completed-popup .tokki-completed-popup__button:hover,
.tokki-completed-popup .tokki-completed-popup__button:focus,
.tokki-completed-popup .tokki-completed-popup__button:active {
	background-color: #B98BDD!important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 1 !important;
	outline: none !important;
}















/* =========================================================
 * Popup: novela oficialmente completada
 * ========================================================= */

.tokki-completed-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	box-sizing: border-box;
}

.tokki-completed-popup__overlay {
	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}


/* Caja principal */

.tokki-completed-popup__box {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;

	display: flex;
	flex-direction: column;
	align-items: stretch;

	width: calc(100% - 40px);
	max-width: 540px;
	box-sizing: border-box;

	margin: 0 !important;
	padding: 34px 32px 30px !important;

	background: #1A191D !important;
	border: 1px solid rgba(185, 139, 221, 0.35) !important;
	border-radius: 24px !important;

	color: #E6E6E7;
	text-align: left !important;

	box-shadow:
		0 24px 70px rgba(0, 0, 0, 0.5) !important;

	transform: translate(-50%, -50%) !important;
}


/* Título */

.tokki-completed-popup__title {
	margin: 0 42px 14px 0 !important;

	color: #FFFFFF !important;
	font-size: 28px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: left !important;
}


/* Descripción */

.tokki-completed-popup__text {
	margin: 0 0 30px !important;

	color: #BFBEC1 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	text-align: left !important;
}


/* Botón cerrar */

.tokki-completed-popup__close {
	position: absolute !important;
	top: 20px !important;
	right: 20px !important;

	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 32px !important;
	min-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;

	margin: 0 !important;
	padding: 0 !important;

	background: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;

	color: #858289 !important;
	font-family: Arial, sans-serif;
	font-size: 26px !important;
	font-weight: 300 !important;
	line-height: 1 !important;

	cursor: pointer;
	box-shadow: none !important;
	transform: none !important;
	transition: color 0.18s ease !important;
}

.tokki-completed-popup__close:hover,
.tokki-completed-popup__close:focus,
.tokki-completed-popup__close:active {
	background: transparent !important;
	border: 0 !important;
	color: #FFFFFF !important;
	box-shadow: none !important;
	transform: none !important;
	outline: none;
}


/* Botón principal */

.tokki-completed-popup__button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: flex-end;

	width: auto !important;
	min-width: 0 !important;
	min-height: 50px !important;

	margin: 0 !important;
	padding: 13px 25px !important;

	background: #B98BDD !important;
	border: 1px solid #B98BDD !important;
	border-radius: 999px !important;

	color: #1A191D !important;
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center;

	cursor: pointer;
	box-shadow: none !important;
	transform: none !important;
	transition: opacity 0.18s ease !important;
}

.tokki-completed-popup__button:hover,
.tokki-completed-popup__button:focus,
.tokki-completed-popup__button:active {
	background: #B98BDD !important;
	border-color: #B98BDD !important;
	color: #1A191D !important;
	box-shadow: none !important;
	transform: none !important;
	outline: none;
	opacity: 0.9;
}

.tokki-completed-popup__button:disabled {
	cursor: wait;
	opacity: 0.6;
}


/* =========================================================
 * Popup completado en móvil
 * ========================================================= */

@media (max-width: 600px) {
	.tokki-completed-popup__box {
		width: calc(100% - 28px);
		padding: 28px 22px 22px !important;
		border-radius: 20px !important;
	}

	.tokki-completed-popup__title {
		margin-right: 34px !important;
		margin-bottom: 12px !important;
		font-size: 23px !important;
	}

	.tokki-completed-popup__text {
		margin-bottom: 24px !important;
		font-size: 14px !important;
		line-height: 1.55 !important;
	}

	.tokki-completed-popup__close {
		top: 15px !important;
		right: 15px !important;
	}

	.tokki-completed-popup__button {
		width: 100% !important;
		min-height: 46px !important;
		padding: 12px 18px !important;
		font-size: 14px !important;
	}
}


/* =========================================================
 * Bloquear fondo y centrar contenido
 * ========================================================= */

/*
 * Impide desplazar la página detrás del popup.
 */
html:has(.tokki-completed-popup[aria-hidden="false"]),
body:has(.tokki-completed-popup[aria-hidden="false"]) {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.tokki-completed-popup[aria-hidden="false"] {
	overscroll-behavior: contain;
}

.tokki-completed-popup__overlay {
	touch-action: none;
}


/* Centrar título, texto y botón */

.tokki-completed-popup__box {
	align-items: center !important;
	text-align: center !important;
}

.tokki-completed-popup__title {
	width: 100%;
	box-sizing: border-box;

	margin: 0 0 14px !important;
	padding: 0 38px;

	text-align: center !important;
}

.tokki-completed-popup__text {
	width: 100%;
	margin: 0 0 30px !important;
	text-align: center !important;
}

.tokki-completed-popup__button {
	align-self: center !important;
	margin-right: auto !important;
	margin-left: auto !important;
	text-align: center !important;
}


/* Ajustes móviles */

@media (max-width: 600px) {
	.tokki-completed-popup__title {
		margin: 0 0 12px !important;
		padding: 0 30px;
		text-align: center !important;
	}

	.tokki-completed-popup__text {
		margin: 0 0 24px !important;
		text-align: center !important;
	}

	.tokki-completed-popup__button {
		align-self: center !important;
		margin-right: auto !important;
		margin-left: auto !important;
		text-align: center !important;
	}
}