/* Only the opted-in copy Group. The comparison and all lower sections are outside it. */
.is-style-preset-hero-copy {
	container-type: inline-size;
	overflow-wrap: anywhere;
}

.is-style-preset-hero-copy .fp-hero-category {
	margin-block-end: 26px;
}

.is-style-preset-hero-copy .fp-hero-category a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	color: inherit;
	text-decoration: none;
}

.is-style-preset-hero-copy .fp-hero-category a::before {
	content: '\2190';
}

.is-style-preset-hero-copy .fp-hero-category a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: .25em;
}

.is-style-preset-hero-copy .fp-hero-summary {
	max-width: 34ch;
}

.is-style-preset-hero-copy .fp-hero-badges:not(:has(*)),
.is-style-preset-hero-copy .fp-hero-summary:empty,
.is-style-preset-hero-copy .fp-hero-compatibility:empty,
.is-style-preset-hero-copy .fp-hero-compatibility:has(> .fp-hero-apps:empty):not(:has(> details)) {
	display: none;
}

.is-style-preset-hero-copy .fp-hero-download .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 44px;
	text-decoration: none;
}

.is-style-preset-hero-copy .fp-hero-download .wp-block-button__link::after {
	content: '';
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	mask: url('../icons/download.svg') center / contain no-repeat;
}

.is-style-preset-hero-copy .fp-hero-compatibility {
	position: relative;
	font-size: 12px;
	line-height: 1.7;
}

.is-style-preset-hero-copy .fp-hero-app-lead {
	margin: 0;
	font-size: 11px;
	line-height: 1.7;
}

.is-style-preset-hero-copy .fp-hero-app-lead:empty,
.is-style-preset-hero-copy .fp-hero-compatibility:not(:has(> .fp-hero-apps)) {
	display: none;
}

.is-style-preset-hero-copy .fp-hero-apps .wp-block-free-presets-preset-compatibility__icons {
	gap: 12px;
}

.is-style-preset-hero-copy .fp-hero-apps .fp-compatibility-icon {
	width: 24px;
	height: 24px;
}

@container (max-width: 360px) {
	.is-style-preset-hero-copy .fp-hero-apps .wp-block-free-presets-preset-compatibility__icons:has(> :nth-child(10)) {
		display: grid;
		grid-template-columns: repeat(5, 24px);
	}
}

.is-style-preset-hero-copy .fp-hero-compatibility > .fp-hero-apps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.is-style-preset-hero-copy .fp-hero-app {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.is-style-preset-hero-copy .fp-hero-app-separator {
	color: #70737c;
}

.is-style-preset-hero-copy .fp-hero-more-apps {
	position: relative;
	margin: 0;
}

.is-style-preset-hero-copy .fp-hero-more-apps > summary {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 0;
	color: #d9dce5;
	list-style: none;
	text-decoration: underline;
	text-underline-offset: .45em;
	cursor: pointer;
}

.is-style-preset-hero-copy .fp-hero-more-apps > summary::marker {
	content: '';
}

.is-style-preset-hero-copy .fp-hero-more-apps > summary::-webkit-details-marker {
	display: none;
}

.is-style-preset-hero-copy .fp-hero-more-apps > summary::before,
.is-style-preset-hero-copy .fp-hero-more-apps > summary::after {
	display: none;
}

.is-style-preset-hero-copy .fp-hero-app-list {
	box-sizing: border-box;
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	width: max-content;
	max-width: 290px;
	margin: 8px 0 0;
	padding: 18px;
	border: 1px solid #45464f;
	border-radius: 8px;
	background: #202125;
	color: #d9dce5;
	box-shadow: 0 8px 24px #0003;
}

.is-style-preset-hero-copy :where(a, summary):focus-visible {
	outline: 3px solid #82a7ff;
	outline-offset: 4px;
}

@container (max-width: 520px) {
	.is-style-preset-hero-copy .fp-hero-compatibility {
		font-size: 11px;
	}

	.is-style-preset-hero-copy .fp-hero-more-apps {
		position: static;
	}

	.is-style-preset-hero-copy .fp-hero-app-list {
		inset-inline-start: 0;
		inset-inline-end: auto;
		width: min(100%, 290px);
		max-width: 100%;
		grid-template-columns: 1fr;
	}
}
