/*!
 * CLI design for MemberPress "ReadyLaunch" pages (Account, Login, Checkout, Thank you).
 * Same colours, fonts and rounded shapes as the BuddyPress pages.
 * Everything is scoped to body.mepr-pro-template, so the rest of the site is not touched.
 * Colours and fonts come from Settings > CLI BuddyPress Design.
 */

:root {
	--cbp-primary: #b4471f;
	--cbp-primary-dark: #8c3718;
	--cbp-tint: #f8ece7;
	--cbp-accent: #3d5a40;
	--cbp-accent-soft: #e9eee9;
	--cbp-sage: #a9b9a6;
	--cbp-sage-dark: #8aa087;
	--cbp-ink: #1d231e;
	--cbp-muted: #636c64;
	--cbp-line: #e3e7e1;
	--cbp-radius: 22px;
	--cbp-radius-sm: 14px;
	--cbp-font-heading: "Cormorant Infant", Georgia, "Times New Roman", serif;
	--cbp-font-body: "Noto Sans", "Open Sans", Arial, sans-serif;
	--cbp-shadow: 0 14px 34px -16px rgba(29, 35, 30, .28);
	--cbp-shadow-sm: 0 6px 18px -10px rgba(29, 35, 30, .22);
}

/* ================================================================
   1. Page base
   ================================================================ */
body.mepr-pro-template {
	background: #f5f6f3 !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body) !important;
	-webkit-font-smoothing: antialiased;
}
body.mepr-pro-template :is(button, input, select, textarea) { font-family: var(--cbp-font-body); }
body.mepr-pro-template :is(h1, h2, h3, h4) {
	font-family: var(--cbp-font-heading) !important;
	font-weight: 600 !important;
	letter-spacing: -.01em;
	line-height: 1.12;
	color: var(--cbp-ink) !important;
}
body.mepr-pro-template h1 { font-size: clamp(38px, 4.4vw, 54px) !important; margin: 0 0 28px !important; }
body.mepr-pro-template h2 { font-size: 32px !important; }
body.mepr-pro-template h3 { font-size: 26px !important; }
body.mepr-pro-template a { color: var(--cbp-accent); transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
body.mepr-pro-template a:hover { color: var(--cbp-primary); }
body.mepr-pro-template :focus-visible { outline: 3px solid var(--cbp-sage-dark); outline-offset: 2px; }

/* ================================================================
   2. Top bar: sage like the main site header, rounded at the bottom
   ================================================================ */
body.mepr-pro-template :is(#masthead, header.site-header, .site-header) {
	background:
		radial-gradient(60% 140% at 85% 0%, rgba(255, 255, 255, .45), transparent 60%),
		linear-gradient(135deg, var(--cbp-sage) 0%, #c3cfc0 55%, var(--cbp-sage-dark) 100%) !important;
	border: 0 !important;
	border-radius: 0 0 40px 40px;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
}
body.mepr-pro-template :is(#masthead, .site-header) :is(a, span, p, div, h1, .site-title) { color: var(--cbp-ink) !important; }
body.mepr-pro-template :is(#masthead, .site-header) :is(.site-branding, .site-title) {
	font-family: var(--cbp-font-heading) !important;
	font-weight: 600 !important;
	letter-spacing: -.01em;
}
body.mepr-pro-template :is(#masthead, .site-header) .site-branding img { max-height: 52px; width: auto; }
/* Member name, e-mail and photo on the right */
body.mepr-pro-template :is(#masthead, .site-header) img:is(.avatar, [class*="avatar"]) {
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	box-shadow: var(--cbp-shadow-sm);
	object-fit: cover;
}
body.mepr-pro-template :is(#masthead, .site-header) [class*="profile-menu"] small,
body.mepr-pro-template :is(#masthead, .site-header) [class*="profile-menu__text"] > :last-child { color: var(--cbp-muted) !important; }
body.mepr-pro-template :is(#masthead, .site-header) svg { color: var(--cbp-ink) !important; }
/* Drop-down under the member name */
body.mepr-pro-template [class*="profile-menu__dropdown"], body.mepr-pro-template [class*="profile-menu"] [class*="dropdown"] {
	overflow: hidden;
	border: 1px solid var(--cbp-line) !important;
	border-radius: var(--cbp-radius-sm) !important;
	background: #fff !important;
	box-shadow: var(--cbp-shadow) !important;
}
body.mepr-pro-template [class*="profile-menu"] [class*="dropdown"] a { color: var(--cbp-ink) !important; }
body.mepr-pro-template [class*="profile-menu"] [class*="dropdown"] a:hover { background: var(--cbp-accent-soft) !important; color: var(--cbp-accent) !important; }

/* ================================================================
   3. Left menu (My Profile, Payments, Subscriptions, Logout)
   ================================================================ */
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) {
	background: #fff !important;
	border: 0 !important;
	border-right: 1px solid var(--cbp-line) !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
}
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) :is(ul, li) {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	list-style: none;
}
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 4px 14px !important;
	padding: 12px 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) a svg { flex: none; width: 20px; height: 20px; color: inherit !important; }
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) a:hover {
	background: var(--cbp-accent-soft) !important;
	color: var(--cbp-accent) !important;
}
/* Current page */
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) :is(.mepr-active, .active, .is-active, .current, .current-menu-item) > a,
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) a:is(.mepr-active, .active, .is-active, [aria-current="page"]) {
	background: var(--cbp-primary) !important;
	color: #fff !important;
	box-shadow: var(--cbp-shadow-sm);
}

/* ================================================================
   4. Notices ("Welcome to Critical Link International!")
   ================================================================ */
body.mepr-pro-template :is(.mepr-account-welcome-message, .mepr_updated, .mepr-notice, .mepr_error, .mepr-success, .notice, [class*="welcome-message"]) {
	padding: 16px 22px !important;
	border: 0 !important;
	border-radius: var(--cbp-radius-sm) !important;
	background: var(--cbp-accent-soft) !important;
	box-shadow: inset 4px 0 0 var(--cbp-accent) !important;
	color: var(--cbp-ink) !important;
	font-size: 15px;
}
body.mepr-pro-template :is(.mepr_error, .mepr-error, .notice-error) { background: #fbeceb !important; box-shadow: inset 4px 0 0 #b3261e !important; }

/* ================================================================
   5. Profile card: label, value, edit pencil
   ================================================================ */
body.mepr-pro-template :is(.mepr-profile-wrapper, .mepr-profile-details, [class*="profile-wrapper"], .mepr-account-container .mepr-box, .mepr-box) {
	padding: 30px 32px !important;
	border: 1px solid var(--cbp-line) !important;
	border-radius: var(--cbp-radius) !important;
	background: #fff !important;
	box-shadow: var(--cbp-shadow-sm) !important;
}
body.mepr-pro-template :is(.mepr-profile-wrapper, [class*="profile-wrapper"]) :is(.mepr-profile-details, [class*="profile-details"]) {
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.mepr-pro-template [class*="profile-details__row"], body.mepr-pro-template [class*="profile-details__item"] {
	padding: 18px 0 !important;
	border-bottom: 1px solid var(--cbp-line) !important;
}
body.mepr-pro-template [class*="profile-details__row"]:last-child, body.mepr-pro-template [class*="profile-details__item"]:last-child { border-bottom: 0 !important; }
body.mepr-pro-template [class*="__label"], body.mepr-pro-template .mepr-profile-details label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px !important;
	color: var(--cbp-muted) !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}
body.mepr-pro-template [class*="profile-details__content"], body.mepr-pro-template [class*="profile-details__value"] {
	color: var(--cbp-ink) !important;
	font-size: 17px !important;
	line-height: 1.5;
	word-break: break-word;
}
/* Edit pencil: small round green button */
body.mepr-pro-template :is([class*="profile-details__button"], [class*="__edit"], button[class*="edit"], a[class*="edit"]) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px !important;
	height: 30px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--cbp-accent-soft) !important;
	box-shadow: none !important;
	color: var(--cbp-accent) !important;
	vertical-align: middle;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
body.mepr-pro-template :is([class*="profile-details__button"], [class*="__edit"], button[class*="edit"], a[class*="edit"]) svg { width: 14px; height: 14px; color: inherit !important; }
body.mepr-pro-template :is([class*="profile-details__button"], [class*="__edit"], button[class*="edit"], a[class*="edit"]):hover {
	background: var(--cbp-primary) !important;
	color: #fff !important;
}

/* ================================================================
   6. Form fields and buttons (edit forms, login, checkout)
   ================================================================ */
body.mepr-pro-template :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="search"], select, textarea) {
	width: 100%;
	min-height: 0 !important;
	padding: 12px 16px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: var(--cbp-radius-sm) !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
	font-size: 15px !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body.mepr-pro-template :is(input, select, textarea):focus {
	outline: 0 !important;
	border-color: var(--cbp-accent) !important;
	box-shadow: 0 0 0 4px rgba(61, 90, 64, .14) !important;
}
body.mepr-pro-template :is(.mp-form-label, .mepr-form-label, form label) {
	color: var(--cbp-ink) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}
body.mepr-pro-template input[type="checkbox"], body.mepr-pro-template input[type="radio"] { accent-color: var(--cbp-primary); }

/* Main buttons: orange pill */
body.mepr-pro-template :is(input[type="submit"], button[type="submit"], .mepr-submit, .mepr-share-button, .button-primary, .btn-primary, .mepr-button, a.button, .button) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-height: 0 !important;
	padding: 13px 28px !important;
	border: 1.5px solid var(--cbp-primary) !important;
	border-radius: 999px !important;
	background: var(--cbp-primary) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .06em !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
body.mepr-pro-template :is(input[type="submit"], button[type="submit"], .mepr-submit, .mepr-share-button, .button-primary, .btn-primary, .mepr-button, a.button, .button):hover {
	border-color: var(--cbp-primary-dark) !important;
	background: var(--cbp-primary-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}
/* Secondary buttons (Cancel, Back) */
body.mepr-pro-template :is(.mepr-cancel, .cancel, .button-secondary, .btn-secondary, button[type="button"]:not([class*="profile-menu"]):not([class*="__button"]):not([class*="edit"])) {
	border-color: var(--cbp-line) !important;
	background: #fff !important;
	color: var(--cbp-muted) !important;
}

/* ================================================================
   7. Tables (Payments, Subscriptions)
   ================================================================ */
body.mepr-pro-template table {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--cbp-line) !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border-radius: var(--cbp-radius) !important;
	background: #fff !important;
	box-shadow: var(--cbp-shadow-sm);
}
body.mepr-pro-template table th {
	padding: 14px 20px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--cbp-line) !important;
	background: #f7f8f5 !important;
	color: var(--cbp-muted) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
}
body.mepr-pro-template table td {
	padding: 16px 20px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--cbp-line) !important;
	background: transparent !important;
	color: var(--cbp-ink) !important;
	vertical-align: middle;
}
body.mepr-pro-template table tr:last-child td { border-bottom: 0 !important; }
body.mepr-pro-template table tbody tr:hover td { background: #fbfcfa !important; }

/* Status labels such as Active / Cancelled */
body.mepr-pro-template :is(.mepr-status, [class*="status-badge"], [class*="__status"]) {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--cbp-accent-soft);
	color: var(--cbp-accent);
	font-size: 12px;
	font-weight: 700;
}

/* ================================================================
   8. Phones and tablets
   ================================================================ */
@media (max-width: 782px) {
	body.mepr-pro-template :is(#masthead, header.site-header, .site-header) { border-radius: 0 0 24px 24px; }
	body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) { border-right: 0 !important; border-bottom: 1px solid var(--cbp-line) !important; }
	body.mepr-pro-template :is(.mepr-profile-wrapper, .mepr-profile-details, [class*="profile-wrapper"], .mepr-box) { padding: 22px !important; }
	body.mepr-pro-template table { display: block; overflow-x: auto; }
}

/* ================================================================
   9. Profile card footer: View Payments / View Subscriptions /
   Change Password as soft green pills (orange on hover)
   ================================================================ */
body.mepr-pro-template :is([class*="profile-wrapper__footer"], [class*="profile__footer"], [class*="account__footer"], .mepr-profile-wrapper > :last-child) {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	border-color: var(--cbp-line) !important;
}
body.mepr-pro-template :is([class*="profile-wrapper__footer"], [class*="profile__footer"], [class*="account__footer"]) :is(a, button),
body.mepr-pro-template .mepr-profile-wrapper > :last-child > :is(a, button) {
	display: inline-flex !important;
	align-items: center;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 11px 22px !important;
	border: 1.5px solid var(--cbp-accent) !important;
	border-radius: 999px !important;
	background: var(--cbp-accent-soft) !important;
	box-shadow: none !important;
	color: var(--cbp-accent) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .04em !important;
	text-transform: none !important;
	text-decoration: none !important;
	transform: none;
}
body.mepr-pro-template :is([class*="profile-wrapper__footer"], [class*="profile__footer"], [class*="account__footer"]) :is(a, button):hover,
body.mepr-pro-template .mepr-profile-wrapper > :last-child > :is(a, button):hover {
	border-color: var(--cbp-primary) !important;
	background: var(--cbp-primary) !important;
	color: #fff !important;
}

/* Links inside tables ("Individual Membership") in the site green */
body.mepr-pro-template table a { color: var(--cbp-accent) !important; font-weight: 700; text-decoration: none !important; }
body.mepr-pro-template table a:hover { color: var(--cbp-primary) !important; }
body.mepr-pro-template table td :is(small, .description, [class*="subtitle"], [class*="__meta"]) { color: var(--cbp-muted) !important; }

/* Page area to the right of the menu: soft background, comfortable spacing */
body.mepr-pro-template :is(#primary, .site-main) { background: #f5f6f3 !important; }
body.mepr-pro-template :is(#mepr-account-content, .mepr-account-content, [class*="account-content"]) { padding-top: 48px; padding-bottom: 70px; }

/* ================================================================
   10. Checkout (registration) page
   ================================================================ */
/* Form on the right: white rounded card */
body.mepr-pro-template :is(form.mepr-signup-form, .mepr-signup-form) {
	padding: 34px 34px 30px !important;
	border: 1px solid var(--cbp-line) !important;
	border-radius: var(--cbp-radius) !important;
	background: #fff !important;
	box-shadow: var(--cbp-shadow-sm) !important;
}
/* Labels that sit on the field border: site green, white backing so the border is cut cleanly */
body.mepr-pro-template .mepr-signup-form :is(label, .mp-form-label label, .mepr-form-label) {
	color: var(--cbp-accent) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}
body.mepr-pro-template .mepr-signup-form .mp-form-label { background: transparent; }
body.mepr-pro-template .mepr-signup-form :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], select, textarea) {
	min-height: 52px !important;
	border-radius: var(--cbp-radius-sm) !important;
}
body.mepr-pro-template .mepr-signup-form ::placeholder { color: #98a09a !important; }
/* Two fields side by side (First / Last name): small gap between them */
body.mepr-pro-template .mepr-signup-form :is(.mp-form-row-group, [class*="form-row-group"], .mepr-name-row) { gap: 12px; }

/* "Become a Member": full width orange pill */
body.mepr-pro-template .mepr-signup-form :is(input[type="submit"], button[type="submit"], .mepr-submit) {
	display: flex !important;
	width: 100% !important;
	padding: 17px 28px !important;
	font-size: 14px !important;
	letter-spacing: .08em !important;
	box-shadow: var(--cbp-shadow-sm) !important;
}

/* Order summary on the left */
body.mepr-pro-template :is([class*="invoice"], [class*="checkout-summary"], [class*="order-summary"]) {
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body) !important;
}
body.mepr-pro-template :is([class*="invoice"], [class*="checkout-summary"]) :is(h1, h2, h3, [class*="__price"], [class*="__amount"], [class*="price-box"], .mepr-price) {
	font-family: var(--cbp-font-heading) !important;
	font-weight: 600 !important;
	color: var(--cbp-ink) !important;
	letter-spacing: -.01em;
}
body.mepr-pro-template :is(a[class*="coupon"], .have-coupon-link, [class*="coupon"] a) {
	color: var(--cbp-accent) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}
body.mepr-pro-template :is(a[class*="coupon"], .have-coupon-link, [class*="coupon"] a):hover { color: var(--cbp-primary) !important; }
body.mepr-pro-template :is([class*="invoice"], [class*="checkout-summary"]) img { border-radius: 12px !important; }
body.mepr-pro-template :is([class*="invoice"], [class*="checkout-summary"]) :is(hr, [class*="divider"]) { border-color: var(--cbp-line) !important; background: var(--cbp-line) !important; }
/* Line between the two columns */
body.mepr-pro-template :is([class*="checkout-container"], [class*="checkout"]) > * { border-color: var(--cbp-line) !important; }

@media (max-width: 782px) {
	body.mepr-pro-template :is(form.mepr-signup-form, .mepr-signup-form) { padding: 22px !important; }
}

/* ================================================================
   11. Round 2 fixes (header, menu, profile card, pop-ups, checkout, mobile)
   ================================================================ */

/* ---- Base rhythm ---- */
body.mepr-pro-template { font-size: 16px; line-height: 1.6; }
body.mepr-pro-template p { margin: 0 0 1em; }

/* ---- Header: solid #aec3b0 ---- */
body.mepr-pro-template :is(#masthead, header.site-header, .site-header) {
	background: #aec3b0 !important;
	border-radius: 0 0 32px 32px !important;
}
body.mepr-pro-template :is(#masthead, .site-header) [class*="profile-menu"] :is(small, [class*="email"]),
body.mepr-pro-template :is(#masthead, .site-header) [class*="profile-menu__text"] > :last-child { color: #3a453c !important; }

/* Logo: the Critical Link mark + "Critical Link / International" like the main site */
body.mepr-pro-template :is(#masthead, .site-header) .site-branding :is(a:not(:has(img)), .site-title:not(:has(a))) {
	position: relative;
	display: inline-block !important;
	width: 208px;
	max-width: 208px;
	padding: 0 0 0 52px !important;
	color: #1c3a48 !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	letter-spacing: -.01em !important;
	line-height: 1.02 !important;
	text-decoration: none !important;
	white-space: normal !important; /* the width makes it break after "Critical Link" */
}
body.mepr-pro-template :is(#masthead, .site-header) .site-branding :is(a:not(:has(img)), .site-title:not(:has(a)))::first-line { font-weight: 600; }
body.mepr-pro-template :is(#masthead, .site-header) .site-branding :is(a:not(:has(img)), .site-title:not(:has(a)))::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 48px;
	height: 48px;
	transform: translateY(-50%);
	background: url("https://criticallink.org/wp-content/uploads/2026/10/cropped-cropped-Frame-1000007649.png") center / contain no-repeat;
}

/* Member name / photo button: soft highlight on hover */
body.mepr-pro-template :is(#masthead, .site-header) :is([class*="profile-menu__button"], [class*="profile-menu"] > button, [class*="profile-menu"] > a) {
	padding: 6px 14px 6px 6px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
body.mepr-pro-template :is(#masthead, .site-header) :is([class*="profile-menu__button"], [class*="profile-menu"] > button, [class*="profile-menu"] > a):hover,
body.mepr-pro-template :is(#masthead, .site-header) :is([class*="profile-menu__button"], [class*="profile-menu"] > button):focus-visible {
	background: rgba(255, 255, 255, .45) !important;
}
/* Mobile menu (hamburger) button */
body.mepr-pro-template :is(#masthead, .site-header) button:is([class*="menu-toggle"], [class*="hamburger"], [aria-controls]) {
	width: 44px; height: 44px; padding: 0 !important;
	border: 0 !important; border-radius: 50% !important;
	background: transparent !important; color: var(--cbp-ink) !important;
}
body.mepr-pro-template :is(#masthead, .site-header) button:is([class*="menu-toggle"], [class*="hamburger"], [aria-controls]):hover { background: rgba(255, 255, 255, .45) !important; }

/* ---- Left menu: same background as the page, clear orange current item ---- */
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) { background: transparent !important; }
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) li { margin: 4px 14px !important; padding: 0 !important; border-radius: 999px !important; }
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) li > a { margin: 0 !important; }
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) :is([class*="active"], [aria-current="page"]) {
	background: var(--cbp-primary) !important;
	border-radius: 999px !important;
	box-shadow: var(--cbp-shadow-sm) !important;
	color: #fff !important;
}
body.mepr-pro-template :is(#mepr-account-nav, .mepr-account-nav, .mepr-nav, [id*="account-nav"], [class*="account-nav"]) :is([class*="active"], [aria-current="page"]) :is(a, span, svg, *) {
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
}

/* ---- Profile: one card only, buttons under a simple divider ---- */
body.mepr-pro-template :is(.mepr-profile-details, [class*="profile-wrapper"]:not(.mepr-profile-wrapper), .mepr-box, .mepr-account-container .mepr-box) {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
body.mepr-pro-template .mepr-profile-wrapper { max-width: 760px; padding: 28px 32px !important; }
body.mepr-pro-template :is([class*="profile-wrapper__footer"], .mepr-profile-wrapper > :last-child) {
	margin: 12px 0 0 !important;
	padding: 22px 0 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--cbp-line) !important;
}
body.mepr-pro-template [class*="profile-details__label"] { gap: 8px; margin-bottom: 4px !important; }
body.mepr-pro-template [class*="profile-details__label"] :is(button, a) { margin-left: 4px !important; }
body.mepr-pro-template [class*="profile-details__row"] { padding: 14px 0 !important; }

/* ---- Every MemberPress field: same height, select keeps its arrow ---- */
body.mepr-pro-template :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"]) {
	box-sizing: border-box !important;
	height: 52px !important;
	line-height: normal !important;
}
body.mepr-pro-template select {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	height: 52px !important;
	padding: 0 44px 0 16px !important;
	line-height: normal !important;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d231e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 16px center / 14px !important;
	cursor: pointer;
}

/* ---- Edit pop-ups (Name, Billing address, ...) ---- */
body.mepr-pro-template :is([class*="modal__overlay"], [class*="modal-overlay"], [class*="modal__backdrop"], [class*="modal-backdrop"]) {
	background: rgba(29, 35, 30, .42) !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
body.mepr-pro-template :is([class*="modal__content"], [class*="modal__box"], [class*="modal-content"], [class*="modal__dialog"]):not([class*="wrapper"]) {
	box-sizing: border-box;
	width: min(560px, calc(100vw - 40px)) !important;
	max-width: none !important;
	padding: 36px 36px 32px !important;
	border: 0 !important;
	border-radius: var(--cbp-radius) !important;
	background: #fff !important;
	box-shadow: 0 30px 70px -30px rgba(29, 35, 30, .5) !important;
}
/* Pop-up title ("Change your billing address", "Name") */
body.mepr-pro-template [class*="modal"] form > :is(label, .mp-form-label, p:first-child label),
body.mepr-pro-template [class*="modal"] form > div:first-child > label {
	display: block !important;
	margin: 0 0 18px !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-heading) !important;
	font-size: 26px !important;
	font-weight: 600 !important;
	letter-spacing: -.01em !important;
	line-height: 1.15 !important;
	text-transform: none !important;
}
/* Space between fields */
body.mepr-pro-template [class*="modal"] :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select) {
	display: block;
	width: 100% !important;
	margin: 0 0 12px !important;
}
/* First and last name side by side with a gap */
body.mepr-pro-template [class*="modal"] :has(> input[name*="first_name"]) {
	display: flex !important;
	gap: 12px;
}
body.mepr-pro-template [class*="modal"] :has(> input[name*="first_name"]) > input { flex: 1 1 0; min-width: 0; margin-left: 0 !important; margin-right: 0 !important; }
body.mepr-pro-template [class*="modal"] :is(input[type="submit"], button[type="submit"]) { margin-top: 10px !important; }
/* Close button */
body.mepr-pro-template :is([class*="modal__close"], [class*="modal"] button[class*="close"], [class*="modal"] [aria-label="Close"], [class*="modal"] [aria-label="close"]) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--cbp-accent-soft) !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
	transition: background-color .2s ease, color .2s ease;
}
body.mepr-pro-template :is([class*="modal__close"], [class*="modal"] button[class*="close"], [class*="modal"] [aria-label="Close"], [class*="modal"] [aria-label="close"]):hover {
	background: var(--cbp-primary) !important;
	color: #fff !important;
}
body.mepr-pro-template :is([class*="modal__close"], [class*="modal"] button[class*="close"]) svg { width: 18px; height: 18px; color: inherit !important; }

/* ---- Checkout ---- */
/* Gap under the header */
body.mepr-pro-template :is(#primary, .site-main):has(.mepr-signup-form),
body.single-memberpressproduct.mepr-pro-template :is(#primary, .site-main) { padding-top: 48px !important; padding-bottom: 70px !important; }
/* "Pay Critical Link International": sensible size */
body.mepr-pro-template :is(#primary, .site-main):has(.mepr-signup-form) h1 {
	margin: 0 0 10px !important;
	font-size: clamp(28px, 3vw, 38px) !important;
	line-height: 1.1 !important;
}
/* Labels: quiet grey (look like placeholders inside empty fields), green while you are in the field */
body.mepr-pro-template .mepr-signup-form :is(label, .mp-form-label label, .mepr-form-label) {
	color: var(--cbp-muted) !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
}
body.mepr-pro-template .mepr-signup-form :is(.mp-form-row, [class*="form-row"], [class*="form-field"]):focus-within :is(label, .mp-form-label label) { color: var(--cbp-accent) !important; }
/* Labels that sit above a field (Organization Name, Coupon Code): a little darker */
body.mepr-pro-template :is(.mepr-signup-form, [class*="coupon"]) .mp-form-label > label:only-child { color: var(--cbp-ink) !important; font-weight: 600 !important; }
/* Coupon field fills its column */
body.mepr-pro-template [class*="coupon"] input[type="text"] { width: 100% !important; max-width: 100% !important; }

/* ---- Phones and tablets: 20px left and right, no extra inner padding ---- */
@media (max-width: 782px) {
	body.mepr-pro-template { font-size: 15px; }
	body.mepr-pro-template h1 { font-size: 34px !important; margin-bottom: 18px !important; }
	body.mepr-pro-template h2 { font-size: 26px !important; }
	body.mepr-pro-template :is(#masthead, header.site-header, .site-header) { border-radius: 0 0 22px 22px !important; }
	body.mepr-pro-template :is(#masthead, .site-header) .site-branding :is(a:not(:has(img)), .site-title:not(:has(a))) { width: 172px; max-width: 172px; font-size: 18px !important; padding-left: 42px !important; }
	body.mepr-pro-template :is(#masthead, .site-header) .site-branding :is(a:not(:has(img)), .site-title:not(:has(a)))::before { width: 40px; height: 40px; }

	/* Account pages */
	body.mepr-pro-template :is(#mepr-account-content, .mepr-account-content, [class*="account-content"]) { padding: 28px 20px 48px !important; margin: 0 !important; }
	body.mepr-pro-template .mepr-profile-wrapper { padding: 20px !important; }

	/* Checkout: white page, content 20px from the screen edges */
	body.mepr-pro-template:has(.mepr-signup-form), body.mepr-pro-template :is(#primary, .site-main):has(.mepr-signup-form) { background: #fff !important; }
	body.mepr-pro-template :is(#primary, .site-main):has(.mepr-signup-form) { padding: 28px 20px 48px !important; }
	body.mepr-pro-template :is(#primary, .site-main):has(.mepr-signup-form) :is(div, section, form, aside):not([class*="form-row"]):not([class*="form-label"]):not([class*="form-field"]):not([class*="row-group"]):not([class*="modal"]) {
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-shadow: none !important;
	}
	body.mepr-pro-template :is(form.mepr-signup-form, .mepr-signup-form) { border: 0 !important; border-radius: 0 !important; background: transparent !important; padding-top: 8px !important; }
	body.mepr-pro-template :is(#primary, .site-main):has(.mepr-signup-form) h1 { font-size: 28px !important; }

	/* Pop-ups */
	body.mepr-pro-template :is([class*="modal__content"], [class*="modal__box"], [class*="modal-content"], [class*="modal__dialog"]):not([class*="wrapper"]) { padding: 28px 20px 22px !important; }
	body.mepr-pro-template [class*="modal"] form > :is(label, .mp-form-label) { font-size: 22px !important; }
}
