/*
 * Block styles and pattern parts that theme.json cannot express. Presets only.
 */

/*
 * ---- Card: hover shadow (colours, border and radius come from the variation
 * in styles/blocks/card.json).
 */
.wp-block-group.is-style-card {
	transition: box-shadow 0.2s, border-color 0.2s;
}

.wp-block-group.is-style-card:hover {
	box-shadow: var(--wp--preset--shadow--soft);
}

/* ---- Badge (core/post-terms) */
.wp-block-post-terms.is-style-badge {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wp-block-post-terms.is-style-badge .wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms.is-style-badge a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--soil);
	text-decoration: none;
}

.wp-block-post-terms.is-style-badge a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentcolor;
}

.wp-block-post-terms.is-style-badge a[href*="/platform/shopify"] {
	background: var(--wp--preset--color--moss-tint);
	color: var(--wp--preset--color--moss);
}

/*
 * ---- Tabs (core/buttons): links to archives that read as tabs. Mark the
 * current one with aria-current or .is-current.
 */
.wp-block-buttons.is-style-tabs {
	gap: 4px;
	border-bottom: 1px solid var(--wp--preset--color--stone);
}

.wp-block-buttons.is-style-tabs .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 16px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	text-decoration: none;
}

.wp-block-buttons.is-style-tabs .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--moss);
}

.wp-block-buttons.is-style-tabs .wp-block-button__link[aria-current="page"],
.wp-block-buttons.is-style-tabs .is-current .wp-block-button__link {
	border-bottom-color: var(--wp--preset--color--moss);
	color: var(--wp--preset--color--moss);
}

/* ---- Small parts used by the patterns */
.gm-eyebrow {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gm-eyebrow-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	min-height: 28px;
	margin: 0;
	padding: 2px 12px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--moss-tint);
	color: var(--wp--preset--color--moss);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.gm-eyebrow-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentcolor;
}

.gm-link-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--moss);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.gm-link-button .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--soil);
}

.gm-link-button .wp-block-button__link::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentcolor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gm-tag-placeholder {
	display: inline-flex;
	align-items: center;
	height: 24px;
	margin: 0;
	padding: 0 8px;
	border: 1px dashed var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--x-small);
}

.gm-tag-flagship {
	display: inline-flex;
	align-items: center;
	height: 24px;
	margin: 0;
	padding: 0 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--marigold);
	color: var(--wp--preset--color--on-marigold);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.gm-tag-placeholder:empty,
.gm-tag-flagship:empty,
.gm-rating:empty,
.gm-price:empty {
	display: none;
}

.gm-rating,
.gm-star-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 500;
}

.gm-rating::before,
.gm-star-note::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--wp--preset--color--marigold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Sections */
.gm-hero__columns,
.gm-split {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	align-items: center;
}

.gm-hero__shot img {
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Browser frame for a product's own screenshot or video (plugin markup). */
.gm-shot {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}

.gm-shot__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border-bottom: 1px solid var(--wp--preset--color--stone);
	background: var(--wp--preset--color--sand);
}

.gm-shot__bar span {
	width: 10px;
	height: 10px;
	border: 1.5px solid var(--wp--preset--color--field);
	border-radius: 999px;
}

.gm-shot__media {
	display: block;
	width: 100%;
	height: auto;
}

.gm-trust,
.gm-band {
	border-top: 1px solid var(--wp--preset--color--stone);
	border-bottom: 1px solid var(--wp--preset--color--stone);
}

.gm-trust__row {
	gap: var(--wp--preset--spacing--40);
}

.gm-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 40px;
	border-radius: var(--wp--custom--radius--button);
}

.gm-logo-placeholder p {
	margin: 0;
}

.gm-section-head {
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.gm-top-rule {
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--stone);
}

.gm-step {
	padding-top: var(--wp--preset--spacing--30);
	border-top: 2px solid var(--wp--preset--color--stone);
}

.gm-step--first {
	border-top-color: var(--wp--preset--color--moss);
}

.gm-step .wp-block-heading {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 600;
}

.gm-step-number {
	margin: 0;
	color: var(--wp--preset--color--moss);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--small);
}

.gm-testimonial.is-style-card {
	border-style: dashed;
}

.gm-testimonial.is-style-card {
	box-sizing: border-box;
	height: 100%;
}

.gm-testimonial blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.gm-testimonial cite {
	display: block;
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

.gm-cta-band .gm-link-button .wp-block-button__link {
	color: var(--wp--preset--color--on-moss);
}

.gm-cta-band .gm-link-button .wp-block-button__link:hover {
	color: var(--wp--preset--color--moss-tint);
}

/* ---- Product and post cards */
.gm-product-grid .wp-block-post-template,
.gm-post-grid .wp-block-post-template {
	gap: var(--wp--preset--spacing--30);
}

.gm-product-grid .wp-block-post-template > li,
.gm-post-grid .wp-block-post-template > li {
	display: flex;
}

.gm-product-card,
.gm-post-card {
	position: relative;
	width: 100%;
	gap: 20px;
}

.gm-product-card:hover {
	border-color: var(--wp--preset--color--moss);
}

.gm-product-card:has(a:focus-visible),
.gm-post-card:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 2px;
}

/*
 * The title link covers the whole card; the card stays one tab stop plus the
 * read-more link.
 */
.gm-product-card .wp-block-post-title a::after,
.gm-post-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gm-product-card .wp-block-post-title a,
.gm-post-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.gm-product-card .wp-block-post-title,
.gm-product-card .wp-block-post-excerpt,
.gm-post-card .wp-block-post-title,
.gm-post-card .wp-block-post-excerpt {
	margin: 0;
}

.gm-product-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--moss-tint);
	color: var(--wp--preset--color--moss);
}

.gm-product-icon .gm-product-icon__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gm-card-meta {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--wp--preset--color--stone);
}

.gm-read-more {
	position: relative;
	z-index: 1;
	margin: 0;
}

.gm-read-more a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--moss);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.gm-read-more a:hover {
	color: var(--wp--preset--color--soil);
}

.wp-block-group.gm-post-card.is-style-card {
	padding: 0;
	overflow: hidden;
	gap: 0;
}

.gm-post-card .wp-block-post-featured-image {
	margin: 0;
}

.gm-post-card__body {
	padding: 24px 24px 28px;
}

.gm-post-meta {
	gap: 0 8px;
}

.gm-post-meta > * + *::before {
	content: "·";
	margin-inline-end: 8px;
}

.gm-post-meta a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.gm-post-meta a:hover {
	color: var(--wp--preset--color--moss);
	text-decoration: underline;
}

.gm-post-meta p,
.gm-post-meta div {
	margin: 0;
}

/* Grids go 3 -> 2 -> 1. */
@media (max-width: 959px) {

	.gm-product-grid .wp-block-post-template.wp-block-post-template.is-layout-grid,
	.gm-post-grid .wp-block-post-template.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {

	.gm-product-grid .wp-block-post-template.wp-block-post-template.is-layout-grid,
	.gm-post-grid .wp-block-post-template.wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Page patterns: About, Contact, Support */
.gm-split--top {
	align-items: flex-start;
}

.gm-icon-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--moss-tint);
}

.gm-icon-tile svg {
	display: block;
}

.gm-chips {
	gap: 8px;
}

.gm-chip {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--button);
}

.gm-portrait img {
	width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
}

.gm-grid-4.gm-grid-4 {
	gap: var(--wp--preset--spacing--30);
}

.gm-grid-3.gm-grid-3 {
	gap: var(--wp--preset--spacing--30);
}

@media (max-width: 959px) {

	.gm-grid-4.gm-grid-4,
	.gm-grid-3.gm-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {

	.gm-grid-4.gm-grid-4,
	.gm-grid-3.gm-grid-3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Timeline: Columns + Separator, with a dot where each year meets the rule. */
.gm-milestones {
	gap: var(--wp--preset--spacing--30);
}

.gm-milestone {
	position: relative;
	gap: 8px;
}

.gm-milestone .gm-milestone__rule {
	width: 100%;
	max-width: none;
	margin: 0 0 16px;
	border: 0;
	border-top: 2px solid var(--wp--preset--color--stone);
	opacity: 1;
}

.gm-milestone::before {
	content: "";
	position: absolute;
	top: -4px;
	inset-inline-start: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--moss);
}

.gm-milestone--last::before {
	background: var(--wp--preset--color--marigold);
}

.gm-milestone p {
	margin: 0;
}

.gm-milestone__title {
	font-weight: 600;
}

/* Contact */
.gm-form-placeholder {
	padding: var(--wp--preset--spacing--30);
}

.gm-form-placeholder.is-style-card {
	padding: var(--wp--preset--spacing--40);
	border-style: dashed;
}

.gm-mono {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
}

.gm-details {
	gap: 0;
}

.gm-detail {
	gap: 16px;
	padding: 20px 0;
}

.gm-detail:first-child {
	padding-top: 0;
}

.gm-detail + .gm-detail {
	border-top: 1px solid var(--wp--preset--color--stone);
}

.gm-detail p {
	margin: 0;
}

.gm-detail .wp-block-group {
	gap: 2px;
}

.gm-detail__value a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Support */
.gm-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	margin: 0;
}

.gm-crumbs a,
.gm-crumbs span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.gm-crumbs a + a::before,
.gm-crumbs a + span::before {
	content: "/";
	margin-inline-end: 8px;
	color: var(--wp--preset--color--muted);
}

.gm-option-card {
	position: relative;
	gap: 16px;
}

.gm-option-card--featured.is-style-card {
	border: 2px solid var(--wp--preset--color--moss);
}

.gm-option-card .wp-block-heading,
.gm-option-card p {
	margin: 0;
}

.gm-option-card__cta a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 500;
}

.gm-option-card__cta a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gm-promise {
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
	gap: var(--wp--preset--spacing--30);
}

.gm-promise__grid {
	margin-top: var(--wp--preset--spacing--30);
}

.gm-promise__grid.gm-promise__grid.gm-promise__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 599px) {

	.gm-promise__grid.gm-promise__grid.gm-promise__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.gm-promise__cell {
	gap: 2px;
	padding-left: 24px;
	border-left: 1px solid var(--wp--preset--color--stone);
}

.gm-promise__cell p {
	margin: 0;
}

.gm-promise__big {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.gm-faq-nav {
	position: sticky;
	top: var(--wp--preset--spacing--30);
	gap: var(--wp--preset--spacing--10);
}

.gm-faq-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}

.gm-faq-link a {
	display: inline-flex;
	align-items: center;
	flex: 1;
	min-height: 44px;
	color: var(--wp--preset--color--soil);
	text-decoration: none;
}

.gm-faq-link a:hover {
	color: var(--wp--preset--color--moss);
}

.gm-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
}

.gm-faq-group {
	gap: 0;
	scroll-margin-top: var(--wp--preset--spacing--40);
}

.gm-faq-group__head {
	gap: 12px;
	margin-bottom: var(--wp--preset--spacing--10);
}

.gm-faq-group__head .wp-block-heading {
	margin: 0;
}

.gm-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	margin: 0;
	padding: 0 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--soil);
	font-weight: 500;
}

.gm-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentcolor;
}

.gm-badge--shopify {
	background: var(--wp--preset--color--moss-tint);
	color: var(--wp--preset--color--moss);
}

/*
 * FAQ: Details blocks. The whole row is the target; a chevron turns when open.
 */
.wp-block-details {
	padding-top: 0;
	padding-bottom: 0;
	margin-block-start: 0;
	border-bottom: 1px solid var(--wp--preset--color--stone);
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	padding: 20px 0;
	cursor: pointer;
	font-weight: 500;
}

.wp-block-details summary::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s;
}

.wp-block-details[open] summary::after {
	transform: rotate(180deg);
}

.wp-block-details[open] {
	padding-bottom: 20px;
}

.wp-block-details p {
	margin: 0;
}

.wp-block-details > :not(summary) ~ * {
	margin-block-start: var(--wp--preset--spacing--20);
}

/*
 * ---- Reversed columns: alternate feature rows. Stacked columns keep their
 * order.
 */
@media (min-width: 782px) {

	.wp-block-columns.is-style-reversed {
		flex-direction: row-reverse;
	}
}

/* ---- Sections that live in product content */
.gm-section {
	padding-top: var(--wp--preset--spacing--80);
}

.gm-section:last-child {
	padding-bottom: 0;
}

.gm-section .wp-block-heading {
	margin-top: 0;
}

.gm-features .gm-split {
	margin-top: var(--wp--preset--spacing--50);
	gap: var(--wp--preset--spacing--50);
}

.gm-feature-text {
	gap: var(--wp--preset--spacing--20);
}

.gm-feature-text .wp-block-heading,
.gm-feature-text p {
	margin: 0;
}

.gm-feature-text ul {
	margin: 0;
	padding-left: 18px;
}

.gm-shot.gm-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--sand);
	text-align: center;
}

.gm-shot p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--x-small);
}

.gm-benefit {
	gap: var(--wp--preset--spacing--10);
}

.gm-benefit .wp-block-heading,
.gm-benefit p {
	margin: 0;
}

/* Plan cards */
.gm-plan {
	gap: var(--wp--preset--spacing--20);
}

.gm-plan.is-style-card {
	padding: var(--wp--preset--spacing--40);
}

.gm-plan--featured.is-style-card {
	border: 2px solid var(--wp--preset--color--moss);
	box-shadow: var(--wp--preset--shadow--soft);
}

.gm-plan p,
.gm-plan ul {
	margin: 0;
}

.gm-plan ul {
	padding-left: 18px;
}

.gm-plan__name {
	font-weight: 600;
}

.gm-plan__price {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--h3);
	line-height: 1.1;
}

.gm-plan__price span {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
}

.gm-plan__billing {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.gm-plan__was {
	margin-block-end: 0;
	color: var(--wp--preset--color--muted);
	text-decoration: line-through;
}

/* The unit stays unstruck; an inline-block stops the line-through reaching it. */
.gm-plan__was span {
	display: inline-block;
}

.gm-plan__was:not(:has(> span:not(:empty))),
.gm-plan__promo:empty,
.gm-plan__then:empty,
.gm-plan__billing:empty {
	display: none;
}

.gm-soon-badge {
	margin: 0;
	padding: 2px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--moss-tint);
	color: var(--wp--preset--color--moss);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.gm-plan__cta-soon {
	margin-top: auto;
	padding: 12px 16px;
	border: 1px dashed var(--wp--preset--color--field);
	border-radius: var(--wp--custom--radius--button);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	text-align: center;
}

.gm-plan__trial {
	color: var(--wp--preset--color--moss);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.gm-plan__promo {
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--soil);
	color: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-wrap: balance;
}

.gm-plan__then {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.gm-plan__billing .gm-tag-placeholder {
	margin-inline-start: 4px;
}

.gm-plan .wp-block-buttons {
	margin-top: auto;
}

.gm-plan .wp-block-button__link {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--moss);
	background: transparent;
	color: var(--wp--preset--color--moss);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--moss-tint);
	color: var(--wp--preset--color--moss);
}

/* ---- Product hero */
.gm-product-hero .gm-crumbs {
	margin-bottom: var(--wp--preset--spacing--30);
}

.gm-crumbs > * {
	margin: 0;
}

.gm-crumbs > * + *::before {
	content: "/";
	margin-inline-end: 8px;
	color: var(--wp--preset--color--muted);
}

.gm-crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.gm-product-id {
	gap: var(--wp--preset--spacing--20);
}

.gm-product-id > .wp-block-group {
	gap: 12px;
}

.gm-product-icon--lg {
	width: 64px;
	height: 64px;
}

.gm-product-hero .wp-block-post-title {
	margin: 0;
}

.gm-facts.is-style-card {
	gap: 0;
	padding: 8px var(--wp--preset--spacing--30);
}

.gm-fact {
	gap: 16px;
	padding: 14px 0;
}

.gm-fact + .gm-fact {
	border-top: 1px solid var(--wp--preset--color--stone);
}

.gm-fact p {
	margin: 0;
}

.gm-fact__value {
	font-weight: 500;
	text-align: end;
}

.gm-fact:has(.gm-fact__value:empty) {
	display: none;
}

.gm-actions {
	gap: var(--wp--preset--spacing--20);
}

.gm-actions p {
	margin: 0;
}

/*
 * A button whose URL binding returned nothing has no href: hide it rather than
 * show a dead link.
 */
.gm-actions .wp-block-button:has(.wp-block-button__link:not([href])),
.gm-cta-band .wp-block-button:has(.wp-block-button__link:not([href])) {
	display: none;
}

.gm-product-shot {
	padding-top: var(--wp--preset--spacing--20);
}

/* ---- Resources, related */
.gm-resource.is-style-card {
	position: relative;
	padding: 20px;
	gap: 16px;
}

.gm-resource p {
	margin: 0;
}

.gm-resource .wp-block-group.wp-block-group {
	gap: 4px;
}

.gm-resource__title {
	font-weight: 600;
}

.gm-resource > .gm-resource__arrow {
	display: flex;
	flex: none;
	margin-inline-start: auto;
}

.gm-resource__arrow svg {
	display: block;
}

.gm-resource__title a {
	color: var(--wp--preset--color--soil);
	text-decoration: none;
}

.gm-resource__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gm-resource__title a:hover {
	color: var(--wp--preset--color--moss);
}

/* ---- Products archive */

.gm-empty-state {
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--40);
	border: 1px dashed var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
}

.gm-empty-state .wp-block-heading,
.gm-empty-state p {
	margin: 0;
}

.gm-soon.is-style-card {
	padding: var(--wp--preset--spacing--40);
	border-style: dashed;
}

.gm-soon .wp-block-heading,
.gm-soon p {
	margin: 0;
}

.gm-card-top {
	gap: 12px;
}

.gm-custom .wp-block-heading,
.gm-custom p {
	margin: 0;
}

/* ---- Pricing */

.gm-pricing-product {
	scroll-margin-top: var(--wp--preset--spacing--40);
}

.gm-pricing-product .wp-block-heading {
	margin: 0;
}

.gm-pricing-note {
	box-sizing: border-box;
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--40);
	padding: 16px 20px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--moss-tint);
}

.gm-popular {
	display: inline-flex;
	align-items: center;
	height: 24px;
	margin: 0;
	padding: 0 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--marigold);
	color: var(--wp--preset--color--on-marigold);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.gm-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

.gm-table-scroll .wp-block-table {
	margin: 0;
}

.gm-table-scroll table {
	min-width: 640px;
	border-collapse: collapse;
}

.gm-table-scroll th,
.gm-table-scroll td {
	padding: 12px 16px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--stone);
	text-align: start;
}

.gm-table-scroll thead {
	border-bottom: 0;
}

.gm-table-scroll thead th {
	border-top: 0;
	background: var(--wp--preset--color--sand);
}

.gm-table-scroll tbody tr:first-child td,
.gm-table-scroll tbody tr:first-child th {
	border-top: 0;
}

.gm-reassure .wp-block-heading,
.gm-reassure p {
	margin: 0;
}

.gm-plan .gm-tag-placeholder {
	align-self: flex-start;
}

/*
 * ---- Target size: pills and short links keep their look but get a 44px hit
 * area.
 */
.wp-block-post-terms.is-style-badge a,
.gm-post-meta a,
.gm-popular-item .wp-block-post-terms a,
.gm-result__head a {
	position: relative;
}

.wp-block-post-terms.is-style-badge a::after,
.gm-post-meta a::after,
.gm-popular-item .wp-block-post-terms a::after,
.gm-result__head a::after {
	content: "";
	position: absolute;
	inset: -16px -4px;
}

a.gm-read-more,
.gm-read-more a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--moss);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

a.gm-read-more:hover,
.gm-read-more a:hover {
	color: var(--wp--preset--color--soil);
}

.gm-crumbs a,
.gm-crumbs span {
	min-width: 44px;
}

/* ---- Services page */
.gm-grid-2.gm-grid-2 {
	gap: var(--wp--preset--spacing--30);
}

@media (max-width: 781px) {

	.gm-grid-2.gm-grid-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.gm-svc-lede {
	max-width: 640px;
}

.gm-svc-list {
	margin: 0;
	padding-left: 18px;
	color: var(--wp--preset--color--soil);
}

.gm-svc-list li + li {
	margin-top: 4px;
}

.gm-svc-proof__row.gm-svc-proof__row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
}

@media (max-width: 959px) {

	.gm-svc-proof__row.gm-svc-proof__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {

	.gm-svc-proof__row.gm-svc-proof__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

.gm-svc-proof__item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.gm-svc-proof__item strong {
	color: var(--wp--preset--color--soil);
	font-weight: 600;
}

.gm-svc-proof__item::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--moss);
}

.gm-svc-steps {
	align-items: stretch;
}

.gm-shot.gm-shot--card {
	min-height: 160px;
}

.gm-case {
	height: 100%;
	box-sizing: border-box;
}

/* ---- Front-page statement hero */
.gm-hero-statement.gm-hero-statement {
	padding-top: clamp(80px, 9.45vw, 136px);
	padding-bottom: clamp(72px, 8.33vw, 120px);
	text-align: center;
}

.gm-hero-statement__title.gm-hero-statement__title {
	max-width: 960px;
	margin-inline: auto;
	font-size: clamp(2.75rem, 6.1vw, 5.5rem) !important; /* beats the preset class */
	font-variation-settings: "SOFT" 100, "opsz" 144;
	text-wrap: balance;
}

.gm-hero-statement__lede.gm-hero-statement__lede {
	max-width: 620px;
	margin-inline: auto;
	font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.gm-hero-statement__actions.gm-hero-statement__actions {
	justify-content: center;
	gap: 16px 28px;
	padding-top: var(--wp--preset--spacing--10);
}

.gm-hero-statement .wp-block-button:not(.gm-link-button) .wp-block-button__link {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
}

/* The hero sits on the Surface band, closed by a rule, like the other bands. */
.gm-hero-statement.gm-hero-statement {
	border-bottom: 1px solid var(--wp--preset--color--stone);
}

/*
 * ---- Feature groups on Shopify product pages (pattern feature-group).
 * Sand bands switch the frame and icon tiles to Paper.
 */
.gm-feature-group.is-layout-constrained > * + * {
	margin-block-start: 72px;
}

.gm-feature__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--moss);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 13px;
}

.gm-feature__row {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	margin: 0;
}

.gm-feature__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.gm-feature__text > * {
	margin: 0;
}

.gm-feature__title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 32px;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 40px;
	text-wrap: balance;
}

.gm-feature__body {
	color: var(--wp--preset--color--muted);
	font-size: 17px;
	line-height: 28px;
	text-wrap: pretty;
}

.gm-feature__points {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 24px;
}

.gm-feature__points li {
	position: relative;
	padding-left: 28px;
}

.gm-feature__points li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--moss);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gm-feature__frame {
	box-sizing: border-box;
	padding: clamp(12px, 1.6vw, 20px);
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--soft);
}

.gm-feature__img {
	margin: 0;
}

.gm-feature__img img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
}

.gm-feature__caption {
	margin: 12px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	line-height: 20px;
}

.gm-feature__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	margin: 0;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 8px;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 13px;
}

.gm-feature__minis {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	margin: 0;
	padding-top: 40px;
	border-top: 1px solid var(--wp--preset--color--stone);
}

.gm-feature__minis > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.gm-feature__minis > .wp-block-column > * {
	margin: 0;
}

.gm-feature__icon,
.gm-benefit__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--sand);
}

.gm-feature__icon svg,
.gm-benefit__icon svg {
	display: block;
}

.gm-feature__mini-title {
	font-size: 17px;
	font-weight: 600;
	line-height: 24px;
}

.gm-feature__mini-text {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	line-height: 24px;
	text-wrap: pretty;
}

.has-sand-background-color .gm-feature__frame,
.has-sand-background-color .gm-feature__icon,
.has-sand-background-color .gm-benefit__icon {
	background: var(--wp--preset--color--paper);
}

/* Two small features per row on tablet, four on desktop; one when stacked. */
@media (min-width: 782px) {

	.wp-block-columns.gm-feature__minis {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.gm-feature__minis:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex: 1 1 calc(50% - 16px);
	}
}

@media (min-width: 1024px) {

	.wp-block-columns.gm-feature__minis:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex: 1 1 calc(25% - 24px);
	}
}

.gm-section.gm-features--head {
	padding-bottom: 0;
}

.gm-features--head .gm-features__rule {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin-block: var(--wp--preset--spacing--50) 0;
	margin-inline: auto;
}

.gm-features--head + .gm-feature-group {
	margin-block-start: 0;
}

/* Monthly-only pricing: larger price, plan chip in the lead line. */
.gm-plans--bold .gm-plan__price {
	font-size: clamp(36px, 3.33vw, 48px);
	letter-spacing: -0.02em;
}

.gm-plans--bold .gm-plan__price span {
	letter-spacing: 0;
}

/* Four plans leave less room per card: a smaller price, and the unit stays on the line. */
.gm-plans--bold .gm-grid-4 .gm-plan__price {
	font-size: clamp(28px, 2.3vw, 36px);
}

.gm-plans--bold .gm-plan__price span {
	white-space: nowrap;
}

.gm-plan__lead {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gm-plan__chip {
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--wp--preset--color--moss-tint);
	color: var(--wp--preset--color--moss);
	font-weight: 600;
}

.gm-plans--bold {
	--gm-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.gm-plans--bold .gm-plan ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.gm-plans--bold .gm-plan li {
	position: relative;
	padding-left: 28px;
}

.gm-plans--bold .gm-plan li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--moss);
	-webkit-mask: var(--gm-check) center / contain no-repeat;
	mask: var(--gm-check) center / contain no-repeat;
}

.gm-plan__note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.gm-plan__soon {
	padding: 2px 8px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--marigold-tint);
	color: var(--wp--preset--color--soil);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.gm-pricing-product .gm-compare-intro {
	margin-block: var(--wp--preset--spacing--10) 0;
}

.gm-compare-intro + .gm-table-scroll {
	margin-block-start: var(--wp--preset--spacing--30);
}

.gm-plans--bold .gm-table-scroll thead th {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--stone);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.gm-plans--bold .gm-compare th:not(:first-child),
.gm-plans--bold .gm-compare td:not(:first-child) {
	text-align: center;
}

.gm-compare td[colspan] {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.06em;
	text-align: start;
	text-transform: uppercase;
}

.gm-compare td [aria-hidden="true"] {
	color: var(--wp--preset--color--moss);
	font-weight: 700;
}

/* A named sale on the Yearly option reads as dark, like the sale line on the cards. */
.gm-pill--sale.gm-pill--sale {
	background: var(--wp--preset--color--soil);
	color: var(--wp--preset--color--paper);
}

/* Promotion bar above the header. Colours come from the plugin's settings page as two custom properties. */
.gm-promo-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	padding: 6px clamp(20px, 4vw, 32px);
	background: var(--gm-promo-bg, var(--wp--preset--color--soil));
	color: var(--gm-promo-fg, var(--wp--preset--color--paper));
	font-size: var(--wp--preset--font-size--small);
}

.gm-promo-bar__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 0;
	column-gap: 0;
}

.gm-promo-bar__item {
	opacity: 0.7;
}

.gm-promo-bar__item--desc {
	opacity: 1;
	font-weight: 500;
}

/* A thin divider between items. */
.gm-promo-bar__item + .gm-promo-bar__item::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 14px;
	margin-inline: 16px;
	background: currentcolor;
	opacity: 0.4;
	vertical-align: middle;
}

.gm-promo-bar__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 18px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--gm-promo-fg, var(--wp--preset--color--paper));
	color: var(--gm-promo-on-fg, var(--wp--preset--color--soil));
	font-weight: 500;
	text-decoration: none;
}

/* The button looks 36px tall; this keeps the tap area at 44px. */
.gm-promo-bar__button::after {
	content: "";
	position: absolute;
	inset: -4px 0;
}

.gm-promo-bar__button:hover {
	opacity: 0.9;
}

.gm-promo-bar a:focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 3px;
}

@media (max-width: 599px) {

	.gm-promo-bar__item + .gm-promo-bar__item::before {
		margin-inline: 10px;
	}
}

/* Shopify bag (assets/images/shopify.svg) after the label on buttons that go to the Shopify App Store, or carry the gm-btn-shopify class. */
.wp-block-button__link[href*="apps.shopify.com"],
.gm-btn-shopify .wp-block-button__link,
.gm-sticky-bar__button[href*="apps.shopify.com"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
}

.wp-block-button__link[href*="apps.shopify.com"]::after,
.gm-btn-shopify .wp-block-button__link::after,
.gm-sticky-bar__button[href*="apps.shopify.com"]::after {
	content: "";
	flex: none;
	width: 1.45em;
	height: 1.45em;
	background: currentcolor;
	-webkit-mask: url("../images/shopify.svg") center / contain no-repeat;
	mask: url("../images/shopify.svg") center / contain no-repeat;
}
