/*
Silence is dalmata 
*/

.plexo_payment__modal {
	position: fixed;
	display: flex;
	height: 100vh;
	width: 0;
	top: 0;
	left: 0;
	padding: 0;
	box-sizing: border-box;
	transition: opacity 0.5s 0.4s, height 0.5s, width 0.5s, padding 0.5s 1s;
	justify-content: center;
	z-index: 91349;
	box-sizing: border-box;
	pointer-events: none;
}
.plexo_payment__modal::before {
	content: '';
	position: fixed;
	height: 0;
	width: 0;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 91350;
}
.plexo_payment__modal iframe {
	border: 0;
	width: inherit;
	min-width: inherit;
	min-height: inherit;
	height: inherit;
}

.plexo_payment__modal > .plexo_payment__modal_container {
	opacity: 0;
	max-width: 100%;
	border: 0;
	box-shadow: 0 0 10px 5px rgb(0 0 0 / 0.2);
	transition: height 0.5s, width 0.5s;
	padding: 15px;
	background: #eee;
	box-sizing: content-box;
	position: relative;
	height: 650px;
	max-height: 100vh;
	width: 50vw;
	min-width: 320px;
}

#plexo_payment__connect {
	display: none;
	transition: opacity 0.5s 1s;
}

#plexo_payment__connect:checked ~ .plexo_payment__modal {
	min-height: 568px; /* iphone 5 */
	width: 100vw;
	padding: 0;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-content: center;
	align-items: center;
	flex-direction: column;
	pointer-events: unset;
}
#plexo_payment__connect:checked ~ .plexo_payment__modal::before {
	height: 100vh;
	width: 100vw;
}

#plexo_payment__connect:checked ~ .plexo_payment__modal > .plexo_payment__modal_container {
	opacity: 1;
	z-index: 91351;
}

.plexo_payment__card_data.hidden {
	display: none;
}
label[for='plexo_payment__connect'] a.button .add,
label[for='plexo_payment__connect'] a:not(.button) .change {
	display: inline;
}
label[for='plexo_payment__connect'] a:not(.button) .add,
label[for='plexo_payment__connect'] a.button .change {
	display: none;
}

.plexo_payment__card_data {
	display: grid;
	grid-template-columns: 1fr 4fr;
	grid-gap: 10%;
	align-items: center;
	margin: 1rem auto 2rem;
	background: white;
	border: 1px solid;
	border-radius: 3px;
	padding: 1rem;
	max-width: fit-content;
	min-width: 200px;
}

.plexo_payment__card_number {
	display: block;
}

.payment_method_plexo label[for='plexo_payment__connect'] {
	display: block;
	margin: auto;
	text-align: center;
}

a.alt {
	cursor: pointer;
}

.plexo_payment__modal_close {
	height: 0;
	z-index: 91352;
	font-size: 1rem;
	cursor: pointer;
	position: absolute;
	right: 15px;
}
.plexo_payment__modal_close:hover {
	color: #000;
}

.plexo_expired_notice {
	margin: 0 0 1rem;
}
.plexo_expired_notice.hidden {
	display: none;
}

.plexo_session_timer {
	text-align: center;
	position: relative;
	border: 1px solid;
	width: 100px;
	margin: 0 auto 2rem;
	display:none!important;
}

.warning {
	animation-name: warning;
	animation-duration: 5s;
	animation-iteration-count: infinite;
}

.plexo_session_timer::after {
	font-family: 'WooCommerce';
	content: '\e016';
	display: inline-block;
	color: inherit;
	margin-left: 0.35rem;
	font-size: 12px;
	opacity: 0.5;
}

.plexo_session_timer:hover::after {
	opacity: 1;
}

.plexo_session_timer::before {
	opacity: 0;
	pointer-events: none;
	position: absolute;
	content: attr(disclosure);
	width: 250px;
	left: calc(100px + 1rem);
	background: white;
	top: -1rem;
	font-size: small;
	color: #333333;
	padding: 0.5rem 1rem;
	text-align: left;
	border: 1px dashed #333;
	transition: opacity 0.5s;
}

@media (max-width: 991px) {
	.plexo_session_timer::before {
		left: calc(-100px + 0.5rem);
		text-align: center;
	}
}
.plexo_session_timer.hidden {
	display: none;
}
.plexo_session_timer:hover::before {
	opacity: 1;
}

@keyframes warning {
	0% {
		color: #333;
	}
	50% {
		color: #e2401c;
	}
	100% {
		color: #333;
	}
}

.woocommerce-error.plexo_expired_notice {
	margin: 1rem auto 2rem;
}

#payment .payment_methods li .plexo_payment__provider img {
	max-height: unset;
	min-width: 20px;
}

.plexo_method_description {
	text-align: center;
	margin: 1rem 0 0;
	display: block;
}

label[for='payment_method_plexo']::after {
	content: url('../img/wc-plexo-logo-60x29.png');
	margin-left: 1rem;
	top: 6px;
	position: relative;
}

.plexo_installments {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 10%;
    align-items: center;
    grid-column-start: 2;
    grid-column-end: 3;
}
