/**
 * PayPal Enterprise for WooCommerce - Checkout Styling
 * Professional, pixel-perfect styling matching modern checkout designs.
 */

/* Payment Method Header Icons */
.wc-paypal-enterprise-icons {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	margin-left: 8px;
	vertical-align: middle;
}

.wc-paypal-enterprise-icons .wc-paypal-icon {
	height: 20px;
	width: auto;
	max-height: 20px;
	border-radius: 3px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #ffffff;
	padding: 1.5px 3.5px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	vertical-align: middle;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-paypal-enterprise-icons .wc-paypal-icon:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Pay Later messaging banner */
#wc-paypal-paylater-message-container,
.wc-paypal-product-paylater {
	margin: 10px 0 14px 0;
	padding: 8px 12px;
	background: #f0f7ff;
	border: 1px solid #cce3ff;
	border-radius: 6px;
	font-size: 13px;
	color: #003087;
}

/* ==========================================================================
   Card Payment Option Box (Pixel-perfect matching modern card designs)
   ========================================================================== */
.wc-paypal-card-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-top: 10px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Trust Badge: 🔒 Secure, fast checkout */
.wc-paypal-trust-badge {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
	color: #0284c7; /* Clean, bold cyan-blue matching Image 3 */
}

.wc-paypal-trust-badge .wc-paypal-lock-icon {
	color: #10b981; /* Vibrant emerald green lock */
	flex-shrink: 0;
}

/* Form Input Field Wrappers */
.wc-paypal-field-group {
	margin-bottom: 12px;
}

.wc-paypal-input-wrap {
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	height: 46px;
	padding: 0 12px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	width: 100%;
}

.wc-paypal-input-wrap:focus-within,
.wc-paypal-input-wrap.is-focused {
	border-color: #0070ba;
	box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.15);
}

.wc-paypal-input-wrap.is-invalid {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.wc-paypal-input-wrap input.wc-paypal-native-input {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	width: 100% !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 14.5px !important;
	color: #0f172a !important;
	font-family: inherit !important;
	line-height: normal !important;
}

.wc-paypal-input-wrap input.wc-paypal-native-input::placeholder {
	color: #94a3b8;
	font-size: 14px;
	font-weight: 400;
}

/* Brand Badges Inside Card Number Input */
.wc-paypal-brand-badges {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
	flex-shrink: 0;
}

.wc-paypal-brand-badge {
	height: 20px;
	width: auto;
	border-radius: 3px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #ffffff;
	padding: 1px 3px;
	transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
	display: block;
}

.wc-paypal-brand-badge.dimmed {
	opacity: 0.25;
	filter: grayscale(100%);
}

.wc-paypal-brand-badge.highlighted {
	opacity: 1;
	filter: none;
	transform: scale(1.06);
	box-shadow: 0 1px 4px rgba(0, 112, 186, 0.3);
}

/* Two Columns Split Row (Expiration date & Security code) */
.wc-paypal-split-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

@media (max-width: 480px) {
	.wc-paypal-split-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* Security Code CVC Outline Icon */
.wc-paypal-cvc-icon {
	display: flex;
	align-items: center;
	margin-left: 8px;
	flex-shrink: 0;
	color: #94a3b8;
}

/* Inline Card Error Message */
.wc-paypal-card-errors {
	margin: 10px 0 14px 0;
	padding: 10px 14px;
	background: #fef2f2;
	border-left: 3.5px solid #ef4444;
	border-radius: 6px;
	color: #b91c1c;
	font-size: 13px;
	line-height: 1.4;
	display: none;
}

/* Pay with Card Primary Button */
.wc-paypal-card-submit-btn {
	width: 100%;
	height: 46px;
	background: #0070ba;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 112, 186, 0.2);
	margin-top: 14px;
}

.wc-paypal-card-submit-btn:hover {
	background: #005ea6;
	box-shadow: 0 4px 10px rgba(0, 112, 186, 0.3);
}

.wc-paypal-card-submit-btn:active {
	transform: scale(0.99);
}

.wc-paypal-card-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

/* Alternative Payment Method Divider */
.wc-paypal-divider {
	display: flex;
	align-items: center;
	margin: 20px 0 14px 0;
	text-align: center;
	color: #64748b;
	font-size: 12.5px;
	font-weight: 500;
}

.wc-paypal-divider::before,
.wc-paypal-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e2e8f0;
}

.wc-paypal-divider span {
	padding: 0 12px;
	text-transform: lowercase;
}

/* PayPal Smart Buttons Container */
#wc-paypal-smart-buttons-container,
#wc-paypal-buttons-container {
	min-height: 45px;
	position: relative;
	z-index: 1;
}

/* Loading Overlay */
.wc-paypal-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(2px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 100;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #003087;
	gap: 10px;
}

.wc-paypal-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #e2e8f0;
	border-top: 3px solid #0070ba;
	border-radius: 50%;
	animation: wcPayPalSpin 0.75s linear infinite;
}

@keyframes wcPayPalSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Legacy tabs support if needed */
.wc-paypal-experience-tabs {
	display: none;
}
