/**
 * Finix for Gravity Forms — Frontend Styles
 */

/* Container that Finix.js mounts its hosted fields into */
.finix-cc-container {
	min-height: 200px;
	position: relative;
	box-sizing: border-box;
}

/* Prevent GF wrapper overflow rules from clipping the Finix iframe */
.gform_wrapper .finix-cc-container,
.gform_wrapper .ginput_container.finix-cc-container {
	overflow: visible;
}

/* Make the Finix iframe(s) fill the container width */
.finix-cc-container iframe {
	width: 100% !important;
	border: none;
	display: block;
}

/* Placeholder shown in the form editor */
.finix-cc-placeholder {
	background: #f9f9f9;
	border: 1px dashed #ccc;
	border-radius: 4px;
	color: #666;
	padding: 24px 16px;
	text-align: center;
	font-style: italic;
}

.finix-cc-placeholder p {
	margin: 0;
}

/* Inline validation / error message */
.finix-error-message {
	color: #cc0000;
	font-size: 0.875em;
	margin-top: 6px;
	padding: 4px 0;
}
