/* SparesSpace Payment Public Styles */

#sparesspace-payment-fields {
	border: 1px solid #e2e8f0;
	padding: 20px;
	border-radius: 12px;
	margin: 20px 0;
	background: #ffffff;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

#sparesspace-payment-fields .form-row {
	margin-bottom: 20px;
}

#sparesspace-payment-fields label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #1a202c;
	font-size: 14px;
}

#sparesspace-payment-fields select,
#sparesspace-payment-fields input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #cbd5e0;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.2s ease;
	background-color: #f8fafc;
}

#sparesspace-payment-fields select:focus,
#sparesspace-payment-fields input:focus {
	outline: none;
	border-color: #3182ce;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Provider Selection Grid */
.sparesspace-provider-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 12px;
	margin-top: 10px;
}

.sparesspace-provider-option {
	position: relative;
	cursor: pointer;
}

.sparesspace-provider-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.sparesspace-provider-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 12px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
	text-align: center;
	height: 100%;
}

.sparesspace-provider-option:hover .sparesspace-provider-card {
	border-color: #cbd5e0;
	transform: translateY(-2px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sparesspace-provider-card img {
	height: 32px;
	margin-bottom: 8px;
	object-fit: contain;
}

.sparesspace-provider-card span {
	font-size: 12px;
	font-weight: 600;
	color: #4a5568;
}

.sparesspace-provider-option input:checked + .sparesspace-provider-card {
	border-color: #3182ce;
	background-color: #ebf8ff;
	box-shadow: 0 0 0 1px #3182ce;
}

.sparesspace-provider-option input:checked + .sparesspace-provider-card::after {
	content: '✓';
	position: absolute;
	top: -8px;
	right: -8px;
	background: #3182ce;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sparesspace-provider-option input:checked + .sparesspace-provider-card span {
	color: #2b6cb0;
}

.sparesspace-thankyou {
	background: #ffffff;
	padding: 32px;
	border-radius: 16px;
	margin: 30px 0;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sparesspace-thankyou h2 {
	color: #1a202c;
	margin-top: 0;
	margin-bottom: 24px;
	font-size: 24px;
	font-weight: 800;
	text-align: center;
}

.payment-details {
	background: #f8fafc;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

.detail-box {
	background: #ffffff;
	padding: 16px;
	margin: 12px 0;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.detail-box label {
	font-size: 13px;
	color: #718096;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin: 0;
}

.detail-box strong {
	font-size: 16px;
	color: #2d3748;
	word-break: break-all;
	text-align: right;
}



.instructions {
	background: #ebf8ff;
	padding: 24px;
	border-radius: 12px;
	margin: 24px 0;
	border: 1px solid #bee3f8;
}

.instructions h3 {
	margin-top: 0;
	margin-bottom: 16px;
	color: #2b6cb0;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
}

.instructions h3::before {
	content: 'ℹ️';
	margin-right: 10px;
	font-size: 20px;
}

.instructions ol {
	margin: 10px 0;
	padding-left: 25px;
}

.instructions li {
	margin: 10px 0;
	line-height: 1.6;
}

.status-info {
	background: #fff3cd;
	padding: 15px;
	border-radius: 5px;
	margin-top: 20px;
	border-left: 4px solid #ffc107;
}

.status-info p {
	margin: 5px 0;
}

.sparesspace-payment-status {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 5px;
	margin: 20px 0;
}

.sparesspace-payment-status h3 {
	margin-top: 0;
	color: #333;
}

.status-container {
	background: #fff;
	padding: 20px;
	border-radius: 5px;
	border: 1px solid #ddd;
}

.status-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.status-item:last-child {
	border-bottom: none;
}

.status-item label {
	font-weight: 600;
	color: #666;
	margin: 0;
}

.status-item span {
	color: #333;
}

.status-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.status-badge.status-pending {
	background: #fff3cd;
	color: #856404;
}

.status-badge.status-verified {
	background: #d4edda;
	color: #155724;
}

.status-badge.status-failed {
	background: #f8d7da;
	color: #721c24;
}

.status-badge.status-disputed {
	background: #ffe5cc;
	color: #d97706;
}

.status-message {
	padding: 15px;
	border-radius: 5px;
	margin-top: 15px;
	border-left: 4px solid #0073aa;
}

.status-message p {
	margin: 0;
}

.status-message.pending {
	background: #fff3cd;
	border-left-color: #ffc107;
	color: #856404;
}

.status-message.success {
	background: #d4edda;
	border-left-color: #28a745;
	color: #155724;
}

.status-message.error {
	background: #f8d7da;
	border-left-color: #dc3545;
	color: #721c24;
}

.status-message.warning {
	background: #ffe5cc;
	border-left-color: #fd7e14;
	color: #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
	.detail-box {
		padding: 12px;
		margin: 10px 0;
	}

	.instructions {
		padding: 15px;
	}

	.status-item {
		flex-direction: column;
	}

	.status-item label {
		margin-bottom: 5px;
	}
}/* Payment Gateway Icon Sizing */
.woocommerce-checkout .payment_methods .payment_method_sparesspace_payment img {
	max-width: 60px;
	max-height: 30px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Verification Code Box Enhancement */
.verification-code-box {
	animation: highlight-pulse 2s ease-in-out infinite;
	box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

@keyframes highlight-pulse {
	0%, 100% {
		box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
	}
	50% {
		box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
	}
}

.verification-code-box strong {
	font-family: 'Courier New', monospace;
	user-select: all;
	padding: 10px;
	background: #fff;
	display: inline-block;
	border-radius: 5px;
	margin: 10px 0;
}

/* Thank You Page Enhancement */
.woocommerce-order-received .sparesspace-thankyou {
	margin-top: 20px;
}

/* Status Badge Enhancement */
.status-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Print Styles */
@media print {
	.verification-code-box {
		background: #ffffe0 !important;
		border: 2px solid #000 !important;
		page-break-inside: avoid;
	}
	
	.sparesspace-thankyou {
		padding: 0;
	}
}
/* Checkout Page Thank You Display */
.woocommerce-checkout .sparesspace-thankyou {
	margin-top: 0;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.woocommerce-order-received {
	padding: 20px;
}

.woocommerce-notice--success.woocommerce-thankyou-order-received {
	background: #d4edda;
	color: #155724;
	padding: 15px 20px;
	border-left: 4px solid #28a745;
	border-radius: 5px;
	margin-bottom: 20px;
	font-size: 16px;
	font-weight: 600;
}