/* Product page buy box extras. Large, plain text for older eyes. */

/* What to do now, beside the photo, with a link down to the full calendar. */
.gl-sow-status {
	background-color: #eef6f4;
	border-left: 6px solid var(--go--color--primary, #165043);
	border-radius: 0 6px 6px 0;
	color: #1f2a24;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 1.25rem;
	padding: 0.6rem 0.9rem;
	text-align: left;
}

.gl-sow-status a {
	font-size: 1rem;
	font-weight: 400;
	white-space: nowrap;
}

/* A long introduction shows three lines until "Read more", which sits right under them. */
.single-product .summary .gl-intro--clamped {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	margin-bottom: 0.35rem;
	overflow: hidden;
}

.single-product .summary button.gl-intro__more {
	background: none;
	border: 0;
	color: var(--go--color--primary, #165043);
	cursor: pointer;
	display: block;
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	margin: 0;
	min-height: 0;
	padding: 0;
	text-decoration: underline;
	text-transform: none;
	text-underline-offset: 0.2em;
}

.single-product .summary .gl-intro__more + p {
	margin-top: 0.75rem;
}

/* The botanical name just under the product name: the Latin words in italics, the variety upright. */
.single-product .summary .gl-latin-name {
	color: #4b5a53;
	font-size: 1.125rem;
	line-height: 1.4;
	margin: -0.35rem 0 1rem;
}

/* Quantity prices under the price: "2 or more: £4.00 each". */
.gl-multibuy {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: -0.5rem 0 1rem;
	padding: 0;
	text-align: left;
}

.gl-multibuy li {
	background-color: #eef6f4;
	border-radius: 6px;
	font-size: 0.95rem;
	margin: 0;
	padding: 0.3rem 0.65rem;
}

/* The multi-buy offer's tag: "Buy 10 packets, get 1 free". */
.single-product .summary .gl-offer-tag {
	background-color: #b5591c;
	border-radius: 4px;
	color: #fff;
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 1rem;
	padding: 0.3rem 0.65rem;
}

.single-product .summary .gl-offer-nudge {
	font-size: 0.95rem;
	font-weight: 600;
	margin: -0.5rem 0 1rem;
}

/* Highlight tags under the introduction: "Loved by pollinators", "Organic". */
.gl-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	text-align: left;
}

.gl-highlights li {
	margin: 0;
}

.single-product .summary .gl-highlights a {
	background-color: #fff;
	border: 1px solid #a9c8bf;
	border-radius: 999px;
	color: var(--go--color--primary, #165043);
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	padding: 0.3rem 0.8rem;
	text-decoration: none;
}

.single-product .summary .gl-highlights a:hover,
.single-product .summary .gl-highlights a:focus-visible {
	background-color: var(--go--color--primary, #165043);
	border-color: var(--go--color--primary, #165043);
	color: #fff;
}

/* "Out of stock: notify me" on sold-out products: a soft panel, the email box and button side by
 * side, then a thank-you in place of the form. */
.gl-stock-alert {
	background-color: #f3f6f4;
	border-radius: 8px;
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.2rem 1.2rem;
	text-align: left;
}

.gl-stock-alert[hidden] {
	display: none;
}

.gl-stock-alert__intro {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
	margin: 0 0 0.9rem;
}

.gl-stock-alert__icon {
	background-color: #fff;
	border-radius: 50%;
	box-sizing: content-box;
	color: var(--go--color--primary, #165043);
	flex: 0 0 auto;
	padding: 0.45rem;
}

.single-product .summary .gl-stock-alert__heading {
	color: #1f2a24;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.single-product .summary .gl-stock-alert__text {
	color: #3b4a43;
	font-size: 1rem;
	line-height: 1.4;
	margin: 0.15rem 0 0;
}

.gl-stock-alert__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gl-stock-alert__row input[type="email"] {
	background-color: #fff;
	flex: 1 1 13rem;
	min-width: 0;
}

.gl-stock-alert__row button {
	flex: 0 0 auto;
	min-width: 9rem;
}

.single-product .summary .gl-stock-alert__row input[type="email"],
.single-product .summary .gl-stock-alert__row button {
	box-sizing: border-box;
	height: 3.25rem;
	margin: 0;
}

.single-product .summary .gl-stock-alert__row button {
	line-height: 1;
	padding-bottom: 0;
	padding-top: 0;
}

.single-product .summary .gl-stock-alert__note {
	color: #5a6862;
	font-size: 0.9rem;
	margin: 0.55rem 0 0;
}

.gl-stock-alert__trap {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.single-product .summary .gl-stock-alert__message {
	font-weight: 600;
	margin: 0.6rem 0 0;
}

.gl-stock-alert__message:empty {
	display: none;
}

.gl-stock-alert__message[data-state="error"] {
	color: #a4262c;
}

.gl-stock-alert.is-done .gl-stock-alert__row,
.gl-stock-alert.is-done .gl-stock-alert__note {
	display: none;
}

.single-product .summary .gl-stock-alert.is-done .gl-stock-alert__message {
	background-color: #fff;
	border-left: 4px solid var(--go--color--primary, #165043);
	border-radius: 0 6px 6px 0;
	color: var(--go--color--primary, #165043);
	margin: 0;
	padding: 0.6rem 0.8rem;
}

@media (max-width: 480px) {

	.gl-stock-alert__row button {
		flex: 1 1 100%;
	}
}

/* Equipment pages: the result it gives, under the product name. */
.single-product .summary .gl-result {
	color: #3b4a43;
	font-size: 1.2rem;
	line-height: 1.4;
	margin: -0.35rem 0 1rem;
}

/* Equipment pages: awards and press beside the price, in a warm gold. */
.single-product .summary .gl-awards {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	text-align: left;
}

.single-product .summary .gl-awards li {
	align-items: center;
	background-color: #fbf6e6;
	border-radius: 6px;
	color: #5c4700;
	display: flex;
	font-size: 0.95rem;
	font-weight: 600;
	gap: 0.5rem;
	line-height: 1.35;
	margin: 0;
	padding: 0.45rem 0.7rem;
}

.single-product .summary .gl-awards svg {
	color: #a67c00;
	flex: 0 0 auto;
}

/*
 * Awards on the main photo's lower right corner: each award's official logo, or a small gold label
 * where it has none (highlights.php). They let clicks through to the photo's zoom and lightbox.
 */
.single-product .woocommerce-product-gallery__image {
	position: relative;
}

/*
 * The logos' size and spacing (the theme keeps their shape: img.gl-award-badge in shop.scss). The
 * RHS asks for its mark at least 55px wide online, with 15px clear around it and from the edge.
 */
.single-product .gl-card-awards--photo {
	--gl-award-badge-size: 4rem;
	align-items: flex-end;
	bottom: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: flex-end;
	left: 1rem;
	pointer-events: none;
	position: absolute;
	right: 1rem;
	z-index: 2;
}

/* A mark's link (to the awarding body) can be clicked; the rest lets clicks through to the photo. */
.single-product .gl-card-awards--photo a {
	line-height: 0;
	pointer-events: auto;
}

@media (max-width: 600px) {

	.single-product .gl-card-awards--photo {
		--gl-award-badge-size: 3.5rem;
	}
}

/* An award from the Awards attribute links to every product with it. */
.single-product .summary .gl-awards a {
	color: inherit;
	text-decoration-color: rgba(92, 71, 0, 0.35);
	text-underline-offset: 0.18em;
}

.single-product .summary .gl-awards a:hover,
.single-product .summary .gl-awards a:focus {
	text-decoration-color: currentColor;
}

/* Equipment pages: key features beside the price, as a ticked list. */
.single-product .summary .gl-features {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	text-align: left;
}

.single-product .summary .gl-features li {
	font-size: 1rem;
	line-height: 1.45;
	margin: 0 0 0.45rem;
	padding-left: 1.75rem;
	position: relative;
}

.single-product .summary .gl-features li::before {
	background-color: var(--go--color--primary, #165043);
	border-radius: 50%;
	content: "";
	height: 1.15rem;
	left: 0;
	position: absolute;
	top: 0.15rem;
	width: 1.15rem;
}

/* The tick, drawn inside the circle. */
.single-product .summary .gl-features li::after {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 0.5rem;
	left: 0.43rem;
	position: absolute;
	top: 0.36rem;
	transform: rotate(45deg);
	width: 0.26rem;
}

/* "Recommended by Jessie at Plot 37", with her words when she has given some, above the basket button. */
.single-product .summary .gl-recommended {
	align-items: flex-start;
	color: #1f2a24;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.6rem;
	margin: 0 0 1.25rem;
	text-align: left;
}

.gl-recommended__icon {
	color: var(--go--color--primary, #165043);
	flex: 0 0 auto;
	margin-top: 0.15rem;
}

.single-product .summary .gl-recommended__by {
	flex: 1 1 auto;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0;
}

.single-product .summary .gl-recommended__by a {
	color: var(--go--color--primary, #165043);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.single-product .summary .gl-recommended__quote {
	border-left: 3px solid #a9c8bf;
	flex: 1 1 100%;
	font-style: italic;
	margin: 0.1rem 0 0 0.3rem;
	padding: 0.1rem 0 0.1rem 0.9rem;
}

.single-product .summary .gl-recommended__quote p {
	color: #3b4a43;
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0;
}

/* Equipment pages: what's in the box and the specifications, in the details beside the description. */
.gl-equipment {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr);
}

.gl-equipment h2,
.gl-how-band h2,
.gl-use-with h2 {
	font-size: var(--go--type-scale-4, 1.75rem);
	margin: 0 0 1rem;
}

.gl-in-box {
	margin: 0;
	padding-left: 1.25rem;
}

.gl-in-box li {
	margin: 0 0 0.4rem;
}

.gl-equipment table.gl-specs {
	border: 0;
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

.gl-equipment table.gl-specs th,
.gl-equipment table.gl-specs td {
	background: none;
	border: 0;
	border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
	padding: 0.6rem 0.75rem 0.6rem 0;
	text-align: left;
	vertical-align: top;
}

.gl-equipment table.gl-specs th {
	color: #4b5a53;
	font-weight: 600;
	width: 40%;
}

/* Equipment pages: How it works, in the band where seeds show their growing calendar. */
.gl-how-band h2 {
	margin-bottom: 0.5rem;
}

.gl-how-band__intro {
	color: #3b4a43;
	font-size: 1.05rem;
	margin: 0 0 1.25rem;
	max-width: 48rem;
}

.gl-how li strong {
	display: block;
	margin: 0 0 0.2rem;
}

.gl-how {
	counter-reset: step;
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gl-how li {
	background-color: #f3f6f4;
	border-radius: 8px;
	counter-increment: step;
	line-height: 1.45;
	padding: 1rem 1rem 1rem 3.25rem;
	position: relative;
}

.gl-how li::before {
	background-color: var(--go--color--primary, #165043);
	border-radius: 50%;
	color: #fff;
	content: counter(step);
	font-weight: 700;
	height: 1.8rem;
	left: 1rem;
	line-height: 1.8;
	position: absolute;
	text-align: center;
	top: 1rem;
	width: 1.8rem;
}

/*
 * "Use it with": the product's cross-sells as small cards. Photo, name and price are rows of one
 * grid, so names and prices line up across the row whatever shape each photo is; a photo fills
 * the frame nearest its own shape (see the theme's shop grid).
 */
.gl-use-with__list {
	display: grid;
	gap: 0 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.gl-use-with__list li {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	margin: 0 0 1.5rem;
}

.gl-use-with__list a {
	color: inherit;
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	text-decoration: none;
}

.gl-use-with__list a:hover .gl-use-with__name,
.gl-use-with__list a:focus-visible .gl-use-with__name {
	text-decoration: underline;
}

.gl-use-with__list img {
	align-self: end;
	aspect-ratio: 7 / 9;
	border-radius: 8px;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.gl-use-with__list img.gl-img-square {
	aspect-ratio: 1;
}

.gl-use-with__list img.gl-img-wide {
	aspect-ratio: 4 / 3;
}

.gl-use-with__list img.gl-img-panoramic {
	aspect-ratio: 16 / 9;
}

.gl-use-with__name {
	display: block;
	margin: 0.6rem 0 0.2rem;
}

.gl-use-with__price {
	color: var(--go--color--primary, #165043);
	display: block;
	font-weight: 600;
}

@media (min-width: 600px) and (max-width: 959px) {

	/* Room for the box and the specifications side by side before they sit beside the description. */
	.gl-equipment {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 768px) {

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

	.gl-use-with__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* The season a review of seed potatoes, garlic or onion sets was for. */
.gl-review-season {
	background-color: #eef6f4;
	border-radius: 999px;
	color: var(--go--color--primary, #165043);
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.6rem;
	padding: 0.15rem 0.7rem;
}

/* Delivery reassurance under the basket button, before the introduction that follows it. */
.gl-delivery {
	color: #4b5a53;
	font-size: 1rem;
	line-height: 1.5;
	margin: 1rem 0 1.5rem;
	text-align: left;
}

/*
 * The bands under the photo and buy box (the growing calendar or How it works, and Use it with):
 * a hairline, then the same breathing space as every section below.
 */
.gl-product-band {
	border-top: 1px solid hsla(0, 0%, 0%, 0.12);
	clear: both;
	margin: 0 0 3rem;
	padding-top: 2.5rem;
	text-align: left;
}

/* The band's full width: the chart lines up with the photo and the buy box above it. */
.gl-product-band .gl-calendar {
	margin: 0;
}

.gl-product-band .gl-calendar__title {
	font-size: var(--go--type-scale-4, 1.75rem);
	margin-bottom: 1.25rem;
}

@media (max-width: 599px) {

	.gl-product-band {
		margin-bottom: 2.5rem;
		padding-top: 2rem;
	}
}
