/**
 *  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;
}

body {
    scrollbar-gutter: stable both-edges;
}

body:has(.fintecture-modal[open]:modal) {
    overflow: hidden;
}

/* 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;
}

/* Modals */

.fintecture-modal {
	width: 50%;
	min-height: 500px;
	overflow-y: auto;
	border: none;
	border-radius: 16px;
	padding: 48px;
	margin: auto;
}

.fintecture-modal p {
	color: #141414;
	line-height: 20px;
	font-size: 14px;
	margin-bottom: 0;
}

.fintecture-modal a, .fintecture-express-payment-modal-bnpl {
	font-size: 14px;
	font-weight: bold;
	color: #2A45A7 !important;
	text-decoration: none;
	cursor: pointer;
}

.fintecture-modal .fintecture-hide-on-desktop {
	display: none;
}

.fintecture-modal .fintecture-modal-close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}

.fintecture-modal::backdrop {
	background-color: rgba(0, 0, 0, 0.5);
}

.fintecture-modal-sections {
	text-align: left;
}

.fintecture-modal .fintecture-modal-section-title {
	font-size: 20px;
	font-weight: bold;
	margin-top: 36px;
	margin-bottom: 8px;
	line-height: 28px;
}

/* Express payment modal */

#fintecture-express-payment-modal .fintecture-modal-image-title {
	display: block;
	margin: auto;
}

#fintecture-express-payment-modal .fintecture-modal-cart-summary {
	background-color: #F7FAFD;
	padding: 20px;
	border-radius: 4px;
}

#fintecture-express-payment-modal .fintecture-modal-product-item {
	display: flex;
	justify-content: space-between;
	padding: 16px 0;
	border-bottom: 1px solid #D7E9FF;
	gap: 50px;
}

#fintecture-express-payment-modal .fintecture-modal-product-item.fintecture-no-border {
	border: none;
}

#fintecture-express-payment-modal .fintecture-modal-product-item:first-of-type {
	padding-top: 0;
}

#fintecture-express-payment-modal .fintecture-modal-redirect-link {
	margin-bottom: 16px;
}

#fintecture-express-payment-modal .fintecture-modal-global-amount {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

#fintecture-express-payment-modal .fintecture-modal-shipping-amount {
	margin-top: 16px;
	margin-bottom: 8px;
}

#fintecture-express-payment-modal .fintecture-modal-cart-amount {
	font-weight: bold;
}

#fintecture-express-payment-modal .fintecture-modal-product-item p {
	font-size: 14px;
	font-weight: bold;
}

#fintecture-express-payment-modal .fintecture-modal-address-section {
	display: flex;
}

#fintecture-express-payment-modal .fintecture-modal-address-section>div {
	width: 50%;
}

#fintecture-express-payment-modal .fintecture-modal-address-section .fintecture-modal-address-info {
	font-size: 12px;
	color: #595959;
	font-style: italic;
	line-height: 12px;
	margin-bottom: 8px;
}

#fintecture-express-payment-modal .fintecture-modal-address-section .fintecture-modal-address-detail {
	margin-top: 10px;
}

#fintecture-express-payment-modal .fintecture-modal-shipping-detail span{
	font-weight: bold;
}

#fintecture-express-payment-modal .fintecture-modal-payment-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#fintecture-express-payment-modal .fintecture-modal-payment-container p {
	font-weight: bold;
}

#fintecture-express-payment-modal .fintecture-modal-payment-container a:hover,
.fintecture-express-payment-modal-bnpl:hover {
	text-decoration: underline;
}

#fintecture-express-payment-modal .fintecture-modal-acceptance {
	display: flex;
	align-items: baseline;
	margin: 36px 0;
	gap: 6px;
}

#fintecture-express-payment-modal .fintecture-modal-acceptance label {
	text-align: left;
	line-height: 20px;
	margin-bottom: 0;
}

#fintecture-express-payment-modal .fintecture-modal-acceptance input {
	flex-shrink: 0;
}

#fintecture-express-payment-modal .fintecture-modal-acceptance.fintecture-hide-on-desktop {
	display: none;
}

#fintecture-express-payment-modal .fintecture-modal-actions.fintecture-hide-on-mobile {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

#fintecture-express-payment-modal .fintecture-modal-btn {
	font-size: 16px;
	line-height: 24px;
	font-weight: bold;
	border-radius: 8px;
	padding: 10px 15px;
	cursor: pointer;
	text-align: center;
}

#fintecture-express-payment-modal .fintecture-modal-actions .fintecture-modal-close {
	background-color: #FFF;
	color: #2A45A7;
	border: 2px solid #2A45A7;
}

#fintecture-express-payment-modal .fintecture-modal-actions .fintecture-modal-pay {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #FFF !important;
	background-color: #2A45A7;
	border: 2px solid #2A45A7;
}

#fintecture-express-payment-modal .fintecture-modal-actions .fintecture-lock {
	background-color: #B7B7B7;
	border-color: #B7B7B7;
	pointer-events: none;
}

#fintecture-express-payment-modal .fintecture-modal-actions .fintecture-modal-pay:hover {
	transition: all 250ms ease-in-out;
	background-color: #17308C !important;
	border-color: #17308C !important;
}

/* Express payment button */

#fintecture-express-payment-button {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	width: 100%;
	margin: 15px 0;
	background-color: #2A45A7;
	color: #FFF;
	border-radius: 8px;
	padding: 12px 16px;
	gap: 10px;
	border: none;
	cursor: pointer;
}

#fintecture-express-payment-button:hover {
	transition: all 250ms ease-in-out;
	background-color: #17308C;
}

#fintecture-express-payment-button span {
	font-size: 16px;
	font-weight: bold;
}

#fintecture-express-payment-button .fintecture-hide-on-desktop {
	display: none;
}

/* 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: 980px) {
	#fintecture-express-payment-button .fintecture-hide-on-mobile {
		display: none;
	}

	#fintecture-express-payment-button .fintecture-hide-on-desktop {
		display: block;
	}

	.fintecture-modal {
		width: 60%;
	}

	.fintecture-modal .fintecture-hide-on-desktop {
		display: block;
	}

	#fintecture-express-payment-modal .fintecture-modal-acceptance.fintecture-hide-on-desktop {
		display: flex;
	}

	.fintecture-modal .fintecture-hide-on-mobile, #fintecture-express-payment-modal .fintecture-modal-acceptance.fintecture-hide-on-mobile, #fintecture-express-payment-modal .fintecture-modal-actions.fintecture-hide-on-mobile {
		display: none;
	}

	.fintecture-modal .fintecture-modal-close-btn {
		width: 20px;
	}

	#fintecture-express-payment-modal .fintecture-modal-actions .fintecture-modal-btn {
		width: 100%;
		justify-content: center;
	}

	#fintecture-express-payment-modal .fintecture-modal-actions.fintecture-hide-on-desktop:last-of-type {
		margin-top: 36px;
	}

	#fintecture-express-payment-modal .fintecture-modal-address-section {
		flex-wrap: wrap;
	}

	#fintecture-express-payment-modal .fintecture-modal-payment-container {
		flex-wrap: wrap;
	}

	#fintecture-express-payment-modal .fintecture-modal-payment-container>p {
		width: 100%;
	}

	#fintecture-express-payment-modal .fintecture-modal-address-section>div {
		width: 100%;
	}
}

@media screen and (max-width: 780px) {
	.fintecture-modal {
		width: 75%;
	}

	#fintecture-express-payment-modal .fintecture-modal-payment-container p:last-of-type {
		margin-top: 8px;
	}
}

@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: 580px) {
	.fintecture-modal {
        width: 95%;
		padding: 24px;
    }
}

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