
/* Bloc de paiement Stripe */

form#payment-form-stripe button#submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 30px;
	background: var(--MAIN-COLOR);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s ease;
	position: relative;
	overflow: hidden;
	max-width: 300px;
	margin-top: 30px;
	margin-bottom: 50px;
	float: right;
	height: 48px; /* fix hauteur constante */
	min-width: 160px;
}

/* Spinner quand loading */
form#payment-form-stripe button#submit.loading::after {
    content: "";
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    z-index: 2;
}


/* On réduit juste l’opacité, pas display:none */
form#payment-form-stripe button#submit.loading span#button-text {
	opacity: 0.4;
}

@keyframes spin {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}


form#payment-form-stripe span#button-text {
	color: #fff;
}

.p-HeightObserver--delayIncrease {
	color: var(--color-black);
}
/* Variables */
/** {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	display: flex;
	justify-content: center;
	align-content: center;
	height: 100vh;
	width: 100vw;
}
*/
form#payment-form-stripe {
	width: 100%;
	min-width: 500px;
	align-self: center;
}

.hidden {
	display: none;
}

#payment-message {
	color: rgb(105, 115, 134);
	font-size: 16px;
	line-height: 20px;
	padding-top: 12px;
	text-align: center;
}

#payment-element {
	margin-bottom: 24px;
}
/* Buttons and links */
form#payment-form-stripe button:not(#submit) {
	background: #5469d4;
	font-family: Arial, sans-serif;
	color: #ffffff;
	border-radius: 4px;
	border: 0;
	padding: 12px 16px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: block;
	transition: all 0.2s ease;
	width: 100%;
}

.p-AccordionButton[data-value="card"] .p-PaymentAccordionButtonText {
	color: #000!important;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/*button:hover {
	filter: contrast(115%);
}

button:disabled {
	opacity: 0.5;
	cursor: default;
}*/

@media (max-width: 768px) {

	.wrap-flexbox-cart-paiement {
		gap: 20px;
	}

	form#payment-form-stripe {
		width: 100%;
		padding: 0;
		min-width: inherit;
	}

	form#payment-form-stripe button#submit {
		max-width: 100%;
	}

	#payment-element {
		margin-bottom: 0;
	}

	p-input input {
		padding: 10px!important;
	}

}




