/* Sitewide campaign banner. Blockstyle defaults via CSS variables; campaign palette overrides inline. */

.hoyry-pricing-sitewide-banner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--hoyry-product-pricing-sitewide-banner-padding-top, 0.75em)
		var(--hoyry-product-pricing-sitewide-banner-padding-right, 1.25em)
		var(--hoyry-product-pricing-sitewide-banner-padding-bottom, 0.75em)
		var(--hoyry-product-pricing-sitewide-banner-padding-left, 1.25em);
	background: var(--hoyry-product-pricing-sitewide-banner-background, #1d2327);
	color: var(--hoyry-product-pricing-sitewide-banner-color, #fff);
	border-radius: var(--hoyry-product-pricing-sitewide-banner-border-radius, 0);
	font-size: 0.9375rem;
	line-height: 1.4;
	font-weight: 600;
	text-align: center;
}

.hoyry-pricing-sitewide-banner__text {
	display: inline-block;
}

/* Whole bar is the link/trigger. No default underline — authors add emphasis
   (incl. underline) in the message editor when wanted. */
a.hoyry-pricing-sitewide-banner,
button.hoyry-pricing-sitewide-banner {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

button.hoyry-pricing-sitewide-banner {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	border: 0;
	font-family: inherit;
	letter-spacing: inherit;
}

a.hoyry-pricing-sitewide-banner:hover,
a.hoyry-pricing-sitewide-banner:focus,
button.hoyry-pricing-sitewide-banner:hover,
button.hoyry-pricing-sitewide-banner:focus {
	color: inherit;
}

/* Content banner (card) — CTA-aligned layout and blockstyle contract. */

.wp-block-hoyry-product-pricing-content-banner .content-banner-block {
	all: unset;
	display: flex;
	align-items: stretch;
	background: var(--hoyry-product-pricing-content-banner-area-background, #eee);
	border-top: var(--hoyry-product-pricing-content-banner-area-border-top, initial);
	border-right: var(--hoyry-product-pricing-content-banner-area-border-right, initial);
	border-bottom: var(--hoyry-product-pricing-content-banner-area-border-bottom, initial);
	border-left: var(--hoyry-product-pricing-content-banner-area-border-left, initial);
	border-radius: var(--hoyry-product-pricing-content-banner-area-border-radius, initial);
	box-shadow: var(--hoyry-product-pricing-content-banner-area-box-shadow, initial);
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 800px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-block {
		flex-direction: column;
		justify-content: center;
	}
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-content {
	flex: 1;
	display: flex;
	align-items: center;
}

@media (max-width: 1100px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-content {
		flex-direction: column;
	}
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-texts {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--hoyry-product-pricing-content-banner-texts-padding-top, 3em)
		var(--hoyry-product-pricing-content-banner-texts-padding-right, 4em)
		var(--hoyry-product-pricing-content-banner-texts-padding-bottom, 3em)
		var(--hoyry-product-pricing-content-banner-texts-padding-left, 3em);
}

@media (max-width: 1100px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-texts {
		flex: initial;
		text-align: center;
		padding: 2.25em 3em 2em 2.25em;
	}
}

@media (max-width: 800px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-texts {
		padding: 2em;
	}
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-texts h2,
.wp-block-hoyry-product-pricing-content-banner .content-banner-texts h3,
.wp-block-hoyry-product-pricing-content-banner .content-banner-texts h4 {
	margin: 0;
	color: var(--hoyry-product-pricing-content-banner-title-color, unset);
	font-family: var(--hoyry-product-pricing-content-banner-title-font-family, unset);
	font-size: var(--hoyry-product-pricing-content-banner-title-font-size, 200%);
	font-weight: var(--hoyry-product-pricing-content-banner-title-font-weight, 700);
	font-style: var(--hoyry-product-pricing-content-banner-title-font-style, normal);
	line-height: var(--hoyry-product-pricing-content-banner-title-line-height, unset);
	letter-spacing: var(--hoyry-product-pricing-content-banner-title-letter-spacing, unset);
	text-transform: var(--hoyry-product-pricing-content-banner-title-text-transform, unset);
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-text,
.wp-block-hoyry-product-pricing-content-banner .content-banner-texts p {
	margin: var(--hoyry-product-pricing-content-banner-text-margin-top, 1em) 0 0;
	color: var(--hoyry-product-pricing-content-banner-text-color, unset);
	font-family: var(--hoyry-product-pricing-content-banner-text-font-family, unset);
	font-size: var(--hoyry-product-pricing-content-banner-text-font-size, unset);
	font-weight: var(--hoyry-product-pricing-content-banner-text-font-weight, unset);
	font-style: var(--hoyry-product-pricing-content-banner-text-font-style, unset);
	line-height: var(--hoyry-product-pricing-content-banner-text-line-height, unset);
	letter-spacing: var(--hoyry-product-pricing-content-banner-text-letter-spacing, unset);
	text-transform: var(--hoyry-product-pricing-content-banner-text-text-transform, unset);
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-texts > *:first-child {
	margin-top: 0;
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-texts > *:last-child {
	margin-bottom: 0;
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-text > :first-child {
	margin-top: 0;
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-text > :last-child {
	margin-bottom: 0;
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-button.wp-block-button {
	display: inline-block;
	transition: all 0.1s;
	min-width: var(--hoyry-product-pricing-content-banner-button-min-width, initial);
	margin: var(--hoyry-product-pricing-content-banner-button-margin-top, 3em)
		var(--hoyry-product-pricing-content-banner-button-margin-right, 4em)
		var(--hoyry-product-pricing-content-banner-button-margin-bottom, 3em)
		var(--hoyry-product-pricing-content-banner-button-margin-left, 0);
}

@media (max-width: 1100px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-button.wp-block-button {
		margin: 0 3em 2.5em 2.25em;
	}
}

@media (max-width: 800px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-button.wp-block-button {
		margin: 0 2em 2em;
	}
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-button .wp-element-button.wp-block-button__link {
	display: flex;
	align-items: center;
	cursor: pointer;
	border-style: solid;
	transition: all 0.1s;
	width: auto;
	white-space: nowrap !important;
	justify-content: var(--hoyry-product-pricing-content-banner-button-justify-content, center);
	text-align: var(--hoyry-product-pricing-content-banner-button-text-align, center);
	background: var(--hoyry-product-pricing-content-banner-button-background, grey);
	color: var(--hoyry-product-pricing-content-banner-button-color, #fff);
	padding-top: var(--hoyry-product-pricing-content-banner-button-padding-top, 1em);
	padding-right: var(--hoyry-product-pricing-content-banner-button-padding-right, 2em);
	padding-bottom: var(--hoyry-product-pricing-content-banner-button-padding-bottom, 1em);
	padding-left: var(--hoyry-product-pricing-content-banner-button-padding-left, 2em);
	border-radius: var(--hoyry-product-pricing-content-banner-button-border-radius, 100px);
	box-shadow: var(--hoyry-product-pricing-content-banner-button-border-shadow, none);
	border-top: var(--hoyry-product-pricing-content-banner-button-border-top, none);
	border-right: var(--hoyry-product-pricing-content-banner-button-border-right, none);
	border-bottom: var(--hoyry-product-pricing-content-banner-button-border-bottom, none);
	border-left: var(--hoyry-product-pricing-content-banner-button-border-left, none);
	font-family: var(--hoyry-product-pricing-content-banner-button-font-family, unset);
	font-size: var(--hoyry-product-pricing-content-banner-button-font-size, unset);
	font-weight: var(--hoyry-product-pricing-content-banner-button-font-weight, unset);
	font-style: var(--hoyry-product-pricing-content-banner-button-font-style, unset);
	line-height: var(--hoyry-product-pricing-content-banner-button-line-height, 1.2);
	letter-spacing: var(--hoyry-product-pricing-content-banner-button-letter-spacing, unset);
	text-transform: var(--hoyry-product-pricing-content-banner-button-text-transform, unset);
	text-decoration: none;
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-button .wp-element-button.wp-block-button__link::after {
	content: '';
	mask-size: contain;
	transition: all 0.1s;
	display: var(--hoyry-product-pricing-content-banner-button-icon-display, none);
	order: var(--hoyry-product-pricing-content-banner-button-icon-order, initial);
	mask: var(--hoyry-product-pricing-content-banner-button-icon-mask, initial);
	background-color: var(--hoyry-product-pricing-content-banner-button-icon-color, currentColor);
	width: var(--hoyry-product-pricing-content-banner-button-icon-size, 1.3em);
	min-width: var(--hoyry-product-pricing-content-banner-button-icon-size, 1.3em);
	height: var(--hoyry-product-pricing-content-banner-button-icon-size, 1.3em);
	min-height: var(--hoyry-product-pricing-content-banner-button-icon-size, 1.3em);
	margin-top: var(--hoyry-product-pricing-content-banner-button-icon-margin-top, 0);
	margin-right: var(--hoyry-product-pricing-content-banner-button-icon-margin-right, 0);
	margin-bottom: var(--hoyry-product-pricing-content-banner-button-icon-margin-bottom, 0);
	margin-left: var(--hoyry-product-pricing-content-banner-button-icon-margin-left, 1em);
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-button .wp-element-button.wp-block-button__link:hover,
.wp-block-hoyry-product-pricing-content-banner .content-banner-button .wp-element-button.wp-block-button__link:focus {
	background: var(--hoyry-product-pricing-content-banner-button-background-hover, var(--hoyry-product-pricing-content-banner-button-background, grey));
	color: var(--hoyry-product-pricing-content-banner-button-color-hover, var(--hoyry-product-pricing-content-banner-button-color, #fff));
	box-shadow: var(--hoyry-product-pricing-content-banner-button-border-shadow-hover, none);
	border-top: var(--hoyry-product-pricing-content-banner-button-border-top-hover, none);
	border-right: var(--hoyry-product-pricing-content-banner-button-border-right-hover, none);
	border-bottom: var(--hoyry-product-pricing-content-banner-button-border-bottom-hover, none);
	border-left: var(--hoyry-product-pricing-content-banner-button-border-left-hover, none);
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-button .wp-element-button.wp-block-button__link:hover::after,
.wp-block-hoyry-product-pricing-content-banner .content-banner-button .wp-element-button.wp-block-button__link:focus::after {
	background-color: var(--hoyry-product-pricing-content-banner-button-icon-color-hover);
}

@media (max-width: 800px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-button .wp-element-button.wp-block-button__link {
		white-space: initial !important;
	}
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-block.has-image .content-banner-image {
	display: flex;
	justify-content: center;
	padding-left: var(--hoyry-product-pricing-content-banner-image-padding-left, 4em);
	padding-right: var(--hoyry-product-pricing-content-banner-image-padding-right, 0);
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-block.has-image .content-banner-image img {
	display: block;
	height: auto;
	max-width: var(--hoyry-product-pricing-content-banner-image-max-width, clamp(11.765rem, 5.882rem + 12.5vw, 17.647rem));
	max-height: var(--hoyry-product-pricing-content-banner-image-max-height, initial);
	border-radius: var(--hoyry-product-pricing-content-banner-image-border-radius, initial);
}

.wp-block-hoyry-product-pricing-content-banner .content-banner-block.has-image .content-banner-image {
	padding-top: var(--hoyry-product-pricing-content-banner-image-aligned-to-center-padding-top, 1.25em);
	padding-bottom: var(--hoyry-product-pricing-content-banner-image-aligned-to-center-padding-bottom, 1.25em);
	align-items: center;
}

@media (max-width: 1100px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-block.has-image .content-banner-image {
		padding-left: calc(var(--hoyry-product-pricing-content-banner-image-padding-left, 4em) * 0.75);
		padding-right: calc(var(--hoyry-product-pricing-content-banner-image-padding-right, 0) * 0.75);
	}
}

@media (max-width: 800px) {
	.wp-block-hoyry-product-pricing-content-banner .content-banner-block.has-image .content-banner-image {
		padding: 0 2em !important;
	}

	.wp-block-hoyry-product-pricing-content-banner .content-banner-block.has-image .content-banner-image img {
		max-width: clamp(11.765rem, 8.235rem + 20vw, 17.647rem);
		max-height: clamp(11.765rem, 8.235rem + 20vw, 17.647rem);
	}

	.wp-block-hoyry-product-pricing-content-banner .content-banner-block.has-image .content-banner-image {
		margin-top: 2em;
	}
}

.wp-block-hoyry-product-pricing-content-banner a.content-banner-block {
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

/* Image-only template */

.hoyry-pricing-content-banner--image {
	margin: 0;
	border-radius: var(--hoyry-product-pricing-content-banner-area-border-radius, 0);
	overflow: hidden;
}

.hoyry-pricing-content-banner--image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hoyry-product-pricing-content-banner-image-border-radius, initial);
}

.hoyry-pricing-content-banner--image .content-banner-image-link {
	display: block;
}

/* Campaign popup */

.hoyry-pricing-campaign-popup {
	box-sizing: border-box;
	position: relative;
	width: min(36rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	margin: auto;
	padding: 2rem 1.75rem 1.75rem;
	border: 0;
	border-radius: 0.75rem;
	background: #fff;
	color: #1d2327;
	overflow: auto;
}

.hoyry-pricing-campaign-popup::backdrop {
	background: rgb(0 0 0 / 45%);
}

.hoyry-pricing-campaign-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	appearance: none;
	margin: 0;
	padding: 0.25rem 0.5rem;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.65;
}

.hoyry-pricing-campaign-popup__close:hover,
.hoyry-pricing-campaign-popup__close:focus {
	opacity: 1;
}

.hoyry-pricing-campaign-popup__content {
	font-size: 0.9375rem;
	line-height: 1.55;
}

.hoyry-pricing-campaign-popup__content > :first-child {
	margin-top: 0;
}

.hoyry-pricing-campaign-popup__content > :last-child {
	margin-bottom: 0;
}

.hoyry-pricing-campaign-popup__content ul,
.hoyry-pricing-campaign-popup__content ol {
	margin: 0.75em 0;
	padding-left: 1.5em;
}

.hoyry-pricing-campaign-popup__content ul {
	list-style: disc outside;
}

.hoyry-pricing-campaign-popup__content ol {
	list-style: decimal outside;
}

.hoyry-pricing-campaign-popup__content li {
	display: list-item;
}

.hoyry-pricing-campaign-popup__content a {
	color: inherit;
}
