/* Register Page Specific Styles */

/* Success messages positioning and styling */
.pms_success-messages-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
	margin: 0 auto 0px auto;
	max-width: 600px;
	z-index: 10;
	position: relative;
}

/* Center pms_new_subscription-form in entry-content */
.entry-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
}

#pms_new_subscription-form {
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
}

/* Disable breadcrumb-icon on register page */
body.page-template-default.page.page-id-9542 .breadcrumb-icon.is-desktop,
body[class*="register"] .breadcrumb-icon.is-desktop {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Tablet responsive layout - single column for screens 768px to 1080px */
@media (min-width: 768px) and (max-width: 1080px) {
	.entry-content {
		padding: 20px;
	}

	#pms_new_subscription-form {
		max-width: 800px;
		display: block;
	}

	/* Single column layout for tablet */
	.pms-form-fields-wrapper {
		width: 100% !important;
		padding-right: 0;
		margin-bottom: 30px;
	}

	.pms-field.pms-field-subscriptions {
		width: 100% !important;
	}

	/* Payment Details below subscription plans */
	.pms-form-design-wrapper .pms-field-type-payment_gateway,
	.pms-form-design-wrapper #pms-stripe-connect {
		width: 100%;
		float: none;
		clear: both;
		padding-left: 0;
		margin-top: 20px;
	}
}

/* Stripe powered by text and links */
.stripe-powered-by-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 15px;
	margin-bottom: 30px;
	color: #6b7280;
	font-size: 14px;
	width: 100%;
	text-align: center;
	flex-wrap: wrap;
}

.stripe-powered-by-container .stripe-logo {
	margin: 0 5px;
	opacity: 0.7;
}

.stripe-powered-by-container .stripe-links {
	margin-left: 15px;
	display: flex;
	align-items: center;
}

.stripe-powered-by-container .stripe-links a {
	color: #6b7280;
	text-decoration: none;
	margin: 0 5px;
	font-size: 14px;
}

.stripe-powered-by-container .stripe-links a:hover {
	text-decoration: underline;
}

.stripe-powered-by-container .stripe-links .divider {
	color: #6b7280;
	margin: 0 5px;
}

/* Desktop specific fixes for pms_new_subscription button positioning */
@media (min-width: 1081px) {

	/* Center form in entry-content on desktop */
	.entry-content {
		padding: 40px 20px;
	}

	#pms_new_subscription-form {
		max-width: 1200px;
		display: flex;
		flex-wrap: wrap;
		gap: 40px;
	}

	/* Two-column layout: Left column - Subscription Plans */
	.pms-form-fields-wrapper {
		width: 50% !important;
		box-sizing: border-box;
		padding-right: 20px;
	}

	.pms-field.pms-field-subscriptions {
		width: 100% !important;
	}

	/* Right column - Payment Details */
	.pms-form-design-wrapper .pms-field-type-payment_gateway,
	.pms-form-design-wrapper #pms-stripe-connect {
		width: 50%;
		float: right;
		clear: right;
		padding-left: 20px;
		box-sizing: border-box;
	}

	/* Style for Subscribe button when inside pms-stripe-connect */
	#pms-stripe-connect .pms-new-subscription-btn {
		margin-top: 20px;
		margin-bottom: 20px;
		max-width: 350px;
		float: left;
		clear: both;
		position: static !important;
		transform: none !important;
	}

	/* Ensure pms-stripe-connect has proper spacing */
	#pms-stripe-connect {
		position: relative;
		margin-bottom: 20px;
		z-index: 1;
	}

	/* Ensure Stripe payment elements have proper spacing */
	#pms-stripe-payment-elements {
		position: relative;
		margin-bottom: 20px;
		z-index: 1;
	}

	/* Reset form container layout */
	#pms_new_subscription-form {
		position: relative;
		overflow: visible;
		display: block;
	}

	.pms-form-design-wrapper {
		display: block;
	}
}