/**
 * Simple Redsys Payments - InSite Styles
 */

#srp-insite-container {
	margin-bottom: 20px;
}

#srp-insite-form {
	min-height: 60px;
}

#srp-insite-form iframe {
	max-width: 100%;
	border: none;
}

#srp-insite-errors {
	margin-top: 10px;
	padding: 10px 15px;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
}

/* Challenge overlay */
#srp-challenge-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

#srp-challenge-overlay > div {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
}

#srp-challenge-iframe {
	width: 100%;
	height: 600px;
	border: none;
}

/* Processing state */
#srp-insite-container.processing #srp-insite-form {
	opacity: 0.5;
	pointer-events: none;
}

/* Block checkout specific styles */
.wc-block-components-payment-method-icons img[alt="Redsys InSite"] {
	max-height: 24px;
}
