/* TC Review Box: front-end */

.tcrb {
	--tcrb-a: var(--tcrb-accent, #0b6bcb);
	--tcrb-ink: #111827;
	--tcrb-muted: #4b5563;
	--tcrb-line: #e5e7eb;
	--tcrb-soft: #f6f7f9;
	--tcrb-pro: #15803d;
	--tcrb-con: #b91c1c;
	box-sizing: border-box;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--tcrb-line);
	border-top: 4px solid var(--tcrb-a);
	border-radius: 12px;
	background: #fff;
	color: var(--tcrb-ink);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}

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

.tcrb p {
	margin: 0 0 .75em;
	padding: 0;
}

.tcrb .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Head */
.tcrb__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 16px;
}

.tcrb__score {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--tcrb-a);
	color: #fff;
	line-height: 1;
	text-align: center;
}

.tcrb__score-num {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.tcrb__score-max {
	font-size: 14px;
	font-weight: 600;
	opacity: .85;
}

.tcrb__head-text {
	min-width: 0;
}

.tcrb .tcrb__eyebrow {
	margin: 0 0 2px;
	color: var(--tcrb-a);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tcrb .tcrb__title {
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: var(--tcrb-ink) !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
}

.tcrb__rating-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--tcrb-muted);
	font-size: 14px;
}

.tcrb .tcrb__byline {
	margin: 6px 0 0;
	color: var(--tcrb-muted);
	font-size: 13px;
	line-height: 1.45;
}

.tcrb .tcrb__byline a {
	color: inherit !important;
	text-decoration: underline;
}

.tcrb__author {
	color: var(--tcrb-ink);
	font-weight: 600;
}

.tcrb .tcrb__summary {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
}

/* Sections */
.tcrb__section {
	margin-top: 20px;
}

.tcrb .tcrb__label {
	margin: 0 0 10px !important;
	padding: 0 !important;
	color: var(--tcrb-muted) !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: .06em;
	line-height: 1.3 !important;
	text-transform: uppercase;
}

/* Sub-ratings */
.tcrb__criteria {
	display: grid;
	gap: 8px;
}

.tcrb__crit {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr 40px;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

.tcrb__bar {
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: 99px;
	background: var(--tcrb-line);
}

.tcrb__bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--tcrb-a);
}

.tcrb__crit-val {
	font-weight: 700;
	text-align: right;
}

/* Pros / cons */
.tcrb__pc {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.tcrb__pc > div {
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--tcrb-soft);
}

.tcrb ul.tcrb__list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	line-height: 1.5 !important;
}

.tcrb ul.tcrb__list > li {
	position: relative;
	margin: 0 0 8px !important;
	padding: 0 0 0 28px !important;
	list-style: none !important;
	font-size: 15px;
}

.tcrb ul.tcrb__list > li:last-child {
	margin-bottom: 0 !important;
}

.tcrb__pros li::before,
.tcrb__cons li::before {
	content: "";
	position: absolute;
	top: .18em;
	left: 0;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--tcrb-pro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.tcrb__cons li::before {
	background-color: var(--tcrb-con);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6.5 12h11'/%3E%3C/svg%3E");
}

/* Buy it if / skip it if */
.tcrb__fit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.tcrb .tcrb__fit p {
	margin: 0;
	padding: 12px 14px;
	border-left: 3px solid var(--tcrb-pro);
	border-radius: 0 8px 8px 0;
	background: var(--tcrb-soft);
	font-size: 15px;
}

.tcrb .tcrb__fit .tcrb__fit-no {
	border-left-color: var(--tcrb-con);
}

/* Our take */
.tcrb__take p:last-child {
	margin-bottom: 0;
}

.tcrb__take a {
	color: var(--tcrb-a);
}

/* Alternatives */
.tcrb ul.tcrb__list--plain > li {
	padding: 10px 0 0 !important;
	border-top: 1px solid var(--tcrb-line);
}

.tcrb ul.tcrb__list--plain > li:first-child {
	padding-top: 0 !important;
	border-top: 0;
}

.tcrb__alt-reason {
	color: var(--tcrb-muted);
}

.tcrb__alts a {
	color: var(--tcrb-a) !important;
	font-weight: 700;
}

.tcrb__alts .tcrb-rating {
	display: flex;
	width: max-content;
	margin-top: 4px;
}

/* Buttons */
.tcrb__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.tcrb a.tcrb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 20px;
	border: 2px solid var(--tcrb-a);
	border-radius: 8px;
	background: #fff;
	color: var(--tcrb-a) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: filter .15s ease, background-color .15s ease;
}

.tcrb a.tcrb__btn--primary {
	background: var(--tcrb-a);
	color: #fff !important;
}

.tcrb a.tcrb__btn--amazon {
	border-color: var(--tcrb-amazon, #ffa41c);
	background: var(--tcrb-amazon, #ffa41c);
	color: var(--tcrb-amazon-text, #0f1111) !important;
}

.tcrb a.tcrb__btn:hover {
	filter: brightness(.92);
}

.tcrb a.tcrb__btn:focus-visible {
	outline: 3px solid var(--tcrb-a);
	outline-offset: 2px;
}

.tcrb a.tcrb__btn--amazon:focus-visible {
	outline-color: #c45500;
}

.tcrb .tcrb__disclosure {
	margin: 10px 0 0;
	color: var(--tcrb-muted);
	font-size: 12px;
}

/* Compact */
.tcrb--compact {
	margin: 0;
	padding: 18px 20px;
}

.tcrb--compact .tcrb__score {
	width: 68px;
	height: 68px;
}

.tcrb--compact .tcrb__score-num {
	font-size: 24px;
}

.tcrb--compact .tcrb__head {
	margin-bottom: 12px;
}

.tcrb--compact .tcrb__summary {
	font-size: 16px;
}

.tcrb .tcrb__more {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.tcrb .tcrb__more a {
	color: var(--tcrb-a) !important;
}

.tcrb--compact .tcrb__actions {
	margin-top: 14px;
}

/* Stars (also used outside the box) */
.tcrb-stars {
	--tcrb-p: calc(var(--tcrb-r, 0) / 5 * 100%);
	display: inline-block;
	flex: 0 0 auto;
	width: 95px;
	height: 19px;
	vertical-align: middle;
	background: linear-gradient(90deg, var(--tcrb-star, #f5a400) var(--tcrb-p), var(--tcrb-star-off, #d1d5db) var(--tcrb-p));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.1.8-5.3 4.9 1.4 7.1L12 17.6l-6.3 3.6 1.4-7.1L1.8 9.2l7.1-.8z'/%3E%3C/svg%3E") 0 0 / 19px 19px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.1.8-5.3 4.9 1.4 7.1L12 17.6l-6.3 3.6 1.4-7.1L1.8 9.2l7.1-.8z'/%3E%3C/svg%3E") 0 0 / 19px 19px repeat-x;
}

.tcrb-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
	line-height: 1;
	white-space: nowrap;
}

.tcrb-rating .tcrb-stars {
	width: 80px;
	height: 16px;
	-webkit-mask-size: 16px 16px;
	mask-size: 16px 16px;
}

.tcrb-rating__num {
	font-size: 14px;
	font-weight: 700;
}

/* Mobile */
@media (max-width: 600px) {
	.tcrb {
		padding: 18px 16px;
	}

	.tcrb__head {
		gap: 14px;
	}

	.tcrb__score {
		width: 68px;
		height: 68px;
	}

	.tcrb__score-num {
		font-size: 24px;
	}

	.tcrb .tcrb__title {
		font-size: 19px !important;
	}

	.tcrb__pc,
	.tcrb__fit {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.tcrb__crit {
		grid-template-columns: 1fr 40px;
		gap: 4px 12px;
	}

	.tcrb__crit .tcrb__bar {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.tcrb a.tcrb__btn {
		flex: 1 1 100%;
	}
}

@media print {
	.tcrb__actions,
	.tcrb__disclosure {
		display: none;
	}
}
