#place_order.vistapay-subscription-disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Full-width alignment with checkout (no extra indent). */
.woocommerce-checkout #payment .payment_methods li.payment_method_vistapay_subscription,
.payment_method_vistapay_subscription {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	padding: 0;
	margin: 0 0 1em;
	list-style: none;
}

.payment_method_vistapay_subscription > input[type="radio"] {
	margin: 0;
	flex: 0 0 auto;
	align-self: center;
	position: relative;
	top: 0;
}

.payment_method_vistapay_subscription > label {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	min-height: 28px;
	line-height: 1.2;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
	vertical-align: middle;
}

.payment_method_vistapay_subscription > label img {
	display: block;
	flex: 0 0 auto;
	align-self: center;
	max-height: 24px;
	height: 24px;
	width: auto;
	margin: 0;
	padding: 0;
	object-fit: contain;
	vertical-align: middle;
}

.payment_method_vistapay_subscription .payment_box {
	flex: 0 0 100%;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.payment_method_vistapay_subscription .payment_box::before {
	display: none !important;
}

.vistapay-scheduled-form {
	margin: 0;
	padding: 24px 28px 22px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #111827;
	width: 100%;
	box-sizing: border-box;
}

.vistapay-scheduled-section {
	margin-bottom: 22px;
	padding-bottom: 0;
}

.vistapay-scheduled-section:last-of-type {
	margin-bottom: 0;
}

.vistapay-scheduled-section__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b7280;
	line-height: 1.2;
}

.vistapay-field {
	position: relative;
	margin: 0;
}

.vistapay-field__label {
	display: block;
	margin: 0 0 7px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2a44;
	transition: color 0.2s ease;
}

.vistapay-field.is-focused .vistapay-field__label,
.vistapay-field.is-active .vistapay-field__label {
	color: #1f2a44;
}

.vistapay-field__hint {
	display: block;
	margin-top: 5px;
	font-size: 11px;
	color: #9ca3af;
}

.vistapay-input,
.vistapay-select {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	line-height: 1.2;
	color: #111827;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.vistapay-input:hover,
.vistapay-select:hover {
	border-color: #9ca3af;
}

.vistapay-input:focus,
.vistapay-select:focus {
	outline: none;
	border-color: #7c3aed;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.vistapay-input:read-only {
	background: #f9fafb;
	color: #6b7280;
	cursor: default;
}

.vistapay-select-wrap {
	position: relative;
}

.vistapay-select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: rotate(45deg);
	pointer-events: none;
	transition: border-color 0.2s ease;
}

.vistapay-select-wrap.is-open::after {
	border-color: #7c3aed;
}

.vistapay-select-wrap .vistapay-select {
	padding-right: 36px;
	cursor: pointer;
}

.vistapay-field-row {
	display: grid;
	gap: 18px;
	margin-bottom: 16px;
	align-items: start;
}

.vistapay-field-row:last-child {
	margin-bottom: 0;
}

.vistapay-field-row--exp-cvv {
	grid-template-columns: minmax(0, 1fr) minmax(130px, 0.55fr);
}

.vistapay-field-row--amount-currency {
	grid-template-columns: minmax(0, 1fr) 150px;
}

.vistapay-field--full {
	margin-bottom: 20px;
}

.vistapay-field--full:last-child {
	margin-bottom: 0;
}

.vistapay-hpf-field {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 10px 14px;
	border: 1px solid #cfd6e3;
	border-radius: 7px;
	background: #fff;
	cursor: text;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
	position: relative;
}

.vistapay-hpf-field:hover {
	border-color: #aab4c4;
}

.vistapay-field.is-focused .vistapay-hpf-field,
.vistapay-hpf-field.is-focused {
	border-color: #7b8ca8;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.vistapay-hpf-field iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 6px;
	vertical-align: middle;
}

.vistapay-hpf-field-valid {
	border-color: #22c55e !important;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

.vistapay-hpf-field-invalid {
	border-color: #ef4444 !important;
	background: #fef2f2;
	box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
}

.vistapay-subscription-hint {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	font-size: 12px;
	line-height: 1.4;
}

.vistapay-subscription-status {
	margin: 8px 0 0;
	font-size: 12px;
	color: #6b7280;
	min-height: 18px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

@media (max-width: 720px) {
	.vistapay-scheduled-form {
		padding: 18px 14px 16px;
	}

	.vistapay-field-row--exp-cvv,
	.vistapay-field-row--amount-currency {
		grid-template-columns: 1fr;
	}
}
