/* Chemistry shortlist / compare */

.esteem-pin {
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--esteem-border, #e8ecf0);
	border-radius: 6px;
	background: var(--esteem-bg-elevated, #fff);
	color: var(--esteem-text, #212529);
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.esteem-pin.is-on {
	background: var(--esteem-accent, #0e76bb);
	border-color: var(--esteem-accent, #0e76bb);
	color: #fff;
}

.esteem-pin:focus {
	outline: 2px solid var(--esteem-accent, #0e76bb);
	outline-offset: 2px;
}

.app-hero-actions .esteem-pin {
	padding: 11px 20px;
	border-radius: 2px;
	font-size: 13px;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .85);
}

.app-hero-actions .esteem-pin.is-on {
	background: #fff;
	color: #0b3d6e;
	border-color: #fff;
}

.cat-card {
	position: relative;
}

.cat-card .esteem-pin {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 6px 8px;
}

.cat-card__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	color: inherit;
	text-decoration: none;
	min-height: 100%;
}

.cat-card__link:hover,
.cat-card__link:focus {
	color: inherit;
	text-decoration: none;
}

.cat-card .cat-card-tag {
	padding-right: 72px;
}

.esteem-float-rail .esteem-float-btn--shortlist {
	position: relative !important;
}

.esteem-shortlist-count {
	position: absolute !important;
	top: -4px !important;
	right: -4px !important;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: #111827 !important;
	color: #fff !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px !important;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-shadow: none !important;
}

.esteem-shortlist-count[hidden] {
	display: none !important;
}

.esteem-compare-bar {
	position: fixed;
	left: 16px;
	bottom: 20px;
	z-index: 1085;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	max-width: calc(100vw - 96px);
	padding: 12px 16px;
	background: var(--esteem-bg-elevated, #fff);
	color: var(--esteem-text, #212529);
	border: 1px solid var(--esteem-border, #e8ecf0);
	border-top: 3px solid var(--esteem-accent, #0e76bb);
	border-radius: 10px;
	box-shadow: 0 12px 32px var(--esteem-shadow, rgba(16, 24, 40, .16));
	font-family: 'Montserrat', sans-serif;
}

.esteem-compare-bar[hidden] {
	display: none;
}

.esteem-compare-bar p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.esteem-compare-bar #esteem-compare-bar-note {
	font-size: 12px;
	font-weight: 500;
	color: var(--esteem-text-muted, #5b6570);
}

a.esteem-float-btn--shortlist {
	text-decoration: none !important;
	color: #fff !important;
}

.esteem-compare-bar a,
.esteem-compare-bar button {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.esteem-compare-bar a {
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--esteem-accent, #0e76bb);
	color: #fff;
	text-decoration: none;
}

.esteem-compare-bar button {
	border: 0;
	background: transparent;
	color: var(--esteem-link, #0e76bb);
	padding: 0;
}

.esteem-compare-table-wrap {
	overflow-x: auto;
	margin: 8px 0 20px;
	border: 1px solid var(--esteem-border, #e8ecf0);
	border-radius: 10px;
	background: var(--esteem-bg-elevated, #fff);
}

.esteem-compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 14px;
}

.esteem-compare-table th,
.esteem-compare-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--esteem-border, #e8ecf0);
	vertical-align: top;
	text-align: left;
}

.esteem-compare-table th {
	width: 18%;
	background: var(--esteem-bg-muted, #f5f7f9);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--esteem-text-muted, #5b6570);
}

.esteem-compare-table thead th {
	text-transform: none;
	letter-spacing: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--esteem-heading, #111827);
	background: var(--esteem-bg-elevated, #fff);
}

.esteem-compare-table a {
	font-weight: 600;
}

.esteem-compare-head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.esteem-compare-empty {
	padding: 20px;
	background: var(--esteem-bg-muted, #f5f7f9);
	border-radius: 10px;
}

.esteem-compare-picks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.esteem-compare-pick {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--esteem-border, #e8ecf0);
	border-top: 3px solid var(--esteem-accent, #0e76bb);
	border-radius: 8px;
	background: var(--esteem-bg-elevated, #fff);
}

.esteem-compare-pick h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
}

.esteem-compare-pick h3:after {
	display: none !important;
	content: none !important;
}

.esteem-compare-pick p {
	margin: 0;
	font-size: 13px;
	color: var(--esteem-text-muted, #5b6570);
}

@media (max-width: 900px) {
	.esteem-compare-picks {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.esteem-compare-bar {
		left: 12px;
		right: 72px;
		bottom: 16px;
		max-width: none;
	}
}

html[data-theme="dark"] .esteem-shortlist-count {
	background: #f3f6f9 !important;
	color: #10161d !important;
}
