/* Razorpay Membership (India) — mirrors the site's USD plan cards.
   Scoped under .rzmp with !important where themes force global button/heading styles. */

.rzmp {
	--rzmp-accent: #8b0000;
	--rzmp-accent-ink: #fff;
	--rzmp-card: #fff;
	--rzmp-heading: #2b2f36;
	--rzmp-price: #3a3f47;
	--rzmp-muted: #4a4f57;
	--rzmp-radius: 20px;
	--rzmp-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	--rzmp-shadow-featured: 0 0 0 1px rgba(139, 0, 0, .08), 0 2px 14px rgba(139, 0, 0, .10);
	margin: 0 0 2.5rem;
}
.rzmp [hidden] { display: none !important; }

/* ---------- Intro ---------- */
.rzmp .rzmp-intro {
	margin: 0 0 1.5rem;
	color: var(--rzmp-muted);
	font-size: .95rem;
	line-height: 1.6;
	max-width: 60ch;
}
.rzmp .rzmp-test {
	margin: 0 0 1rem;
	padding: 8px 14px;
	border-radius: 8px;
	background: #fff8e6;
	color: #6b4300;
	font-size: .85rem;
}

/* ---------- Grid ---------- */
.rzmp .rzmp-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	align-items: stretch;
}

/* ---------- Card ---------- */
.rzmp .rzmp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--rzmp-card);
	border: 0 !important;
	border-radius: var(--rzmp-radius) !important;
	padding: 32px 30px 36px;
	box-shadow: var(--rzmp-shadow) !important;
	min-height: 300px;
	box-sizing: border-box;
}
.rzmp .rzmp-card.is-featured {
	box-shadow: var(--rzmp-shadow-featured) !important;
}

.rzmp .rzmp-title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-size: 1.125rem !important;
	line-height: 1.3 !important;
	font-weight: 700;
	color: var(--rzmp-heading);
	letter-spacing: 0;
	text-transform: none !important;
}

.rzmp .rzmp-price {
	margin: 0 0 20px !important;
	padding: 0;
	font-size: clamp(1.45rem, 2.1vw, 1.75rem) !important;
	line-height: 1.2 !important;
	color: var(--rzmp-price);
	white-space: nowrap;
}
.rzmp .rzmp-price strong { font-weight: 700; }

/* ---------- Buttons (pill, outline by default, filled when featured) ---------- */
.rzmp .rzmp-btn {
	display: block !important;
	width: 100% !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 12px 18px !important;
	border: 1px solid var(--rzmp-accent) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--rzmp-accent) !important;
	font-family: inherit !important;
	font-size: .8rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .03em !important;
	text-transform: uppercase !important;
	text-align: center;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .15s, color .15s;
	box-sizing: border-box;
}
.rzmp .rzmp-btn:hover,
.rzmp .rzmp-btn:focus,
.rzmp .is-featured .rzmp-btn-select {
	background: var(--rzmp-accent) !important;
	color: var(--rzmp-accent-ink) !important;
}
.rzmp .rzmp-btn:focus-visible,
.rzmp .rzmp-link:focus-visible {
	outline: 3px solid rgba(139, 0, 0, .3) !important;
	outline-offset: 3px;
}
.rzmp .rzmp-btn[disabled],
.rzmp .rzmp-link[disabled] { opacity: .65; cursor: progress; }

.rzmp .rzmp-once {
	margin: 12px 0 0 !important;
	text-align: center;
}
.rzmp .rzmp-once .rzmp-link { font-size: .85rem !important; }

/* ---------- Description ---------- */
.rzmp .rzmp-desc {
	margin: 20px 0 0 !important;
	color: var(--rzmp-muted);
	font-size: 1rem !important;
	line-height: 1.65 !important;
}

.rzmp .rzmp-error {
	margin: 14px 0 0 !important;
	color: var(--rzmp-accent);
	font-size: .9rem;
	line-height: 1.5;
}

/* ---------- Status notice ---------- */
.rzmp .rzmp-notice {
	margin: 0 0 1.5rem;
	padding: 14px 18px;
	border-left: 4px solid;
	border-radius: 12px;
	line-height: 1.55;
	box-shadow: var(--rzmp-shadow);
}
.rzmp .rzmp-notice.is-success { background: #eef7ef; border-color: #2e7d32; }
.rzmp .rzmp-notice.is-pending { background: #fff8e6; border-color: #b26a00; }
.rzmp .rzmp-notice.is-failed  { background: #fdeeee; border-color: var(--rzmp-accent); }

/* ---------- Region switch (plain text link, not a theme button) ---------- */
.rzmp .rzmp-switch {
	margin: 24px 0 0;
	text-align: center;
}
.rzmp .rzmp-switch-in { margin: 0 0 24px; }
.rzmp .rzmp-link {
	display: inline !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--rzmp-accent) !important;
	font-family: inherit !important;
	font-size: .95rem !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	cursor: pointer;
}
.rzmp .rzmp-link:hover { color: #5e0000 !important; }

/* ---------- Sign-up dialog (new visitors) ---------- */
.rzmp .rzmp-dialog {
	width: min(420px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--rzmp-radius);
	background: var(--rzmp-card);
	color: var(--rzmp-heading);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	overflow: auto;
}
.rzmp .rzmp-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.rzmp .rzmp-signup {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 30px 28px 26px;
}
.rzmp .rzmp-signup .rzmp-title { margin: 0 !important; padding-right: 32px !important; font-size: 1.3rem !important; }
.rzmp .rzmp-signup-plan { margin: -6px 0 4px !important; color: var(--rzmp-muted); font-size: .95rem; }
.rzmp .rzmp-signup label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	color: var(--rzmp-heading);
	font-size: .9rem;
	font-weight: 600;
}
.rzmp .rzmp-signup input {
	width: 100% !important;
	min-height: 44px;
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid #c9ccd1 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #1f2328 !important;
	font: inherit !important;
	font-weight: 400 !important;
	box-sizing: border-box;
}
.rzmp .rzmp-signup input:focus { outline: 3px solid rgba(139, 0, 0, .25) !important; border-color: var(--rzmp-accent) !important; }
.rzmp .rzmp-signup .rzmp-error { margin: 0 !important; }
.rzmp .rzmp-btn-signup { margin-top: 4px !important; background: var(--rzmp-accent) !important; color: var(--rzmp-accent-ink) !important; }
.rzmp .rzmp-signup-login { margin: 0 !important; text-align: center; font-size: .9rem; color: var(--rzmp-muted); }
.rzmp .rzmp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--rzmp-muted) !important;
	font-size: 26px !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.rzmp .rzmp-close:hover { background: #f1f1f1 !important; }
.rzmp .rzmp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.rzmp .rzmp-card { padding: 28px 24px 30px; min-height: 0; }
	.rzmp .rzmp-price { font-size: 1.6rem !important; }
	/* The theme gives this page no side gutter on phones. */
	.rzmp .rzmp-intro, .rzmp .rzmp-switch { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rzmp .rzmp-btn { transition: none; }
}
