/*
 * WWE Bundle Pricing
 *
 * Measurements from the Figma "PDF Vouchers For WooCommerce" pricing section:
 * plugin card 470px, bundle card 574px overlapped by 84px, plugin card raised
 * 20px above and below the bundle card, gradient panel behind the lower part.
 */

.wwe-bundle-pricing {
	position: relative;
	isolation: isolate;
	padding: 60px 0;
	color: #020F19;
}

.wwe-bundle-pricing [hidden] {
	display: none !important;
}

/* Heading */
.wwe-bp__head {
	max-width: 750px;
	margin: 0 auto 10px;
	text-align: center;
}

.wwe-bp__head h2 {
	margin: 0 0 12px;
	color: #020F19;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.25;
}

.wwe-bp__head p {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
}

/* Cards */
.wwe-bp__stage {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 470px 574px;
	justify-content: center;
	align-items: stretch;
	padding-top: 20px;
}

.wwe-bp__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 0;
	border: 1px solid #DDE4EB;
	border-radius: 26px;
}

.wwe-bp__card--plugin {
	z-index: 2;
	padding: 40px 30px;
	background: #F2F6FB;
	box-shadow: 16px 0 34px 0 rgba(7, 18, 48, 0.12);
}

.wwe-bp__card--bundle {
	z-index: 1;
	margin: 20px 0 20px -84px;
	padding: 35px 40px 35px 124px;
	background: #fff;
}

.wwe-bp__stage.is-single {
	grid-template-columns: minmax(0, 574px);
}

.wwe-bp__stage.is-single .wwe-bp__card--bundle {
	margin: 0;
	padding-left: 40px;
}

/* Plugin card */
.wwe-bp__title-row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.wwe-bp__icon {
	display: flex;
	flex: 0 0 80px;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border: 1px solid #DDE4EB;
	border-radius: 18px;
	background: #fff;
}

.wwe-bp__icon img {
	display: block;
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.wwe-bp__plugin-title {
	margin: 0;
	color: #020F19;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.5;
}

.wwe-bp__subtitle {
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 1.5;
}

.wwe-bp__card--plugin .wwe-bp__price {
	margin-top: 20px;
}

.wwe-bp__card--plugin .wwe-bp__select {
	margin-top: 20px;
}

.wwe-bp__card--plugin .wwe-bp__button {
	margin-top: 20px;
}

.wwe-bp__features {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.wwe-bp__features li {
	position: relative;
	margin: 0;
	padding: 1px 0 1px 30px;
	color: #2F4858;
	font-size: 16px;
	line-height: 20px;
}

.wwe-bp__features li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Ccircle cx='11' cy='11' r='11' fill='%230BA449' fill-opacity='.2'/%3E%3Cpath d='m7 11.2 2.6 2.6L15 8.4' stroke='%230BA449' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Bundle card */
.wwe-bp__bundle-title {
	margin: 0;
	color: #020F19;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.5;
}

.wwe-bp__bundle-desc {
	margin: 10px 0 0;
	font-size: 18px;
	line-height: 1.8;
}

.wwe-bp__addons {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.wwe-bp__addons li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px;
	border-radius: 40px;
	background: #F2F6FB;
	font-size: 18px;
	line-height: 23px;
}

.wwe-bp__addons img {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.wwe-bp__card--bundle .wwe-bp__select {
	margin-top: 21px;
	border-color: rgba(175, 201, 232, 0.69);
	background-color: rgba(255, 255, 255, 0.12);
}

.wwe-bp__card--bundle .wwe-bp__price {
	margin-top: 10px;
}

.wwe-bp__card--bundle .wwe-bp__button {
	margin-top: 10px;
}

/* Save badge */
.wwe-bp__badge {
	position: absolute;
	top: -40px;
	right: -43px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 106px;
	height: 104px;
	background: url("badge.svg") no-repeat center / contain;
	color: #fff;
	pointer-events: none;
}

.wwe-bp__badge-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	transform: rotate(14deg);
}

.wwe-bp__badge-top {
	font-size: 20px;
}

.wwe-bp__badge-value {
	margin-top: 2px;
	font-size: 27px;
}

/* Shared: price, dropdown, button */
.wwe-bp__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	padding: 0;
	color: #020F19;
}

.wwe-bp__price strong {
	font-size: 48px;
	font-weight: 600;
	line-height: 1.4;
}

.wwe-bp__price span {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.wwe-bundle-pricing .wwe-bp__select {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 44px;
	margin-bottom: 0;
	padding: 0 48px 0 24px;
	border: 1px solid #DDE4EB;
	border-radius: 60px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23020F19' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center;
	box-shadow: none;
	color: #020F19;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.wwe-bundle-pricing .wwe-bp__select:focus-visible {
	outline: 2px solid #0084FF;
	outline-offset: 2px;
}

.wwe-bundle-pricing .wwe-bp__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 56px;
	padding: 13px 30px;
	border: 0;
	border-radius: 54px;
	background: #0084FF;
	box-shadow: 0 6px 6px 0 rgba(56, 112, 197, 0.12);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wwe-bundle-pricing .wwe-bp__button:hover,
.wwe-bundle-pricing .wwe-bp__button:focus-visible {
	background: #0070D9;
}

.wwe-bundle-pricing .wwe-bp__button:focus-visible {
	outline: 2px solid #0084FF;
	outline-offset: 3px;
}

.wwe-bp__arrow {
	flex: 0 0 14px;
	transition: transform 0.2s ease;
}

.wwe-bp__button:hover .wwe-bp__arrow {
	transform: translateX(4px);
}

.wwe-bp__notice {
	margin: 20px 0 0;
	padding: 0.75em 1em;
	border-left: 4px solid #DBA617;
	background: #FCF9E8;
	color: #1E1E1E;
	font-size: 14px;
}

/* Notes, Why Choose and the gradient panel behind the lower part of the cards */
.wwe-bp__lower {
	position: relative;
}

.wwe-bp__notes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 30px;
	padding: 40px 20px;
}

.wwe-bp__lower::before {
	content: "";
	position: absolute;
	top: -171px;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	border-radius: 28px;
	background: linear-gradient(110deg, #F7FAFF 0%, #FFF7F7 100%);
}

.wwe-bp__note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #2F4858;
	font-size: 16px;
	line-height: 20px;
}

.wwe-bp__note svg {
	flex: 0 0 20px;
}

/* Why Choose */
.wwe-bp__why {
	padding: 10px 45px 50px;
	text-align: center;
}

.wwe-bp__why-title {
	margin: 0 0 14px;
	color: #020F19;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.25;
}

.wwe-bp__why-desc {
	max-width: 720px;
	margin: 0 auto;
	color: #020F19;
	font-size: 16px;
	line-height: 1.8;
}

.wwe-bp__why-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.wwe-bp__why-list li {
	position: relative;
	margin: 0;
	padding: 12px 18px 12px 48px;
	border: 1px solid #DDE4EB;
	border-radius: 10px;
	background: #fff;
	color: #020F19;
	font-size: 16px;
	line-height: 20px;
}

.wwe-bp__why-list li::before {
    content: "";
    position: absolute;
    top: 0%;
    left: 18px;
    width: 20px;
    height: 20px;
    margin-top: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8.6' stroke='%230BA449' stroke-width='1.6'/%3E%3Cpath d='m6.6 10.2 2.3 2.3 4.5-4.7' stroke='%230BA449' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center 0px / contain;
}

/* Tablet: stack the cards */
@media (max-width: 1099px) {
	.wwe-bp__stage {
		grid-template-columns: minmax(0, 574px);
		gap: 30px;
		padding-top: 0;
	}

	.wwe-bp__card--plugin {
		box-shadow: 0 14px 34px 0 rgba(7, 18, 48, 0.08);
	}

	.wwe-bp__card--bundle {
		margin: 0;
		padding: 35px 40px;
	}

	.wwe-bp__badge {
		top: -30px;
		right: -14px;
	}

	.wwe-bp__why {
		padding: 10px 30px 40px;
	}

	.wwe-bp__why-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.wwe-bundle-pricing {
		padding: 40px 0;
	}

	.wwe-bp__head h2 {
		font-size: 28px;
	}

	.wwe-bp__card--plugin,
	.wwe-bp__card--bundle {
		padding: 28px 20px;
	}

	.wwe-bp__stage.is-single .wwe-bp__card--bundle {
		padding-left: 20px;
	}

	.wwe-bp__icon {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
		border-radius: 14px;
	}

	.wwe-bp__icon img {
		width: 34px;
		height: 34px;
	}

	.wwe-bp__plugin-title {
		font-size: 24px;
	}

	.wwe-bp__bundle-title {
		padding-right: 60px;
		font-size: 22px;
	}

	.wwe-bp__bundle-desc,
	.wwe-bp__addons li {
		font-size: 16px;
	}

	.wwe-bp__price strong {
		font-size: 38px;
	}

	.wwe-bundle-pricing .wwe-bp__button {
		padding: 13px 20px;
		font-size: 14px;
		letter-spacing: 0.06em;
	}

	.wwe-bp__badge {
		top: -24px;
		right: -6px;
		transform: scale(0.82);
		transform-origin: top right;
	}

	.wwe-bp__notes {
		flex-direction: column;
		align-items: center;
		padding: 30px 16px;
		text-align: left;
	}

	.wwe-bp__why {
		padding: 0 16px 30px;
	}

	.wwe-bp__why-title {
		font-size: 26px;
	}

	.wwe-bp__why-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-top: 24px;
	}
}
