/* Layout width */
.mepr-unauthorized-message,
.mp_wrapper,
.mepr-login-form-wrap,
.mepr-login-form {
	max-width: 760px;
	margin: 32px auto;
}

/* Shared spacing */
.mepr-unauthorized-message,
.mepr-login-form-wrap,
.mp_wrapper form,
.mepr-login-form form {
	padding: 40px;
}
@media only screen and (max-width: 1400px){
	.mepr-unauthorized-message,
	.mepr-login-form-wrap,
	.mp_wrapper form,
	.mepr-login-form form {
		padding: 0px !important;
	}
    .mepr-paywall-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Unauthorized wrapper */
.mepr-unauthorized-message {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	color: inherit;
	overflow: visible;
	position: relative;
}

.mepr-unauthorized-message::before,
.mepr-unauthorized-message::after {
	display: none;
}

/* Reset inherited giant plugin text styles */
.mepr-unauthorized-message,
.mepr-login-form-wrap p:first-child,
.mp_wrapper p:first-child {
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	color: inherit;
}

/* Preview block */
.skandi-paywall-preview {
	max-width: 760px;
	margin: 0 auto 20px;
	padding: 20px;
	background: #ffffff;
	color: #111111;
	position: relative;
	z-index: 2;
}

.skandi-post-header {
	margin-bottom: 18px;
}

.skandi-post-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #666666;
}

.skandi-author,
.skandi-date {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #666666;
}

.skandi-author a {
	color: #111111 !important;
	text-decoration: none;
	font-weight: 600;
}

.skandi-author a:hover {
	text-decoration: underline;
}

.skandi-author img {
	border-radius: 50% !important;
	width: 40px;
	height: 40px;
}

.skandi-by {
	opacity: 0.7;
	margin-right: 2px;
}

h2.skandi-preview-title {
	font-family: 'Oswald', sans-serif !important;
	font-size: 3rem !important;
	line-height: 1.15;
	font-weight: 400 !important;
	margin: 0 0 14px;
	color: #111111 !important;
}

.skandi-preview-excerpt {
	position: relative;
	margin: 0;
	max-height: 130px;
	overflow: hidden;
	font-size: 18px !important;
	line-height: 1.65;
	color: #444444 !important;
	font-weight: 400 !important;
	max-width: 100%;
}

.skandi-preview-excerpt::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
	pointer-events: none;
}

/* Payment content block */
.skandi-members-payment-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 34px 40px 38px;
	background: linear-gradient(135deg, #ED303C 0%, #ED303C 100%);
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(226, 47, 61, 0.18);
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.skandi-members-payment-content::before {
	content: "";
	position: absolute;
	top: -80px;
	right: -80px;
	width: 220px;
	height: 220px;
	background: rgba(255,255,255,0.08);
	border-radius: 50%;
	pointer-events: none;
}

.skandi-members-payment-content::after {
	content: "";
	position: absolute;
	bottom: -120px;
	left: -100px;
	width: 260px;
	height: 260px;
	background: rgba(255,255,255,0.05);
	border-radius: 50%;
	pointer-events: none;
}

/* Payment content typography */
.skandi-members-payment-content h1,
.skandi-members-payment-content h2,
.skandi-members-payment-content h3,
.skandi-members-payment-content h4 {
	margin: 0 0 14px;
	line-height: 1.05;
	font-family: 'Oswald', sans-serif !important;
	letter-spacing: 0.01em;
	position: relative;
	z-index: 2;
}

.skandi-members-payment-content h2 {
	font-size: 30px !important;
	color: rgba(255,255,255,0.78) !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 400 !important;
}

.skandi-members-payment-content h3 {
	font-size: 60px !important;
	color: #ffffff !important;
	margin-bottom: 18px;
	text-transform: uppercase;
}

.skandi-members-payment-content h3 span {
	font-size: 20px;
	font-weight: 500;
	opacity: 0.8;
	margin-left: 4px;
}

.skandi-members-payment-content p:not(.login-note) {
	margin: 0 0 18px;
	font-size: 18px !important;
	line-height: 1.45;
	color: #ffffff !important;
	font-weight: 500 !important;
	max-width: 680px;
	position: relative;
	z-index: 2;
}

.skandi-members-payment-content .login-note {
	margin: 34px 0 0;
	font-size: 15px !important;
	line-height: 1.45;
	color: #ffffff !important;
	font-weight: 500 !important;
	position: relative;
	z-index: 2;
	max-width: 680px;
}

.skandi-members-payment-content .login-note a {
	color: #ffffff !important;
	text-decoration: underline !important;
}

/* Pricing grid */
.skandi-members-payment-content .pricing-grid {
	display: grid;
	grid-template-columns: auto auto;
	gap: 15px;
	margin-top: 20px;
	max-width: 100%;
	align-items: start;
	justify-content: start;
	position: relative;
	z-index: 2;
}

.skandi-members-payment-content .pricing-option {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-self: start;
}

.skandi-members-payment-content .pricing-option .label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: rgba(255,255,255,0.82);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	min-height: 24px;
	display: flex;
	align-items: center;
}

.skandi-members-payment-content .pricing-option .save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,0.14);
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	text-transform: none;
	letter-spacing: 0;
}

/* Pricing buttons */
.skandi-members-payment-content .pricing-option a.primary,
.skandi-members-payment-content .pricing-option a.secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	align-self: start;
}

.skandi-members-payment-content .pricing-option a.primary {
	background: #fff !important;
	color: #ED303C !important;
	border: 1px solid #fff !important;
	box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.skandi-members-payment-content .pricing-option a.secondary {
	background: rgba(255,255,255,0.04) !important;
	color: #fff !important;
	border: 2px solid rgba(255,255,255,0.42) !important;
}

.skandi-members-payment-content .pricing-option a:hover {
	transform: translateY(-2px);
}

/* Login area wrapper */
.mepr-login-form-wrap {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* Actual form card */
.mp_wrapper form,
.mepr-login-form form,
.mp_wrapper.mp_login_form {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
	padding: 36px;
}

/* Labels */
.mepr-login-form label,
.mp_wrapper label,
.mp-form-label label {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #111111;
}

/* Form rows */
.mp-form-row {
	margin-bottom: 22px;
}

/* Inputs */
.mepr-login-form input[type="text"],
.mepr-login-form input[type="email"],
.mepr-login-form input[type="password"],
.mp_wrapper input[type="text"],
.mp_wrapper input[type="email"],
.mp_wrapper input[type="password"] {
	width: 100%;
	min-height: 58px;
	padding: 14px 16px;
	border: 1px solid #dcdcdc;
	border-radius: 14px;
	background: #ffffff;
	box-sizing: border-box;
	font-size: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mepr-login-form input[type="text"]:focus,
.mepr-login-form input[type="email"]:focus,
.mepr-login-form input[type="password"]:focus,
.mp_wrapper input[type="text"]:focus,
.mp_wrapper input[type="email"]:focus,
.mp_wrapper input[type="password"]:focus {
	outline: none;
	border-color: #111111;
	box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

/* Login submit */
.mepr-login-form input[type="submit"],
.mp_wrapper input[type="submit"],
.mp_wrapper .button-primary,
.mp_wrapper #wp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #111111 0%, #000000 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mepr-login-form input[type="submit"]:hover,
.mp_wrapper input[type="submit"]:hover,
.mp_wrapper .button-primary:hover,
.mp_wrapper #wp-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
	opacity: 1;
}

/* Password show/hide toggle */
.mp-hide-pw {
	position: relative;
}

.mp-hide-pw input[type="password"],
.mp-hide-pw input[type="text"] {
	padding-right: 56px;
}

.mp-hide-pw button,
.mp-hide-pw .button,
button.mp-hide-pw,
.mp-hide-pw .hide-if-no-js {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	min-height: 34px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #777777;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mp-hide-pw button:hover,
.mp-hide-pw .button:hover,
button.mp-hide-pw:hover,
.mp-hide-pw .hide-if-no-js:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #111111;
	transform: translateY(-50%);
	opacity: 1;
}

.mp-hide-pw .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}

/* Checkbox */
.mepr-login-form input[type="checkbox"],
.mp_wrapper input[type="checkbox"] {
	accent-color: #111111;
}

.mepr-login-form .forgetmenot,
.mp_wrapper .forgetmenot,
.mp_wrapper label input[type="checkbox"] {
	margin-top: 4px;
}

/* Secondary links */
.mepr-login-form a,
.mp_wrapper a {
	color: #ED303C;
	text-decoration: none;
	font-weight: 700;
	transition: opacity 0.2s ease;
}

.mepr-login-form a:hover,
.mp_wrapper a:hover {
	text-decoration: none;
	opacity: 0.8;
}

/* Forgot password spacing */
.mepr-login-actions,
.mp_wrapper .mepr-login-actions {
	margin-top: 18px;
}

/* Overlay */
.mepr-paywall-overlay {
	background-color: rgba(0, 0, 0, 0.18) !important;
	backdrop-filter: blur(2px);
}

.mepr-paywall-container {
	top: 20% !important;
}

/* Mobile */
@media (max-width: 767px) {
	.mepr-unauthorized-message,
	.mepr-login-form-wrap,
	.mp_wrapper form,
	.mepr-login-form form,
	.mp_wrapper.mp_login_form {
		padding: 24px;
		border-radius: 16px;
	}

	.skandi-paywall-preview {
		padding: 18px;
	}

	h2.skandi-preview-title {
		font-size: 1.5rem !important;
	}

	.skandi-preview-excerpt {
		font-size: 16px !important;
	}

	.skandi-members-payment-content {
		padding: 24px;
		border-radius: 16px;
	}

	.skandi-members-payment-content h2 {
		font-size: 22px !important;
	}

	.skandi-members-payment-content h3 {
		font-size: 42px !important;
	}

	.skandi-members-payment-content p:not(.login-note) {
		font-size: 18px !important;
	}

	.skandi-members-payment-content .pricing-grid {
		grid-template-columns: 2,1fr;
		max-width: 100%;
		gap: 15px;
	}

	.skandi-members-payment-content .pricing-option a.primary,
	.skandi-members-payment-content .pricing-option a.secondary {
		width: auto;
		justify-content: center;
	}

	.mepr-login-form input[type="text"],
	.mepr-login-form input[type="email"],
	.mepr-login-form input[type="password"],
	.mp_wrapper input[type="text"],
	.mp_wrapper input[type="email"],
	.mp_wrapper input[type="password"] {
		min-height: 54px;
		border-radius: 12px;
	}

	.mepr-login-form input[type="submit"],
	.mp_wrapper input[type="submit"],
	.mp_wrapper .button-primary,
	.mp_wrapper #wp-submit {
		min-height: 54px;
	}
	.skandi-post-meta,
	.skandi-date  {
		display: block !important;
		margin-bottom: 14px !important;
	}
	.skandi-author {
		margin-bottom: 14px !important;
	}
}
@media only screen and (max-width: 365px){
	.skandi-members-payment-content .pricing-grid {
		grid-template-columns: 1fr;
		max-width: 100%;
		gap: 15px;
	}

	.skandi-members-payment-content .pricing-option a.primary,
	.skandi-members-payment-content .pricing-option a.secondary {
		width: auto;
		justify-content: center;
	}
}