/* SnackyTools Blocks: Shopify CSV File Checker.
   On the site it loads only on pages with a checker block (block.json
   "style"); in the block editor WordPress loads it on every page, so every
   rule here is scoped to the checker blocks or to the checker page.

   Part 1 styles the three checker blocks (.stb-csv). Part 2 adds the few page
   styles the checker page needs beyond the child theme's ".sc-speedy" rules,
   which already style its sections the way the Speedy CSV page looks.
   Sizes, colours and radii are the ones the standalone checker used
   (seo-csv-editor web-checker\page\style.css), which copied the Speedy CSV
   page. Text and button contrast: white on #0056d2 6.4:1, on #003f9c 9.6:1;
   #0048b0 on white 7.7:1, #003b91 on #e8f1ff 9.0:1; red #b91c1c on the hero
   wash 5.85:1 at its lightest stop.

   Claude Code via T3 Code, Claude Opus 5.5, Extra high; 11/12/2026. */

/* ---- Part 1: the checker blocks ---- */

.stb-csv {
	--sc-blue: #0056d2;
	--sc-blue-hover: #003f9c;
	--sc-link: #0048b0;
	--sc-link-hover: #003b91;
	--sc-ink: #172438;
	--sc-muted: #4b5b70;
	--sc-line: #d4dfed;
	--sc-soft: #e8f1ff;
	--sc-tint: #f5f8fc;
	--sc-coral: #ff956e;
	--sc-btn-border: #667b98;
	--sc-focus: #a63b00;
	--sc-shadow: 0 22px 65px #18334e14;
	--sc-green: #056449;
	--sc-green-bg: #ecfdf5;
	--sc-red: #b91c1c;
	--sc-red-bg: #fef2f2;
	--sc-amber: #b45309;
	--sc-amber-bg: #fffbeb;
	font-family: "Plus Jakarta Sans", Arial, sans-serif;
	min-width: 0;
}

.stb-csv *,
.stb-csv *::before,
.stb-csv *::after {
	box-sizing: border-box;
}

.stb-csv [hidden] {
	display: none !important;
}

.stb-csv p,
.stb-csv li,
.stb-csv button {
	font-family: inherit;
}

.stb-csv a:focus-visible,
.stb-csv button:focus-visible {
	outline: 3px solid var(--sc-focus);
	outline-offset: 5px;
}

/* Drop area, in the site's glass card (as the hero picture on the Speedy CSV
   page, without its tilt). */
.stb-csv.stb-csv-drop {
	padding: 16px;
	border: 1px solid #ffffff;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.65);
	box-shadow: var(--sc-shadow);
}

.stb-csv .sc-drop {
	padding: 40px 24px 28px;
	border: 2px dashed var(--sc-btn-border);
	border-radius: 12px;
	background: #ffffff;
	text-align: center;
	transition: background 0.15s, border-color 0.15s;
}

.stb-csv .sc-drop.is-over {
	border-style: solid;
	border-color: var(--sc-blue);
	background: var(--sc-soft);
}

.stb-csv .sc-drop-icon {
	width: 52px;
	height: 52px;
	color: var(--sc-blue);
}

.stb-csv .sc-drop-title {
	margin: 10px 0 0;
	color: var(--sc-ink);
	font-size: 22px;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: -0.025em;
}

.stb-csv .sc-small {
	margin: 0;
	color: var(--sc-muted);
	font-size: 12px;
	line-height: 1.7;
}

.stb-csv .sc-status {
	margin: 0;
	color: var(--sc-ink);
	font-size: 14px;
	font-weight: 700;
}

.stb-csv .sc-status:not(:empty) {
	margin-top: 14px;
}

/* Buttons, as on the site. */
.stb-csv .sc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 18px;
}

.stb-csv .sc-actions--center {
	justify-content: center;
}

.stb-csv .sc-btn {
	display: inline-block;
	margin: 0;
	padding: 15px 20px;
	border: 2px solid var(--sc-blue);
	border-radius: 7px;
	background: var(--sc-blue);
	box-shadow: none;
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.stb-csv .sc-btn:hover {
	border-color: var(--sc-blue-hover);
	background: var(--sc-blue-hover);
	color: #ffffff;
	transform: translateY(-1px);
}

.stb-csv .sc-btn--secondary {
	border-color: var(--sc-btn-border);
	background: #ffffff;
	color: var(--sc-link);
}

.stb-csv .sc-btn--secondary:hover {
	border-color: var(--sc-link-hover);
	background: var(--sc-soft);
	color: var(--sc-link-hover);
}

.stb-csv .sc-btn--small {
	padding: 10px 16px;
	font-size: 13px;
}

.stb-csv .sc-btn[disabled],
.stb-csv .sc-btn[disabled]:hover {
	border-color: #9dadc2;
	background: #e7edf5;
	color: #36465d;
	cursor: not-allowed;
	transform: none;
}

/* Result. */
.stb-csv .sc-result {
	margin: 56px 0;
	scroll-margin-top: 16px;
}

.stb-csv .sc-verdict {
	padding: 28px;
	border: 1px solid var(--sc-line);
	border-top: 5px solid var(--sc-green);
	border-radius: 14px;
	background: var(--sc-green-bg);
	box-shadow: var(--sc-shadow);
}

/* Focus moves here so screen readers read the result; it is not a control. */
.stb-csv .sc-verdict:focus,
.stb-csv .sc-verdict:focus-visible {
	outline: none;
}

.stb-csv .sc-verdict--red {
	border-top-color: var(--sc-red);
	background: var(--sc-red-bg);
}

.stb-csv .sc-verdict--amber {
	border-top-color: var(--sc-amber);
	background: var(--sc-amber-bg);
}

.stb-csv .sc-verdict--error {
	border-top-color: var(--sc-muted);
	background: var(--sc-tint);
}

.stb-csv .sc-verdict h2 {
	margin: 0 0 10px;
	font-size: clamp(26px, 3vw, 34px);
}

.stb-csv .sc-verdict p {
	color: var(--sc-muted);
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 20px;
}

.stb-csv .sc-verdict p:last-child {
	margin-bottom: 0;
}

.stb-csv .sc-file {
	font-size: 13px !important;
	overflow-wrap: anywhere;
}

.stb-csv .sc-verdict .sc-sample-note {
	color: var(--sc-ink);
	font-weight: 700;
}

.stb-csv .sc-result-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.stb-csv .sc-copy-status {
	color: var(--sc-green);
	font-size: 14px;
	font-weight: 700;
}

.stb-csv .sc-tip {
	margin: 18px 0 0;
	color: var(--sc-muted);
	font-size: 13px;
}

.stb-csv .sc-group {
	margin: 36px 0 14px;
	font-size: 20px;
}

.stb-csv .sc-findings {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A cross for "fix first", an exclamation mark for "worth checking". */
.stb-csv .sc-finding {
	position: relative;
	margin: 0 0 12px;
	padding: 18px 20px 18px 48px;
	border: 1px solid var(--sc-line);
	border-radius: 12px;
	background: #ffffff;
	list-style: none;
}

.stb-csv .sc-finding::before {
	content: "!";
	position: absolute;
	top: 18px;
	left: 22px;
	color: var(--sc-amber);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.4;
}

.stb-csv .sc-finding--red::before {
	content: "\2717";
	left: 20px;
	color: var(--sc-red);
}

.stb-csv .sc-finding p {
	margin: 0 0 6px;
	color: var(--sc-muted);
	font-size: 15px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.stb-csv .sc-finding p:last-child {
	margin-bottom: 0;
}

.stb-csv .sc-finding .sc-finding-head {
	color: var(--sc-ink);
	font-size: 17px;
	font-weight: 750;
	line-height: 1.4;
}

.stb-csv .sc-finding .sc-where {
	font-size: 13px;
}

/* "How to fix it" and the card blocks inside the results block. */
.stb-csv .sc-offers {
	margin: 0 0 72px;
}

.stb-csv .sc-offers > h2 {
	font-size: clamp(26px, 3vw, 34px);
}

.stb-csv .sc-offer {
	padding: 28px !important;
	border: 1px solid var(--sc-line);
	border-radius: 14px;
	background: #ffffff;
}

.stb-csv .sc-offer--main {
	border-top: 5px solid var(--sc-coral);
}

.stb-csv .sc-offer .sc-kicker {
	margin-bottom: 10px;
	font-size: 11px;
}

.stb-csv .sc-offer h3 {
	font-size: 20px;
}

.stb-csv .sc-offer p {
	font-size: 15px;
}

.stb-csv .sc-offer .wp-block-buttons {
	margin-bottom: 0;
}

.stb-csv .sc-ticks {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.stb-csv .sc-ticks li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 24px;
	color: var(--sc-ink);
	font-size: 14px;
	line-height: 1.6;
	list-style: none;
}

.stb-csv .sc-ticks li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--sc-green);
	font-weight: 800;
}

/* Share buttons. */
.stb-csv.stb-csv-share {
	text-align: center;
}

.stb-csv-share .sc-actions {
	margin-bottom: 10px;
}

.stb-csv .sc-share-status {
	min-height: 1.75em;
	margin: 0;
	color: var(--sc-green);
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 600px) {
	.stb-csv.stb-csv-drop {
		padding: 8px;
		border-radius: 12px;
	}

	.stb-csv .sc-drop {
		padding: 28px 16px 22px;
	}

	.stb-csv-drop .sc-actions,
	.stb-csv-results .sc-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.stb-csv-drop .sc-actions .sc-btn,
	.stb-csv-results .sc-actions .sc-btn {
		display: block;
		width: 100%;
	}

	.stb-csv .sc-verdict,
	.stb-csv .sc-offer {
		padding: 22px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stb-csv .sc-drop,
	.stb-csv .sc-btn {
		transition: none;
	}

	.stb-csv .sc-btn:hover {
		transform: none;
	}
}

/* ---- Part 2: the checker page, beyond the theme's .sc-speedy rules ----
   Scoped to .stb-csv-page, a class on the page's outer Group, because block
   styles also load in the editor for other pages (Sol's review, 11/12/2026). */

/* The theme sets lists in its serif; the Speedy CSV look keeps one font. */
.stb-csv-page .wp-block-list,
.stb-csv-page .wp-block-list li,
.stb-csv-page details summary {
	font-family: inherit;
}

/* Product Landing lays the site header over the page on wider screens. */
@media (min-width: 782px) {
	body.st-landing-overlay .stb-csv-page .sc-hero {
		padding-top: clamp(7rem, 14vw, 10rem) !important;
	}
}

/* The ticked line under the intro, as a List block (the theme's version is
   a paragraph of spans). Its colour is the List block's own text colour. */
.stb-csv-page ul.sc-trust {
	padding: 0;
	list-style: none;
}

.stb-csv-page ul.sc-trust li {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	list-style: none;
}

.stb-csv-page ul.sc-trust li::before {
	content: "\2713\00a0";
	color: #056449;
	font-weight: 800;
}

/* Results sit in a narrower column under the hero, with no gap of their own
   while hidden (sections touch, as on the Speedy CSV page). */
.stb-csv-page .sc-wrap.sc-run {
	max-width: 884px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* "What it catches": four cards, each a heading and a list. */
.stb-csv-page .sc-checks .sc-intro {
	margin-left: 0;
}

.stb-csv-page .sc-check-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-top: 36px;
}

.stb-csv-page .sc-check-cards > .sc-help-card {
	padding: 24px !important;
}

.stb-csv-page .sc-check-cards ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.stb-csv-page .sc-check-cards li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 20px;
	color: var(--sc-muted);
	font-size: 15px;
	line-height: 1.6;
	list-style: none;
}

.stb-csv-page .sc-check-cards li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sc-blue);
}

/* Beats the theme's centred ".sc-intro" margins (same weight, loaded later). */
.stb-csv-page .sc-checks .sc-app-note {
	margin: 32px 0 0;
}

.stb-csv-page .sc-app-note a {
	color: #0048b0;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.stb-csv-page .sc-app-note a:hover {
	color: #003b91;
}

/* "Three steps": a line above each step, as on the Speedy CSV page. */
.stb-csv-page .sc-steps .sc-three {
	gap: 28px;
	margin-top: 40px;
}

.stb-csv-page .sc-steps .sc-card {
	padding: 22px 0 0 !important;
	border-top: 2px solid var(--sc-line);
}

.stb-csv-page .sc-steps .sc-card p:last-child {
	margin: 0;
	font-size: 15px;
}

/* "Pass it on". */
.stb-csv-page .sc-share {
	text-align: center;
}

/* The fine print. */
.stb-csv-page .sc-legal.sc-fine {
	padding: 56px 0 40px !important;
}

.stb-csv-page .sc-fine .sc-wrap {
	max-width: 864px;
}

.stb-csv-page .sc-fine h2 {
	margin-bottom: 10px;
	font-size: 16px;
	letter-spacing: -0.01em;
}

.stb-csv-page .sc-fine p {
	margin-bottom: 8px;
	font-size: 13px;
}

@media (max-width: 950px) {
	.stb-csv-page .sc-check-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.stb-csv-page .sc-check-cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
