.cryopub-wrap {
	--cryopub-category-color: #1a1a1a;
	--cryopub-category-font: inherit;
	--cryopub-category-weight: inherit;
	--cryopub-category-size: 1.25em;
	--cryopub-pub-color: #333333;
	--cryopub-pub-font: inherit;
	--cryopub-pub-weight: inherit;
	--cryopub-pub-size: 1em;
	--cryopub-hover-bg: #0b6d8c;
	--cryopub-hover-text: inherit;
	width: 100%;
	box-sizing: border-box;
}

.cryopub-wrap,
.cryopub-wrap * {
	box-sizing: border-box;
}

.cryopub-wrap .cryopub-category {
	margin: 0 0 2em 0;
}

.cryopub-wrap .cryopub-category:last-child {
	margin-bottom: 0;
}

.cryopub-wrap .cryopub-category-title {
	color: var(--cryopub-category-color) !important;
	font-family: var(--cryopub-category-font) !important;
	font-weight: var(--cryopub-category-weight) !important;
	font-size: var(--cryopub-category-size) !important;
	margin: 0 0 0.75em 0;
	line-height: 1.3;
}

/* Higher-specificity list-style reset: many themes and Elementor's own
   base stylesheet style bare <ol>/<li> elements (list-style, padding,
   margin), so these rules need to win without relying on source order. */
.cryopub-wrap ol.cryopub-list,
.cryopub-wrap ol.cryopub-list li.cryopub-item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cryopub-wrap .cryopub-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cryopub-wrap .cryopub-item:last-child {
	border-bottom: none;
}

.cryopub-wrap .cryopub-item-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6em;
	padding: 0.85em 0.75em;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cryopub-wrap .cryopub-item-inner:hover,
.cryopub-wrap .cryopub-item-inner:focus-within,
.cryopub-wrap .cryopub-item-inner.cryopub-touch-active {
	background-color: var(--cryopub-hover-bg) !important;
	color: var(--cryopub-hover-text) !important;
}

.cryopub-wrap .cryopub-item-inner:hover .cryopub-citation,
.cryopub-wrap .cryopub-item-inner:focus-within .cryopub-citation,
.cryopub-wrap .cryopub-item-inner.cryopub-touch-active .cryopub-citation,
.cryopub-wrap .cryopub-item-inner:hover .cryopub-number,
.cryopub-wrap .cryopub-item-inner:focus-within .cryopub-number,
.cryopub-wrap .cryopub-item-inner.cryopub-touch-active .cryopub-number,
.cryopub-wrap .cryopub-item-inner:hover .cryopub-link,
.cryopub-wrap .cryopub-item-inner:focus-within .cryopub-link,
.cryopub-wrap .cryopub-item-inner.cryopub-touch-active .cryopub-link {
	color: inherit !important;
}

.cryopub-wrap .cryopub-number {
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--cryopub-pub-color) !important;
	min-width: 1.6em;
}

.cryopub-wrap .cryopub-list--no-numbers .cryopub-number {
	display: none;
}

.cryopub-wrap .cryopub-citation {
	flex: 1 1 320px;
	color: var(--cryopub-pub-color) !important;
	font-family: var(--cryopub-pub-font) !important;
	font-weight: var(--cryopub-pub-weight) !important;
	font-size: var(--cryopub-pub-size) !important;
	line-height: 1.5;
}

.cryopub-wrap a.cryopub-link {
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: underline !important;
	color: inherit !important;
	border: none !important;
	background: none !important;
}

.cryopub-wrap a.cryopub-link:hover {
	text-decoration: none !important;
}

.cryopub-wrap .cryopub-empty {
	font-style: italic;
	opacity: 0.7;
}

/* Mobile */
@media (max-width: 600px) {
	.cryopub-wrap .cryopub-item-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35em;
		padding: 0.9em 0.6em;
	}

	.cryopub-wrap .cryopub-number {
		min-width: auto;
	}

	.cryopub-wrap .cryopub-link {
		margin-top: 0.15em;
	}
}
