/* Core blocks inside the UX sheet's layouts. Hand-written, not generated: these only fit WordPress's
   block markup (figure wrappers, its automatic gaps) to the sheet's composition classes. */

/* The sheet's grids and splits space their own children; WordPress's flow gap would double it */
:where(.gt-hero, .gt-values, .gt-feature, .gt-grid-3, .gt-grid-4, .gt-cta-band, .gt-split, .gt-help-cats) > * { margin-block: 0; }
:where(.gt-section, .gt-container) > :where(.gt-section__head) { margin-block: 0; }

/* Figures: no default margin; the hero photo fills its half like the sheet's absolute image */
:where(.gt-hero, .gt-feature) figure.wp-block-image { margin: 0; }
.gt-hero__media .gt-hero__img, .gt-hero__media .gt-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.gt-feature__media.wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }

/* Buttons rows keep the sheet's gaps */
.wp-block-buttons.gt-hero__ctas, .wp-block-buttons.gt-cta-band__actions { gap: var(--space-3); }

/* A plain page's own content on the text measure */
.gt-page-content > * { max-width: var(--container-text); }
.gt-page-content > .alignwide { max-width: var(--container-max); }
.gt-page-content > .alignfull { max-width: none; }

/* The proof strip's stat is a paragraph here (a span in the sheet), so it needs to beat ".gt-values__item p" */
.gt-values__item p.gt-stat { font-size: var(--step-5); color: var(--ink); }

/* Content tables in the spec style scroll sideways on phones instead of squeezing */
.wp-block-table.is-style-gt-spec { overflow-x: auto; margin-block: var(--space-6); }
.wp-block-table.is-style-gt-spec table { border: 0; }
.wp-block-table.is-style-gt-spec :where(th, td) { border-inline: 0; border-top: 0; }

/* A content page's sections: headings get room above, lists get the sheet's rhythm */
.gt-page-content > h2 { margin-top: var(--space-7); }
.gt-page-content > .gt-checklist { margin-block: var(--space-5); padding: 0; }

/* Long text inside a full-width section stays on the reading measure */
.gt-container.gt-measure > * { max-width: var(--container-text); }

/* Core's details block inside the sheet's accordion: the answer has no wrapper div here, and the
   summary gets the plus icon (the Phosphor file as a mask, so it takes the text color) */
.gt-accordion details > :not(summary) { color: var(--ink-muted); max-width: var(--measure); margin: 0 0 .75em; }
.gt-accordion details > :last-child:not(summary) { padding-bottom: .5em; }
.gt-accordion summary::after { content: ""; flex: none; width: 1.25em; height: 1.25em; background: var(--ink-muted); -webkit-mask: url(../../icons/plus.svg) center / contain no-repeat; mask: url(../../icons/plus.svg) center / contain no-repeat; transition: transform .2s; }
.gt-accordion details[open] summary::after { transform: rotate(45deg); }

/* The page hero's copy can carry breadcrumbs above the h1 */
.gt-hero__copy > .gt-crumbs { margin-bottom: var(--space-2); }

/* Diagrams and cutouts (sizing graphics, parts) show whole on the product surface instead of being cropped like photos */
.gt-feature__media.is-contain img { aspect-ratio: auto; height: auto; max-height: 32rem; object-fit: contain; background: var(--surface-product); padding: var(--space-4); }
.gt-hero__media .gt-hero__img.is-contain img { object-fit: contain; padding: 10%; background: var(--surface-product); }
.gt-measure figure.wp-block-image { margin-block: var(--space-5); }

/* A linked image (video thumbnails) fills its slot; WordPress makes the link inline-block, which collapses
   to nothing until an image without width and height attributes has loaded */
.gt-feature__media a, .gt-hero__media a { display: block; }

/* ---------- Dark media: white line art and diagrams made for dark backgrounds ----------
   Dark in the light scheme; the dark style variation needs its own value (see data-theme rule). */
.is-dark { --media-dark: var(--surface-inverse); }
[data-theme="dark"] .is-dark { --media-dark: var(--surface-raised); }
figure.is-dark { background: var(--media-dark); border-radius: var(--radius-md); }
figure.wp-block-image.is-dark img { aspect-ratio: auto; height: auto; max-height: 32rem; width: 100%; object-fit: contain; padding: var(--space-5); background: transparent; }
.gt-hero__media:has(> .is-dark) { background: var(--media-dark, var(--surface-inverse)); display: grid; place-items: center; }
.gt-hero__media figure.is-dark { border-radius: 0; height: 100%; width: 100%; display: grid; place-items: center; }
.gt-hero__media figure.is-dark img { max-height: none; height: 100%; object-fit: contain; padding: 8%; }

/* ---------- Size picker list (vehicle → size), used in the size page hero ---------- */
.gt-sizepick { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.gt-section--inverse .gt-sizepick, .gt-section--inverse .gt-sizepick a { border-color: color-mix(in srgb, var(--on-inverse) 22%, transparent); }
.gt-sizepick li { margin: 0; }
.gt-sizepick a { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: var(--space-3); align-items: baseline; padding: .85em 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.gt-sizepick a::after { content: "→"; color: var(--brand-primary); font-weight: 600; transition: transform .15s; }
.gt-sizepick a:hover::after { transform: translateX(3px); }
.gt-sizepick strong { font-family: var(--font-display, inherit); font-size: var(--step-1); }
.gt-sizepick span { opacity: .82; }
.gt-sizepick a:hover strong { color: var(--brand-primary); }
/* Wider labels (documents, parts by name) */
.gt-sizepick.is-wide a { grid-template-columns: 8.5rem 1fr auto; }

/* ---------- Tire size finder ---------- */
.gt-tire { display: grid; gap: var(--space-3); margin-block: var(--space-3); }
.gt-tire .gt-input { font-variant-numeric: tabular-nums; text-transform: uppercase; }
.gt-tire .gt-input::placeholder { text-transform: none; }
.gt-tire__result:empty { display: none; }
.gt-tire__answer { display: grid; gap: .35em; padding: var(--space-4); background: var(--surface-raised); border-left: 3px solid var(--brand-primary); border-radius: var(--radius-sm); }
.gt-tire__line { margin: 0; font-size: var(--step-1); }
.gt-tire__help { margin: 0; color: var(--ink-muted); font-size: var(--step--1); }

/* ---------- Size card specs ---------- */
.gt-card__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-2) 0 0; padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: var(--step--1); }
.gt-card__specs dt { color: var(--ink-muted); }
.gt-card__specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Fine print under a grid of cards */
.gt-note { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--step--1); max-width: var(--measure); }

/* Vehicle lineup strip above the size cards (line art from the brand vehicle-sizing SVG) */
.gt-lineup { margin: 0 0 var(--space-4); }
.gt-lineup img { width: 100%; height: auto; }
[data-theme="dark"] .gt-lineup img { filter: invert(1) hue-rotate(180deg); }
@media (max-width: 56.24em) { .gt-lineup { display: none; } }
@media (max-width: 56.24em) { .gt-hero__media:has(> .is-dark) { aspect-ratio: 4 / 3; } }

/* ---------- Block gap vs the sheet's spacing ----------
   WordPress puts its block gap (24px) as a top margin on every block in a flow layout. The UX sheet
   spaces things with section padding and grid or flex gaps instead, so on top of those the margin
   doubles every gap and opens strips between full-width sections. Sections, and the children of the
   sheet's grid and flex organisms, take no flow margin; prose (gt-prose, gt-measure) keeps it. */
.wp-site-blocks > *,
:is(main, .wp-block-post-content) > :is(.gt-hero, .gt-section, .gt-section--inverse, .gt-cta-band),
:is(.gt-hero, .gt-hero__copy, .gt-feature, .gt-feature__copy, .gt-cta-band, .gt-stack, .gt-values, .gt-values__item, .gt-split, .gt-grid-3, .gt-grid-4, .gt-quote) > * { margin-block: 0; }
.gt-container > .gt-section__head + *, .gt-container > .gt-lineup + * { margin-block-start: 0; }
/* Short pages (order received, an empty cart, a sign-in page): the page fills the window and the footer
   sits at the bottom of it instead of halfway up, with blank page below (Aaron, 2026-11-20) */
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > :has(.gt-footer) { margin-block-start: auto; }

/* Full-width bands keep their text on the content column on wide screens (Aaron, 2026-11-20: the
   fleet band and the hero headline hugged the screen edge). The content column starts at
   max(gutter, (width - container) / 2); cqw measures the band itself, so the scrollbar doesn't count. */
@media (min-width: 56.25em) {
	.gt-hero { container-type: inline-size; }
	.gt-hero__copy { padding-inline-start: max(var(--space-gutter), calc((100cqw - var(--container-max)) / 2)); }
	/* A percentage padding is measured on the band's parent (full width, no scrollbar) */
	.gt-cta-band { padding-inline: max(var(--space-gutter), calc((100% - var(--container-max)) / 2)); }
}

/* How they work, "Why the design works": the old Features page's 16:9 animations, shown whole */
figure.wp-block-image.gt-media.gt-anim img { aspect-ratio: 16 / 9; object-fit: contain; }
/* Our section heads put gt-section__head on the h2 itself (the sheet wraps the h2 in a div), and
   .gt-h2 resets margin later in the sheet, so the space under the head is set again here */
.gt-container > .gt-h2.gt-section__head { margin-block: 0 var(--space-section-head); }

/* ---------- Video thumbnail: a play button so it reads as a video ---------- */
figure.gt-video-link a { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; }
figure.wp-block-image.gt-video-link img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; display: block; transition: transform .3s; }
figure.gt-video-link a::before, figure.gt-video-link a::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; transition: scale .2s; }
figure.gt-video-link a::before { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: color-mix(in srgb, var(--ink) 88%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 70%, transparent), var(--shadow-float); }
figure.gt-video-link a::after { width: 1.6rem; height: 1.6rem; margin-left: .15rem; background: var(--surface); -webkit-mask: url(../../icons/play.svg) center / contain no-repeat; mask: url(../../icons/play.svg) center / contain no-repeat; }
figure.gt-video-link a:is(:hover, :focus-visible)::before { scale: 1.08; background: var(--brand-primary); }
figure.gt-video-link a:is(:hover, :focus-visible)::after { scale: 1.08; background: var(--on-brand); }
figure.gt-video-link a:hover img { transform: scale(1.02); }

/* ---------- Media frame for photos in grids (steps, timeline, terrain) ---------- */
figure.wp-block-image.gt-media { margin: 0; }
figure.wp-block-image.gt-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); display: block; }
figure.wp-block-image.gt-media.is-render img { background: var(--photo-white); }
figure.gt-media figcaption { margin: var(--space-2) 0 0; font-size: var(--step--1); color: var(--ink-muted); text-align: left; }

/* ---------- Numbered step cards: each h3 in a gt-stepgrid gets the sheet's step number ---------- */
.gt-stepgrid { counter-reset: gt-step; }
.gt-stepgrid h3 { display: flex; gap: .6em; align-items: center; }
.gt-stepgrid h3::before { counter-increment: gt-step; content: counter(gt-step); flex: none; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--brand-primary); color: var(--on-brand); font: 700 var(--step--1)/1 var(--font-inter); font-variant-numeric: tabular-nums; }
.gt-stepgrid p { color: var(--ink-muted); }

/* ---------- Check and cross lists (covered / not covered) ---------- */
ul.gt-marks { list-style: none; padding: 0; margin: 0; display: grid; gap: .8em; }
ul.gt-marks li { position: relative; padding-left: 1.95em; margin: 0; }
ul.gt-marks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.25em; height: 1.25em; background: var(--success); -webkit-mask: url(../../icons/circle-check.svg) center / contain no-repeat; mask: url(../../icons/circle-check.svg) center / contain no-repeat; }
ul.gt-marks.is-cross li::before { background: var(--ink-subtle); -webkit-mask-image: url(../../icons/x.svg); mask-image: url(../../icons/x.svg); }

/* Pull quote on its own band */
.gt-quote--band blockquote { font-size: var(--step-3); max-width: 24em; }
.gt-quote--band blockquote p { margin: 0; }
.gt-quote .wp-block-quote { margin: 0; padding: 0; border: 0; }
.gt-quote cite { display: block; margin-top: var(--space-4); font: 400 var(--step--1)/1.4 var(--font-inter); font-style: normal; color: var(--ink-muted); }
.gt-quote cite strong { color: var(--ink); font-size: var(--step-0); }

/* Two equal columns (videos side by side); one column on phones */
.gt-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-section-head) var(--space-grid); }
@media (min-width: 56.25em) { .gt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gt-grid-2 > * { margin-block: 0; }
/* Renders on white (the instruction drawings) show whole on their white backing instead of cropping */
figure.wp-block-image.gt-media.is-render img { object-fit: contain; }

/* Dealer list ([gt_dealer_list] from the dealer program snippet): its headings and notes on the type scale */
.gtdl { gap: var(--space-section-head); }
.gtdl .gtdl-sec h2 { font-size: var(--step-3); line-height: 1.05; margin: 0 0 var(--space-4); }
.gtdl .gtdl-region h3 { font-size: var(--step-1); line-height: 1.15; margin: 0 0 var(--space-2); }
.gtdl .gtdl-sub { font-size: var(--step--1); color: var(--ink-muted); opacity: 1; }

/* A video thumbnail as the hero photo: the link fills the 4:3 frame, so the play button centers on it */
.gt-hero__media figure.gt-video-link a { position: absolute; inset: 0; }
.gt-hero__media figure.gt-video-link a::before, .gt-hero__media figure.gt-video-link a::after { z-index: 1; }
.gt-hero__media figure.wp-block-image.gt-video-link img { aspect-ratio: auto; height: 100%; }

/* Fluent Forms (contact, warranty, dealer inquiry): its fields drawn as the sheet's gt-field, gt-input and
   gt-btn--primary. The forms are set to inherit the theme, so these rules carry the whole look. */
form.frm-fluent-form { display: grid; gap: var(--space-4); }
form.frm-fluent-form .ff-t-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-4); }
form.frm-fluent-form .ff-t-cell { flex-basis: auto !important; padding: 0; }
form.frm-fluent-form .ff-el-group { display: grid; gap: .45em; margin: 0; }
form.frm-fluent-form .ff-el-input--label label { font-size: var(--step--1); line-height: 1.2; font-weight: 600; color: var(--ink); margin: 0; }
form.frm-fluent-form .ff-el-is-required.asterisk-right label::after { content: " *"; color: var(--danger); }
form.frm-fluent-form .ff-el-form-control { width: 100%; min-height: 3em; padding: .7em .9em; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: 400 var(--step-0)/1.3 var(--font-inter); transition: border-color .15s, box-shadow .15s; }
form.frm-fluent-form textarea.ff-el-form-control { min-height: 7.5em; resize: vertical; }
form.frm-fluent-form .ff-el-form-control::placeholder { color: var(--ink-subtle); }
form.frm-fluent-form .ff-el-form-control:hover { border-color: var(--ink-muted); }
form.frm-fluent-form .ff-el-form-control:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
form.frm-fluent-form .ff-el-is-error .ff-el-form-control { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
form.frm-fluent-form .error, form.frm-fluent-form .text-danger { color: var(--danger); font-size: var(--step--1); margin-top: .35em; }
form.frm-fluent-form .ff_submit_btn_wrapper { margin: 0; }
form.frm-fluent-form .ff-btn-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 3em; padding: 0 1.5em; border-radius: var(--radius-sm); border: 1.5px solid transparent; background: var(--surface-inverse); color: var(--on-inverse); font: 600 var(--step-0)/1 var(--font-inter); cursor: pointer; transition: background .15s; }
form.frm-fluent-form .ff-btn-submit:hover { background: var(--surface-inverse-hover); }
.ff-message-success { padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1.5px solid var(--success); }

/* BetterDocs FAQ list, rewritten to details by inc/betterdocs.php: the answer's paragraphs sit in the
   sheet's answer div, which already spaces them */
.gt-accordion details > div > * { margin: 0; }

/* A panel whose heading is a link: the whole card is the target, and its border shows the hover */
.gt-panel:has(> .gt-h3 a) { position: relative; transition: border-color .15s; }
.gt-panel:has(> .gt-h3 a):hover { border-color: var(--ink); }
.gt-panel > .gt-h3 a { color: inherit; text-decoration: none; }
.gt-panel > .gt-h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gt-panel > .gt-h3 a:focus-visible { outline: none; }
.gt-panel:has(> .gt-h3 a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Blog cards (home.html, archive.html, single.html): the sheet's .gt-post card, drawn with core's
   query loop. The title link covers the whole card. */
.gt-posts { list-style: none; margin: 0; padding: 0; }
.gt-posts > .wp-block-post { position: relative; display: grid; gap: var(--space-3); align-content: start; margin: 0; }
.gt-posts .gt-post__media { margin: 0; }
.gt-posts .gt-post__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.gt-posts .gt-post__meta { gap: .75em; font-size: var(--step--1); color: var(--ink-muted); }
.gt-posts .gt-post__meta a { color: inherit; text-decoration: none; position: relative; z-index: 1; }
.gt-posts .gt-post__meta > * { margin: 0; }
.gt-posts .gt-post__title { margin: 0; font: 800 var(--step-1)/1.2 var(--font-display); text-wrap: balance; }
.gt-posts .gt-post__title a { color: var(--ink); text-decoration: none; }
.gt-posts .gt-post__title a::after { content: ""; position: absolute; inset: 0; }
.gt-posts > .wp-block-post:hover .gt-post__title a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; }
.gt-posts .gt-post__excerpt { margin: 0; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.5; }
.gt-posts .gt-post__excerpt .wp-block-post-excerpt__more-text { display: none; }
.wp-block-query .gt-pager { margin-top: var(--space-section-head); gap: .5em; }

/* Blog post: no contents list yet, so the body takes the aside's columns too */
@media (min-width: 56.25em) { .gt-article > .gt-article__body { grid-column: 3 / 11; } }
.gt-article .gt-article-meta > * { margin: 0; }
.gt-article .gt-article-meta a { color: inherit; }
.gt-article__media { margin: 0; }
.gt-article__media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-md); }

/* Dealer and fleet ordering pages (the dealer order, fleet order and dealer agreement snippets,
   .gtdo): they're apps, not reading text, so they get the full content width instead of the text
   measure, and the prose rules stay out of them. The fleet page's own big heading repeats the
   page title, so it's hidden there. */
.gt-page-content.gt-prose:has(> .gtdo) { max-width: var(--container-max); }
.gt-page-content > .gtdo { max-width: none; }
.gt-prose .gtdo :is(h2, h3, p, ul, ol, figure) { margin-top: 0; }
.gt-prose .gtdo a:not(.gtdo-btn) { font-weight: inherit; }
.gt-page-content .gtfo .gtdo-head > .gtdo-big { display: none; }
body:has(.gt-page-content > .gtdo) .gt-container.gt-page-head { max-width: var(--container-max); }

/* Bundle buy box (inc/bundle.php): what's in the bundle, one row per item, with its choices.
   The box reuses .gt-upsell; rows reuse the .gt-offer image size and the .gt-color buttons. */
.gt-bundle__was { display: inline-flex; align-items: baseline; gap: .5em; }
.gt-bundle__was[hidden] { display: none; }
.gt-bundle__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .85em; }
.gt-bundle__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .85em; align-items: start; }
.gt-bundle__item + .gt-bundle__item { padding-top: .85em; border-top: 1px solid var(--line); }
.gt-bundle__item > img { width: 3.5rem; height: 3.5rem; object-fit: contain; background: var(--surface-sunken); border-radius: var(--radius-sm); }
.gt-bundle__body { display: grid; gap: .5em; min-width: 0; }
.gt-bundle__row { display: flex; justify-content: space-between; align-items: baseline; gap: .75em; }
.gt-bundle__row strong { font-weight: 600; }
.gt-bundle__opt { cursor: pointer; }
.gt-bundle__opt input { width: 1.15em; height: 1.15em; margin: 0 .35em 0 0; vertical-align: -.15em; accent-color: var(--ink); }
.gt-bundle__choice legend { margin-bottom: .3em; }
.gt-colors--sm { gap: var(--space-1); }
.gt-colors--sm .gt-color { min-height: 2.25em; padding: 0 .7em 0 .45em; font-size: var(--step--1); }
.gt-colors--sm .gt-color:not(:has(i)) { padding-left: .7em; }
.gt-colors--sm .gt-color i { width: 1.15em; height: 1.15em; }
/* Quick Connect comes in magenta; the product colors in the tokens stop at red */
.gt-swatch--magenta { background: #c4247c; }

/* 404 page (patterns/not-found.php) */
.gt-notfound__search { max-width: 32rem; }
.gt-notfound__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }

/* Hero discount: the VerifyPass widget is a tall column of cards, so the steps stay in view beside it */
.gt-verifypass iframe { display: block; max-width: 100%; }
@media (min-width: 48em) {
	.gt-split:has(> .gt-verifypass) > .gt-stack { position: sticky; top: calc(var(--header-height) + var(--space-4)); align-self: start; }
}

/* The block editor. WordPress's flow spacing (:root :where(.is-layout-flow) > *) loads after the theme
   CSS in the editor canvas, so at equal strength it beats the margin resets above there and the
   editor shows gaps the page doesn't have. The same resets, one class stronger, editor only. Full-width
   sections also lose the root padding and width cap the editor puts on post content, so a page in the
   editor is laid out like the page itself. */
.editor-styles-wrapper .is-root-container:has(> :is(.gt-hero, .gt-section, .gt-cta-band)) { padding-inline: 0; }
.editor-styles-wrapper .is-root-container > :is(.gt-hero, .gt-section, .gt-cta-band) { max-width: none; margin-inline: 0; margin-block: 0; }
.editor-styles-wrapper :is(.gt-hero, .gt-hero__copy, .gt-feature, .gt-feature__copy, .gt-cta-band, .gt-stack, .gt-values, .gt-values__item, .gt-split, .gt-grid-2, .gt-grid-3, .gt-grid-4, .gt-panel, .gt-quote, .gt-help-cats) > * { margin-block: 0; }
.editor-styles-wrapper .gt-container > :is(.gt-section__head, .gt-lineup) + * { margin-block-start: 0; }

/* Buttons while they work (add to cart): a spinner, and no second click */
.gt-btn[aria-busy="true"] { position: relative; cursor: progress; opacity: .85; }
.gt-btn[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; margin-left: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gt-spin .7s linear infinite; }
@keyframes gt-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .gt-btn[aria-busy="true"]::after { animation-duration: 2s; } }

/* Product gallery on phones: swipe the photo, dots for the place, no thumbnail grid above the buy box */
.gt-gallery__dots { display: none; }
@media (max-width: 56.24em) {
	.gt-product-main .gt-thumbs { display: none; }
	.gt-gallery__dots { display: flex; justify-content: center; gap: .4rem; margin-top: var(--space-3); }
	.gt-gallery__dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
	.gt-gallery__dots i.is-on { background: var(--ink); }
	.gt-product-main .gt-gallery__main { touch-action: pan-y; }
	.gt-product-main .gt-crumbs { margin-bottom: var(--space-3) !important; }
}
.gt-buybox__title .gt-rating { font-size: var(--step--1); }

/* Under the checkout button: returns, shipping, payment methods */
.gt-checkout-notes { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: .35rem; font-size: var(--step--1); color: var(--ink-muted); line-height: 1.45; }
.gt-checkout-notes li { margin: 0; }

/* Phone product page: the total and Add to cart stay in reach (product.js shows it while the real button is off screen) */
.gt-buybar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; gap: var(--space-3); padding: .6rem var(--space-gutter) calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface-raised, #fff); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(0 0 0 / .08); }
.gt-buybar[hidden] { display: none; }
.gt-buybar__name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-buybar .gt-btn { flex: none; }
@media (min-width: 56.25em) { .gt-buybar { display: none; } }
