/*
 * Block products - wrapper
 */
.block-products,
.block-products *,
.block-products *::before,
.block-products *::after {
	box-sizing: border-box;
}

.block-products {
	margin-bottom: 50px;
}

@media (min-width: 800px) {
	.block-products {
		max-width: 980px;
		margin: 0 auto 30px;
		padding: 40px;
	}
}

/*
 * Banner
 */
#plans .banner {
	margin-bottom: 50px;
	padding-top: 30px;
}

#plans .banner p {
	font-weight: 600;
	font-size: 1.25em;
	color: #000;
	font-family: "calluna-1","calluna-2", Palatino, Constantia, "Palatino Linotype", "Book Antiqua", serif;
	text-rendering: optimizeLegibility;
}

@media (min-width: 569px) {
	#plans .banner p {
		font-size: 1.75em;
	}
}

.block-products .banner::before {
	content: "";
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto;
	background: url("/images/products/jetpack-vaultpress-logo.svg") no-repeat center;
	background-size: contain;
}

@media (min-width: 569px) {
	.block-products .banner::before {
		width: 150px;
		height: 150px;
		margin-bottom: 30px;
	}
}

/*
 * Product cards
 */
.product-cards {
	background: #f9f9f9;
}

@media (min-width: 800px) {
	.product-cards {
		display: flex;
		border: 1px solid #cecece;
		border-radius: 12px;
	}
}

/*
 * Product card
 */
.product-card {
	position: relative;
	padding: 40px;
	box-shadow: 0 1px 0 0 #cecece;
}

.product-card:first-child {
	box-shadow: 0 1px 0 0 #cecece, 0 -1px 0 0 #cecece;
}

@media (min-width: 800px) {
	.product-card {
		flex: 0 0 50%;
		width: 50%;
		box-shadow: -1px 0 0 0 #cecece;
	}

	.product-card:first-child {
		box-shadow: none;
	}
}

.product-card__badge {
	position: absolute;
	top: -40px;
	left: 10px;
	width: 100px;
	height: 100px;
	padding: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	line-height: 22px;
	font-weight: bold;
	transform: rotate(-15deg);
	color: #fff;
	background: url("/images/products/promo-star.svg") no-repeat center;
	background-size: contain;
}

@media (min-width: 800px) {
	.product-card__badge {
		top: -50px;
		left: -30px;
	}
}

@media (max-width: 799px) {
	.product-card__badge + .product-card__title {
		margin-top: 30px;
	}
}

.product-card__title {
	margin-bottom: 20px;
	font-size: 2em;
	text-align: center;
	text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8), 2px 2px 2px rgba(0, 0, 0, 0.15);
}

.product-card__price-group {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	text-align: center;
	margin: 30px auto;
}

.product-card__price {
	position: relative;
	flex: 0 1 auto;
	display: inline-flex;
	padding: 5px 10px 5px 3px;
	margin-right: 5px;
	font-size: 3em;
	font-style: italic;
}

.product-card__price span {
	margin-top: 2px;
	font-size: 0.56em;
}

.product-card__price.is-original {
	color: #999;
}

.product-card__price.is-original::before {
	position: absolute;
	content: "";
	left: 0;
	top: 50%;
	right: 0;
	border-top: 2px solid #999;
	transform: rotate(-22deg);
	opacity: .9;
}

.product-card__billing-timeframe {
	flex: 0 0 100%;
	font-size: 1.125em;
	font-style: italic;
}

.product-card__description {
	max-width: 400px;
	margin: 30px auto;
	font-size: 1em;
	line-height: 1.375;
	text-align: center;
}

@media (min-width: 800px) {
	.product-card__description {
		min-height: 70px;
		margin: 30px 0;
		text-align: left;
	}
}

.product-card__cta {
	margin: 40px -20px;
	text-align: center;
}

.product-card__button,
.product-card__button:link,
.product-card__button:visited {
	display: inline-block;
	border-radius: 4px;
	font-weight: bold;
	font-size: 1.5em;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
	text-align: center;
	text-decoration: none;
	padding: 16px 28px;
	color: #fff;
	border-color: rgba(0, 0, 0, 0.5);
	background: linear-gradient(to bottom, #0090ba, #007ca1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
	-webkit-font-smoothing: antialiased;
}
.product-card__button:hover {
	text-decoration: none;
	border-color: rgba(0, 0, 0, 0.7);
	background: linear-gradient(to bottom, #00a4d3, #0090ba);
}
.product-card__button:focus {
	text-decoration: none;
	border-color: rgba(0, 0, 0, 0.9);
	background: linear-gradient(to bottom, #007ca1, #006987);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 568px), (min-width: 800px) and (max-width: 900px) {
	.product-card__button,
	.product-card__button:link,
	.product-card__button:visited {
		font-size: 1.25em;
		white-space: nowrap;
	}
}

.product-card__details {
	max-width: 350px;
	margin: 50px auto 0;
}

@media (min-width: 800px) {
	.product-card__details {
		margin: 50px 0 0;
	}
}

.product-card__details-title {
	display: block;
	font-weight: bold;
}

.product-card__details-list {
	margin: 20px 0;
	padding-left: 20px;
	list-style-type: disc;
}

.product-card__details-item {
	margin: 8px 0;
}
