.payment-label {
	display: flex;
	align-items: center;
	font-size: 16px;
	color: #333;
}

.wtp-card-form {
	--wtp-border: #d8dee8;
	--wtp-border-focus: #0570de;
	--wtp-error: #df1b41;
	--wtp-success: #15803d;
	--wtp-text: #1a1f36;
	--wtp-muted: #6b7280;
	--wtp-bg: #fff;
	--wtp-radius: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	color: var(--wtp-text);
}

.wtp-card-form__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wtp-card-form__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
}

.wtp-card-form__title {
	margin: 0;
	color: var(--wtp-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-wrap: balance;
}

.wtp-card-form__secure {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--wtp-muted);
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.wtp-card-form__card,
.wtp-card-form__name {
	margin: 0;
	background: var(--wtp-bg);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
	overflow: visible;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.wtp-card-form__name {
	margin-top: 10px;
	padding: 8px 12px 10px;
}

.wtp-card-form__field {
	position: relative;
	padding: 8px 12px 10px;
}

.wtp-card-form__card > .wtp-card-form__number {
	border-bottom: 1px solid var(--wtp-border);
}

.wtp-card-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-width: 0;
}

.wtp-card-form__row > .wtp-card-form__field:first-child {
	border-right: 1px solid var(--wtp-border);
}

.wtp-card-form__label {
	display: block;
	margin: 0 0 4px;
	color: var(--wtp-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	transition: color 150ms ease;
}

.wtp-card-form__field.is-valid .wtp-card-form__label {
	color: var(--wtp-success);
}

.wtp-card-form__field.is-valid .wtp-card-form__label::after {
	content: " ✓";
}

.wtp-card-form__control {
	position: relative;
	display: flex;
	align-items: center;
}

.wtp-card-form .input-text,
.wtp-card-form input.input-text {
	width: 100%;
	min-height: 32px;
	margin: 0;
	padding: 0 0 2px;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	color: var(--wtp-text);
	font-size: 16px;
	line-height: 1.4;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.wtp-card-form__number .input-text {
	padding-right: 52px;
}

.wtp-card-form__cvc .input-text {
	padding-right: 28px;
}

.wtp-card-form .input-text:focus,
.wtp-card-form input.input-text:focus {
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

.wtp-card-form__card:focus-within,
.wtp-card-form__name:focus-within {
	border-color: var(--wtp-border-focus);
	box-shadow: 0 0 0 1px var(--wtp-border-focus);
}

.wtp-card-form__card:has(.is-invalid),
.wtp-card-form__name.is-invalid,
.wtp-card-form__name:has(.is-invalid) {
	border-color: var(--wtp-error);
	box-shadow: 0 0 0 1px var(--wtp-error);
}

.wtp-card-form__brand {
	position: absolute;
	top: 50%;
	right: 0;
	display: flex;
	align-items: center;
	transform: translateY(-50%);
	pointer-events: none;
}

.wtp-card-form__brand img,
.wtp-card-form__brand svg {
	display: block;
	width: 38px;
	height: 24px;
	object-fit: contain;
}

.wtp-card-form__hint {
	position: absolute;
	top: 50%;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--wtp-border);
	border-radius: 50%;
	background: #f8fafc;
	color: var(--wtp-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	transform: translateY(-50%);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.wtp-card-form__hint:hover,
.wtp-card-form__hint[aria-expanded="true"] {
	border-color: var(--wtp-border-focus);
	color: var(--wtp-border-focus);
}

.wtp-card-form__hint:focus-visible {
	border-color: var(--wtp-border-focus);
	box-shadow: 0 0 0 3px rgba(5, 112, 222, 0.2);
	outline: none;
}

.wtp-card-form__hint-text {
	position: absolute;
	z-index: 5;
	right: 12px;
	bottom: calc(100% - 6px);
	width: min(220px, 70vw);
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--wtp-border);
	border-radius: 6px;
	background: #111827;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.18);
	color: #fff;
	font-size: 12px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.wtp-card-form__error {
	margin: 6px 0 0;
	color: var(--wtp-error);
	font-size: 12px;
	line-height: 1.4;
}

.wtp-card-form__trust {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	color: var(--wtp-muted);
	font-size: 12px;
	line-height: 1.4;
}

.wtp-card-form__lock {
	display: inline-block;
	width: 12px;
	height: 14px;
	flex: 0 0 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath fill='%23000' d='M6 0a4 4 0 0 0-4 4v2H1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a4 4 0 0 0-4-4zm-2 6V4a2 2 0 1 1 4 0v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath fill='%23000' d='M6 0a4 4 0 0 0-4 4v2H1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a4 4 0 0 0-4-4zm-2 6V4a2 2 0 1 1 4 0v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wtp-card-form__banner {
	margin: 10px 0 0;
	padding: 9px 11px;
	border: 1px solid rgba(223, 27, 65, 0.22);
	border-radius: 7px;
	background: rgba(223, 27, 65, 0.06);
	color: var(--wtp-error);
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.credit-card-payment-icons {
	display: none;
}

#place_order.wtp-card-pay::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath fill='%23000' d='M6 0a4 4 0 0 0-4 4v2H1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a4 4 0 0 0-4-4zm-2 6V4a2 2 0 1 1 4 0v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath fill='%23000' d='M6 0a4 4 0 0 0-4 4v2H1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a4 4 0 0 0-4-4zm-2 6V4a2 2 0 1 1 4 0v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#place_order.wtp-card-pay[aria-busy="true"] {
	opacity: 0.72;
	pointer-events: none;
}

#place_order.wtp-card-pay--processing::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	vertical-align: -2px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wtp-card-spin 700ms linear infinite;
}

@keyframes wtp-card-spin {
	to {
		transform: rotate(360deg);
	}
}

.payment_method_cartadicreditopay:only-child .payment_box,
.payment_method_cartadicreditopay:has(#payment_method_cartadicreditopay:checked) .payment_box,
.payment_method_cartadicreditopay:has(#payment_method_cartadicreditopay:checked) .cfw-radio-reveal-content,
.payment_method_cartadicreditopay.cfw-active .payment_box,
.payment_method_cartadicreditopay.cfw-active .cfw-radio-reveal-content,
body.cfw .payment_method_cartadicreditopay:has(input[name="payment_method"]:checked) .payment_box,
body.cfw .payment_method_cartadicreditopay:has(input[name="payment_method"]:checked) .cfw-radio-reveal-content,
#cfw-billing-methods .payment_method_cartadicreditopay.cfw-active .cfw-radio-reveal-content,
#cfw-billing-methods .payment_method_cartadicreditopay:has(input:checked) .cfw-radio-reveal-content {
	display: block !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	visibility: visible !important;
	opacity: 1 !important;
}

body.cfw .wtp-card-form,
body.cfw-body .wtp-card-form,
#cfw-payment-methods .wtp-card-form,
#cfw-billing-methods .wtp-card-form {
	display: block !important;
	margin: 8px 0 0;
	visibility: visible !important;
	opacity: 1 !important;
}

body.cfw .wtp-card-form__card,
body.cfw .wtp-card-form__name,
#cfw-billing-methods .wtp-card-form__card,
#cfw-billing-methods .wtp-card-form__name {
	display: block !important;
	visibility: visible !important;
	background: #fff !important;
}

body.cfw .wtp-card-form__label,
body.cfw-body .wtp-card-form__label,
#cfw-payment-methods .wtp-card-form__label,
#cfw-billing-methods .wtp-card-form__label {
	display: block !important;
	position: static !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	clip: auto !important;
	transform: none !important;
}

body.cfw .wtp-card-form .input-text,
body.cfw-body .wtp-card-form .input-text,
#cfw-payment-methods .wtp-card-form .input-text,
#cfw-billing-methods .wtp-card-form .input-text {
	display: block !important;
	width: 100% !important;
	min-height: 42px !important;
	padding: 8px 0 4px !important;
	border: 0 !important;
	background: transparent !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: #1a1f36 !important;
}

body.cfw .wtp-card-form__row,
#cfw-payment-methods .wtp-card-form__row,
#cfw-billing-methods .wtp-card-form__row {
	display: grid !important;
}

@media (max-width: 420px) {
	.wtp-card-form__row {
		grid-template-columns: 1fr;
	}

	.wtp-card-form__row > .wtp-card-form__field:first-child {
		border-right: 0;
		border-bottom: 1px solid var(--wtp-border);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtp-card-form__card,
	.wtp-card-form__name,
	.wtp-card-form__label,
	.wtp-card-form__hint {
		transition: none;
	}

	#place_order.wtp-card-pay--processing::after {
		animation-duration: 1.4s;
	}
}
