/**
 * Suresafe Plugin — Frontend Styles
 * Version: 1.0.0
 *
 * Sections:
 *  1. VAT Toggle
 *  2. Live Search
 *  3. Mobile Bottom Bar
 *  4. Product Tabs (Features chips, Safety Standards chips, Documents, Optical)
 *  5. Size Chart Modal
 *  6. Bulk Pricing Table
 *  7. Branding Badge
 *  8. Variation Swatches
 *  9. Category Pills
 * 10. Utility
 */

/* ============================================================
   1. VAT TOGGLE
   ============================================================ */

#ssp-tax-toggle-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.ssp-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
}

.ssp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.ssp-slider {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 22px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.ssp-slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.2 );
}

input:checked + .ssp-slider {
	background: #2196f3;
}

input:checked + .ssp-slider::before {
	transform: translateX( 18px );
}

#ssp-tax-label {
	white-space: nowrap;
}

/* ============================================================
   2. LIVE SEARCH
   ============================================================ */

.ssp-live-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	max-height: 400px;
	overflow-y: auto;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.12 );
	display: none;
}

.ssp-search-result-item {
	display: flex;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: #333;
	transition: background-color 0.15s;
}

.ssp-search-result-item:hover {
	background: #f9f9f9;
}

.ssp-search-result-item:last-child {
	border-bottom: none;
}

.ssp-search-result-item img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	margin-right: 12px;
	border-radius: 3px;
	flex-shrink: 0;
}

.ssp-search-result-content {
	flex: 1;
	min-width: 0;
}

.ssp-search-result-title {
	font-weight: 600;
	margin-bottom: 3px;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ssp-search-result-sku {
	font-size: 12px;
	color: #888;
	margin-bottom: 3px;
	font-style: italic;
}

.ssp-search-result-price {
	font-size: 13px;
	color: #555;
}

.ssp-search-loading,
.ssp-no-results,
.ssp-search-error {
	padding: 16px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.ssp-search-error {
	color: #d00;
}

/* ============================================================
   3. MOBILE BOTTOM BAR
   ============================================================ */

.ssp-mobile-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 64px;
	background: #fff;
	display: flex;
	justify-content: space-around;
	align-items: center;
	border-top: 1px solid #e0e0e0;
	z-index: 9999;
	box-shadow: 0 -2px 8px rgba( 0, 0, 0, 0.08 );
}

.ssp-mobile-bar .ssp-bar-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	gap: 4px;
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 8px 0;
	color: #555;
	transition: color 0.15s;
	font-family: inherit;
}

.ssp-mobile-bar .ssp-bar-item:hover,
.ssp-mobile-bar .ssp-bar-item:focus {
	color: #d0021b;
	outline: none;
}

.ssp-mobile-bar .ssp-bar-icon {
	position: relative;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* SVGs use stroke="currentColor" so they inherit the item colour */
.ssp-mobile-bar .ssp-bar-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.ssp-mobile-bar .ssp-bar-label {
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Basket item count badge */
.ssp-basket-count {
	position: absolute;
	top: -6px;
	right: -8px;
	background: #d0021b;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}

@media ( min-width: 1025px ) {
	.ssp-mobile-bar {
		display: none;
	}
}

@media ( max-width: 1024px ) {
	body {
		padding-bottom: 64px;
	}
}

/* ── Search drawer ─────────────────────────────────────────── */

.ssp-search-drawer {
	position: fixed;
	bottom: 64px; /* sits above the mobile bar */
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid #e0e0e0;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -4px 24px rgba( 0, 0, 0, 0.12 );
	z-index: 9998;
	transform: translateY( 100% );
	transition: transform 0.3s cubic-bezier( 0.4, 0, 0.2, 1 );
	max-height: 70vh;
	overflow-y: auto;
}

.ssp-search-drawer.is-open {
	transform: translateY( 0 );
}

.ssp-search-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.4 );
	z-index: 9997;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.ssp-search-drawer-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.ssp-search-drawer-inner {
	padding: 0 0 16px;
}

.ssp-search-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 12px;
	border-bottom: 1px solid #f0f0f0;
}

.ssp-search-drawer-title {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ssp-search-drawer-close {
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 4px;
	color: #555;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	transition: color 0.15s;
}

.ssp-search-drawer-close:hover {
	color: #1d2327;
}

.ssp-search-drawer-body {
	padding: 16px 20px 8px;
}

/* Search input row inside the drawer */
.ssp-search-drawer-body .ssp-search-wrap {
	display: flex;
	align-items: center;
	border: 2px solid #1d2327;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.ssp-drawer-search-input {
	flex: 1;
	border: 0 !important;
	outline: none !important;
	padding: 12px 14px !important;
	font-size: 16px !important; /* 16px prevents iOS zoom on focus */
	background: transparent;
	color: #1d2327;
	box-shadow: none !important;
	-webkit-appearance: none;
}

.ssp-drawer-search-input::placeholder {
	color: #aaa;
}

.ssp-drawer-search-btn {
	background: #1d2327;
	border: 0;
	color: #fff;
	padding: 12px 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s;
	flex-shrink: 0;
}

.ssp-drawer-search-btn:hover {
	background: #333;
}

/* Live search results inside drawer */
.ssp-search-drawer .ssp-live-search-results {
	position: static !important;
	border: none;
	border-top: 1px solid #f0f0f0;
	box-shadow: none;
	margin-top: 8px;
	max-height: 50vh;
}

/* Prevent body scroll when drawer is open */
body.ssp-drawer-open {
	overflow: hidden;
}

/* Hide drawer on desktop */
@media ( min-width: 1025px ) {
	.ssp-search-drawer,
	.ssp-search-drawer-overlay {
		display: none !important;
	}
}

/* ============================================================
   4. PRODUCT TABS
   ============================================================ */

/* Features chips */

.ssp-features-tab .ssp-chip-list,
.ssp-safety-tab .ssp-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.ssp-chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	font-size: 13px;
	line-height: 1.3;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s, border-color 0.15s;
}

.ssp-chip:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

/* Safety standard chips are links */
a.ssp-chip {
	color: #1d2327;
}

a.ssp-chip:hover {
	color: #d0021b;
	border-color: #d0021b;
}

/* About the Product tab sections */

.ssp-about-tab .ssp-tab-section {
	margin-top: 28px;
}

.ssp-about-tab .ssp-tab-section:first-child {
	margin-top: 0;
}

.ssp-about-tab .ssp-section-heading {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e5e7eb;
}

/* Optical markings */

.ssp-optical-tab table {
	width: auto;
}

/* Documents */

.ssp-docs-tab .ssp-docs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}

.ssp-docs-tab .ssp-docs-table th,
.ssp-docs-tab .ssp-docs-table td {
	padding: 9px 12px;
	border: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: middle;
	font-size: 14px;
}

.ssp-docs-tab .ssp-docs-table th {
	background: #f8f9fa;
	font-weight: 600;
}

.ssp-docs-tab .ssp-docs-table a {
	text-decoration: none;
	color: #2271b1;
	border-bottom: 1px dotted #aaa;
}

.ssp-docs-tab .ssp-docs-table a:hover {
	color: #135e96;
	border-bottom-color: #135e96;
}

/* ============================================================
   5. SIZE CHART MODAL
   ============================================================ */

.ssp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ssp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.65 );
}

.ssp-modal-content {
	position: relative;
	background: #fff;
	padding: 40px;
	max-width: 820px;
	width: 92%;
	max-height: 88vh;
	overflow: auto;
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.25 );
}

.ssp-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: transparent;
	border: 0;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 0;
	width: 32px;
	height: 32px;
}

.ssp-modal-close:hover {
	color: #000;
}

.ssp-modal-content h2 {
	margin-top: 0;
	margin-bottom: 20px;
	text-align: center;
}

.ssp-size-chart-table {
	width: 100%;
	border-collapse: collapse;
}

.ssp-size-chart-table th,
.ssp-size-chart-table td {
	padding: 12px 14px;
	border: 1px solid #ddd;
	text-align: center;
	font-size: 14px;
}

.ssp-size-chart-table th {
	background: #f8f9fa;
	font-weight: 600;
}

.ssp-size-chart-table tbody tr:nth-child( even ) {
	background: #f8f9fa;
}

/* ============================================================
   6. BULK PRICING TABLE (front-end)
   ============================================================ */

.ssp-bulk-pricing {
	margin: 16px 0;
	max-width: 480px;
}

.ssp-bulk-pricing-heading {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}

.ssp-bulk-pricing-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ssp-bulk-pricing-table th,
.ssp-bulk-pricing-table td {
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	text-align: left;
}

.ssp-bulk-pricing-table th {
	background: #f8f9fa;
	font-weight: 600;
}

.ssp-bulk-pricing-table tr.ssp-tier-active {
	background: #fef9e7;
	font-weight: 600;
}

/* ============================================================
   7. BRANDING BADGE
   ============================================================ */

.ssp-branding-badge-wrap {
	position: relative;
	display: inline-block;
}

.ssp-branding-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #d0021b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 8px;
	border-radius: 3px;
	pointer-events: none;
	z-index: 10;
	line-height: 1.4;
}

/* ============================================================
   8. VARIATION SWATCHES
   ============================================================ */

.ssp-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0;
}

.ssp-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 3px;
	transition: border-color 0.15s, opacity 0.15s;
	position: relative;
}

.ssp-swatch:hover {
	border-color: #888;
}

.ssp-swatch.is-selected {
	border-color: #1d2327;
}

.ssp-swatch.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.ssp-swatch.is-disabled::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom right, transparent calc( 50% - 1px ), #999 calc( 50% - 1px ), #999 calc( 50% + 1px ), transparent calc( 50% + 1px ) );
}

/* Colour swatches */

.ssp-swatch-colour {
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

.ssp-swatch-colour-inner {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	display: block;
}

/* Dual-colour swatches */

.ssp-swatch-dual {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
}

.ssp-swatch-dual-half {
	display: inline-block;
	width: 50%;
	height: 100%;
	float: left;
}

/* Label swatches */

.ssp-swatch-label {
	padding: 5px 10px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 3px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
}

.ssp-swatch-label.is-selected {
	background: #1d2327;
	color: #fff;
	border-color: #1d2327;
}

/* Image swatches */

.ssp-swatch-image {
	width: 40px;
	height: 40px;
	border-radius: 3px;
	overflow: hidden;
}

.ssp-swatch-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ============================================================
   9. CATEGORY PILLS
   ============================================================ */

.ssp-category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	padding: 0;
	list-style: none;
}

.ssp-category-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 18px;
	border: 1px solid #d1d5db;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: #1d2327;
	background: #fff;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
	white-space: nowrap;
}

.ssp-category-pill:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
	color: #1d2327;
	text-decoration: none;
}

.ssp-category-pill.is-active {
	background: #1d2327;
	color: #fff;
	border-color: #1d2327;
}

.ssp-category-pill.is-active:hover {
	background: #374151;
	border-color: #374151;
}

.ssp-pill-count {
	font-size: 12px;
	opacity: 0.7;
}

@media ( max-width: 768px ) {
	.ssp-category-pills {
		gap: 6px;
		margin-bottom: 20px;
		/* Allow horizontal scroll on very small screens if pills overflow */
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ssp-category-pills::-webkit-scrollbar {
		display: none;
	}

	.ssp-category-pill {
		padding: 7px 14px;
		font-size: 13px;
		flex-shrink: 0;
	}
}

/* ============================================================
   10. UTILITY
   ============================================================ */

.ssp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

/* ============================================================
   PRE-ORDER
   ============================================================ */

.ssp-preorder-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 10px 14px;
	background: #fef9e7;
	border: 1px solid #f5c518;
	border-radius: 4px;
}

.ssp-preorder-badge {
	display: inline-block;
	background: #f5c518;
	color: #1d2327;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 3px;
	white-space: nowrap;
}

.ssp-preorder-note {
	font-size: 14px;
	color: #555;
}

/* ============================================================
   ESTIMATED SHIPPING
   ============================================================ */

.ssp-shipping-estimate {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	color: #555;
	margin: 0 0 12px;
}

.ssp-ships-in-label {
	color: #888;
}

.ssp-ships-in-value {
	font-weight: 600;
	color: #1d2327;
}

/* ============================================================
   STOCK STATUS BADGES
   ============================================================ */

.ssp-stock-status-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border-radius: 3px;
	margin-bottom: 12px;
}

.ssp-status-clearance {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffc107;
}

.ssp-status-discontinued {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.ssp-status-branding {
	background: #e8f4fd;
	color: #1a5276;
	border: 1px solid #aed6f1;
}

/* ============================================================
   LIVE SEARCH — ADDITIONAL STYLES
   (base styles already in section 2 above)
   ============================================================ */

.ssp-search-result-item.is-active,
.ssp-search-result-item:focus {
	background: #f0f4f8;
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

.ssp-search-result-category {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
	margin-bottom: 2px;
}

/* ============================================================
   VARIATION SWATCHES — LABEL ALIGNMENT FIX
   WooCommerce's blocktheme stylesheet sets vertical-align: top
   and line-height: 2em on .variations th — we override it here
   with higher specificity to align the label with the swatches.
   ============================================================ */

table.variations th,
table.variations td,
.variations_form table.variations th,
.variations_form table.variations td {
	vertical-align: middle !important;
	line-height: 1.4 !important;
}

table.variations th label,
.variations_form table.variations th label {
	margin: 0;
	line-height: 1.4;
	display: block;
}

.ssp-swatch-wrap {
	display: flex;
	align-items: center;
}

.ssp-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

/* ============================================================
   BRANDING BADGE
   Injected into the gallery container via JS.
   The gallery container is made position:relative by the JS
   if it isn't already, giving us a reliable anchor.
   ============================================================ */

.ssp-branding-badge {
	position: absolute;
	z-index: 10;
	background: #1d2327;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 5px 10px;
	border-radius: 3px;
	pointer-events: none;
	white-space: nowrap;
	line-height: 1.4;
}

/* Position variants */
.ssp-badge-position-top-right {
	top: 12px;
	right: 12px;
}

.ssp-badge-position-top-left {
	top: 12px;
	left: 12px;
}

.ssp-badge-position-bottom-right {
	bottom: 12px;
	right: 12px;
}

.ssp-badge-position-bottom-left {
	bottom: 12px;
	left: 12px;
}

/* ============================================================
   PRODUCT TABS — ABOUT THE PRODUCT
   ============================================================ */

.ssp-about-tab .ssp-tab-section {
	margin-top: 32px;
}

.ssp-about-tab .ssp-tab-section:first-child {
	margin-top: 0;
}

.ssp-about-tab .ssp-section-heading {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e7eb;
	color: #1d2327;
}

.ssp-about-tab .ssp-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ssp-about-tab .ssp-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	background: #f9fafb;
	white-space: nowrap;
}

.ssp-about-tab a.ssp-chip-link {
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ssp-about-tab a.ssp-chip-link:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
	color: #1d2327;
	text-decoration: none;
}

/* ============================================================
   PRODUCT TABS — OPTICAL MARKINGS
   ============================================================ */

.ssp-optical-table {
	width: 100%;
	max-width: 560px;
	border-collapse: collapse;
}

.ssp-optical-table th,
.ssp-optical-table td {
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	text-align: left;
	font-size: 14px;
	vertical-align: middle;
}

.ssp-optical-table thead th {
	background: #f8f9fa;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.ssp-optical-table tbody tr:nth-child( even ) {
	background: #f8f9fa;
}

/* ============================================================
   PRODUCT TABS — SIZE CHART
   ============================================================ */

.ssp-size-chart-tab {
	overflow-x: auto;
}

.ssp-size-chart-tab h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
}

.ssp-size-chart-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ssp-size-chart-table th,
.ssp-size-chart-table td {
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	text-align: center;
	vertical-align: middle;
}

.ssp-size-chart-table thead th {
	background: #f8f9fa;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.ssp-size-chart-table tbody th {
	background: #f8f9fa;
	font-weight: 600;
	text-align: left;
}

.ssp-size-chart-table tbody tr:nth-child( even ) td {
	background: #f8f9fa;
}

/* ============================================================
   PRODUCT TABS — DOCUMENTS
   ============================================================ */

.ssp-docs-table {
	width: 100%;
	max-width: 640px;
	border-collapse: collapse;
}

.ssp-docs-table th,
.ssp-docs-table td {
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	text-align: left;
	font-size: 14px;
	vertical-align: middle;
}

.ssp-docs-table thead th {
	background: #f8f9fa;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.ssp-docs-table tbody tr:nth-child( even ) {
	background: #f8f9fa;
}

.ssp-docs-table a {
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
}

.ssp-docs-table a:hover {
	color: #135e96;
	text-decoration: underline;
}

/* ============================================================
   SAFETY STANDARDS TAB — chip links
   (rendered by SSP_Safety_Standards)
   ============================================================ */

.ssp-safety-tab .ssp-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ssp-safety-tab a.ssp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s;
}

.ssp-safety-tab a.ssp-chip:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
	text-decoration: none;
}

.ssp-safety-tab a.ssp-chip img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.ssp-safety-tab span.ssp-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	background: #f9fafb;
}

/* ============================================================
   SSP PRODUCT TABS — custom tab panel replacing WC block
   ============================================================ */

.ssp-product-tabs-wrap {
	margin: 40px 0;
}

.ssp-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 2px solid #e5e7eb;
}

.ssp-tabs-nav li {
	margin: 0;
}

.ssp-tab-link {
	display: block;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.ssp-tab-link:hover {
	color: #1d2327;
	text-decoration: none;
}

.ssp-tab-link.is-active {
	color: #1d2327;
	border-bottom-color: #1d2327;
	font-weight: 600;
}

.ssp-tabs-content {
	padding: 28px 0;
}

.ssp-tab-panel {
	display: none;
}

.ssp-tab-panel.is-active {
	display: block;
}

@media ( max-width: 768px ) {
	.ssp-tab-link {
		padding: 10px 14px;
		font-size: 13px;
	}
}

/* ============================================================
   WHERE'S MY ORDER
   ============================================================ */

.ssp-wmo-wrap {
	max-width: 680px;
	margin: 0 auto;
}

.ssp-wmo-intro {
	color: #555;
	margin-bottom: 24px;
}

.ssp-wmo-error {
	background: #fdf2f2;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.ssp-wmo-form {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 28px;
}

.ssp-wmo-field {
	margin-bottom: 20px;
}

.ssp-wmo-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1d2327;
}

.ssp-wmo-field input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.ssp-wmo-field input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.15 );
}

.ssp-wmo-submit {
	width: 100%;
	padding: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

/* Result */

.ssp-wmo-result {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
}

.ssp-wmo-result-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: #f8f9fa;
	border-bottom: 1px solid #e5e7eb;
}

.ssp-wmo-result-header h2 {
	margin: 0;
	font-size: 20px;
}

.ssp-wmo-status {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	text-transform: capitalize;
	background: #e5e7eb;
	color: #374151;
}

.ssp-wmo-status-processing { background: #dbeafe; color: #1e40af; }
.ssp-wmo-status-completed  { background: #d1fae5; color: #065f46; }
.ssp-wmo-status-on-hold    { background: #fef3c7; color: #92400e; }
.ssp-wmo-status-cancelled  { background: #fee2e2; color: #991b1b; }
.ssp-wmo-status-pending    { background: #f3f4f6; color: #374151; }

.ssp-wmo-result-meta {
	display: flex;
	gap: 32px;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
	flex-wrap: wrap;
}

.ssp-wmo-meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ssp-wmo-meta-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	font-weight: 600;
}

.ssp-wmo-meta-value {
	font-size: 15px;
	font-weight: 500;
	color: #1d2327;
}

/* Timeline */

.ssp-wmo-timeline {
	padding: 24px;
	border-bottom: 1px solid #e5e7eb;
}

.ssp-wmo-steps {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
}

.ssp-wmo-steps::before {
	content: '';
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	height: 2px;
	background: #e5e7eb;
	z-index: 0;
}

.ssp-wmo-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 1;
	position: relative;
	z-index: 1;
}

.ssp-wmo-step-dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e5e7eb;
	border: 2px solid #e5e7eb;
	transition: background 0.2s, border-color 0.2s;
}

.ssp-wmo-step.is-done .ssp-wmo-step-dot {
	background: #1d2327;
	border-color: #1d2327;
}

.ssp-wmo-step.is-active .ssp-wmo-step-dot {
	background: #fff;
	border-color: #1d2327;
	box-shadow: 0 0 0 3px rgba( 29, 35, 39, 0.15 );
}

.ssp-wmo-step-label {
	font-size: 12px;
	text-align: center;
	color: #6b7280;
	font-weight: 500;
	line-height: 1.3;
}

.ssp-wmo-step.is-active .ssp-wmo-step-label {
	color: #1d2327;
	font-weight: 700;
}

/* Tracking */

.ssp-wmo-tracking,
.ssp-wmo-items {
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
}

.ssp-wmo-tracking h3,
.ssp-wmo-items h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
}

.ssp-wmo-tracking-item {
	background: #f8f9fa;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 10px;
	font-size: 14px;
}

.ssp-wmo-tracking-item p {
	margin: 4px 0;
}

/* Items table */

.ssp-wmo-items-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ssp-wmo-items-table th,
.ssp-wmo-items-table td {
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: middle;
}

.ssp-wmo-items-table thead th {
	background: #f8f9fa;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.ssp-wmo-back {
	font-size: 14px;
	color: #2271b1;
	text-decoration: none;
}

.ssp-wmo-back:hover {
	text-decoration: underline;
}

@media ( max-width: 768px ) {
	.ssp-wmo-result-meta {
		gap: 16px;
	}
	.ssp-wmo-step-label {
		font-size: 11px;
	}
}

/* ============================================================
   ADDRESS LOOKUP — CHECKOUT
   ============================================================ */

.ssp-address-lookup {
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 24px;
}

.ssp-lookup-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

.ssp-lookup-input-wrap {
	flex: 1;
}

.ssp-lookup-input-wrap label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1d2327;
}

.ssp-postcode-input {
	width: 100%;
	padding: 10px 14px !important;
	font-size: 15px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 4px !important;
	text-transform: uppercase;
	box-sizing: border-box;
}

.ssp-lookup-btn {
	white-space: nowrap;
	padding: 10px 18px !important;
	font-size: 14px !important;
	flex-shrink: 0;
}

.ssp-lookup-results {
	margin-top: 14px;
}

.ssp-lookup-results label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1d2327;
}

.ssp-address-select {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.ssp-lookup-message {
	margin-top: 10px;
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 4px;
}

.ssp-lookup-error {
	background: #fdf2f2;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.ssp-lookup-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.ssp-lookup-manual {
	margin: 10px 0 0 !important;
	font-size: 13px !important;
}

.ssp-enter-manually {
	color: #2271b1;
	text-decoration: none;
	font-size: 13px;
}

.ssp-enter-manually:hover {
	text-decoration: underline;
}

/* ============================================================
   CLICK & COLLECT — CHECKOUT TOGGLE
   ============================================================ */

.ssp-cc-wrap {
	margin-bottom: 28px;
}

.ssp-cc-toggle-row {
	display: flex;
	gap: 0;
	border: 2px solid #1d2327;
	border-radius: 6px;
	overflow: hidden;
	max-width: 480px;
}

.ssp-cc-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: 0;
	background: #fff;
	color: #6b7280;
	transition: background 0.15s, color 0.15s;
	font-family: inherit;
}

.ssp-cc-btn + .ssp-cc-btn {
	border-left: 2px solid #1d2327;
}

.ssp-cc-btn:hover {
	background: #f3f4f6;
	color: #1d2327;
}

.ssp-cc-btn.is-active {
	background: #1d2327;
	color: #fff;
}

.ssp-cc-btn svg {
	flex-shrink: 0;
}

/* Location selector */

.ssp-cc-locations {
	margin-top: 16px;
	max-width: 480px;
}

.ssp-cc-locations-label {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 10px;
	color: #1d2327;
}

.ssp-cc-location-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: border-color 0.15s;
}

.ssp-cc-location-option:has( input:checked ) {
	border-color: #1d2327;
	background: #f8f9fa;
}

.ssp-cc-location-option input[type="radio"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.ssp-cc-location-details {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
}

.ssp-cc-location-details strong {
	font-size: 15px;
	color: #1d2327;
}

.ssp-cc-location-address,
.ssp-cc-location-notes {
	font-size: 13px;
	color: #6b7280;
}

.ssp-cc-free {
	font-size: 13px;
	font-weight: 700;
	color: #065f46;
	margin-top: 2px;
}

/* Thank you page */

.ssp-cc-thankyou {
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 24px;
}

.ssp-cc-thankyou h2 {
	margin-top: 0;
	font-size: 18px;
}

/* ============================================================
   POST-PURCHASE ACCOUNT CREATION PANEL
   ============================================================ */

.ssp-account-creation-wrap {
	background: #f8f9fa;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 28px;
	margin: 28px 0;
}

.ssp-account-creation-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: center;
}

@media ( max-width: 768px ) {
	.ssp-account-creation-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.ssp-account-creation-heading {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1d2327;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ssp-account-creation-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ssp-account-creation-bullets li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #374151;
}

.ssp-account-creation-bullets li::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1d2327;
	flex-shrink: 0;
}

.ssp-account-creation-action {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ssp-account-creation-btn {
	width: 100%;
	padding: 14px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.ssp-account-creation-note {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
	text-align: center;
}

.ssp-account-creation-note a {
	color: #2271b1;
	text-decoration: underline;
}

/* ============================================================
   SMS OPT-IN — CHECKOUT
   ============================================================ */

.ssp-sms-optin {
	margin-bottom: 16px !important;
	padding: 14px 16px;
	background: #f8f9fa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.ssp-sms-optin-label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-weight: 500 !important;
}

.ssp-sms-optin-checkbox {
	margin-top: 2px !important;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.ssp-sms-optin-text {
	font-size: 14px;
	color: #1d2327;
	line-height: 1.4;
}

.ssp-sms-optin-desc {
	margin: 8px 0 0 26px !important;
	font-size: 12px !important;
	color: #6b7280 !important;
}

/* ============================================================
   TAGLINE WATERMARK
   ============================================================ */

.ssp-tagline-wrap {
	width: 100%;
	overflow: hidden;
	padding: 20px 0 10px;
	pointer-events: none;
	user-select: none;
}

.ssp-tagline-text {
	display: block;
	font-size: clamp( 48px, 8vw, 96px );
	font-weight: 900;
	letter-spacing: 0.04em;
	color: #1d2327;
	opacity: 0.06;
	white-space: nowrap;
	line-height: 1;
	text-align: center;
}

/* ============================================================
   PRODUCT TEMPLATES — SHARED
   ============================================================ */

.ssp-template {
	margin: 0 0 40px;
	width: 100%;
}

.ssp-template-heading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 10px;
	color: #1d2327;
}

.ssp-template-subheading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 8px;
	color: #1d2327;
}

.ssp-template-body {
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0;
}

.ssp-template-divider {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 20px 0;
}

/* ============================================================
   MARQUEE TEMPLATE
   ============================================================ */

.ssp-template-marquee {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	min-height: 400px;
}

.ssp-marquee-image {
	overflow: hidden;
}

.ssp-marquee-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ssp-marquee-content {
	padding: 40px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
}

.ssp-marquee-block {
	/* intentionally unstyled — spacing handled by dividers */
}

@media ( max-width: 768px ) {
	.ssp-template-marquee {
		grid-template-columns: 1fr;
	}

	.ssp-marquee-image {
		max-height: 320px;
	}

	.ssp-marquee-content {
		padding: 28px 24px;
	}
}

/* ============================================================
   CHESSBOARD TEMPLATE
   ============================================================ */

.ssp-template-chessboard {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ssp-chessboard-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.ssp-chessboard-cell {
	overflow: hidden;
}

.ssp-chessboard-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 320px;
}

.ssp-chessboard-hero {
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
}

.ssp-chessboard-hero-heading {
	font-size: 22px;
	letter-spacing: 0.04em;
	margin-bottom: 16px;
}

.ssp-chessboard-features {
	padding: 40px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	background: #fff;
}

.ssp-chessboard-feature-block {
	/* individual feature block */
}

@media ( max-width: 768px ) {
	.ssp-chessboard-row {
		grid-template-columns: 1fr;
	}

	/* On mobile: reorder so text comes before image */
	.ssp-chessboard-top .ssp-chessboard-image {
		order: 2;
	}

	.ssp-chessboard-top .ssp-chessboard-hero {
		order: 1;
		padding: 28px 24px;
	}

	.ssp-chessboard-bottom .ssp-chessboard-features {
		order: 1;
		padding: 28px 24px;
	}

	.ssp-chessboard-bottom .ssp-chessboard-image {
		order: 2;
	}

	.ssp-chessboard-image img {
		min-height: 240px;
	}
}

/* ============================================================
   SAFETY STANDARDS — ARCHIVE
   ============================================================ */

.ssp-safety-archive {
	max-width: 100%;
}

.ssp-safety-filter-bar {
	margin-bottom: 28px;
	padding: 20px 24px;
	background: #f8f9fa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.ssp-safety-search-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.ssp-safety-search-input-wrap {
	flex: 1;
	min-width: 200px;
}

.ssp-safety-search-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.ssp-safety-cat-select {
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 14px;
	min-width: 180px;
}

.ssp-safety-search-btn {
	white-space: nowrap;
}

.ssp-safety-clear-btn {
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
	white-space: nowrap;
}

.ssp-safety-clear-btn:hover {
	color: #1d2327;
}

.ssp-safety-results-count {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 20px;
}

/* Grid */

.ssp-safety-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
	margin-bottom: 32px;
}

@media ( max-width: 960px ) {
	.ssp-safety-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 600px ) {
	.ssp-safety-grid {
		grid-template-columns: 1fr;
	}
}

/* Card */

.ssp-safety-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ssp-safety-card:hover {
	border-color: #1d2327;
	box-shadow: 0 2px 12px rgba( 0, 0, 0, 0.08 );
	text-decoration: none;
	color: inherit;
}

.ssp-safety-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ssp-safety-card-icon img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.ssp-safety-card-number {
	font-size: 18px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.2;
}

.ssp-safety-version {
	font-size: 12px;
	font-weight: 400;
	color: #6b7280;
	margin-left: 4px;
}

.ssp-safety-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin: 0;
	line-height: 1.4;
}

.ssp-safety-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ssp-safety-card-excerpt {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
	flex: 1;
}

.ssp-safety-card-cta {
	font-size: 13px;
	font-weight: 600;
	color: #2271b1;
	margin-top: auto;
}

.ssp-safety-card:hover .ssp-safety-card-cta {
	color: #1d2327;
}

/* Pagination */

.ssp-safety-pagination {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 32px;
}

.ssp-safety-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-size: 13px;
	text-decoration: none;
	color: #374151;
	transition: background 0.15s;
}

.ssp-safety-pagination .page-numbers.current {
	background: #1d2327;
	color: #fff;
	border-color: #1d2327;
}

.ssp-safety-pagination .page-numbers:hover:not(.current) {
	background: #f3f4f6;
}

/* No results */

.ssp-safety-no-results {
	text-align: center;
	padding: 48px 24px;
	color: #6b7280;
}

/* ============================================================
   SAFETY STANDARDS — SINGLE
   ============================================================ */

.ssp-safety-single {
	max-width: 100%;
}

.ssp-safety-single-header {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 2px solid #e5e7eb;
}

.ssp-safety-single-number-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ssp-safety-single-icon {
	width: 64px;
	height: 64px;
	object-fit: contain;
	flex-shrink: 0;
}

.ssp-safety-single-number {
	font-size: 32px;
	font-weight: 900;
	color: #1d2327;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.ssp-safety-single-version {
	font-size: 18px;
	font-weight: 400;
	color: #6b7280;
}

.ssp-safety-single-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

/* Relationships */

.ssp-safety-relationships {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	padding: 14px 16px;
	background: #f8f9fa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 13px;
}

.ssp-safety-parent,
.ssp-safety-children {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ssp-safety-rel-label {
	font-weight: 600;
	color: #6b7280;
}

/* Body */

.ssp-safety-single-body {
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: 32px;
	align-items: start;
}

@media ( max-width: 768px ) {
	.ssp-safety-single-body {
		grid-template-columns: 1fr;
	}
}

.ssp-safety-section {
	margin-bottom: 28px;
}

.ssp-safety-section-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e7eb;
}

.ssp-safety-section-content {
	font-size: 14px;
	line-height: 1.7;
	color: #374151;
}

.ssp-safety-related-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Sidebar */

.ssp-safety-single-sidebar {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ssp-safety-ext-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
}

.ssp-safety-archive-link {
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
}

.ssp-safety-archive-link:hover {
	color: #1d2327;
}

/* Products grid */

.ssp-safety-products {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid #e5e7eb;
}

.ssp-safety-products-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 16px;
	margin-top: 16px;
}

@media ( max-width: 768px ) {
	.ssp-safety-products-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

.ssp-safety-product-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	transition: border-color 0.15s;
}

.ssp-safety-product-card:hover {
	border-color: #1d2327;
	text-decoration: none;
}

.ssp-safety-product-thumb {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.ssp-safety-product-name {
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	line-height: 1.3;
}

.ssp-safety-product-price {
	font-size: 13px;
	color: #6b7280;
}

/* Small chip variant */

.ssp-chip-small {
	font-size: 11px !important;
	padding: 4px 10px !important;
}

/* ============================================================
   CLEARANCE PRICE — SAVING DISPLAY
   ============================================================ */

.ssp-clearance-saving {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #065f46;
	background: #d1fae5;
	border: 1px solid #6ee7b7;
	border-radius: 4px;
	padding: 4px 10px;
	display: inline-block;
}

/* ============================================================
   YOU SAVE BADGE — Sale and Clearance price display
   ============================================================ */

.ssp-you-save {
	display: inline-block;
	margin-left: 8px;
	padding: 4px 10px;
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	vertical-align: middle;
}

/* ============================================================
   DISCONTINUED — YOU MIGHT ALSO LIKE
   ============================================================ */

.ssp-discontinued-replacements {
	margin: 24px 0;
	padding: 20px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.ssp-replacements-heading {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
	color: #1d2327;
}

.ssp-replacements-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 16px;
}

@media ( max-width: 768px ) {
	.ssp-replacements-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

.ssp-replacement-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	transition: border-color 0.15s;
}

.ssp-replacement-card:hover {
	border-color: #1d2327;
	text-decoration: none;
	color: inherit;
}

.ssp-replacement-thumb {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.ssp-replacement-name {
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	line-height: 1.3;
}

.ssp-replacement-price {
	font-size: 13px;
	color: #6b7280;
}
