/*
 * WPScorix review boxes: verdict, specs ("At a glance"), bottom line.
 * Matches the Schema Reviews cards (white, rounded-2xl, gray-200 border, shadow-sm)
 * and uses the spr-* tone classes from Schema Reviews tone-utilities.css.
 */

.spr-box {
	--spr-box-border: #e5e7eb;
	--spr-box-muted: #64748b;
	--spr-box-ink: #0f172a;
	--spr-box-accent: #16a34a;
	box-sizing: border-box;
	margin: 0 0 1.5rem;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--spr-box-border);
	border-radius: 1rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	color: var(--spr-box-ink);
	font-size: 0.95rem;
	line-height: 1.55;
}

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

.spr-box__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.spr-box__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--spr-box-muted);
}

.spr-box__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.3;
	font-weight: 800;
}

.spr-box__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.spr-box__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	border: 1px solid var(--spr-box-border);
	background: #f8fafc;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #334155;
}

.spr-box__badge--choice {
	background: #fef3c7;
	border-color: #fcd34d;
	color: #92400e;
}

.spr-box__badge--choice::before {
	content: "★";
	margin-right: 0.3rem;
	color: #f59e0b;
}

.spr-box__head-score {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.spr-box__score {
	display: inline-flex;
	align-items: baseline;
	gap: 0.1rem;
	padding: 0.3rem 0.7rem;
	border-radius: 0.6rem;
	font-weight: 900;
	line-height: 1;
}

.spr-box__score strong {
	font-size: 1.5rem;
}

.spr-box__score small {
	font-size: 0.8rem;
	font-weight: 700;
	opacity: 0.75;
}

.spr-box__score-label {
	margin-left: 0.5rem;
	font-size: 0.85rem;
	font-weight: 800;
}

.spr-box__verdict {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.5;
}

.spr-box__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.spr-box__fit {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.75rem;
	background: #f8fafc;
	border: 1px solid var(--spr-box-border);
}

.spr-box__fit strong {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.spr-box__fit--yes strong {
	color: #15803d;
}

.spr-box__fit--no strong {
	color: #b91c1c;
}

.spr-box__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spr-box__list li {
	position: relative;
	margin: 0 0 0.4rem;
	padding-left: 1.5rem;
}

.spr-box__list li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 900;
}

.spr-box__list--pros li::before {
	content: "+";
	color: #16a34a;
}

.spr-box__list--cons li::before {
	content: "−";
	color: #dc2626;
}

.spr-box__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
}

.spr-box__price {
	margin: 0;
	color: var(--spr-box-muted);
}

.spr-box__price strong {
	color: var(--spr-box-ink);
	font-size: 1.1rem;
}

.spr-box__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.spr-box--specs .spr-box__cta,
.spr-box--bottom-line .spr-box__cta {
	margin-top: 1.25rem;
}

.spr-box__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.1rem;
	border-radius: 0.6rem;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none !important;
	transition: opacity 0.15s ease;
}

.spr-box__btn:hover {
	opacity: 0.9;
}

.spr-box__btn--primary {
	background: var(--spr-box-accent);
	color: #fff !important;
}

.spr-box__btn--secondary {
	background: #fff;
	border: 1px solid var(--spr-box-border);
	color: var(--spr-box-ink) !important;
}

.spr-box__scores {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.spr-box__score-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	background: #f8fafc;
	border: 1px solid var(--spr-box-border);
}

.spr-box__score-title {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--spr-box-muted);
}

.spr-box__muted {
	color: var(--spr-box-muted);
	font-weight: 500;
}

.spr-box__specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.5rem;
	margin: 0;
}

.spr-box__spec {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.spr-box__spec dt {
	margin: 0;
	color: var(--spr-box-muted);
	font-size: 0.85rem;
}

.spr-box__spec dd {
	margin: 0;
	text-align: right;
	font-weight: 700;
	font-size: 0.9rem;
}

.spr-box__spec dd a {
	color: inherit;
	text-decoration: underline;
}

.spr-box__text p {
	margin: 0 0 0.75rem;
}

@media (max-width: 767px) {
	.spr-box {
		padding: 1.1rem;
	}

	.spr-box__head {
		flex-direction: column;
	}

	.spr-box__grid,
	.spr-box__scores,
	.spr-box__specs {
		grid-template-columns: 1fr;
	}

	.spr-box__btn {
		width: 100%;
	}

	.spr-box__cta {
		width: 100%;
	}
}

/* Tables: feature check, performance results. Scroll horizontally inside the wrapper on small screens. */
.spr-box__title--sm {
	font-size: 1.1rem;
}

.spr-box--table .spr-box__head,
.spr-box--history .spr-box__head {
	margin-bottom: 0.75rem;
}

.spr-box__table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.spr-box__table {
	width: 100%;
	min-width: 440px;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.spr-box__table th,
.spr-box__table td {
	padding: 0.6rem 0.75rem;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	vertical-align: middle;
	background: transparent;
}

.spr-box__table thead th {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--spr-box-muted);
	background: #f8fafc;
	white-space: nowrap;
}

.spr-box__table tbody th {
	font-weight: 600;
}

.spr-box__table .spr-box__c {
	text-align: center;
}

.spr-box__table .spr-box__r {
	text-align: right;
	white-space: nowrap;
}

.spr-box__yes {
	color: #16a34a;
	font-weight: 900;
}

.spr-box__no {
	color: #dc2626;
	font-weight: 900;
}

.spr-box__result {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.spr-box__result--muted {
	background: #f1f5f9;
	border: 1px solid var(--spr-box-border);
	color: #475569;
}

/* Review history. */
.spr-box__history {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spr-box__history li {
	display: flex;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.spr-box__history li:last-child {
	border-bottom: 0;
}

.spr-box__history time {
	flex: 0 0 9rem;
	color: var(--spr-box-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

@media (max-width: 767px) {
	.spr-box__history li {
		flex-direction: column;
		gap: 0.15rem;
	}

	.spr-box__history time {
		flex-basis: auto;
	}
}

/* Hosting: Stage 1 notice and the "what it really costs" box (review-meta/hosting-fields.php). */
.spr-box--notice {
	padding: 14px 18px;
	border-left: 4px solid #f59e0b;
	background: #fffbeb;
}

.spr-box--notice p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #78350f;
}

.spr-box__cost {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.spr-box__cost-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}

.spr-box__cost-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

.spr-box__cost-value {
	font-size: 28px;
	line-height: 1.1;
	color: #0f172a;
}

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

/* Hosting Review Standard (display/hosting-boxes.php): warning, early review, uptime line, table notes. */
.spr-box--warning {
	padding: 14px 18px;
	border-left: 4px solid #dc2626;
	background: #fef2f2;
}

.spr-box--warning p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #7f1d1d;
}

.spr-box__badge--early {
	background: #fffbeb;
	border-color: #f59e0b;
	color: #78350f;
}

.spr-box__cap-note {
	margin: 0.5rem 0 0;
	font-size: 14px;
}

.spr-box__table-note {
	margin: 0.5rem 0 0;
	font-size: 13px;
}

.spr-box--hosting-speed .spr-box__head + .spr-box__table-wrap {
	margin-top: 0;
}

.spr-box--hosting-speed .spr-box__table-note + .spr-box__head {
	margin-top: 1rem;
}

.spr-box--uptime {
	padding: 14px 18px;
}

.spr-box__uptime {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.6rem;
	margin: 0;
	font-size: 15px;
}

.spr-box__uptime-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

.spr-box__uptime strong {
	font-size: 22px;
}

/* Pricing Table block (Schema Reviews) on review pages: long prices wrapped, buttons never cut off. */
.spr-pricing-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.spr-pricing-table td {
	vertical-align: top;
}

.spr-pricing-table td:nth-child(2) {
	min-width: 140px;
	max-width: 230px;
}

.spr-pricing-table td:nth-child(2) .text-lg {
	display: block;
	font-size: 15px;
	line-height: 1.45;
}

.spr-pricing-table td:nth-child(3) {
	min-width: 180px;
}

.spr-pricing-table .spr-pricing-table__action a {
	white-space: nowrap;
}

/* "Compared with…" links on reviews (display/compared-with.php). */
.spr-compared-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spr-compared-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--spr-box-border);
	border-radius: 0.75rem;
	background: #f8fafc;
	color: var(--spr-box-ink);
	font-weight: 700;
	text-decoration: none;
}

.spr-compared-list a:hover,
.spr-compared-list a:focus-visible {
	border-color: var(--spr-box-accent);
	background: #f0fdf4;
}

.spr-compared-list em {
	font-style: normal;
	font-weight: 600;
	color: var(--spr-box-muted);
}

.spr-compared-list__go {
	color: var(--spr-box-accent);
}
