/**
 * Frontend Styles for LearnPress Razorpay Custom
 */

.lprz-buy-container {
	margin: 20px 0;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Price Badge */
.lprz-price-tag {
	display: inline-flex;
	align-items: baseline;
	font-weight: 700;
	color: #0f172a;
	font-size: 24px;
	line-height: 1;
}

.lprz-price-tag .lprz-currency {
	font-size: 20px;
	margin-right: 4px;
	color: #475569;
}

/* Main Buy Button */
.lprz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff !important;
	background: linear-gradient(135deg, #0c2340 0%, #1e3a8a 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(12, 35, 64, 0.25);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.lprz-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(12, 35, 64, 0.35);
	background: linear-gradient(135deg, #11315b 0%, #2563eb 100%);
}

.lprz-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(12, 35, 64, 0.2);
}

.lprz-btn:disabled,
.lprz-btn.lprz-loading {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.lprz-btn-icon {
	display: flex;
	align-items: center;
}

/* Spinner */
.lprz-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: lprz-spin 0.8s linear infinite;
	display: inline-block;
}

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

/* Already Enrolled Banner */
.lprz-enrolled-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	padding: 12px 18px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 15px;
}

.lprz-enrolled-badge .lprz-icon-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: #10b981;
	color: #ffffff;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
}

.lprz-view-profile-link {
	margin-left: 8px;
	color: #047857;
	font-weight: 700;
	text-decoration: underline;
}

.lprz-view-profile-link:hover {
	color: #064e3b;
}

/* Frontend Modal System */
.lprz-modal-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.lprz-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
}

.lprz-modal-card {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	padding: 36px 32px;
	width: 90%;
	max-width: 480px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	text-align: center;
	z-index: 10;
	animation: lprz-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lprz-pop {
	0% { opacity: 0; transform: scale(0.92); }
	100% { opacity: 1; transform: scale(1); }
}

.lprz-modal-close-btn {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	transition: color 0.15s;
}

.lprz-modal-close-btn:hover {
	color: #0f172a;
}

/* Success Celebration Styles */
.lprz-success-icon-wrap {
	width: 70px;
	height: 70px;
	background: #ecfdf5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}

.lprz-success-svg {
	width: 38px;
	height: 38px;
	color: #10b981;
}

.lprz-modal-card h3 {
	margin: 0 0 10px;
	font-size: 22px;
	color: #0f172a;
	font-weight: 700;
}

.lprz-modal-card p {
	margin: 0 0 24px;
	color: #475569;
	font-size: 15px;
	line-height: 1.5;
}

.lprz-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lprz-modal-btn-primary {
	display: block;
	padding: 12px 20px;
	background: #2563eb;
	color: #ffffff !important;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.lprz-modal-btn-primary:hover {
	background: #1d4ed8;
}

.lprz-modal-btn-secondary {
	display: block;
	padding: 10px 20px;
	background: #f1f5f9;
	color: #334155 !important;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.lprz-modal-btn-secondary:hover {
	background: #e2e8f0;
}

/* Error Alert */
.lprz-error-icon-wrap {
	width: 70px;
	height: 70px;
	background: #fef2f2;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}

.lprz-error-svg {
	width: 38px;
	height: 38px;
	color: #ef4444;
}
