.annual-offer-card:where(:has(.annual-offer__branding:not(.hidden))) {
	outline: 1px solid #099ed6;
}

.annual-offer__banner {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -100%);
	z-index: 2;
	box-sizing: border-box;
	padding: 6px 12px;
	width: 80%;
	min-height: 34px;
	font-size: 1.25rem;
	line-height: 22px;
	font-weight: 700;
	background: #111;
	color: #fff;
	text-align: center;
	overflow-wrap: anywhere;
}

.annual-offer__ribbon-frame {
	position: absolute;
	inset: 0 0 auto auto;
	width: 9rem;
	height: 9rem;
	overflow: hidden;
	pointer-events: none;
}

.annual-offer__ribbon {
	position: absolute;
	top: 2rem;
	right: -3rem;
	box-sizing: border-box;
	padding: .3em .6em;
	width: 12rem;
	background: #c92327;
	color: #fff;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
	transform: rotate(45deg);
	overflow-wrap: anywhere;
}

.annual-offer__prices {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .4em;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
}

.annual-offer__original {
	color: #404040;
	font-size: 1em;
	font-weight: 700;
	text-decoration: none;
	background: linear-gradient(to bottom right, transparent calc(50% - 2px), #c92327 calc(50% - 2px), #c92327 calc(50% + 2px), transparent calc(50% + 2px));
	background-size: 75% 75%;
	background-position: center;
	background-repeat: no-repeat;
}

.annual-offer__current {
	font-size: 1.25em;
	line-height: 1.2;
	font-weight: 700;
}

.annual-offer__message {
	text-align: center;
	font-size: 0.9rem;
}

:where(.annual-offer-card:has(.annual-offer__banner)) .slp__tiers-item__most-popular:where([data-period="annual"]) {
	top: calc(-1 * var(--annual-offer-banner-height, 34px));
}

@media (min-width: 768px) and (max-width: 1100px), (max-width: 375px) {
	.annual-offer__ribbon-frame {
		width: 7.5rem;
		height: 7.5rem;
	}

	.annual-offer__ribbon {
		top: 1.5rem;
		right: -2.5rem;
		width: 10rem;
		font-size: 20px;
	}

	.annual-offer__prices {
		font-size: 22px;
	}
}

:where(.SubscriptionsLandingPage) .slp__tier-description {
	display: flow-root;
	box-sizing: border-box;
}

:where(.SubscriptionsLandingPage) .slp__tiers-item__price-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	column-gap: 8px;
}

:where(.SubscriptionsLandingPage) .slp__tier-price-wrapper {
	min-width: 0;
}

:where(.SubscriptionsLandingPage) .slp__tier-pricing-toggle-container {
	margin-top: 0;
	align-self: baseline;
	white-space: nowrap;
}

:where(.SubscriptionsLandingPage) .slp__tier-promotion {
	grid-column: 1 / -1;
	box-sizing: border-box;
}

:where(.SubscriptionsLandingPage) .slp__tiers-item {
	container-type: inline-size;
	container-name: subscription-card;
}

@container subscription-card (max-width: 300px) {
	.annual-offer__prices {
		font-size: 20px;
		gap: .25em;
		flex-wrap: nowrap;
	}

	.slp__tier-pricing-toggle-container {
		font-size: 13px;
	}
}

.annual-offer__text-clearance {
	float: right;
	width: var(--ribbon-text-width, 0px);
	height: var(--ribbon-text-height, 0px);
	shape-outside: polygon(0 0, 100% 0, 100% 100%);
}

@container subscription-card (max-width: 240px) {
	.annual-offer__prices {
		font-size: 18px;
	}

	.slp__tier-pricing-toggle-container {
		font-size: 12px;
	}
}
