/**
 * Membership page — Figma frame `Membership` (67:884), 1880px artboard.
 *
 * @package WPCC
 */

.wpcc-membership {
	--mem-red: #fd0c2c;
	--mem-black: #000000;
	--mem-dark: #222222;
	--mem-light: #f6f6f6;
	--mem-cream: #fdfbf5;
	--mem-border: rgba(0, 0, 0, 0.2);
	--mem-border-pill: rgba(0, 0, 0, 0.3);
	--mem-divider: rgba(34, 34, 34, 0.2);
	--mem-card-w: 483px;
	--mem-card-h: 742px;
	--mem-card-gap: 70px;
}

/* Intro — Figma nodes 67:956, 67:1059 */
.wpcc-membership-intro {
	padding-top: 68px;
}

.wpcc-membership-intro__title {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 50px;
	text-align: center;
	text-transform: uppercase;
	color: var(--mem-black);
}

.wpcc-membership-intro__subtitle {
	margin: 0;
	padding-top: 0;
	font-size: 25px;
	font-weight: 400;
	line-height: 50px;
	text-align: center;
	text-transform: uppercase;
	color: var(--mem-black);
}

/* Plans grid — Figma node 67:1080 */
.wpcc-membership-plans {
	padding-top: 35px;
}

.wpcc-membership-plans__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--mem-card-gap);
	max-width: 1036px;
	margin-inline: auto;
}

/* Card shell — Figma 483×742 */
.wpcc-membership-card {
	width: var(--mem-card-w);
	max-width: 100%;
}

.wpcc-membership-card__shell {
	display: flex;
	flex-direction: column;
	height: var(--mem-card-h);
	border: 1px solid var(--mem-border);
	background: var(--mem-light);
}

.wpcc-membership-card__header {
	flex: 0 0 84px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 44px;
	background: var(--mem-red);
	border-bottom: 1px solid var(--mem-border);
}

.wpcc-membership-card__title {
	margin: 0;
	font-size: 25px;
	font-weight: 700;
	line-height: 50px;
	text-align: center;
	text-transform: uppercase;
	color: var(--wpcc-white);
}

.wpcc-membership-card__price-zone {
	position: relative;
	flex: 0 0 145px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 39px;
	background: var(--wpcc-white);
	border-bottom: 1px solid var(--mem-border);
	overflow: visible;
}

.wpcc-membership-card__price {
	margin: 0;
	font-size: 80px;
	font-weight: 700;
	line-height: 50px;
	text-align: center;
	color: var(--mem-red);
}

.wpcc-membership-card__currency {
	font-weight: 400;
}

.wpcc-membership-card--past-players .wpcc-membership-card__currency {
	font-weight: 300;
}

.wpcc-membership-card__badge {
	position: absolute;
	left: 50%;
	bottom: -14px;
	transform: translateX(-50%);
	margin: 0;
	padding: 0 20px;
	min-width: 170px;
	height: 29px;
	border: 1px solid var(--mem-border-pill);
	border-radius: 120px;
	background: var(--mem-dark);
	font-size: 16px;
	font-weight: 400;
	line-height: 27px;
	text-align: center;
	color: var(--wpcc-white);
	z-index: 1;
}

.wpcc-membership-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 46px 24px 45px;
	background: var(--mem-light);
}

.wpcc-membership-card__benefits {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
	width: 100%;
	max-width: 435px;
	font-size: 16px;
	font-weight: 400;
	line-height: 40px;
	text-align: center;
	color: var(--mem-black);
}

.wpcc-membership-card--past-players .wpcc-membership-card__benefits {
	max-width: 483px;
}

.wpcc-membership-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 189px;
	height: 50px;
	margin-top: auto;
	background: var(--mem-red);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wpcc-white);
}

.wpcc-membership-card__cta:hover,
.wpcc-membership-card__cta:focus {
	color: var(--wpcc-white);
	opacity: 0.92;
}

/* WooCommerce "View cart" link shown after AJAX add to cart */
.wpcc-membership-card__body a.added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 189px;
	height: 50px;
	margin-top: 12px;
	background: var(--mem-dark);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wpcc-white);
}

.wpcc-membership-card__body a.added_to_cart:hover,
.wpcc-membership-card__body a.added_to_cart:focus {
	color: var(--wpcc-white);
	opacity: 0.92;
}

/* Section divider — Figma node 67:1094 */
.wpcc-membership-plans__divider {
	height: 1px;
	margin-top: 81px;
	background: var(--mem-divider);
}

/* Nav: highlight Membership on Membership template */
body.wpcc-page-membership .wpcc-nav__list > li:nth-child(6) > a,
/*body.wpcc-page-membership .wpcc-nav__item:nth-child(6) a {
	color: var(--wpcc-red);
}*/

/*body.wpcc-page-membership .wpcc-nav__list > li:nth-child(6)::after,
body.wpcc-page-membership .wpcc-nav__item:nth-child(6)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--wpcc-red);
}*/

/*body.wpcc-page-membership .wpcc-nav__list > li:first-child > a,
body.wpcc-page-membership .wpcc-nav__item:first-child a {
	color: var(--wpcc-text);
}*/

/*body.wpcc-page-membership .wpcc-nav__list > li:first-child::after,
body.wpcc-page-membership .wpcc-nav__item:first-child::after {
	display: none;
}*/

/* Tablet */
@media (max-width: 1200px) {
	.wpcc-membership-card {
		width: min(100%, 420px);
	}

	.wpcc-membership-card__shell {
		height: auto;
		min-height: var(--mem-card-h);
	}
}

@media (max-width: 992px) {
	.wpcc-membership-intro__title {
		font-size: clamp(28px, 4vw, 40px);
		line-height: 1.25;
	}

	.wpcc-membership-intro__subtitle {
		font-size: clamp(20px, 3vw, 25px);
		line-height: 1.4;
		padding-top: 24px;
	}

	.wpcc-membership-plans__grid {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 768px) {
	.wpcc-membership-intro {
		padding-top: 48px;
	}

	.wpcc-membership-plans {
		padding-top: 28px;
	}

	.wpcc-membership-card__price {
		font-size: clamp(56px, 14vw, 80px);
	}

	.wpcc-membership-plans__divider {
		margin-top: 56px;
	}

}
