/**
 *  2020 Fintecture SAS
 *
 *  @author Fintecture
 *  @copyright 2020 Fintecture SAS
 *  @license http://www.gnu.org/licenses/gpl-3.0.txt General Public License v3.0 (GPLv3)
 */

:root {
	--success-bg-color: #D2F2D7;
	--info-bg-color: #D7E9FF;
	--warning-bg-color: #F8E6D2;
	--danger-bg-color: #F8D5D4;
}

/* Alerts */

.fintecture-alert {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 20px;
	padding: 16px;
}

.fintecture-alert p {
	margin: 0 !important;
	color: #141414;
	line-height: 1.1em;
	word-break: break-word;
}

.fintecture-alert p a {
	color: #141414;
	font-weight: bold;
	text-decoration: underline;
}

.fintecture-alert p a:hover {
	text-decoration: none;
}

.fintecture-alert.fintecture-alert-success {
	background-color: var(--success-bg-color);
}

.fintecture-alert.fintecture-alert-info {
	background-color: var(--info-bg-color);
}

.fintecture-alert.fintecture-alert-warning {
	background-color: var(--warning-bg-color);
}

.fintecture-alert.fintecture-alert-danger {
	background-color: var(--danger-bg-color);
}

.fintecture-alert img {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}

/* Banners */

.fintecture-banner, .fintecture-banner-generic  {
	display: block;
	object-fit: contain;
	max-width: 100%;
} 

.fintecture-banner {
	height: 68px;
	margin: 20px 0;
}

.fintecture-banner-generic {
	height: 30px;
	margin: 10px 0;
}

/* Checkout */

.fintecture-description-container {
	margin-top: 25px !important;
	margin-bottom: 25px;
}

.fintecture-label-container {
	text-align: left;
}

.fintecture-badge {
	padding: 2px 8px;
	font-size: 12px;
	border-radius: 13px;
	font-weight: 700;
}

#cashback-fintecture-badge {
	display: inline-block;
	background-color: #1ddba9;
}

.fintecture-checkout-description {
	object-fit: contain;
    max-width: 100%;
	margin-bottom: 16px;
}

#fintecture-bnpl-checkout-mention {
	object-fit: contain;
    max-width: 100%;
	margin-top: 8px;
}

#fintecture-bnpl-tab {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	width: 95%;
	padding: 20px;
	border-radius: 8px;
	background-color: #F7FAFD;
}

.fintecture-bnpl-timeline {
	margin-top: 3px;
}

.fintecture-bnpl-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	line-height: 1.2em;
}

.fintecture-bnpl-text {
	font-size: 14px;
	font-weight: bold;
}

.fintecture-bnpl-row p {
	color: #0B1643;
	margin-bottom: 0;
}

.fintecture-bnpl-row-container {
	width: 100%;
}

.fintecture-bnpl-row-right {
	text-align: right;
}

/* HELPERS */
.fintecture-hide {
	display: none;
}

.fintecture-light-text {
	color: #595959;
	font-size: 12px;
}

/* Responsive */

@media screen and (max-width: 768px) {
	.checkout-description-desktop {
		display: none;
	}

	.checkout-description-mobile {
		display: block;
		width: 75%;
	}

	#fintecture-bnpl-tab {
		background-color: unset;
		padding: 0;
	}

	.fintecture-bnpl-timeline {
		display: none;
	}

	#fintecture-bnpl-tab .fintecture-light-text {
		font-size: 10px;
	}

	#fintecture-bnpl-checkout-mention {
		margin-top: 16px;
	}
}

@media screen and (max-width: 480px) {
	.fintecture-banner {
		height: initial;
		width: 100%;
	}
}