/* ==========================================================================
   Cheap Vinyl Records: design layer over Twenty Twenty
   1rem = 10px in Twenty Twenty (html font-size 62.5%).
   ========================================================================== */

@font-face {
	font-family: "Archivo CVR";
	src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Archivo CVR";
	src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: italic;
	font-display: swap;
}

:root {
	--cvr-ink: #1a1f36;
	--cvr-ink-2: #262c47;
	--cvr-red: #d7263d;
	--cvr-red-dark: #b01c30;
	--cvr-sticker: #ffe14d;
	--cvr-sleeve: #f1f2f4;
	--cvr-groove: #5b6170;
	--cvr-rule: #e1e3e8;
	--cvr-paper: #ffffff;
	--cvr-font: "Archivo CVR", "Archivo", "Helvetica Neue", Arial, sans-serif;
	--cvr-measure: 68rem;
	--cvr-wide: 120rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body,
body.custom-background {
	background: var(--cvr-paper);
	color: var(--cvr-ink);
}

body :not(code):not(kbd):not(pre):not(samp):not(svg):not(path) {
	font-family: var(--cvr-font) !important;
}

body {
	font-size: 1.8rem;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.heading-size-1, .heading-size-2, .heading-size-3, .heading-size-4 {
	color: var(--cvr-ink);
	font-stretch: 75%;
	font-weight: 800;
	letter-spacing: -0.005em;
	line-height: 1.02;
}

a {
	color: var(--cvr-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--cvr-red-dark);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--cvr-red);
	outline-offset: 3px;
}

::selection {
	background: var(--cvr-sticker);
	color: var(--cvr-ink);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

#site-header {
	background: var(--cvr-paper);
	border-bottom: 1px solid var(--cvr-rule);
}

#site-header .header-inner {
	padding: 1.4rem 0;
	max-width: var(--cvr-wide);
}

.site-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 1.2rem;
	text-decoration: none;
	color: var(--cvr-ink);
}

.site-logo .custom-logo {
	max-height: 4.8rem;
	width: auto;
	border-radius: 0.4rem;
}

.site-logo .custom-logo-link::after {
	content: "Cheap Vinyl Records";
	font-size: 2.2rem;
	font-weight: 800;
	font-stretch: 72%;
	letter-spacing: -0.005em;
	line-height: 1;
	color: var(--cvr-ink);
	white-space: nowrap;
}

body:not(.overlay-header) .primary-menu > li > a,
body:not(.overlay-header) .primary-menu > li > .icon,
.primary-menu > li > a {
	color: var(--cvr-ink);
	font-size: 1.7rem;
	font-weight: 600;
	letter-spacing: 0;
}

body:not(.overlay-header) .primary-menu > li > a:hover,
body:not(.overlay-header) .primary-menu > li > a:focus,
body:not(.overlay-header) .primary-menu > li.current-menu-item > a {
	color: var(--cvr-red);
}

.header-inner .toggle,
body:not(.overlay-header) .toggle-inner .toggle-text,
.toggle-inner .toggle-text {
	color: var(--cvr-ink);
}

.toggle-inner .toggle-text {
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0;
}

.toggle .svg-icon {
	fill: var(--cvr-ink);
}

body:not(.overlay-header) .header-inner .toggle-wrapper::before {
	background-color: var(--cvr-rule);
}

/* Slide-out menu */
.menu-modal .menu-modal-inner {
	background: var(--cvr-paper);
}

.modal-menu a,
.menu-modal .modal-menu > li > .ancestor-wrapper > a {
	color: var(--cvr-ink);
	font-weight: 700;
	font-stretch: 85%;
}

.modal-menu a:hover,
.modal-menu a:focus {
	color: var(--cvr-red);
}

.menu-modal .close-nav-toggle,
.menu-modal .toggle-text {
	color: var(--cvr-ink);
}

.menu-modal button.close-nav-toggle {
	background: transparent;
	color: var(--cvr-ink);
	padding: 3.1rem 0;
}

.menu-modal .modal-menu,
.menu-modal .modal-menu li,
.menu-modal .menu-top,
.menu-modal .menu-bottom,
.menu-modal nav *,
.menu-modal .ancestor-wrapper {
	border-color: var(--cvr-rule) !important;
}

/* --------------------------------------------------------------------------
   Page header: the sleeve band with a record sliding out on the right
   -------------------------------------------------------------------------- */

.singular .entry-header,
.archive-header,
.woocommerce-products-header {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--cvr-ink);
	color: #fff;
	padding: 6.4rem 0 6rem;
	margin: 0;
	text-align: left;
}

.singular .entry-header.has-text-align-center {
	text-align: left;
}

.singular .entry-header .entry-header-inner,
.archive-header .archive-header-inner {
	position: relative;
	z-index: 1;
	max-width: var(--cvr-wide);
	width: calc(100% - 4rem);
	margin: 0 auto;
	padding-right: 38rem;
}

.singular .entry-header h1.entry-title,
.archive-header .archive-title,
.woocommerce-products-header .woocommerce-products-header__title,
.woocommerce-products-header .page-title {
	color: #fff;
	font-size: clamp(4.4rem, 6.6vw, 9rem);
	font-weight: 850;
	font-stretch: 64%;
	line-height: 0.9;
	letter-spacing: -0.01em;
	margin: 0;
	max-width: 16ch;
	text-wrap: balance;
}

/* The record */
.singular .entry-header::after,
.archive-header::after,
.woocommerce-products-header::after {
	content: "";
	position: absolute;
	z-index: 0;
	top: 50%;
	right: -11rem;
	width: 46rem;
	height: 46rem;
	margin-top: -23rem;
	border-radius: 50%;
	background:
		radial-gradient(circle, #f4f4f2 0 1.6%, var(--cvr-red) 1.8% 16%, #a11b2c 16.4% 17%, transparent 17.3%),
		radial-gradient(circle, transparent 0 22%, #0b0d18 22.4% 24.5%, transparent 25%),
		conic-gradient(from 20deg, transparent 0 9%, rgba(255, 255, 255, 0.16) 13%, transparent 18% 59%, rgba(255, 255, 255, 0.12) 63%, transparent 68%),
		repeating-radial-gradient(circle, #0b0d18 0 1.4px, #343a58 1.4px 2.2px, #0b0d18 2.2px 4px);
	box-shadow: inset 0 0 0 0.7rem #0b0d18, -1.6rem 0 4rem rgba(0, 0, 0, 0.45);
	animation: cvr-record-out 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both;
}

@keyframes cvr-record-out {
	from {
		transform: translateX(14rem) rotate(-40deg);
	}
	to {
		transform: translateX(0) rotate(0deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.singular .entry-header::after,
	.archive-header::after,
	.woocommerce-products-header::after {
		animation: none;
	}
}

/* Pages Twenty Twenty gives no header band (front page with cover template etc.) keep defaults. */

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.singular .post-inner,
.singular .entry-header + .post-inner {
	padding-top: 4.8rem !important;
}

.entry-content > *:first-child {
	margin-top: 0;
}

/* Empty paragraphs left by utility shortcodes */
.entry-content > p:empty {
	display: none;
}

.entry-content > p:empty:first-child + *,
.entry-content > p:empty:first-child + h2:has(+ div[align="center"]) {
	margin-top: 0;
}

.entry-content .wp-block-buttons.is-content-justification-center {
	justify-content: flex-start;
}

.entry-content .wp-block-button.has-custom-width {
	width: auto;
}

.entry-content .wp-block-button__link {
	padding: 1.6rem 3.2rem;
}

.entry-content {
	color: var(--cvr-ink);
	font-size: 1.8rem;
	line-height: 1.65;
	letter-spacing: 0;
}

.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
	max-width: var(--cvr-measure);
	width: calc(100% - 4rem);
}

.entry-content p,
.entry-content li {
	font-size: 1.8rem;
	line-height: 1.65;
}

.entry-content h2 {
	font-size: clamp(3rem, 3.6vw, 4.4rem);
	margin: 6.4rem auto 2rem;
}

.entry-content h3 {
	font-size: clamp(2.3rem, 2.4vw, 2.8rem);
	font-stretch: 82%;
	font-weight: 750;
	margin: 4.4rem auto 1.4rem;
	line-height: 1.1;
}

.entry-content h4 {
	font-size: 2rem;
	font-stretch: 90%;
	font-weight: 700;
}

.entry-content h2.has-text-align-center,
.entry-content h3.has-text-align-center {
	text-align: left;
}

/* Product grids and the heading above them use the full width */
.entry-content > div[align="center"],
.entry-content > .cegg5-container,
.entry-content > .wp-block-shortcode,
.entry-content > h2:has(+ div[align="center"]),
.entry-content > h3:has(+ div[align="center"]),
.entry-content > h2:has(+ p + .cegg5-container),
.entry-content > p:has(+ .cegg5-container) {
	max-width: var(--cvr-wide);
	width: calc(100% - 4rem);
}

.entry-content > h2:has(+ div[align="center"]) {
	margin-top: 5.6rem;
	margin-bottom: 1.6rem;
}

.entry-content > h2:first-child,
.entry-content > h2:first-child:has(+ div[align="center"]) {
	margin-top: 0;
}

.entry-content > div[align="center"]:first-child + h2,
.entry-content > .code-block + h2 {
	margin-top: 2.4rem;
}

/* Affiliate notice injected at the top of pages */
.entry-content > .code-block,
.woocommerce-products-header .page-description {
	max-width: var(--cvr-wide) !important;
	width: calc(100% - 4rem);
}

.entry-content > .code-block p,
.woocommerce-products-header .page-description p {
	margin: 0 0 1.6rem;
	font-size: 1.4rem;
	line-height: 1.5;
	text-align: left;
	color: var(--cvr-groove);
}

.entry-content > .code-block {
	text-align: left !important;
}

.entry-content > .code-block em,
.woocommerce-products-header .page-description em {
	font-style: normal;
}

.entry-content > .code-block a {
	color: var(--cvr-groove);
}

.entry-content blockquote {
	border-left: 4px solid var(--cvr-red);
	padding-left: 2.4rem;
}

.entry-content hr,
hr.wp-block-separator {
	border-color: var(--cvr-rule);
	background: var(--cvr-rule);
	opacity: 1;
}

.entry-content table {
	font-size: 1.6rem;
	border-color: var(--cvr-rule);
}

.entry-content table th {
	background: var(--cvr-sleeve);
	font-weight: 700;
}

.entry-content table th,
.entry-content table td {
	border-color: var(--cvr-rule);
}

/* Easy Table of Contents on articles */
#ez-toc-container {
	display: block !important;
	width: calc(100% - 4rem) !important;
	max-width: var(--cvr-measure) !important;
	background: var(--cvr-sleeve) !important;
	border: 0 !important;
	border-radius: 0.6rem;
	box-shadow: none !important;
	padding: 2rem 2.4rem !important;
}

#ez-toc-container .ez-toc-title {
	font-weight: 800;
	font-stretch: 80%;
	font-size: 2rem !important;
}

#ez-toc-container a {
	color: var(--cvr-ink) !important;
}

#ez-toc-container a:hover {
	color: var(--cvr-red) !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

button,
.button,
.faux-button,
.wp-block-button__link,
.wp-block-file .wp-block-file__button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	background-color: var(--cvr-ink);
	color: #fff;
	border-radius: 0.4rem !important;
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	padding: 1.5rem 2.6rem;
	transition: background-color 150ms ease;
}

button:hover,
.button:hover,
.faux-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:focus-visible,
.wp-block-button__link:focus-visible {
	background-color: var(--cvr-red);
	color: #fff;
	text-decoration: none;
}

/* Header toggles and modal close are buttons too: keep them plain */
#site-header button.toggle,
.menu-modal button.toggle:not(.close-nav-toggle),
button.sub-menu-toggle,
.ez-toc-btn,
button.ez-toc-btn {
	background: transparent;
	color: var(--cvr-ink);
	padding: 0;
}

.wp-block-buttons > .wp-block-button {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Content Egg product grids
   -------------------------------------------------------------------------- */

.cegg5-container {
	--bs-body-font-family: var(--cvr-font);
	--bs-body-color: var(--cvr-ink);
	text-align: left;
}

.cegg5-container .container {
	max-width: none;
}

.cegg5-container .cegg-grid-card {
	background: var(--cvr-paper);
	border: 1px solid var(--cvr-rule) !important;
	border-radius: 0.6rem;
	box-shadow: none !important;
	padding: 1.2rem !important;
	display: flex;
	flex-direction: column;
	transition: border-color 150ms ease;
}

.cegg5-container .cegg-grid-card:hover,
.cegg5-container .cegg-grid-card:focus-within {
	border-color: var(--cvr-ink) !important;
}

.cegg5-container .cegg-grid-card .ratio {
	background: var(--cvr-sleeve);
	border-radius: 0.4rem;
	overflow: hidden;
}

.cegg5-container .cegg-grid-card .ratio img {
	mix-blend-mode: multiply;
	padding: 0.8rem;
	border-radius: 0 !important;
}

.cegg5-container .card-body {
	display: flex;
	flex-direction: column;
	margin-top: 1.2rem !important;
}

/* Title first, then the price sticker, then where it is sold */
.cegg5-container .card-title {
	order: 1;
	color: var(--cvr-ink);
	font-size: 1.6rem !important;
	font-weight: 650 !important;
	font-stretch: 90%;
	line-height: 1.3 !important;
	padding-top: 0 !important;
	margin: 0 0 1rem;
}

.cegg5-container .cegg-card-price {
	order: 2;
	padding: 0 0 0.6rem !important;
}

.cegg5-container .cegg-card-promo {
	order: 3;
	color: var(--cvr-groove) !important;
	font-size: 1.3rem;
	padding-top: 0 !important;
}

.cegg5-container .cegg-card-promo svg {
	display: none;
}

.cegg5-container .cegg-merchant {
	order: 4;
	color: var(--cvr-groove) !important;
	font-size: 1.3rem !important;
	margin-top: 0.4rem;
}

.cegg5-container .cegg-card-price .hstack > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
}

/* The price sticker */
.cegg5-container .cegg-price {
	display: inline-block;
	background: var(--cvr-sticker);
	color: var(--cvr-ink);
	font-size: 2rem !important;
	font-weight: 850;
	font-stretch: 78%;
	line-height: 1 !important;
	padding: 0.7rem 1.1rem 0.6rem;
	border-radius: 0.4rem;
	transform: rotate(-2.5deg);
	box-shadow: 0 1px 0 rgba(26, 31, 54, 0.25);
}

.cegg5-container .cegg-old-price {
	color: var(--cvr-groove) !important;
	font-size: 1.4rem !important;
}

/* Discount badge */
.cegg5-container .badge.bg-danger {
	background: var(--cvr-red) !important;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 800;
	font-stretch: 85%;
	border-radius: 0.4rem !important;
	padding: 0.5rem 0.8rem;
	margin: 1.8rem 1.8rem 0 0 !important;
}

.cegg5-container .cegg-card-button {
	margin-top: auto;
	padding-top: 1.2rem !important;
}

.cegg5-container .cegg-card-button .btn {
	background: var(--cvr-ink);
	border: 0;
	border-radius: 0.4rem;
	color: #fff;
	font-size: 1.4rem;
	font-weight: 700;
	padding: 1rem 1.2rem;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	font-size: 0 !important;
}

/* Merchant is already named on the card, so the button states the action */
.cegg5-container .cegg-card-button .btn::before {
	content: "View deal";
	font-size: 1.5rem;
}

.cegg5-container .cegg-grid-card:hover .btn,
.cegg5-container .cegg-card-button .btn:focus-visible {
	background: var(--cvr-red);
	color: #fff;
}

/* Four across on wide screens */
@media (min-width: 1100px) {
	.entry-content > div[align="center"] .cegg5-container .row-cols-md-3 > *,
	.entry-content > .cegg5-container .row-cols-md-3 > * {
		flex: 0 0 auto;
		width: 25%;
	}
}

/* --------------------------------------------------------------------------
   WooCommerce category tiles (shop index)
   -------------------------------------------------------------------------- */

.woocommerce-breadcrumb {
	max-width: var(--cvr-wide);
	width: calc(100% - 4rem);
	margin: 1.6rem auto !important;
	font-size: 1.4rem !important;
	color: var(--cvr-groove) !important;
}

.woocommerce-breadcrumb a {
	color: var(--cvr-groove) !important;
}

.woocommerce-products-header {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw) !important;
	margin-right: 0 !important;
	margin-bottom: 4.8rem !important;
	padding-left: max(2rem, calc((100vw - var(--cvr-wide)) / 2));
	padding-right: max(2rem, calc((100vw - var(--cvr-wide)) / 2));
	text-align: left !important;
}

.woocommerce-products-header .page-description > div[align="center"] {
	text-align: left;
}

html,
body {
	overflow-x: clip;
}

.woocommerce-products-header .woocommerce-products-header__title {
	position: relative;
	z-index: 1;
	padding-right: 38rem;
	max-width: none;
}

.woocommerce-products-header .page-description {
	position: relative;
	z-index: 1;
	margin-top: 2rem;
	width: auto;
	padding-right: 38rem;
}

.woocommerce-products-header .page-description p,
.woocommerce-products-header .page-description a {
	color: #c7cad6;
}

.woocommerce-products-header .page-description hr {
	display: none;
}

.woocommerce ul.products li.product-category a {
	display: block;
	text-decoration: none;
}

.woocommerce ul.products li.product-category img {
	border-radius: 0.6rem;
	margin-bottom: 1.2rem !important;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	text-align: left;
	margin-top: 0;
	color: var(--cvr-ink);
	font-size: 2rem !important;
	font-weight: 800;
	font-stretch: 78%;
	line-height: 1.1;
	padding: 0 !important;
}

.woocommerce ul.products li.product-category a:hover .woocommerce-loop-category__title {
	color: var(--cvr-red);
}

.woocommerce ul.products li.product-category mark.count {
	display: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer-nav-widgets-wrapper,
#site-footer,
.footer-nav-widgets-wrapper.header-footer-group,
#site-footer.header-footer-group {
	background: var(--cvr-ink);
	color: #c7cad6;
	border-color: rgba(255, 255, 255, 0.1);
}

.footer-nav-widgets-wrapper + #site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-outer-wrapper,
.footer-top {
	border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-nav-widgets-wrapper a,
#site-footer a,
.footer-widgets .widget a {
	color: #fff;
}

.footer-nav-widgets-wrapper a:hover,
#site-footer a:hover {
	color: var(--cvr-sticker);
}

.footer-widgets .widget-title,
.footer-widgets .widget h2,
.footer-widgets .wp-block-heading {
	color: #fff;
	font-size: 2.4rem;
	font-weight: 800;
	font-stretch: 75%;
	letter-spacing: 0;
	text-transform: none;
	margin-bottom: 1.6rem;
}

.footer-widgets .widget,
.footer-widgets .widget p,
.footer-widgets .widget li {
	color: #c7cad6;
	font-size: 1.6rem;
	line-height: 1.6;
}

.footer-widgets input[type="search"],
.footer-widgets input[type="text"] {
	background: var(--cvr-ink-2);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	border-radius: 0.4rem;
}

.footer-widgets input[type="search"]::placeholder {
	color: #9aa0b4;
}

.footer-widgets button,
.footer-widgets input[type="submit"],
.footer-widgets .wp-block-search__button {
	background: var(--cvr-red);
	color: #fff;
}

.footer-widgets button:hover,
.footer-widgets input[type="submit"]:hover {
	background: var(--cvr-sticker);
	color: var(--cvr-ink);
}

#site-footer {
	font-size: 1.5rem;
}

#site-footer .footer-credits p,
#site-footer .to-the-top {
	color: #c7cad6;
	font-weight: 500;
}

#site-footer .powered-by-wordpress {
	display: none;
}

/* --------------------------------------------------------------------------
   Forms (contact page)
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea {
	border: 1px solid #c9ccd6;
	border-radius: 0.4rem;
	color: var(--cvr-ink);
	font-size: 1.7rem;
}

input:focus,
textarea:focus {
	border-color: var(--cvr-ink);
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 999px) {
	.singular .entry-header .entry-header-inner,
	.archive-header .archive-header-inner,
	.woocommerce-products-header .woocommerce-products-header__title,
	.woocommerce-products-header .page-description {
		padding-right: 18rem;
	}

	.singular .entry-header::after,
	.archive-header::after,
	.woocommerce-products-header::after {
		width: 30rem;
		height: 30rem;
		margin-top: -15rem;
		right: -10rem;
	}
}

@media (max-width: 699px) {
	#site-header .header-inner {
		padding: 1rem 0;
	}

	.site-logo .custom-logo {
		max-height: 4rem;
	}

	.site-logo .custom-logo-link::after {
		font-size: 1.9rem;
	}

	.singular .entry-header,
	.archive-header,
	.woocommerce-products-header {
		padding: 4rem 0 4.4rem;
	}

	.singular .entry-header .entry-header-inner,
	.archive-header .archive-header-inner,
	.woocommerce-products-header .woocommerce-products-header__title,
	.woocommerce-products-header .page-description {
		padding-right: 9rem;
	}

	.singular .entry-header h1.entry-title,
	.archive-header .archive-title,
	.woocommerce-products-header .woocommerce-products-header__title {
		font-size: clamp(3.8rem, 11vw, 5.2rem);
	}

	.singular .entry-header::after,
	.archive-header::after,
	.woocommerce-products-header::after {
		width: 20rem;
		height: 20rem;
		margin-top: -10rem;
		right: -9rem;
	}


	.post-inner {
		padding-top: 3.2rem;
	}

	.entry-content,
	.entry-content p,
	.entry-content li {
		font-size: 1.7rem;
	}

	.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide),
	.entry-content > div[align="center"],
	.entry-content > h2:has(+ div[align="center"]) {
		width: calc(100% - 3.2rem);
	}

	.cegg5-container .row {
		--bs-gutter-x: 1rem;
		--bs-gutter-y: 1rem;
	}

	.cegg5-container .cegg-grid-card {
		padding: 0.8rem !important;
	}

	.cegg5-container .card-title {
		font-size: 1.45rem !important;
	}

	.cegg5-container .cegg-price {
		font-size: 1.7rem !important;
	}

	.cegg5-container .cegg-card-button .btn {
		padding: 0.9rem 0.6rem;
	}

	.cegg5-container .cegg-card-button .btn::before {
		font-size: 1.4rem;
	}

	.cegg5-container .badge.bg-danger {
		margin: 1.2rem 1.2rem 0 0 !important;
	}
}

/* --------------------------------------------------------------------------
   Header product search
   -------------------------------------------------------------------------- */

.cvr-header-search {
	flex: 1 1 32rem;
	max-width: 48rem;
	margin: 0 3.2rem;
}

.cvr-header-search .search-form {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	margin: 0;
}

.cvr-header-search .search-form label {
	flex: 1 1 auto;
	margin: 0;
	min-width: 0;
}

.cvr-header-search .search-form .search-field,
.cvr-header-search .search-form .search-submit {
	margin: 0;
}

.cvr-header-search .search-field {
	width: 100%;
	height: 4.4rem;
	padding: 0 1.4rem;
	background: var(--cvr-sleeve);
	border: 1px solid var(--cvr-sleeve);
	border-radius: 0.4rem 0 0 0.4rem;
	color: var(--cvr-ink);
	font-size: 1.6rem;
}

.cvr-header-search .search-field::placeholder {
	color: var(--cvr-groove);
	opacity: 1;
}

.cvr-header-search .search-field:focus {
	background: #fff;
	border-color: var(--cvr-ink);
	outline: none;
}

.cvr-header-search .search-submit {
	height: 4.4rem;
	padding: 0 1.8rem;
	border-radius: 0 0.4rem 0.4rem 0 !important;
	font-size: 1.5rem;
	flex: 0 0 auto;
}

.cvr-header-search + p:empty,
.cvr-header-search p:empty {
	display: none;
}

@media (min-width: 1000px) {
	#site-header .header-titles-wrapper {
		flex: 0 0 auto;
	}

	#site-header .header-navigation-wrapper {
		flex: 0 0 auto;
	}
}

@media (max-width: 999px) {
	.cvr-header-search {
		max-width: none;
		margin: 1rem 2rem 0;
	}
}

/* --------------------------------------------------------------------------
   Shop menu on shop pages
   -------------------------------------------------------------------------- */

.entry-content > .cvr-shopnav,
.cvr-shopnav {
	max-width: var(--cvr-wide);
	width: calc(100% - 4rem);
	margin: 0 auto 2.4rem;
}

.cvr-shopnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cvr-shopnav__list li {
	flex: 0 0 auto;
	margin: 0;
	line-height: 1;
}

.cvr-shopnav__list a {
	display: block;
	padding: 0.9rem 1.4rem;
	border: 1px solid var(--cvr-rule);
	border-radius: 10rem;
	background: #fff;
	color: var(--cvr-ink);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.cvr-shopnav__list a:hover,
.cvr-shopnav__list a:focus-visible {
	border-color: var(--cvr-ink);
	color: var(--cvr-ink);
}

.cvr-shopnav__list .cvr-current a {
	background: var(--cvr-ink);
	border-color: var(--cvr-ink);
	color: #fff;
}

@media (max-width: 699px) {
	.cvr-shopnav__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding-bottom: 0.2rem;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}

	.cvr-shopnav__list::-webkit-scrollbar {
		display: none;
	}

	.cvr-shopnav__list li {
		scroll-snap-align: start;
	}

	.entry-content > .cvr-shopnav,
	.cvr-shopnav {
		width: calc(100% - 3.2rem);
	}
}

/* --------------------------------------------------------------------------
   Jump buttons between listing grids
   -------------------------------------------------------------------------- */

.entry-content > .cvr-jump {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	max-width: var(--cvr-wide);
	width: calc(100% - 4rem);
	margin: 0 auto 1.6rem;
	padding: 1.2rem 0;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--cvr-rule);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

body.admin-bar .entry-content > .cvr-jump {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .entry-content > .cvr-jump {
		top: 0;
	}
}

.cvr-jump__link {
	display: inline-block;
	padding: 1rem 1.6rem;
	border: 2px solid var(--cvr-ink);
	border-radius: 0.4rem;
	color: var(--cvr-ink);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

.cvr-jump__link:hover,
.cvr-jump__link:focus-visible {
	background: var(--cvr-ink);
	color: #fff;
	text-decoration: none;
}

.entry-content > .cvr-anchor {
	display: block;
	height: 0;
	margin: 0 !important;
	scroll-margin-top: 9rem;
}

body.admin-bar .entry-content > .cvr-anchor {
	scroll-margin-top: 12rem;
}

.entry-content > .cvr-jump + .cvr-anchor + h2,
.entry-content > .cvr-jump + .code-block + .cvr-anchor + h2,
.entry-content > .cvr-anchor:first-child + h2 {
	margin-top: 2.4rem;
}

@media (max-width: 699px) {
	.entry-content > .cvr-jump {
		width: calc(100% - 3.2rem);
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 1rem 0;
	}

	.cvr-jump__link {
		flex: 0 0 auto;
		font-size: 1.4rem;
		padding: 0.9rem 1.2rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* --------------------------------------------------------------------------
   Product search results page
   -------------------------------------------------------------------------- */

.cvr-product-search article .entry-header,
.cvr-product-search .post-meta-wrapper,
.cvr-product-search .pagination-single,
.cvr-product-search article > .section-inner:empty {
	display: none;
}

.cvr-product-search .post-inner,
.cvr-product-search .post-inner.thin {
	max-width: none;
	padding-top: 4rem;
}

.cvr-product-search #site-content > article {
	padding-top: 0;
}

.cvr-product-search .entry-content > .cvr-shopnav {
	margin-bottom: 3.2rem;
}

.cvr-empty {
	max-width: var(--cvr-measure);
	width: calc(100% - 4rem);
	margin: 0 auto 6rem;
	padding: 3.2rem;
	background: var(--cvr-sleeve);
	border-radius: 0.6rem;
}

.cvr-empty p {
	margin: 0 0 1rem;
}

.cvr-empty p:last-child {
	margin-bottom: 0;
}

.cvr-empty__lead {
	font-size: 2.6rem !important;
	font-weight: 800;
	font-stretch: 78%;
	line-height: 1.1 !important;
}

.cvr-product-search .entry-content > p.cvr-empty-hint {
	color: var(--cvr-groove);
}

/* Twenty Twenty clips #site-content with overflow:hidden, which stops sticky elements.
   clip keeps the same visual result without breaking position:sticky. */
#site-content {
	overflow: clip;
}

@media (max-width: 999px) {
	#site-header .header-titles-wrapper {
		position: relative;
	}
}

/* --------------------------------------------------------------------------
   Wide elements. Twenty Twenty limits .entry-content children with a
   high-specificity :not() chain, so the wide set needs !important to win
   on pages that are not on the Full Width template (search results, home).
   -------------------------------------------------------------------------- */

.entry-content > div[align="center"],
.entry-content > .cegg5-container,
.entry-content > .wp-block-shortcode,
.entry-content > .code-block,
.entry-content > .cvr-shopnav,
.entry-content > .cvr-jump,
.entry-content > h2:has(+ div[align="center"]),
.entry-content > h3:has(+ div[align="center"]),
.entry-content > h2:has(+ p + .cegg5-container),
.entry-content > p:has(+ .cegg5-container) {
	max-width: var(--cvr-wide) !important;
	width: calc(100% - 4rem) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

@media (max-width: 699px) {
	.entry-content > div[align="center"],
	.entry-content > .cegg5-container,
	.entry-content > .wp-block-shortcode,
	.entry-content > .code-block,
	.entry-content > .cvr-shopnav,
	.entry-content > .cvr-jump,
	.entry-content > h2:has(+ div[align="center"]),
	.entry-content > h3:has(+ div[align="center"]),
	.entry-content > h2:has(+ p + .cegg5-container),
	.entry-content > p:has(+ .cegg5-container) {
		width: calc(100% - 3.2rem) !important;
	}

	.cvr-header-search {
		margin: 1rem 0 0;
	}
}

.archive-header,
.archive-header .archive-header-inner,
.archive-header .archive-title {
	text-align: left !important;
}

.cvr-product-search .entry-content > .cvr-shopnav {
	margin-top: 0;
}

.cvr-product-search .post-inner,
.cvr-product-search .post-inner.thin {
	padding-top: 4rem !important;
}

/* --------------------------------------------------------------------------
   1.2.1 fixes: header search spacing on mobile, duplicate footer privacy link
   -------------------------------------------------------------------------- */

/* Header product search (form sits directly in .header-inner) */
#site-header .header-inner > .search-form {
	display: flex;
	flex: 1 1 32rem;
	flex-wrap: nowrap;
	align-items: stretch;
	max-width: 48rem;
	margin: 0 3.2rem;
}
#site-header .header-inner > .search-form label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}
#site-header .header-inner > .search-form .search-field,
#site-header .header-inner > .search-form .search-submit {
	margin: 0;
	height: 4.4rem;
}
#site-header .header-inner > .search-form .search-field {
	width: 100%;
	padding: 0 1.4rem;
	background: #f1f2f4;
	border: 1px solid #f1f2f4;
	border-radius: 0.4rem 0 0 0.4rem;
	font-size: 1.6rem;
}
#site-header .header-inner > .search-form .search-field:focus {
	background: #fff;
	border-color: #1a1f36;
	outline: none;
}
#site-header .header-inner > .search-form .search-submit {
	flex: 0 0 auto;
	padding: 0 1.8rem;
	border-radius: 0 0.4rem 0.4rem 0 !important;
	font-size: 1.5rem;
}
#site-header .header-inner > .cvr-header-search:empty {
	display: none;
}
@media (max-width: 999px) {
	#site-header .header-titles-wrapper {
		min-height: 6.4rem;
	}
	#site-header .header-inner > .search-form,
	#site-header .cvr-header-search {
		max-width: none;
		margin: 1.2rem 0 0;
	}
}

/* Footer: Privacy Policy is already in the footer widget list */
#site-footer .footer-credits .privacy-policy {
	display: none;
}
