/* Secure Card Vault checkout form: classic and block checkout */

.scv-card-form-wrap {
	display: flex;
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 14px;
	padding: 6px 0 4px;
	box-sizing: border-box;
}

.scv-form-row {
	width: 100%;
	box-sizing: border-box;
}

.scv-form-row.scv-row-half {
	width: calc(50% - 6px);
}

.scv-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
}

.scv-form-row .input-text {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--gray-400, #ccc);
	border-radius: 4px;
	background-color: #fff;
	font-size: 14px;
}

.scv-form-row .input-text:focus {
	border-color: var(--wp--preset--color--primary, #5c6ac4);
	outline: none;
}

.scv-input-with-icons {
	position: relative;
}

.scv-input-with-icons .input-text {
	padding-right: 112px;
}

.scv-brand-icons {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 4px;
	pointer-events: none;
}

.scv-brand-icon {
	width: 32px;
	height: 20px;
	border-radius: 3px;
	overflow: hidden;
	display: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	background: #fff;
	animation: scv-icon-in 0.18s ease;
}

.scv-brand-icon.show {
	display: inline-block;
}

.scv-brand-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.scv-brand-icon.scv-brand-default {
	box-shadow: none;
	background: transparent;
}

@keyframes scv-icon-in {
	from {
		transform: scale(0.55);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.scv-field-error {
	display: block;
	min-height: 0;
	margin-top: 4px;
	color: #b32d2e;
	font-size: 12px;
	line-height: 1.35;
}

.woocommerce form .form-row.woocommerce-invalid .input-text,
.scv-card-form-wrap .scv-form-row.woocommerce-invalid .input-text,
.wc-block-components-checkout-payment-methods .scv-form-row.has-error .input-text,
.scv-card-form-wrap .scv-form-row.has-error .input-text {
	border-color: #b32d2e;
}

.scv-form-row input.input-text:focus {
	border-color: var(--wp--preset--color--primary, #5c6ac4);
}

/* Let themes style the classic WC input highlight too. */
.woocommerce form .form-row.woocommerce-validated .input-text {
	border-color: #8fae1b;
}

/* Block checkout: the wrapper is rendered inside the payment method content. */
.wc-block-components-checkout-payment-methods .wc-payment-form {
	margin: 0;
}

.scv-blocks-description {
	margin: 0 0 10px;
	color: #555;
	font-size: 13px;
}