/* Clean up WooCommerce payment box */
.wc_payment_method.payment_method_pvb_store_forte {
	background: #ffffff !important;
	border: none !important;
	padding: 16px !important;
	border-radius: 8px !important;
}

.wc_payment_method.payment_method_pvb_store_forte > label {
	display: none !important;
}

.wc_payment_method.payment_method_pvb_store_forte .payment_box {
	background: transparent !important;
	padding: 0 !important;
}

.wc_payment_method.payment_method_pvb_store_forte .payment_box::before {
	display: none !important;
}

.wmp-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.wmp-wrapper .form-row {
	padding: 0 !important;
}

.wmp-balance-notice {
	background: #fef3c7;
	border: 1px solid #fbbf24;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 16px;
	color: #92400e;
}

.wmp-balance-notice .wmp-remaining-amount {
	color: #dc2626;
}

.wmp-method-selection {
	margin-top: 16px;
}

.wmp-selection-label {
	font-size: 16px;
	color: #64748b;
	margin-bottom: 12px;
	font-weight: 500;
}

.wmp-method-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wmp-method-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	color: inherit;
}

.wmp-method-card:hover {
	border-color: #3b82f6;
	background: #f8fafc;
}

.wmp-method-card:active {
	background: #f1f5f9;
}

.wmp-card-icon {
	color: #64748b;
	display: flex;
	align-items: center;
}

.wmp-card-label {
	font-size: 16px;
	font-weight: 500;
	color: #1e293b;
}

.wmp-method-selection.hidden {
	display: none;
}

#gateways-list-selected .payment-field-wrap {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
	position: relative;
}

.wmp-payment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
}

.wmp-payment-type {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wmp-payment-type-icon {
	width: 32px;
	height: 32px;
	background: #eff6ff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3b82f6;
}

.wmp-payment-type-icon svg {
	width: 18px;
	height: 18px;
}

p.payment-title {
	padding: 0 !important;
	font-weight: 600;
	font-size: 17px;
	color: #1e293b;
	margin: 0;
}

a.delete-payment-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 500;
	color: #dc2626 !important;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.15s ease;
}

a.delete-payment-btn:hover {
	background: #fee2e2;
}

.wmp-amount-section {
	background: #f8fafc;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 12px;
}

.wmp-amount-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.wmp-amount-label label {
	font-size: 15px;
	font-weight: 500;
	color: #475569;
	margin: 0 !important;
}

.wmp-remaining-hint {
	font-size: 14px;
	color: #64748b;
}

.wmp-cardholder-label {
	margin-bottom: 8px;
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #475569;
}

.wmp-optional-hint {
	font-weight: normal;
	color: #94a3b8;
}

.amount-input {
	width: 100%;
	padding: 10px 12px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
}

.amount-input:focus {
	border-color: #3b82f6 !important;
	outline: none;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.payment-field-wrap .form-row.form-row-wide {
	padding-bottom: 0 !important;
	margin-bottom: 10px;
}

.payment-field-wrap label {
	font-size: 15px;
	font-weight: 500;
	color: #475569;
	margin-bottom: 6px;
	display: block;
}

.payment-field-wrap .input-text {
	width: 100%;
	padding: 10px 12px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	font-size: 16px;
}

.payment-field-wrap .input-text:focus {
	border-color: #3b82f6 !important;
	outline: none;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

small.cc-fee-note {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: #64748b;
}

.cc-2-col {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.cc-2-col p.form-row {
	flex: 1;
}

.card-number-group {
	position: relative;
	margin-bottom: 10px;
}

.cc-number-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.card-images {
	display: flex;
	align-items: center;
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	perspective: 200px;
}

img.card-img {
	width: 32px;
	margin: 0 !important;
	display: none;
	transition: transform 0.15s ease-in-out;
	transform-style: preserve-3d;
}

img.card-img.show,
img.card-img.card-default {
	display: block;
}

img.card-img.flipping-out {
	transform: rotateY(90deg);
}

img.card-img.flipping-in {
	animation: pvbStoreCardFlipIn 0.15s ease-in-out;
}

@keyframes pvbStoreCardFlipIn {
	0% {
		transform: rotateY(90deg);
	}
	100% {
		transform: rotateY(0deg);
	}
}

.forte-field.card_number {
	padding-left: 50px !important;
}

.wmp-security-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 4px;
	font-size: 13px;
	color: #166534;
}

.wmp-security-badge svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.message-area {
	margin-bottom: 10px;
}

.message-area span.payment-error {
	background: #fef2f2;
	display: block;
	color: #dc2626;
	padding: 12px 14px;
	font-size: 14px;
	border: 1px solid #fecaca;
	border-radius: 6px;
	line-height: 1.4;
}

.message-area span.payment-success {
	background: #f0fdf4;
	display: block;
	color: #166534;
	padding: 12px 14px;
	font-size: 14px;
	border: 1px solid #bbf7d0;
	border-radius: 6px;
	line-height: 1.4;
}

small.field-error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #dc2626;
}

select.input-text.forte-field.account_type {
	width: 100% !important;
	padding: 10px 12px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	background: #ffffff;
	font-size: 16px;
}

.wmp-line-total {
	display: inline-block;
	font-size: 15px;
	color: #64748b;
	margin-left: 6px;
}

@media (max-width: 640px) {
	.wmp-method-cards {
		flex-direction: column;
	}

	.cc-2-col {
		flex-direction: column;
		gap: 0;
	}
}
