/**
 * Paygic Checkout Styles - Minimal & Professional
 *
 * @package Paygic
 */

/* ===== CLASSIC CHECKOUT STYLES ===== */

/* Payment method icon in label - prominent but not too large */
.wc_payment_method.payment_method_paygic img.attachment-woocommerce_thumbnail {
	max-height: 24px !important;
	max-width: 80px !important;
	width: auto !important;
	height: auto !important;
	vertical-align: middle;
	margin-left: 8px;
}

/* Payment method label */
.wc_payment_method.payment_method_paygic label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	font-size: 15px;
	cursor: pointer;
	padding: 4px 0;
}

/* Main container - minimal */
.paygic-payment-fields {
	padding: 8px 0 4px;
	margin: 0;
}

/* Secure badge - ultra minimal like Stripe/Razorpay */
.paygic-secure-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #f0fdf4;
	border: 1px solid #d1fae5;
	border-radius: 6px;
	font-size: 13px;
	color: #065f46;
	line-height: 1;
}

.paygic-lock-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.paygic-secure-text {
	font-weight: 500;
}

/* Payment box container - transparent */
.payment_box.payment_method_paygic {
	background-color: transparent !important;
	border: none;
	padding: 6px 0 !important;
	margin: 0 !important;
}

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

/* Radio button styling */
.wc_payment_method.payment_method_paygic input[type="radio"] {
	margin-top: 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* Hover effect - subtle */
.wc_payment_method.payment_method_paygic:hover label {
	color: #667eea;
	transition: color 0.2s ease;
}

/* ===== BLOCKS CHECKOUT STYLES ===== */

/* Blocks payment method label with icon */
.wc-block-components-payment-method-label {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-weight: 500 !important;
	font-size: 15px !important;
}

.wc-block-components-payment-method-label img {
	height: 24px !important;
	width: auto !important;
	max-width: 80px !important;
	object-fit: contain !important;
}

/* Blocks payment method content - minimal */
.wc-block-checkout__payment-method .paygic-payment-fields {
	padding: 8px 0 4px;
	margin: 0;
}

/* Secure badge for blocks */
.wc-block-checkout__payment-method .paygic-secure-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #f0fdf4;
	border: 1px solid #d1fae5;
	border-radius: 6px;
	font-size: 13px;
	color: #065f46;
	line-height: 1;
}

.wc-block-checkout__payment-method .paygic-lock-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.wc-block-checkout__payment-method .paygic-secure-text {
	font-weight: 500;
}

/* Ensure icon shows in blocks */
.wc-block-components-radio-control__option .wc-block-components-payment-method-label img {
	display: inline-block !important;
	vertical-align: middle !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
	.paygic-secure-badge {
		font-size: 12px;
		padding: 5px 10px;
	}
	
	.paygic-lock-icon {
		width: 12px;
		height: 12px;
	}
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.paygic-secure-badge {
	animation: fadeIn 0.3s ease-out;
}
