/* FluidPay (3D Secure) checkout fields */
.fp3ds-fields {
	position: relative;
	margin: 8px 0 4px;
}

.fp3ds-container {
	min-height: 96px;
	overflow: visible;
	border-radius: 6px;
}

.fp3ds-container iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	border: 0;
	background: transparent;
}

.fp3ds-fields.is-loading .fp3ds-container {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.04) 75%);
	background-size: 200% 100%;
	animation: fp3ds-shimmer 1.2s linear infinite;
}

@keyframes fp3ds-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

.fp3ds-secure {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.7;
}

.fp3ds-fee-notice {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.45;
}

.fp3ds-blocks .fp3ds-fields {
	margin-top: 4px;
}

/* Gateway label: title first, card brands right after it on the same row, all left-aligned.
   On narrow screens the icons wrap onto their own row, still flush left under the title. */
label[for="payment_method_fluidpay_3ds"] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 6px 10px;
	width: 100%;
	line-height: 1.3;
}

.fp3ds-icons {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	margin: 0;
	line-height: 1;
}

.fp3ds-icons img {
	height: 22px;
	width: auto;
	max-height: 22px;
	transition: opacity 0.2s ease;
}

.fp3ds-icons img.is-dim {
	opacity: 0.3;
}

form.fp3ds-authenticating .place-order button,
form.fp3ds-authenticating #place_order {
	pointer-events: none;
	opacity: 0.6;
}

.fp3ds-status {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
}

.fp3ds-status::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	vertical-align: -1px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: fp3ds-spin 0.8s linear infinite;
}

@keyframes fp3ds-spin {
	to { transform: rotate(360deg); }
}
