/**
 * Live Checkout Styles
 *
 * @package LiveCheckout
 */

/* Landing Page Styles */
.live-checkout-landing {
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 0;
	display: flex;
	flex-direction: column;
}

/* Hero Section */
.live-checkout-hero {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
	padding: 4rem 2rem 3rem;
	text-align: center;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.live-checkout-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	opacity: 0.3;
}

.live-checkout-hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
}

.live-checkout-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	padding: 8px 20px;
	border-radius: 50px;
	margin-bottom: 1.5rem;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 1px;
}

.live-checkout-badge-icon {
	font-size: 1.2rem;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.live-checkout-badge-text {
	color: #ffffff;
}

.live-checkout-title {
	font-size: 3rem;
	font-weight: 800;
	margin: 0 0 1rem 0;
	color: #ffffff;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.live-checkout-description {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.95);
	margin: 0;
	line-height: 1.6;
}

/* Container */
.live-checkout-container {
	max-width: 900px;
	width: 100%;
	margin: -2rem auto 0;
	padding: 0 2rem 4rem;
	position: relative;
	z-index: 2;
}

/* Info Box */
.live-checkout-info-box {
	background: #ffffff;
	border-radius: 16px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.live-checkout-info-icon {
	font-size: 3rem;
	flex-shrink: 0;
}

.live-checkout-info-content {
	flex: 1;
}

.live-checkout-info-content h3 {
	margin: 0 0 1.5rem 0;
	font-size: 1.5rem;
	color: #1a1a1a;
	font-weight: 700;
}

.live-checkout-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 1.25rem;
}

.live-checkout-steps li {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 0;
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.step-text {
	flex: 1;
	color: #555;
	line-height: 1.6;
	font-size: 1rem;
	padding-top: 4px;
}

/* Form Wrapper */
.live-checkout-form-wrapper {
	background: #ffffff;
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.live-checkout-form {
	margin: 0;
}

.live-checkout-price-group {
	margin-bottom: 2rem;
}

.live-checkout-label {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 1rem;
	text-align: center;
}

.live-checkout-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.live-checkout-currency-symbol {
	position: absolute;
	left: 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #667eea;
	z-index: 1;
	pointer-events: none;
}

.live-checkout-price-input {
	width: 100%;
	padding: 1.25rem 1.25rem 1.25rem 3.5rem;
	font-size: 2rem;
	font-weight: 700;
	border: 3px solid #e0e0e0;
	border-radius: 12px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	text-align: left;
	color: #1a1a1a;
}

.live-checkout-price-input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
	transform: translateY(-2px);
}

.live-checkout-price-input::placeholder {
	color: #bbb;
	font-weight: 400;
}

.live-checkout-error {
	display: block;
	color: #e74c3c;
	font-size: 0.9rem;
	margin-top: 0.75rem;
	min-height: 1.5rem;
	text-align: center;
	font-weight: 500;
}

.live-checkout-button {
	width: 100%;
	padding: 1.5rem 2rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: none;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.live-checkout-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.live-checkout-button:active {
	transform: translateY(-1px);
}

.live-checkout-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.button-icon {
	font-size: 1.5rem;
}

.button-text {
	font-size: 1.25rem;
}

/* Modern Checkout Template Styles */
.live-checkout-wrapper {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.live-checkout-form-modern {
	background: #ffffff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.live-checkout-container-checkout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.live-checkout-container-checkout {
		grid-template-columns: 1.5fr 1fr;
	}
}

.live-checkout-customer-details {
	background: #f8f9fa;
	padding: 1.5rem;
	border-radius: 8px;
}

.live-checkout-order-review {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.5rem;
	position: sticky;
	top: 2rem;
}

.live-checkout-order-review h3 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	color: #1a1a1a;
}

/* WooCommerce Form Field Styling */
.live-checkout-form-modern .woocommerce-billing-fields,
.live-checkout-form-modern .woocommerce-shipping-fields {
	margin-bottom: 1.5rem;
}

.live-checkout-form-modern .form-row {
	margin-bottom: 1.25rem;
}

.live-checkout-form-modern label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.live-checkout-form-modern input[type="text"],
.live-checkout-form-modern input[type="email"],
.live-checkout-form-modern input[type="tel"],
.live-checkout-form-modern input[type="number"],
.live-checkout-form-modern select,
.live-checkout-form-modern textarea {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.live-checkout-form-modern input:focus,
.live-checkout-form-modern select:focus,
.live-checkout-form-modern textarea:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.live-checkout-form-modern .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

.live-checkout-form-modern .woocommerce-checkout-review-order-table th,
.live-checkout-form-modern .woocommerce-checkout-review-order-table td {
	padding: 0.75rem 0;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
}

.live-checkout-form-modern .woocommerce-checkout-review-order-table th {
	font-weight: 600;
	color: #333;
}

.live-checkout-form-modern .woocommerce-checkout-review-order-table .order-total {
	border-top: 2px solid #667eea;
	font-weight: 700;
	font-size: 1.125rem;
}

.live-checkout-form-modern .woocommerce-checkout-review-order-table .order-total th,
.live-checkout-form-modern .woocommerce-checkout-review-order-table .order-total td {
	padding-top: 1rem;
}

.live-checkout-form-modern #place_order {
	width: 100%;
	padding: 1.125rem 2rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.live-checkout-form-modern #place_order:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.live-checkout-form-modern #place_order:active {
	transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 767px) {
	.live-checkout-hero {
		padding: 3rem 1.5rem 2rem;
	}

	.live-checkout-title {
		font-size: 2rem;
	}

	.live-checkout-description {
		font-size: 1.1rem;
	}

	.live-checkout-container {
		padding: 0 1rem 2rem;
		margin-top: -1.5rem;
	}

	.live-checkout-info-box {
		padding: 1.5rem;
		flex-direction: column;
		text-align: center;
	}

	.live-checkout-info-icon {
		font-size: 2.5rem;
	}

	.live-checkout-steps {
		text-align: left;
	}

	.live-checkout-form-wrapper {
		padding: 1.5rem;
	}

	.live-checkout-price-input {
		font-size: 1.5rem;
		padding: 1rem 1rem 1rem 3rem;
	}

	.live-checkout-button {
		padding: 1.25rem 1.5rem;
		font-size: 1.1rem;
	}

	.live-checkout-form-modern {
		padding: 1.5rem;
	}

	.live-checkout-container-checkout {
		grid-template-columns: 1fr;
	}

	.live-checkout-order-review {
		position: static;
	}
}

/* Loading State */
.live-checkout-loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.live-checkout-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #667eea;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
