/* Product pages (boats and motors, woocommerce/ templates): WordPress additions to the design's boat-single.css.
   Loaded on product pages only, after the design CSS and the boats block's block.css (which styles the Gravity Forms
   fields like the design's icon forms, .mm-gf--price). */

/* ---------- Gallery: one photo needs no thumbnails or arrows ---------- */
.mm-gallery--single .cs-gallery-stack__thumbs {
	display: none;
}

/* ---------- Buy box ---------- */
/* "Call for price" in the price card */
.cs-bsingle .cs-buybox__price strong.mm-buybox__call {
	font-size: 26px;
	color: var(--primary);
}
.mm-product-about > p:last-child {
	margin-bottom: 0;
}

/* ---------- Buy box quote form: the design's compact icon form (.cs-quote-box.cs-form--icons) ----------
   42px fields, 14px text, the icon 16px in with a hairline divider at 44px, a two line message box, 12px rhythm,
   the button at its own width (full width in the popup and on small phones). Also in #quoteModal on phones. */
.cs-quote-box .mm-gf--quote .gform_wrapper .gform_fields {
	row-gap: 12px;
	column-gap: 16px;
}
.cs-quote-box .mm-gf--quote .gfield input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="url"]) {
	height: 42px;
	padding: 0 16px 0 56px;
	font-size: 14px;
	border-color: var(--border);
}
.cs-quote-box .mm-gf.mm-gf--quote .gform-theme--foundation .gfield textarea.textarea,
.cs-quote-box .mm-gf--quote .gfield textarea {
	height: 66px;
	min-height: 66px;
	min-block-size: 66px;
	padding: 10px 16px 10px 56px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--body);
	border-color: var(--border);
}
.cs-quote-box .mm-gf--quote .ginput_container > .mm-gf-icon {
	left: 16px;
	font-size: 15px;
}
.cs-quote-box .mm-gf--quote .ginput_container:has(> .mm-gf-icon)::before {
	top: 11px;
	left: 44px;
}
.cs-quote-box .mm-gf--quote .ginput_container_textarea > .mm-gf-icon {
	top: 12px;
}
.cs-quote-box .mm-gf--quote .ginput_container_textarea:has(> .mm-gf-icon)::before {
	top: 10px;
}
.cs-quote-box .mm-gf--quote .ginput_container:has(> .mm-gf-icon) :is(input, textarea) {
	padding-left: 56px;
}
.cs-quote-box .mm-gf--quote .gform_wrapper .gform_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 12px 0 0;
}
.cs-quote-box .mm-gf--quote .gform_footer .cs-btn,
.cs-quote-box .mm-gf--quote .gform_footer :is(button, input)[type="submit"] {
	display: inline-flex;
	width: auto;
}
.cs-modal .cs-quote-box .mm-gf--quote .gform_footer .cs-btn,
.cs-modal .cs-quote-box .mm-gf--quote .gform_footer :is(button, input)[type="submit"] {
	flex: 1 1 0;
	width: 100%;
	min-width: 0;
}
@media (max-width: 585px) {
	.cs-quote-box .mm-gf--quote .gform_footer .cs-btn,
	.cs-quote-box .mm-gf--quote .gform_footer :is(button, input)[type="submit"] {
		width: 100%;
	}
}

/* What is included / Added extras: one list on a row grid, so the items line up across the columns */
.cs-panel .cs-list.cs-list--cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px 24px;
}
@media (min-width: 768px) {
	.cs-panel .cs-list.cs-list--cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cs-panel .cs-list.cs-list--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.cs-panel .cs-spec-note {
		margin-top: 32px;
	}
}

/* Gallery arrows on hover: the modern stack's glass background outranked the design's red hover, leaving a white icon on white */
.cs-gallery-stack--modern .cs-gallery-stack__arrow:hover {
	background: var(--primary);
	color: var(--white);
}

/* Specifications: a spec sheet in two columns. Each row has the label in plain gray on the left and the value in bold
   next to it, on a fixed label column so the values line up */
.cs-bsingle .cs-spec-table {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 36px;
}
.cs-bsingle .cs-spec-table__row,
.cs-bsingle .cs-spec-table__row:nth-child(odd) {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
	align-items: baseline;
	gap: 16px;
	padding: 13px 0;
	border: 0;
	border-bottom: 1px solid var(--border-light);
	border-radius: 0;
	background: none;
}
.cs-bsingle .cs-spec-table__row .k {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #64748b;
}
.cs-bsingle .cs-spec-table__row .v {
	min-width: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	color: var(--heading);
	overflow-wrap: anywhere;
}
@media (max-width: 575px) {
	.cs-bsingle .cs-spec-table {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* What is included / Added extras on the grid: no extra top margin on later items (it pushed every row but the first down), and quiet gray checks */
.cs-bsingle .cs-panel .cs-list--cols li + li {
	margin-top: 0;
}
.cs-panel .cs-list--cols li i {
	background: var(--border-light);
	color: var(--muted);
	box-shadow: none;
}
/* Buy box quick facts: the cells share the strip whatever their number (the design assumed four) */
.cs-buybox__specs {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
}
/* Specifications and Colors side by side: both panels take the height of the taller one */
.mm-specs-row > [class*="col-"] > .cs-panel {
	height: 100%;
}

/* Gallery thumbnails at full strength: the ring marks the current photo, the others aren't faded */
.cs-gallery-stack__thumb img {
	opacity: 1;
}

/* Boat page panels: lists (What is included, Added extras) at 15px */
.cs-bsingle .cs-panel .cs-list {
	margin: 0;
	font-size: 15px;
}

/* Motors: product cut-outs, shown whole on a padded canvas (main photo and thumbnails) */
.cs-bsingle__gallery--product .cs-gallery-stack__main img,
.cs-bsingle__gallery--product .cs-gallery-stack__thumb img {
	object-fit: contain;
}
.cs-bsingle__gallery--product .cs-gallery-stack__main img {
	padding: 30px;
}
.cs-bsingle__gallery--product .cs-gallery-stack__thumb img {
	padding: 8px;
}
