.sgp-grid-wrap {
	margin: 1.5em 0;
}

.sgp-grid {
	--sgp-border: #e2e4e8;
	--sgp-ink: #3a4256;
	--sgp-muted: #8a93a6;
	/* Brand accent — matches the site's green buttons. Override with a child
	   theme / Customizer CSS if your brand colour differs. */
	--sgp-accent: #3dbe6a;
	--sgp-accent-soft: #e8f7ee;
	max-width: 640px;
	font-size: 15px;
	color: var(--sgp-ink);
}

.sgp-loading,
.sgp-no-methods {
	color: var(--sgp-muted);
	padding: 1em 0;
}

/* Country selector */
.sgp-country {
	margin-bottom: 0.75em;
}
.sgp-country-label {
	font-size: 0.85em;
	color: var(--sgp-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.sgp-country-select {
	margin-left: 0.4em;
	padding: 0.3em 0.5em;
	border: 1px solid var(--sgp-border);
	border-radius: 4px;
	font-size: 0.95em;
	color: var(--sgp-ink);
	background: #fff;
}

/* Table */
.sgp-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--sgp-border);
	border-radius: 6px;
	overflow: hidden;
	table-layout: fixed;
}

.sgp-table th,
.sgp-table td {
	border-bottom: 1px solid var(--sgp-border);
	border-right: 1px solid var(--sgp-border);
	padding: 0.85em 0.5em;
	text-align: center;
	vertical-align: middle;
}
.sgp-table th:last-child,
.sgp-table td:last-child {
	border-right: 0;
}
.sgp-table tbody tr:last-child td {
	border-bottom: 0;
}

.sgp-th-qty {
	font-weight: 700;
	color: var(--sgp-ink);
	background: #fff;
}

.sgp-th-col {
	cursor: pointer;
	background: #fff;
	line-height: 1.3;
}
.sgp-th-col .sgp-method {
	display: block;
	font-size: 0.82em;
	font-weight: 700;
	color: var(--sgp-ink);
	margin-bottom: 0.35em;
	line-height: 1.2;
}
.sgp-th-col.is-selected .sgp-method {
	color: inherit;
}
.sgp-th-col .sgp-rb {
	display: block;
	font-size: 0.7em;
	font-weight: 500;
	color: var(--sgp-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.sgp-th-col .sgp-date {
	display: block;
	font-weight: 700;
	font-size: 0.92em;
}

.sgp-qty {
	color: var(--sgp-muted);
	font-weight: 500;
}

.sgp-cell {
	cursor: pointer;
	transition: background 0.12s ease;
}
.sgp-cell:hover {
	background: #f6f9fd;
}

/* Selected column highlight (echoes the reference) */
.sgp-th-col.is-selected,
.sgp-cell.is-col {
	background: var(--sgp-accent-soft);
}
.sgp-th-col.is-selected {
	background: var(--sgp-accent);
	color: #fff;
}
.sgp-th-col.is-selected .sgp-rb {
	color: rgba( 255, 255, 255, 0.85 );
}
.sgp-cell.is-cell {
	box-shadow: inset 0 0 0 2px var(--sgp-accent);
	font-weight: 700;
}

/* Superscript pence */
.sgp-price {
	white-space: nowrap;
}
.sgp-pence {
	font-size: 0.62em;
	top: -0.5em;
	margin-left: 1px;
}

/* Footnote */
.sgp-footnote {
	text-align: right;
	color: var(--sgp-accent);
	font-size: 0.85em;
	margin: 0.6em 0 0;
}

/* Toggles */
.sgp-toggles {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0.8em 0 0;
}
.sgp-toggle {
	background: none;
	border: 0;
	color: var(--sgp-ink);
	cursor: pointer;
	font-size: 0.92em;
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.3em 0;
}
.sgp-toggle:disabled {
	opacity: 0.35;
	cursor: default;
}
.sgp-pm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5em;
	height: 1.5em;
	border: 1px solid var(--sgp-border);
	border-radius: 50%;
	font-weight: 700;
	line-height: 1;
}

@media ( max-width: 480px ) {
	.sgp-grid {
		font-size: 13px;
	}
	.sgp-table th,
	.sgp-table td {
		padding: 0.6em 0.3em;
	}
	.sgp-th-col .sgp-date {
		font-size: 0.85em;
	}
}
