/**
 * PayU for WooCommerce — Wintopay
 * Checkout styles — trust-focused design for higher conversion.
 */

/* ======================================================
   Blocks Checkout — Icon in label
   ====================================================== */
.payu-blocks-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.payu-blocks-icon {
	max-height: 28px;
	width: auto;
	border: none;
	vertical-align: middle;
}

/* ======================================================
   Wrapper
   ====================================================== */
.cartadicreditopay-payu-wrapper {
	max-width: 480px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ======================================================
   Trust & Security Banner
   ====================================================== */
.payu-trust-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 18px;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	border: 1px solid #bbf7d0;
	border-radius: 10px;
}

.payu-trust-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #22c55e;
	color: #fff;
	border-radius: 50%;
}

.payu-trust-icon svg {
	width: 20px;
	height: 20px;
}

.payu-trust-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.payu-trust-text strong {
	font-size: 14px;
	font-weight: 600;
	color: #166534;
	line-height: 1.3;
}

.payu-trust-text span {
	font-size: 12px;
	color: #4ade80;
	line-height: 1.3;
}

/* ======================================================
   Description
   ====================================================== */
.payu-description {
	margin: 0 0 16px;
	font-size: 13px;
	color: #555;
	line-height: 1.5;
}

/* ======================================================
   Bank Selector
   ====================================================== */
.payu-bank-selector {
	margin-bottom: 14px;
}

.payu-bank-label {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}


/* Bank Grid */
.payu-bank-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}

/* Bank Card */
.payu-bank-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 10px;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	min-height: 76px;
	user-select: none;
	outline: none;
}

.payu-bank-card:hover {
	border-color: #94a3b8;
	background: #f8fafc;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.payu-bank-card:focus-visible {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.payu-bank-card.payu-bank-selected {
	border-color: #0ea5e9;
	background: #f0f9ff;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.payu-bank-card.payu-bank-selected .payu-bank-card-check {
	opacity: 1;
	transform: scale(1);
}

/* Bank Card Icon */
.payu-bank-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: #f1f5f9;
	color: #475569;
}

/* BLIK special icon */
.payu-blik-icon {
	background: #1e293b !important;
	color: #fff !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

/* Bank Card Name */
.payu-bank-card-name {
	font-size: 11px;
	font-weight: 600;
	color: #334155;
	line-height: 1.3;
}

/* Bank Card Info (for BLIK tag) */
.payu-bank-card-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.payu-bank-card-tag {
	font-size: 10px;
	font-weight: 500;
	color: #64748b;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
}

/* Selected checkmark */
.payu-bank-card-check {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0ea5e9;
	color: #fff;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
	opacity: 0;
	transform: scale(0.7);
	transition: all 0.2s ease;
}

/* Featured card */
.payu-bank-featured {
	border-color: #cbd5e1;
	background: #fafafa;
}

.payu-bank-featured:hover {
	border-color: #94a3b8;
	background: #f4f4f5;
}

.payu-bank-featured.payu-bank-selected {
	border-color: #0ea5e9;
	background: #f0f9ff;
}


/* ======================================================
   Footer Trust Note
   ====================================================== */
.payu-footer-note {
	margin-top: 14px;
	padding: 10px 0;
	font-size: 11px;
	color: #94a3b8;
	text-align: center;
	border-top: 1px solid #f1f5f9;
}

.payu-footer-lock {
	font-size: 12px;
}

/* ======================================================
   Responsive: small screens
   ====================================================== */
@media (max-width: 480px) {
	.cartadicreditopay-payu-wrapper {
		max-width: 100%;
	}

	.payu-bank-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 6px;
	}

	.payu-bank-card {
		padding: 10px 8px;
		min-height: 66px;
		gap: 4px;
	}

	.payu-bank-card-icon {
		width: 30px;
		height: 30px;
		font-size: 11px;
	}

	.payu-bank-card-name {
		font-size: 10px;
	}

	.payu-trust-banner {
		padding: 12px 14px;
		gap: 10px;
	}
}

/* ======================================================
   Dark mode support (basic)
   ====================================================== */
@media (prefers-color-scheme: dark) {
	.payu-bank-card {
		background: #1e293b;
		border-color: #334155;
	}

	.payu-bank-card:hover {
		background: #1e293b;
		border-color: #475569;
	}

	.payu-bank-card.payu-bank-selected {
		background: #0c1929;
		border-color: #0ea5e9;
	}

	.payu-bank-card-name {
		color: #e2e8f0;
	}

	.payu-bank-card-icon {
		background: #334155;
		color: #94a3b8;
	}

	.payu-bank-label {
		color: #e2e8f0;
	}

	.payu-trust-banner {
		background: linear-gradient(135deg, #052e16 0%, #022c22 100%);
		border-color: #14532d;
	}

	.payu-trust-text strong {
		color: #86efac;
	}

	.payu-trust-text span {
		color: #4ade80;
	}

	.payu-footer-note {
		color: #64748b;
		border-color: #1e293b;
	}
}
