/* =========================================================================
 * YOUR CLASSIC PARTS – SITE THEME ("Officina moderna")
 * One stylesheet for the whole front end. Everything is scoped to
 * body.ycp-ui so it wins over older snippet / Customizer CSS without
 * !important wars, and switching the class off restores the old look.
 * ========================================================================= */

body.ycp-ui {
	--ycp-yellow: #fdbb18;
	--ycp-yellow-dark: #e6a800;
	--ycp-yellow-soft: #fff6dc;
	--ycp-ink: #151515;
	--ycp-text: #2b2b2b;
	--ycp-muted: #6b6b6b;
	--ycp-line: #e7e4dd;
	--ycp-bg: #f6f5f1;
	--ycp-card: #ffffff;
	--ycp-radius: 12px;
	--ycp-radius-sm: 8px;
	--ycp-shadow: 0 1px 2px rgba(21, 21, 21, .04), 0 6px 20px rgba(21, 21, 21, .06);
	--ycp-shadow-hover: 0 2px 4px rgba(21, 21, 21, .06), 0 12px 28px rgba(21, 21, 21, .10);
	--ycp-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
	--ycp-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

	background: #fff;
	color: var(--ycp-text);
	font-family: var(--ycp-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.ycp-ui h1,
body.ycp-ui h2,
body.ycp-ui h3,
body.ycp-ui h4 {
	font-family: var(--ycp-head);
	color: var(--ycp-ink);
	letter-spacing: -0.01em;
}

body.ycp-ui a {
	color: var(--ycp-ink);
	text-decoration-color: var(--ycp-yellow);
	text-underline-offset: 3px;
}

body.ycp-ui a:hover {
	color: #000;
}

body.ycp-ui .hp-meta {
	color: var(--ycp-muted);
	font-size: 12px;
	letter-spacing: .06em;
}

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

body.ycp-ui .button,
body.ycp-ui button[type="submit"],
body.ycp-ui .hp-form__button,
body.ycp-ui .wp-block-button__link {
	font-family: var(--ycp-head);
	font-weight: 600;
	border-radius: var(--ycp-radius-sm);
	transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

body.ycp-ui .button-primary,
body.ycp-ui .hp-form__button.button-primary,
body.ycp-ui .hp-listing__action--message,
body.ycp-ui .hp-vendor__action--message {
	background: var(--ycp-yellow);
	border-color: var(--ycp-yellow);
	color: var(--ycp-ink) !important;
}

body.ycp-ui .button-primary:hover,
body.ycp-ui .hp-form__button.button-primary:hover {
	background: var(--ycp-yellow-dark);
	border-color: var(--ycp-yellow-dark);
}

/* ---------- Form fields ---------- */

body.ycp-ui input[type="text"],
body.ycp-ui input[type="email"],
body.ycp-ui input[type="number"],
body.ycp-ui input[type="tel"],
body.ycp-ui input[type="password"],
body.ycp-ui input[type="search"],
body.ycp-ui textarea,
body.ycp-ui select,
body.ycp-ui .select2-container--default .select2-selection--single {
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius-sm);
	background: #fff;
	font-size: 15px;
}

body.ycp-ui input:focus,
body.ycp-ui textarea:focus,
body.ycp-ui select:focus {
	border-color: var(--ycp-ink);
	box-shadow: 0 0 0 3px var(--ycp-yellow-soft);
	outline: none;
}

body.ycp-ui .hp-form__label,
body.ycp-ui .hp-field__label {
	color: var(--ycp-ink);
	font-weight: 600;
}

/* =========================================================================
 * PAGE CONTAINER
 * ========================================================================= */

body.ycp-ui .site-content {
	padding-top: 32px;
}

body.ycp-ui .site-content > .container {
	max-width: 1200px;
	padding-left: 20px;
	padding-right: 20px;
}

/* =========================================================================
 * SINGLE LISTING PAGE
 * ========================================================================= */

body.ycp-ui .hp-listing--view-page .hp-listing__title {
	font-size: clamp(26px, 3.4vw, 38px);
	line-height: 1.15;
	margin: 0 0 10px;
	text-transform: none;
}

body.ycp-ui .hp-listing--view-page .hp-listing__title span::first-letter {
	text-transform: uppercase;
}

body.ycp-ui .hp-listing--view-page > .hp-listing__date {
	display: inline-block;
	margin: 0 12px 16px 0;
}

body.ycp-ui .hp-listing--view-page > .hp-listing__categories {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 16px;
}

body.ycp-ui .hp-listing--view-page > .hp-listing__categories a {
	background: var(--ycp-ink);
	color: #fff;
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-decoration: none;
}

/* vehicle line under the title (added by YCP Core) */
body.ycp-ui .ycp-listing-vehicle {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 8px 14px 8px 8px;
	width: fit-content;
	max-width: 100%;
	background: #fff;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	padding: 6px 14px 6px 6px;
}

body.ycp-ui .ycp-listing-vehicle img {
	height: 40px;
	width: auto;
	object-fit: contain;
}

/* brand logo: no frame, white of .jpg logos melts into the background */
body.ycp-ui .ycp-listing-vehicle img:first-child:not(.ycp-listing-vehicle__car) {
	background: #fff;
	border-radius: 0;
	mix-blend-mode: normal;
}

body.ycp-ui .ycp-listing-vehicle .ycp-listing-vehicle__car {
	width: 64px;
	object-fit: cover;
	border-radius: 999px;
}

body.ycp-ui .ycp-listing-vehicle strong {
	font-family: var(--ycp-head);
	font-size: 15px;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-listing-vehicle span {
	color: var(--ycp-muted);
	font-size: 14px;
}

/* two columns */
body.ycp-ui .hp-listing--view-page > .wp-block-columns {
	gap: 28px;
	align-items: flex-start;
}

/* photos */
body.ycp-ui .hp-listing--view-page .hp-listing__images {
	background: var(--ycp-card);
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	box-shadow: var(--ycp-shadow);
	padding: 12px;
	overflow: hidden;
}

body.ycp-ui .hp-listing--view-page .hp-listing__images img {
	border-radius: var(--ycp-radius-sm);
	background: #fff;
}

/* description as a card */
body.ycp-ui .hp-listing--view-page .hp-listing__description {
	margin-top: 20px;
	background: var(--ycp-card);
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	box-shadow: var(--ycp-shadow);
	padding: 20px 22px;
	font-size: 16px;
	color: var(--ycp-text);
}

body.ycp-ui .hp-listing--view-page .hp-listing__description::before {
	content: "Description";
	display: block;
	margin-bottom: 6px;
	font-family: var(--ycp-head);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ycp-muted);
}

/* sidebar: price card first, then contact, then seller */
body.ycp-ui .hp-listing--view-page .wp-block-column:has(.hp-listing__attributes--primary) {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 110px;
}

body.ycp-ui .hp-listing--view-page .hp-listing__attributes--primary {
	order: 1;
	margin: 0;
	background: var(--ycp-card);
	border: 1px solid var(--ycp-line);
	border-top: 4px solid var(--ycp-yellow);
	border-radius: var(--ycp-radius);
	box-shadow: var(--ycp-shadow);
	padding: 18px 20px;
}

body.ycp-ui .hp-listing--view-page .hp-listing__actions--primary {
	order: 2;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.ycp-ui .hp-listing--view-page .hp-vendor--view-block {
	order: 3;
	margin: 0;
}

body.ycp-ui .hp-listing--view-page .hp-listing__attribute {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--ycp-line);
	text-align: left;
	font-size: 14px;
	color: var(--ycp-text);
}

body.ycp-ui .hp-listing--view-page .hp-listing__attribute:last-child {
	border-bottom: 0;
}

body.ycp-ui .hp-listing--view-page .hp-listing__attribute strong {
	color: var(--ycp-muted);
	font-weight: 600;
}

/* the price, big */
body.ycp-ui .hp-listing--view-page .hp-listing__attribute--price {
	display: block;
	padding: 0 0 12px;
	margin-bottom: 4px;
	font-family: var(--ycp-head);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ycp-ink);
}

body.ycp-ui .hp-listing--view-page .hp-listing__attribute--price strong {
	display: block;
	font-family: var(--ycp-body);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ycp-muted);
}

/* main action buttons */
body.ycp-ui .hp-listing--view-page .hp-listing__actions--primary .hp-listing__action,
body.ycp-ui .hp-listing--view-page .hp-listing__actions--primary .button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 8px;
	padding: 13px 16px;
	border-radius: var(--ycp-radius-sm);
	font-family: var(--ycp-head);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	box-sizing: border-box;
}

body.ycp-ui .hp-listing--view-page .hp-listing__action--message {
	background: var(--ycp-yellow) !important;
	color: var(--ycp-ink) !important;
	box-shadow: 0 4px 12px rgba(253, 187, 24, .35);
}

body.ycp-ui .hp-listing--view-page .hp-listing__action--message:hover {
	background: var(--ycp-yellow-dark) !important;
	transform: translateY(-1px);
}

body.ycp-ui .hp-listing--view-page .hp-listing__action--report {
	background: transparent !important;
	color: var(--ycp-muted) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	padding: 6px !important;
	box-shadow: none !important;
}

/* seller card */
body.ycp-ui .hp-vendor--view-block {
	background: var(--ycp-card);
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	box-shadow: var(--ycp-shadow);
	padding: 18px;
	text-align: center;
}

body.ycp-ui .hp-vendor--view-block .hp-vendor__image img {
	width: 84px;
	height: 84px;
	border-radius: 999px;
	object-fit: cover;
	border: 3px solid var(--ycp-yellow);
}

body.ycp-ui .hp-vendor--view-block .hp-vendor__name {
	margin: 8px 0 2px;
	font-size: 18px;
}

body.ycp-ui .hp-vendor--view-block .hp-vendor__name a {
	text-decoration: none;
}

body.ycp-ui .hp-vendor--view-block .hp-vendor__footer {
	border-top: 1px solid var(--ycp-line);
	margin-top: 12px;
	padding-top: 10px;
}

/* related / other listings */
body.ycp-ui .hp-listing--view-page > .hp-listings {
	margin-top: 40px;
}

body.ycp-ui .hp-listing--view-page > .hp-listings::before {
	content: "Other parts you may like";
	display: block;
	margin-bottom: 14px;
	font-family: var(--ycp-head);
	font-size: 20px;
	font-weight: 600;
	color: var(--ycp-ink);
}

/* =========================================================================
 * LISTING CARDS (everywhere: related, search results, vendor page)
 * ========================================================================= */

body.ycp-ui .hp-listing--view-block {
	background: var(--ycp-card);
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	box-shadow: var(--ycp-shadow);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

body.ycp-ui .hp-listing--view-block:hover {
	box-shadow: var(--ycp-shadow-hover);
	transform: translateY(-2px);
}

body.ycp-ui .hp-listing--view-block .hp-listing__image {
	background: #fff;
}

body.ycp-ui .hp-listing--view-block .hp-listing__image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

body.ycp-ui .hp-listing--view-block .hp-listing__title {
	font-size: 16px;
	line-height: 1.3;
	margin: 6px 0 4px;
}

body.ycp-ui .hp-listing--view-block .hp-listing__title a {
	text-decoration: none;
}

body.ycp-ui .hp-listing--view-block .hp-listing__categories a {
	background: var(--ycp-yellow-soft);
	color: var(--ycp-ink);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
}

body.ycp-ui .hp-listing--view-block .hp-listing__footer {
	border-top: 1px solid var(--ycp-line);
	background: #fcfbf8;
}

/* =========================================================================
 * PHONES
 * ========================================================================= */

@media (max-width: 781px) {
	body.ycp-ui .site-content {
		padding-top: 18px;
	}

	body.ycp-ui .hp-listing--view-page > .wp-block-columns {
		flex-direction: column;
		gap: 16px;
	}

	body.ycp-ui .hp-listing--view-page .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}

	body.ycp-ui .hp-listing--view-page .wp-block-column:has(.hp-listing__attributes--primary) {
		position: static;
	}

	body.ycp-ui .hp-listing--view-page .hp-listing__attribute--price {
		font-size: 26px;
	}
}


/* empty third column of the listing template */
body.ycp-ui .hp-listing--view-page .wp-block-columns > .wp-block-column:empty {
	display: none;
}

/* =========================================================================
 * HEADER BAND (inner pages): the home photo, low, behind the usual header
 * ========================================================================= */

body.ycp-ui.ycp-banner .site-header {
	position: relative;
	background-color: #d9cdb8;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .55) 85%, #fff 100%),
		var(--ycp-banner, none);
	background-size: cover;
	background-position: var(--ycp-banner-pos, center 18%);
	background-repeat: no-repeat;
	min-height: 210px;
	border-bottom: 0;
}

@media (max-width: 781px) {
	body.ycp-ui.ycp-banner .site-header {
		min-height: 150px;
		background-position: var(--ycp-banner-pos-m, 60% 15%);
		background-size: cover, var(--ycp-banner-size-m, cover);
	}
}

/* =========================================================================
 * BRAND LOGOS – always transparent (rule of the site)
 * The logo files are .jpg with a white background: "multiply" makes the
 * white disappear on any light background. The home page stays white.
 * ========================================================================= */

body.ycp-ui.home,
body.ycp-ui.home .site-content {
	background: #fff;
}

body.ycp-ui .ycp-brand-logo,
body.ycp-ui .ycp-brand-logo img,
body.ycp-ui [class*="brand"] img[src*="logo-"],
body.ycp-ui img[src*="/logo-"]:not(.custom-logo) {
	background: transparent !important;
	box-shadow: none !important;
}

body.ycp-ui .ycp-brand-logo img,
body.ycp-ui [class*="brand"] img[src*="logo-"],
body.ycp-ui img[src*="/logo-"]:not(.custom-logo) {
	mix-blend-mode: multiply;
}

/* =========================================================================
 * LOG IN / CREATE ACCOUNT / SELLER STEP 2 – white card over the band
 * ========================================================================= */

body.ycp-ui.ycp-auth .hp-page__content {
	float: none;
	max-width: 460px;
	width: 100%;
	margin: 8px auto 0 !important;
	padding: 28px 28px 22px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--ycp-line);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(21, 21, 21, .10);
	position: relative;
	z-index: 2;
}

body.ycp-ui.ycp-auth--seller .hp-page__content {
	max-width: 640px;
}

body.ycp-ui.ycp-auth .site-content {
	padding-top: 0;
}

body.ycp-ui.ycp-auth .hp-page__title {
	text-align: center;
	font-size: 28px;
	margin: 0 0 4px;
	text-transform: none;
}

body.ycp-ui.ycp-auth .hp-page__title::before,
body.ycp-ui.ycp-auth .hp-page__title::after {
	display: none;
}

body.ycp-ui .ycp-auth__sub {
	text-align: center;
	color: var(--ycp-muted);
	margin: 0 0 22px;
	font-size: 15px;
}

body.ycp-ui.ycp-auth .hp-form--narrow {
	max-width: none;
}

body.ycp-ui.ycp-auth .hp-form__field {
	margin-bottom: 14px;
}

body.ycp-ui.ycp-auth .hp-form__label span {
	font-size: 13px;
}

body.ycp-ui.ycp-auth input[type="text"],
body.ycp-ui.ycp-auth input[type="email"],
body.ycp-ui.ycp-auth input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
}

body.ycp-ui.ycp-auth .hp-form__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	font-size: 14px;
}

body.ycp-ui.ycp-auth .hp-form__footer .hp-form__button,
body.ycp-ui.ycp-auth .hp-form__footer button[type="submit"] {
	width: 100%;
	padding: 13px 16px;
	background: var(--ycp-yellow);
	border-color: var(--ycp-yellow);
	color: var(--ycp-ink);
	font-size: 16px;
}

body.ycp-ui.ycp-auth .hp-form__footer .hp-form__button:hover {
	background: var(--ycp-yellow-dark);
}

body.ycp-ui.ycp-auth .hp-form__footer a,
body.ycp-ui .ycp-auth__switch a {
	color: var(--ycp-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--ycp-yellow);
}

body.ycp-ui .ycp-auth__switch {
	margin: 14px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--ycp-muted);
}

/* "What would you like to do?" – two big tiles */
body.ycp-ui form.hp-form--user-register .hp-form__field--radio .hp-field--radio ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio .hp-field--radio li {
	margin: 0;
	padding: 0;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio .hp-field--radio li label {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio label:not(.hp-form__label) {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 96px;
	padding: 14px 10px;
	border: 2px solid var(--ycp-line);
	border-radius: 12px;
	background: #fff;
	text-align: center;
	font-family: var(--ycp-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--ycp-ink);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio label:not(.hp-form__label)::before {
	font-size: 26px;
	line-height: 1;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio label:not(.hp-form__label):has(input[value="buyer"])::before {
	content: "🔍";
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio label:not(.hp-form__label):has(input[value="seller"])::before {
	content: "🔧";
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio input[type="radio"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	pointer-events: none;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio label:not(.hp-form__label)::after {
	display: none !important;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio label.is-checked,
body.ycp-ui form.hp-form--user-register .hp-form__field--radio label:has(input:checked) {
	border-color: var(--ycp-yellow);
	background: var(--ycp-yellow-soft);
	box-shadow: 0 0 0 1px var(--ycp-yellow);
}

@media (max-width: 781px) {
	body.ycp-ui.ycp-auth .hp-page__content {
		margin-top: 4px !important;
		padding: 22px 18px 18px;
	}
}

/* theme's round radio drawn on the span: not needed on the tiles */
body.ycp-ui form.hp-form--user-register .hp-form__field--radio li label > span::before,
body.ycp-ui form.hp-form--user-register .hp-form__field--radio li label > span::after {
	display: none !important;
}

body.ycp-ui form.hp-form--user-register .hp-form__field--radio li label > span {
	padding: 0 !important;
	margin: 0 !important;
}

/* =========================================================================
 * HOME – "Welcome back" panel for logged-in members
 * ========================================================================= */

body.ycp-ui .ycp-welcome {
	max-width: 1000px;
	margin: 36px auto 10px;
	display: grid;
	gap: 14px;
}

body.ycp-ui .ycp-welcome svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

body.ycp-ui .ycp-welcome__done {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border: 1px solid #b9e3c8;
	border-radius: 12px;
	background: #ecf8f0;
	color: #1d6b3d;
}

body.ycp-ui .ycp-welcome__done strong {
	display: block;
	color: #14532d;
	font-family: var(--ycp-head);
}

body.ycp-ui .ycp-welcome__done span {
	font-size: 14px;
}

body.ycp-ui .ycp-welcome__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	height: 34px;
	border-radius: 50%;
	background: #2e9e5b;
	color: #fff !important;
	font-size: 18px !important;
}

body.ycp-ui .ycp-welcome__close {
	margin-left: auto;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #1d6b3d;
	cursor: pointer;
}

body.ycp-ui .ycp-welcome__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid #f1e3b8;
	border-radius: 14px;
	background: #fffaf0;
}

body.ycp-ui .ycp-welcome__avatar svg {
	width: 44px;
	height: 44px;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-welcome__hello {
	flex: 1 1 auto;
	min-width: 0;
}

body.ycp-ui .ycp-welcome__hello strong {
	display: block;
	font-family: var(--ycp-head);
	font-size: 19px;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-welcome__hello span {
	font-size: 14px;
	color: var(--ycp-muted);
}

body.ycp-ui .ycp-welcome__main {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 10px;
	background: var(--ycp-yellow);
	color: var(--ycp-ink) !important;
	font-family: var(--ycp-head);
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(253, 187, 24, .35);
}

body.ycp-ui .ycp-welcome__main:hover {
	background: var(--ycp-yellow-dark);
}

body.ycp-ui .ycp-welcome__main svg circle {
	fill: var(--ycp-ink);
}

body.ycp-ui .ycp-welcome__tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

body.ycp-ui .ycp-welcome__tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--ycp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

body.ycp-ui .ycp-welcome__tile:hover {
	border-color: var(--ycp-yellow);
	box-shadow: var(--ycp-shadow);
	transform: translateY(-1px);
}

body.ycp-ui .ycp-welcome__tile-icon svg {
	width: 30px;
	height: 30px;
}

body.ycp-ui .ycp-welcome__tile strong {
	display: block;
	font-family: var(--ycp-head);
	font-size: 15px;
}

body.ycp-ui .ycp-welcome__tile small {
	display: block;
	color: var(--ycp-muted);
	font-size: 12.5px;
	line-height: 1.35;
}

@media (max-width: 900px) {
	body.ycp-ui .ycp-welcome__tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	body.ycp-ui .ycp-welcome {
		margin: 22px 16px 6px;
	}

	body.ycp-ui .ycp-welcome__bar {
		flex-wrap: wrap;
	}

	body.ycp-ui .ycp-welcome__main {
		width: 100%;
		justify-content: center;
	}

	body.ycp-ui .ycp-welcome__tiles {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	body.ycp-ui .ycp-welcome__tile {
		flex-direction: column;
		text-align: center;
		padding: 12px 6px;
		gap: 6px;
	}

	body.ycp-ui .ycp-welcome__tile small {
		display: none;
	}

	body.ycp-ui .ycp-welcome__tile:nth-child(4) {
		display: none;
	}
}

/* ---------- Welcome panel: "Your latest parts" ---------- */

body.ycp-ui .ycp-mine {
	padding: 14px 16px 16px;
	border: 1px solid var(--ycp-line);
	border-radius: 14px;
	background: #fff;
}

body.ycp-ui .ycp-mine__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}

body.ycp-ui .ycp-mine__head strong {
	font-family: var(--ycp-head);
	font-size: 16px;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-mine__head a {
	font-size: 13px;
	font-weight: 600;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-mine__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

body.ycp-ui .ycp-mine__item {
	display: flex;
	gap: 10px;
	padding: 8px;
	border: 1px solid var(--ycp-line);
	border-radius: 10px;
	min-width: 0;
}

body.ycp-ui .ycp-mine__item.is-hidden {
	opacity: .65;
}

body.ycp-ui .ycp-mine__img {
	flex: 0 0 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f2ee;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #999;
	text-decoration: none !important;
}

body.ycp-ui .ycp-mine__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.ycp-ui .ycp-mine__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

body.ycp-ui .ycp-mine__title {
	font-family: var(--ycp-head);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.ycp-ui .ycp-mine__body small {
	color: var(--ycp-muted);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.ycp-ui .ycp-mine__meta {
	font-size: 13px;
	font-weight: 700;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-mine__meta em {
	font-style: normal;
	font-weight: 600;
	font-size: 11px;
	color: #b4471f;
	margin-left: 4px;
}

body.ycp-ui .ycp-mine__actions {
	display: flex;
	gap: 10px;
	margin-top: 2px;
	font-size: 12px;
}

body.ycp-ui .ycp-mine__actions a {
	color: var(--ycp-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--ycp-yellow);
}

/* ---------- Home: Latest Listings ---------- */

body.ycp-ui .ycp-latest {
	max-width: 1000px;
	margin: 36px auto 10px;
}

body.ycp-ui .ycp-latest__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 12px;
}

body.ycp-ui .ycp-latest__head h2 {
	margin: 0;
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: .02em;
}

body.ycp-ui .ycp-latest__head p {
	margin: 2px 0 0;
	color: var(--ycp-muted);
	font-size: 14px;
}

body.ycp-ui .ycp-latest__all {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
	font-family: var(--ycp-head);
	font-size: 13px;
	font-weight: 600;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
}

body.ycp-ui .ycp-latest__all:hover {
	border-color: var(--ycp-yellow);
}

body.ycp-ui .ycp-latest__pills {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 0 8px;
	scrollbar-width: none;
}

body.ycp-ui .ycp-latest__pills::-webkit-scrollbar {
	display: none;
}

body.ycp-ui .ycp-latest__pills button {
	flex: 0 0 auto;
	padding: 7px 14px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ycp-ink);
	font-family: var(--ycp-head);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}

body.ycp-ui .ycp-latest__pills button:hover {
	border-color: var(--ycp-ink);
}

body.ycp-ui .ycp-latest__pills button.is-on {
	background: var(--ycp-ink);
	border-color: var(--ycp-ink);
	color: #fff;
}

body.ycp-ui .ycp-latest__pills[data-filter="brand"] button.is-on {
	background: var(--ycp-yellow);
	border-color: var(--ycp-yellow);
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-latest__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 6px;
}

body.ycp-ui .ycp-latest__card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ycp-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
	transition: box-shadow .2s ease, transform .2s ease;
}

body.ycp-ui .ycp-latest__card:hover {
	box-shadow: var(--ycp-shadow-hover);
	transform: translateY(-2px);
}

body.ycp-ui .ycp-latest__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: #fff;
	border-bottom: 1px solid var(--ycp-line);
	color: #aaa;
	font-size: 12px;
}

body.ycp-ui .ycp-latest__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
	box-sizing: border-box;
}

body.ycp-ui .ycp-latest__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 10px 12px 12px;
	line-height: 1.3;
}

body.ycp-ui .ycp-latest__body strong {
	font-family: var(--ycp-head);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.ycp-ui .ycp-latest__body small {
	font-size: 12.5px;
	color: var(--ycp-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.ycp-ui .ycp-latest__body b {
	margin-top: 4px;
	font-family: var(--ycp-head);
	font-size: 16px;
	color: #c98a00;
}

body.ycp-ui .ycp-latest__empty {
	padding: 24px;
	text-align: center;
	color: var(--ycp-muted);
	border: 1px dashed var(--ycp-line);
	border-radius: 12px;
}

@media (max-width: 900px) {
	body.ycp-ui .ycp-mine__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ycp-ui .ycp-latest__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.ycp-ui .ycp-latest {
		margin: 26px 16px 6px;
	}

	body.ycp-ui .ycp-latest__head h2 {
		font-size: 20px;
	}

	body.ycp-ui .ycp-latest__head p {
		display: none;
	}

	/* swipe with the finger */
	body.ycp-ui .ycp-latest__grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 10px;
		padding-bottom: 6px;
	}

	body.ycp-ui .ycp-latest__card {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}

	body.ycp-ui .ycp-mine__list {
		grid-template-columns: 1fr;
	}
}

/* same photo box for every card */
body.ycp-ui .ycp-latest__img {
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

body.ycp-ui .ycp-latest__img img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
}

/* =========================================================================
 * SITE LOGO over the photo: soft light halo so black letters stay readable
 * ========================================================================= */

body.ycp-ui .site-header .header-logo::before {
	content: "";
	position: absolute;
	inset: -18% -14%;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45) 55%, rgba(255, 255, 255, 0) 100%);
	filter: blur(6px);
}

body.ycp-ui .site-header .header-logo .custom-logo-link {
	position: relative;
	z-index: 1;
}

body.ycp-ui .site-header .header-logo .custom-logo {
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 0 3px rgba(255, 255, 255, .8));
}

/* =========================================================================
 * FAVORITES ❤
 * ========================================================================= */

body.ycp-ui .ycp-latest__item {
	position: relative;
	display: flex;
}

body.ycp-ui .ycp-latest__item .ycp-latest__card {
	flex: 1 1 auto;
	width: 100%;
}

body.ycp-ui .ycp-fav--icon {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
}

body.ycp-ui .ycp-fav--icon .hp-icon,
body.ycp-ui .hp-listing__action--favorite .hp-icon {
	font-size: 15px;
}

body.ycp-ui .hp-listing__action--favorite.hp-state-active .hp-icon,
body.ycp-ui .hp-listing__action--favorite[data-state="active"] .hp-icon,
body.ycp-ui .ycp-fav.hp-state-active .hp-icon {
	color: #d93a3a;
}

/* single listing: heart at the top of the price card */
body.ycp-ui .ycp-fav-holder {
	float: right;
	margin: -4px -6px 0 8px;
}

body.ycp-ui .ycp-fav-holder .ycp-fav--link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
	background: #fff;
}

body.ycp-ui .ycp-fav-holder .ycp-fav--link:hover {
	border-color: #d93a3a;
}

@media (max-width: 640px) {
	body.ycp-ui .ycp-latest__item {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}

	body.ycp-ui .ycp-latest__item .ycp-latest__card {
		flex: 1 1 auto;
	}
}

/* =========================================================================
 * SEARCH BAR – same light pill on every page (home, Search Listings…)
 * ========================================================================= */

body.ycp-ui .hp-form--listing-search {
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
	padding: 4px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(21, 21, 21, .05);
}

body.ycp-ui .hp-form--listing-search .hp-form__fields,
body.ycp-ui .hp-form--listing-search .hp-form__field {
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

body.ycp-ui .hp-form--listing-search input[type="search"],
body.ycp-ui .hp-form--listing-search input[type="text"] {
	height: 40px;
	padding: 0 16px;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	font-size: 15px;
}

body.ycp-ui .hp-form--listing-search .hp-form__button,
body.ycp-ui .hp-form--listing-search button[type="submit"] {
	height: 40px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 14px;
	line-height: 40px;
	box-shadow: none;
}

/* =========================================================================
 * HOME – photo carousel with slow cross-fade and very light zoom
 * ========================================================================= */

body.ycp-ui.home .site-header {
	z-index: 20;
}

body.ycp-ui .ycp-hero-figure {
	position: relative;
	overflow: hidden;
}

body.ycp-ui .ycp-hero {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	background: #1d1a17;
}

body.ycp-ui .ycp-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 40%;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.5s ease;
	will-change: opacity, transform;
}

body.ycp-ui .ycp-hero__slide.is-on {
	opacity: 1;
}

/* the zoom: 6% in about 8.5 s, from slightly different points */
body.ycp-ui .ycp-hero__slide.is-zoom {
	animation: ycp-kenburns 8.5s ease-out forwards;
}

body.ycp-ui .ycp-hero__slide--0 { transform-origin: 50% 45%; }
body.ycp-ui .ycp-hero__slide--1 { transform-origin: 30% 55%; }
body.ycp-ui .ycp-hero__slide--2 { transform-origin: 70% 40%; }

@keyframes ycp-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.06); }
}

/* one photo only: gentle zoom in and out */
body.ycp-ui .ycp-hero.is-single .ycp-hero__slide.is-zoom {
	animation: ycp-breathe 16s ease-in-out infinite alternate;
}

@keyframes ycp-breathe {
	from { transform: scale(1); }
	to   { transform: scale(1.05); }
}

/* "reduce motion" setting: no zoom, only the fade */
body.ycp-ui .ycp-hero.is-still .ycp-hero__slide,
body.ycp-ui .ycp-hero.is-still .ycp-hero__slide.is-zoom {
	animation: none;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	body.ycp-ui .ycp-hero__slide,
	body.ycp-ui .ycp-hero__slide.is-zoom {
		animation: none !important;
		transform: none !important;
	}
}

/* header icon labels: small rounded pill for readability on any photo */
body.ycp-ui .site-header .header-navbar__menu .ycp-nav-label {
	display: inline-block;
	margin-top: 2px;
	padding: 2px 9px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .82);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
	color: var(--ycp-ink);
	line-height: 1.35;
	text-shadow: none !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* inner pages (busy workbench photos): icon + label on one frosted card,
   so the icons never get lost on the parts behind them */
body.ycp-ui.ycp-banner .site-header .header-navbar__menu li[class*="ycp-menu-"] > a {
	min-width: 72px;
	padding: 7px 8px 5px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

/* smaller cards on inner pages: icon 26 px, label 12 px */
body.ycp-ui.ycp-banner .site-header .header-navbar__menu li[class*="ycp-menu-"] > a::before {
	width: 26px !important;
	height: 26px !important;
	margin-bottom: 3px !important;
}

body.ycp-ui.ycp-banner .site-header .header-navbar__menu li[class*="ycp-menu-"] > a .ycp-nav-label {
	margin-top: 0;
	padding: 0 2px;
	font-size: 12px !important;
	line-height: 1.3;
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* =========================================================================
 * HOME – "I'm a buyer / I'm a seller": two colours + icons
 * ========================================================================= */

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-seller-columns {
	gap: 20px;
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column,
body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column {
	position: relative;
	padding: 26px 22px 24px 112px !important;
	border-radius: 16px !important;
	text-align: left !important;
	box-shadow: 0 2px 10px rgba(21, 21, 21, .04);
	transition: transform .2s ease, box-shadow .2s ease;
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column:hover,
body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column:hover {
	transform: translateY(-2px);
	box-shadow: var(--ycp-shadow-hover);
}

/* buyer: soft blue */
body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column {
	background: #eef4fb !important;
	border: 1px solid #d3e2f3 !important;
}

/* seller: soft yellow */
body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column {
	background: #fff6dc !important;
	border: 1px solid #f1dc9c !important;
}

/* icons */
body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column::before,
body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 50%;
	width: 70px;
	height: 70px;
	margin-top: -35px;
	border-radius: 50%;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 40px 40px;
	box-shadow: 0 2px 8px rgba(21, 21, 21, .06);
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3b5c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.4 15.4 21 21'/%3E%3Cpath d='M8 8.6a3.3 3.3 0 0 1 2.5-1.1'/%3E%3C/svg%3E");
}

body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8Z'/%3E%3Ccircle cx='7.8' cy='7.8' r='1.5'/%3E%3C/svg%3E");
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column h3,
body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column h3 {
	margin: 0 0 2px !important;
	font-size: 20px !important;
	text-align: left !important;
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column h3 {
	color: #1f3b5c !important;
}

/* short subtitle under each title */
body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column h3::after,
body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column h3::after {
	display: block;
	margin: 3px 0 12px;
	font-family: var(--ycp-body);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ycp-muted);
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column h3::after {
	content: "I'm looking for a classic car part";
}

body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column h3::after {
	content: "I want to sell my spare parts";
}

body.ycp-ui #ycp-home-buyer-seller .ycp-home-seller-links {
	justify-content: flex-start !important;
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column .ycp-home-action {
	background: #1f3b5c !important;
	color: #fff !important;
}

body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column .ycp-home-action:hover {
	background: #152a43 !important;
}

@media (max-width: 640px) {
	body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column,
	body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column {
		padding: 20px 16px 20px 92px !important;
	}

	body.ycp-ui #ycp-home-buyer-seller .ycp-buyer-column::before,
	body.ycp-ui #ycp-home-buyer-seller .ycp-seller-column::before {
		left: 14px;
		width: 60px;
		height: 60px;
		margin-top: -30px;
		background-size: 34px 34px;
	}
}

/* brand carousel arrows: same solid yellow as the header menu icons */
body.ycp-ui .ycp-brand-carousel-arrow {
	background: #f4c400 !important;
	color: var(--ycp-ink) !important;
	opacity: 1 !important;
	border: 0 !important;
	box-shadow: 0 2px 6px rgba(21, 21, 21, .15) !important;
	transition: transform .15s ease, background .15s ease;
}

body.ycp-ui .ycp-brand-carousel-arrow:hover {
	background: #e0b400 !important;
	transform: scale(1.06);
}

body.ycp-ui .ycp-brand-carousel-arrow:disabled,
body.ycp-ui .ycp-brand-carousel-arrow[aria-disabled="true"] {
	cursor: default;
	transform: none;
}

/* also when there is nothing to scroll (beats the snippet's 35% opacity) */
body.ycp-ui .ycp-brand-carousel-wrap > .ycp-brand-carousel-arrow:disabled,
body.ycp-ui .ycp-brand-grid .ycp-brand-carousel-arrow:disabled,
body.ycp-ui .ycp-brand-carousel-wrap > .ycp-brand-carousel-arrow,
body.ycp-ui .ycp-brand-grid .ycp-brand-carousel-arrow {
	opacity: 1 !important;
	background: #f4c400 !important;
	color: var(--ycp-ink) !important;
}

/* =========================================================================
 * SEARCH LISTINGS – categories as a clean list (no inner scroll, bigger text)
 * ========================================================================= */

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio,
body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio ul {
	max-height: none !important;
	height: auto !important;
	overflow: visible !important;
}

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio ul {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	margin: 0 !important;
	padding: 0 !important;
	grid-template-columns: none !important;
	list-style: none;
}

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio li {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio label {
	position: relative;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	height: auto !important;
	min-height: 52px;
	margin: 0 !important;
	padding: 6px 12px 6px 8px !important;
	box-sizing: border-box;
	border: 1px solid var(--ycp-line) !important;
	border-left: 4px solid transparent !important;
	border-radius: 10px !important;
	background: #fff !important;
	text-align: left !important;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio label:hover {
	border-color: var(--ycp-ink) !important;
	border-left-color: var(--ycp-ink) !important;
}

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio label:has(input:checked) {
	background: var(--ycp-yellow-soft) !important;
	border-color: #f1dc9c !important;
	border-left-color: var(--ycp-yellow) !important;
}

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio input[type="radio"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	pointer-events: none;
}

body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio label > span::before,
body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio label > span::after {
	display: none !important;
}

body.ycp-ui form.hp-form--listing-filter .ycp-radio-category-image {
	flex: 0 0 40px !important;
	width: 40px !important;
	height: 40px !important;
	max-width: 40px !important;
	margin: 0 !important;
	object-fit: contain !important;
	mix-blend-mode: multiply;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.ycp-ui form.hp-form--listing-filter .ycp-radio-category-name {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--ycp-head) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	color: var(--ycp-ink) !important;
	text-align: left !important;
	white-space: normal !important;
}

body.ycp-ui form.hp-form--listing-filter label:has(input:checked) .ycp-radio-category-name {
	font-weight: 700 !important;
}

/* the other filter fields: readable labels and inputs */
body.ycp-ui form.hp-form--listing-filter .hp-form__label span {
	font-size: 12.5px;
	letter-spacing: .06em;
	color: var(--ycp-muted);
}

body.ycp-ui form.hp-form--listing-filter input[type="number"],
body.ycp-ui form.hp-form--listing-filter select,
body.ycp-ui form.hp-form--listing-filter .select2-selection--single {
	min-height: 42px;
	font-size: 15px;
}

/* beat the old snippet's fixed 90px tiles */
html body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio ul li label {
	min-height: 50px !important;
	height: auto !important;
	justify-content: flex-start !important;
	align-items: center !important;
}

html body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio ul li {
	height: auto !important;
	min-height: 0 !important;
}


/* white page background everywhere (photos look cleaner) */
body.ycp-ui,
body.ycp-ui .site-content,
body.ycp-ui .site-container {
	background-color: #fff;
}

/* categories: never touch the right edge of the sticky sidebar, clearer borders */
html body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio ul {
	padding-right: 3px !important;
	box-sizing: border-box !important;
}

html body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio ul li label {
	width: 100% !important;
	max-width: 100% !important;
	border-color: #dcd8cf !important;
	box-shadow: 0 1px 2px rgba(21, 21, 21, .04);
}

html body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio .hp-field--radio ul li label:has(input:checked) {
	border-color: #ecd387 !important;
	border-left-color: var(--ycp-yellow) !important;
}

/* the "FIND YOUR PART" box above the list, same width and style */
body.ycp-ui form.hp-form--listing-filter .hp-form__field--radio {
	margin-right: 0 !important;
	padding-right: 0 !important;
}

/* =========================================================================
 * LATEST LISTINGS – one row that slides with yellow arrows
 * ========================================================================= */

body.ycp-ui .ycp-latest__track {
	position: relative;
}

body.ycp-ui .ycp-latest .ycp-latest__grid {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 10px;
}

body.ycp-ui .ycp-latest .ycp-latest__grid::-webkit-scrollbar {
	display: none;
}

body.ycp-ui .ycp-latest .ycp-latest__item {
	flex: 0 0 calc((100% - 3 * 14px) / 4);
	scroll-snap-align: start;
}

body.ycp-ui .ycp-latest__arrow {
	position: absolute;
	top: 38%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0 0 3px;
	border: 0;
	border-radius: 50%;
	background: #f4c400;
	color: var(--ycp-ink);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(21, 21, 21, .15);
	transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

body.ycp-ui .ycp-latest__arrow:hover {
	background: #e0b400;
	transform: scale(1.06);
}

body.ycp-ui .ycp-latest__arrow--prev {
	left: -18px;
}

body.ycp-ui .ycp-latest__arrow--next {
	right: -18px;
}

body.ycp-ui .ycp-latest__arrow:disabled {
	opacity: .35;
	cursor: default;
	transform: none;
}

body.ycp-ui .ycp-latest__arrow[hidden] {
	display: none;
}

@media (max-width: 900px) {
	body.ycp-ui .ycp-latest .ycp-latest__item {
		flex-basis: calc((100% - 2 * 14px) / 3);
	}
}

@media (max-width: 640px) {
	body.ycp-ui .ycp-latest .ycp-latest__grid {
		gap: 10px;
	}

	body.ycp-ui .ycp-latest .ycp-latest__item {
		flex-basis: 62%;
	}

	body.ycp-ui .ycp-latest__arrow {
		width: 34px;
		height: 34px;
		margin-top: -17px;
		font-size: 24px;
	}

	body.ycp-ui .ycp-latest__arrow--prev {
		left: -6px;
	}

	body.ycp-ui .ycp-latest__arrow--next {
		right: -6px;
	}
}

/* =========================================================================
 * SEARCH LISTINGS – results page
 * ========================================================================= */

body.ycp-ui .ycp-search-title {
	text-align: center;
	width: 100%;
	margin: 0 0 14px;
	font-family: var(--ycp-head);
	letter-spacing: .04em;
}

body.ycp-ui .ycp-search-guide {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #f1d27a;
	border-left: 4px solid var(--ycp-yellow);
	border-radius: var(--ycp-radius-sm);
	background: var(--ycp-yellow-soft);
	font-size: 13px;
	line-height: 1.45;
	color: var(--ycp-text);
}

body.ycp-ui .ycp-search-guide strong {
	font-family: var(--ycp-head);
	font-size: 14.5px;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-search-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
}

body.ycp-ui .ycp-search-chips .ycp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ycp-ink);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	line-height: 1.2;
}

body.ycp-ui .ycp-search-chips .ycp-chip span {
	opacity: .7;
	font-size: 15px;
}

body.ycp-ui .ycp-search-chips .ycp-chip:hover span {
	opacity: 1;
	color: var(--ycp-yellow);
}

body.ycp-ui .ycp-search-chips__clear {
	font-size: 13px;
	color: var(--ycp-muted) !important;
	text-decoration: underline !important;
}

body.ycp-ui .ycp-search-empty {
	max-width: 520px;
	margin: 10px auto 30px;
	padding: 34px 26px;
	border: 1px dashed #d8d3c7;
	border-radius: var(--ycp-radius);
	background: #fff;
	text-align: center;
}

body.ycp-ui .ycp-search-empty__icon {
	font-size: 34px;
	line-height: 1;
	margin-bottom: 10px;
}

body.ycp-ui .ycp-search-empty h3 {
	margin: 0 0 8px;
	font-family: var(--ycp-head);
	font-size: 19px;
}

body.ycp-ui .ycp-search-empty p {
	margin: 0 0 18px;
	color: var(--ycp-muted);
	font-size: 14px;
}

body.ycp-ui .ycp-search-empty .ycp-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--ycp-yellow);
	color: var(--ycp-ink) !important;
	font-weight: 700;
	text-decoration: none !important;
}

body.ycp-ui .ycp-search-empty .ycp-btn:hover {
	background: var(--ycp-yellow-dark);
}

/* while the next results load */
body.ycp-ui.ycp-search-loading .hp-page__content {
	opacity: .45;
	transition: opacity .2s ease;
	pointer-events: none;
}

/* Page title band (Contact, Mission…): white, no grey */
html body.ycp-ui .header-hero.header-hero--title {
	background: #fff !important;
	background-image: none !important;
}

/* =========================================================================
 * MESSAGES – clear chat between buyer and seller
 * ========================================================================= */

body.ycp-ui .ycp-role {
	display: inline-block;
	vertical-align: middle;
	margin-left: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	font-family: var(--ycp-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.5;
}

body.ycp-ui .ycp-role--seller {
	background: #fff6dc;
	color: #8a6200;
	border: 1px solid #f1d27a;
}

body.ycp-ui .ycp-role--buyer {
	background: #eef4fb;
	color: #1f3b5c;
	border: 1px solid #c9d9ec;
}

/* the part the conversation is about */
body.ycp-ui .ycp-msg-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 4px 0 20px;
}

body.ycp-ui .ycp-msg-part {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px 10px 10px;
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	background: #fff;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
	box-shadow: var(--ycp-shadow);
	transition: box-shadow .2s ease;
}

body.ycp-ui .ycp-msg-part:hover {
	box-shadow: var(--ycp-shadow-hover);
}

body.ycp-ui .ycp-msg-part__img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ycp-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	font-size: 10px;
	color: #aaa;
}

body.ycp-ui .ycp-msg-part__img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

body.ycp-ui .ycp-msg-part__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.3;
}

body.ycp-ui .ycp-msg-part__text small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--ycp-muted);
}

body.ycp-ui .ycp-msg-part__text strong {
	font-family: var(--ycp-head);
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.ycp-ui .ycp-msg-part__text b {
	color: #c98a00;
	font-size: 14px;
}

body.ycp-ui .ycp-msg-part__go {
	flex: 0 0 auto;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--ycp-yellow);
	font-size: 13px;
	font-weight: 700;
}

/* bubbles: theirs on the left (grey), mine on the right (yellow) */
body.ycp-ui .hp-messages.hp-grid {
	display: flex !important;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 22px !important;
}

body.ycp-ui .hp-messages.hp-grid > .hp-grid__item {
	width: auto !important;
	max-width: 78%;
	padding: 0 !important;
	margin: 0 !important;
	flex: 0 0 auto;
	align-self: flex-start;
}

body.ycp-ui .hp-messages.hp-grid > .hp-grid__item.ycp-msg-mine,
body.ycp-ui .hp-messages.hp-grid > .hp-grid__item:has(.hp-message--sent) {
	align-self: flex-end;
}

body.ycp-ui .hp-message--view-block {
	margin: 0 !important;
	padding: 12px 16px !important;
	border-radius: 14px 14px 14px 4px;
	background: #f3f2ee !important;
	border: 1px solid #e7e4dd;
}

body.ycp-ui .hp-message--view-block.hp-message--sent {
	border-radius: 14px 14px 4px 14px;
	background: #fff3cc !important;
	border-color: #f1d27a;
}

body.ycp-ui .hp-message--view-block::before {
	display: none !important;
}

body.ycp-ui .hp-message--view-block.hp-message--sent::after {
	top: auto !important;
	bottom: 10px;
	right: 12px !important;
	font-size: 12px !important;
	opacity: .45 !important;
}

body.ycp-ui .hp-message--view-block .hp-message__header {
	padding-right: 0 !important;
	margin-bottom: 4px !important;
}

body.ycp-ui .hp-message--view-block .hp-message__sender {
	font-family: var(--ycp-head);
	font-size: 13.5px;
	color: var(--ycp-ink);
}

body.ycp-ui .hp-message--view-block .hp-message__sent-date {
	font-size: 11px;
	color: var(--ycp-muted);
	text-transform: none;
	letter-spacing: 0;
}

body.ycp-ui .hp-message--view-block .hp-message__text {
	font-size: 15px;
	line-height: 1.5;
	color: var(--ycp-text);
	padding-right: 18px;
}

/* the part is already shown on top: no yellow "button" inside each bubble */
body.ycp-ui.ycp-msg-one-part .hp-message--view-block .hp-message__listing {
	display: none !important;
}

body.ycp-ui .hp-message--view-block .hp-message__listing {
	display: inline-block;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	font-size: 12px !important;
	font-weight: 600;
	color: var(--ycp-muted) !important;
	text-decoration: underline !important;
}

/* reply box */
body.ycp-ui form.ycp-msg-reply {
	padding: 14px;
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	background: #fff;
	box-shadow: var(--ycp-shadow);
}

body.ycp-ui form.ycp-msg-reply textarea {
	min-height: 90px;
	border-radius: 10px;
	font-size: 15px;
}

body.ycp-ui form.ycp-msg-reply .hp-form__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

body.ycp-ui form.ycp-msg-reply button[type="submit"] {
	min-width: 120px;
	border-radius: 999px;
}

/* conversations list */
body.ycp-ui .ycp-threads__sub {
	margin: -6px 0 18px;
	color: var(--ycp-muted);
	font-size: 14px;
}

body.ycp-ui .ycp-threads {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.ycp-ui .ycp-thread {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px 10px 10px;
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	background: #fff;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
	transition: box-shadow .2s ease, border-color .2s ease;
}

body.ycp-ui .ycp-thread:hover {
	box-shadow: var(--ycp-shadow-hover);
	border-color: var(--ycp-yellow);
}

body.ycp-ui .ycp-thread.is-unread {
	border-left: 4px solid var(--ycp-yellow);
	background: #fffdf5;
}

body.ycp-ui .ycp-thread__img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ycp-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	font-size: 22px;
}

body.ycp-ui .ycp-thread__img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

body.ycp-ui .ycp-thread__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.35;
}

body.ycp-ui .ycp-thread__text strong {
	font-family: var(--ycp-head);
	font-size: 15px;
}

body.ycp-ui .ycp-thread__text small {
	font-size: 13px;
	color: var(--ycp-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.ycp-ui .ycp-thread.is-unread .ycp-thread__text strong {
	font-weight: 700;
}

body.ycp-ui .ycp-thread__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--ycp-muted);
}

body.ycp-ui .ycp-thread__dot {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ycp-yellow);
	color: var(--ycp-ink);
	font-weight: 700;
	font-size: 11px;
}

@media (max-width: 640px) {
	body.ycp-ui .hp-messages.hp-grid > .hp-grid__item {
		max-width: 90%;
	}

	body.ycp-ui .ycp-msg-part__go {
		display: none;
	}
}

/* =========================================================================
 * NEW MESSAGES – red number + small notice
 * ========================================================================= */

body.ycp-ui .menu-item--user-account > a {
	position: relative;
}

body.ycp-ui .ycp-badge {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #d93a3a;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	box-sizing: border-box;
}

body.ycp-ui .ycp-badge--inline {
	position: static;
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
	box-shadow: none;
}

body.ycp-ui .ycp-welcome__tile .ycp-badge--inline {
	position: absolute;
	top: 8px;
	right: 8px;
}

body.ycp-ui .ycp-welcome__tile {
	position: relative;
}

body.ycp-ui .ycp-toast {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 340px;
	padding: 12px 40px 12px 14px;
	border-radius: 12px;
	border-left: 5px solid var(--ycp-yellow);
	background: var(--ycp-ink);
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	transform: translateY(140%);
	opacity: 0;
	transition: transform .35s ease, opacity .35s ease;
}

body.ycp-ui .ycp-toast.is-on {
	transform: none;
	opacity: 1;
}

body.ycp-ui .ycp-toast__icon {
	font-size: 22px;
	color: var(--ycp-yellow);
}

body.ycp-ui .ycp-toast strong {
	display: block;
	font-family: var(--ycp-head);
	font-size: 14.5px;
}

body.ycp-ui .ycp-toast small {
	font-size: 12.5px;
	opacity: .75;
}

body.ycp-ui .ycp-toast__close {
	position: absolute;
	top: 6px;
	right: 8px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
}

@media (max-width: 640px) {
	body.ycp-ui .ycp-toast {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}
}

/* =========================================================================
 * PHONE BOTTOM BAR
 * ========================================================================= */

.ycp-mbar {
	display: none;
}

@media (max-width: 768px) {
	body.ycp-ui {
		padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
	}

	body.ycp-ui .ycp-mbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: stretch;
		justify-content: space-around;
		height: calc(62px + env(safe-area-inset-bottom, 0px));
		padding: 0 4px env(safe-area-inset-bottom, 0px);
		background: rgba(255, 255, 255, .97);
		border-top: 1px solid var(--ycp-line);
		box-shadow: 0 -4px 18px rgba(21, 21, 21, .08);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}

	body.ycp-ui .ycp-mbar__item {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-width: 0;
		color: #6b6b6b !important;
		text-decoration: none !important;
		font-size: 11px;
		font-weight: 600;
		-webkit-tap-highlight-color: transparent;
	}

	body.ycp-ui .ycp-mbar__item.is-on {
		color: var(--ycp-ink) !important;
	}

	body.ycp-ui .ycp-mbar__item.is-on .ycp-mbar__icon::after {
		content: "";
		position: absolute;
		left: 50%;
		bottom: -5px;
		width: 18px;
		height: 3px;
		margin-left: -9px;
		border-radius: 3px;
		background: var(--ycp-yellow);
	}

	body.ycp-ui .ycp-mbar__icon {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
	}

	body.ycp-ui .ycp-mbar__label {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	/* "+ Sell" in the middle, round and yellow */
	body.ycp-ui .ycp-mbar__item--main .ycp-mbar__icon {
		width: 46px;
		height: 46px;
		margin-top: -20px;
		border-radius: 50%;
		background: var(--ycp-yellow);
		color: var(--ycp-ink);
		box-shadow: 0 4px 12px rgba(253, 187, 24, .5), 0 0 0 4px #fff;
	}

	body.ycp-ui .ycp-mbar__item--main .ycp-mbar__icon svg {
		stroke-width: 2.4;
	}

	body.ycp-ui .ycp-mbar__item--main.is-on .ycp-mbar__icon::after {
		display: none;
	}

	body.ycp-ui .ycp-mbar__badge {
		position: absolute;
		top: -3px;
		right: -8px;
		min-width: 17px;
		height: 17px;
		padding: 0 4px;
		border-radius: 999px;
		background: #d93a3a;
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		line-height: 17px;
		text-align: center;
		box-shadow: 0 0 0 2px #fff;
		box-sizing: border-box;
	}

	/* the new-message notice sits above the bar */
	body.ycp-ui .ycp-toast {
		bottom: calc(74px + env(safe-area-inset-bottom, 0px));
	}
}

/* =========================================================================
 * ACCOUNT PAGES – menu card + form card
 * ========================================================================= */

body.ycp-ui.ycp-account .hp-page__sidebar .hp-menu--user-account {
	padding: 0 !important;
	border: 1px solid var(--ycp-line) !important;
	border-radius: var(--ycp-radius) !important;
	background: #fff !important;
	box-shadow: var(--ycp-shadow) !important;
	overflow: hidden;
}

body.ycp-ui .ycp-acc-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-bottom: 1px solid var(--ycp-line);
	background: #fbfaf7;
}

body.ycp-ui .ycp-acc-head__avatar {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ycp-yellow);
	color: var(--ycp-ink);
	font-family: var(--ycp-head);
	font-size: 18px;
	font-weight: 700;
}

body.ycp-ui .ycp-acc-head__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
}

body.ycp-ui .ycp-acc-head__text strong {
	font-family: var(--ycp-head);
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

body.ycp-ui .ycp-acc-head .ycp-role {
	margin-left: 0;
}

body.ycp-ui.ycp-account .hp-menu--user-account ul {
	margin: 0 !important;
	padding: 6px 0 !important;
	list-style: none !important;
}

body.ycp-ui.ycp-account .hp-menu--user-account li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.ycp-ui.ycp-account .hp-menu--user-account li::before,
body.ycp-ui.ycp-account .hp-menu--user-account li > a::before {
	display: none !important;
}

body.ycp-ui.ycp-account .hp-menu--user-account li > a {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 10px 16px !important;
	color: var(--ycp-text) !important;
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .15s ease;
}

body.ycp-ui.ycp-account .hp-menu--user-account li > a:hover {
	background: #faf8f2;
}

body.ycp-ui.ycp-account .hp-menu--user-account li.hp-menu__item--current > a {
	background: var(--ycp-yellow-soft);
	color: var(--ycp-ink) !important;
	font-weight: 700;
	box-shadow: inset 4px 0 0 var(--ycp-yellow);
}

body.ycp-ui .ycp-acc-ico {
	flex: 0 0 18px;
	color: #8a8a8a;
}

body.ycp-ui.ycp-account .hp-menu__item--current .ycp-acc-ico {
	color: var(--ycp-ink);
}

body.ycp-ui.ycp-account .hp-menu__item--user-logout {
	border-top: 1px solid var(--ycp-line) !important;
	margin-top: 6px !important;
	padding-top: 6px !important;
}

body.ycp-ui.ycp-account .hp-menu__item--user-logout > a {
	color: var(--ycp-muted) !important;
}

body.ycp-ui.ycp-account .hp-menu--user-account .ycp-badge--inline {
	margin-left: auto;
}

/* the settings / profile form sits in a white card */
body.ycp-ui.ycp-account .hp-page__content > form.hp-form,
body.ycp-ui.ycp-account .hp-page__content form.hp-form--user-update,
body.ycp-ui.ycp-account .hp-page__content form.hp-form--vendor-update {
	max-width: 640px;
	padding: 22px 24px;
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	background: #fff;
	box-shadow: var(--ycp-shadow);
}

body.ycp-ui.ycp-account .hp-page__content form.hp-form .hp-form__footer {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ycp-line);
}

/* phones: the menu becomes a row of pills above the page */
@media (max-width: 768px) {
	body.ycp-ui.ycp-account .hp-page__sidebar .hp-menu--user-account {
		border: 0 !important;
		box-shadow: none !important;
		background: none !important;
		overflow: visible;
	}

	body.ycp-ui .ycp-acc-head {
		display: none;
	}

	body.ycp-ui.ycp-account .hp-menu--user-account ul {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 2px 0 8px !important;
		scrollbar-width: none;
	}

	body.ycp-ui.ycp-account .hp-menu--user-account ul::-webkit-scrollbar {
		display: none;
	}

	body.ycp-ui.ycp-account .hp-menu--user-account li > a {
		padding: 8px 14px !important;
		border: 1px solid var(--ycp-line);
		border-radius: 999px;
		background: #fff;
		white-space: nowrap;
		font-size: 13.5px;
	}

	body.ycp-ui.ycp-account .hp-menu--user-account li.hp-menu__item--current > a {
		border-color: var(--ycp-yellow);
		box-shadow: none;
	}

	body.ycp-ui.ycp-account .hp-menu__item--user-logout {
		border-top: 0 !important;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	body.ycp-ui.ycp-account .hp-page__content > form.hp-form,
	body.ycp-ui.ycp-account .hp-page__content form.hp-form--user-update,
	body.ycp-ui.ycp-account .hp-page__content form.hp-form--vendor-update {
		padding: 16px;
	}
}

/* account menu: icon + label on the left */
html body.ycp-ui.ycp-account .hp-menu--user-account li > a {
	justify-content: flex-start !important;
	text-align: left !important;
}

html body.ycp-ui.ycp-account .hp-menu--user-account li > a > span {
	flex: 0 1 auto;
	text-align: left !important;
}

/* =========================================================================
 * MY LISTINGS – all parts at once, menu as tabs on top, + List a Part
 * ========================================================================= */

html body.ycp-ui:has(#ycp-my-listings-filter) .hp-page__sidebar {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin-bottom: 14px;
}

html body.ycp-ui:has(#ycp-my-listings-filter) .hp-page__sidebar .inner-wrapper-sticky {
	position: static !important;
	transform: none !important;
	width: auto !important;
}

html body.ycp-ui.ycp-account:has(#ycp-my-listings-filter) .hp-page__sidebar .hp-menu--user-account {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 8px 12px !important;
}

html body.ycp-ui:has(#ycp-my-listings-filter) .ycp-acc-head {
	padding: 0 12px 0 0;
	border-bottom: 0;
	border-right: 1px solid var(--ycp-line);
	background: none;
}

html body.ycp-ui:has(#ycp-my-listings-filter) .ycp-acc-head__avatar {
	flex-basis: 34px;
	width: 34px;
	height: 34px;
	font-size: 15px;
}

html body.ycp-ui.ycp-account:has(#ycp-my-listings-filter) .hp-menu--user-account ul {
	display: flex !important;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 !important;
}

html body.ycp-ui.ycp-account:has(#ycp-my-listings-filter) .hp-menu--user-account li > a {
	padding: 8px 12px !important;
	border-radius: 999px;
	white-space: nowrap;
}

html body.ycp-ui.ycp-account:has(#ycp-my-listings-filter) .hp-menu--user-account li.hp-menu__item--current > a {
	box-shadow: inset 0 0 0 1px var(--ycp-yellow);
}

html body.ycp-ui.ycp-account:has(#ycp-my-listings-filter) .hp-menu__item--user-logout {
	border-top: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ycp-ui .ycp-myl-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

body.ycp-ui .ycp-myl-head h1,
body.ycp-ui .ycp-myl-head h2 {
	margin: 0 !important;
}

body.ycp-ui .ycp-myl-add {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--ycp-yellow);
	color: var(--ycp-ink) !important;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(253, 187, 24, .35);
}

body.ycp-ui .ycp-myl-add:hover {
	background: var(--ycp-yellow-dark);
}

body.ycp-ui #ycp-my-listings-filter {
	border: 1px solid var(--ycp-line) !important;
	border-radius: var(--ycp-radius) !important;
	background: #fbfaf7 !important;
}

body.ycp-ui #ycp-my-listings-filter .ycp-ml-filter-title {
	font-size: 12px !important;
	letter-spacing: .05em;
	color: var(--ycp-muted) !important;
	text-transform: uppercase;
}

@media (max-width: 768px) {
	html body.ycp-ui:has(#ycp-my-listings-filter) .ycp-acc-head {
		display: none;
	}

	html body.ycp-ui.ycp-account:has(#ycp-my-listings-filter) .hp-page__sidebar .hp-menu--user-account {
		padding: 0 !important;
	}

	html body.ycp-ui.ycp-account:has(#ycp-my-listings-filter) .hp-menu--user-account ul {
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	body.ycp-ui .ycp-myl-add {
		display: none; /* the yellow + in the bottom bar does it */
	}
}

/* My Listings – new filter bar (the old box stays hidden) */
html body.ycp-ui.ycp-myl #ycp-my-listings-filter {
	display: none !important;
}

body.ycp-ui .ycp-myl-head__left {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body.ycp-ui .ycp-myl-total {
	font-size: 13px;
	color: var(--ycp-muted);
}

body.ycp-ui .ycp-myl-filter {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 18px;
	padding: 14px;
	border: 1px solid var(--ycp-line);
	border-radius: var(--ycp-radius);
	background: #fbfaf7;
}

body.ycp-ui .ycp-myl-filter.is-active {
	border-color: #f1d27a;
	background: var(--ycp-yellow-soft);
}

body.ycp-ui .ycp-myl-filter__search {
	display: flex;
	gap: 8px;
}

body.ycp-ui .ycp-myl-filter__search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #dcd8cf;
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
}

body.ycp-ui .ycp-myl-filter__search button {
	flex: 0 0 auto;
	height: 42px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ycp-ink);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

body.ycp-ui .ycp-myl-filter__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

body.ycp-ui .ycp-myl-filter__row select {
	flex: 1 1 160px;
	min-width: 0;
	height: 40px;
	border: 1px solid #dcd8cf;
	border-radius: 10px;
	background-color: #fff;
	font-size: 14px;
}

body.ycp-ui .ycp-myl-filter__row select:disabled {
	opacity: .5;
}

body.ycp-ui .ycp-myl-filter__clear {
	flex: 0 0 auto;
	padding: 0 6px;
	font-size: 13px;
	color: var(--ycp-muted) !important;
	text-decoration: underline !important;
}

@media (max-width: 640px) {
	body.ycp-ui .ycp-myl-filter__search button {
		padding: 0 14px;
	}

	body.ycp-ui .ycp-myl-filter__row select {
		flex-basis: 100%;
	}
}

/* =========================================================================
 * Listing page: big car (440 px) under the title, no frame
 * ========================================================================= */
body.ycp-ui .ycp-listing-vehicle {
	flex-wrap: wrap;
	gap: 6px 12px;
	width: 100%;
	max-width: 440px;
	padding: 0 !important;
	background: transparent;
}

body.ycp-ui .ycp-listing-vehicle .ycp-listing-vehicle__car {
	order: -1;
	flex: 0 0 100%;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 400 / 255;
	object-fit: contain;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	mix-blend-mode: multiply;
}

/* listing page: brand logo in the top-left corner of the car photo */
body.ycp-ui .ycp-listing-vehicle {
	position: relative;
}

body.ycp-ui .ycp-listing-vehicle img:first-child:not(.ycp-listing-vehicle__car) {
	position: absolute;
	top: 2px;
	left: 0;
	z-index: 2;
	width: 64px !important;
	height: 64px !important;
	object-fit: contain;
	mix-blend-mode: multiply;
	background: transparent;
}

/* listing page without car photo: logo in line with the name */
body.ycp-ui .ycp-listing-vehicle:not(:has(.ycp-listing-vehicle__car)) img:first-child {
	position: static;
	width: 48px !important;
	height: 48px !important;
}

body.ycp-ui .ycp-listing-vehicle:not(:has(.ycp-listing-vehicle__car)) {
	flex-wrap: nowrap;
	align-items: center;
}

/* =========================================================================
 * TYPE & RHYTHM v1 – one system for every page
 *   Poppins = titles and buttons · Open Sans = text
 *   Page title 40 · Section title 26 · Lead 21 · Text 17 · Label 12 caps
 *   Space between sections: 64 px (40 on phones)
 * ========================================================================= */

body.ycp-ui {
	--ycp-gap: 64px;
	--ycp-title: 40px;
	--ycp-h2: 26px;
}

@media (max-width: 781px) {
	body.ycp-ui {
		--ycp-gap: 40px;
		--ycp-title: 30px;
		--ycp-h2: 22px;
	}
}

/* ---------- page titles: the same everywhere ---------- */
body.ycp-ui .header-hero__content .page__title,
body.ycp-ui h1.hp-page__title,
body.ycp-ui .ycp-search-title,
body.ycp-ui.home .page__text > h1 {
	margin: 40px 0 28px !important;
	font-family: var(--ycp-head);
	font-size: var(--ycp-title) !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	color: var(--ycp-ink);
}

body.ycp-ui.ycp-auth .hp-page__title {
	margin-top: 0 !important;
}

/* ---------- section titles ---------- */
body.ycp-ui .ycp-latest__head h2,
body.ycp-ui .page__text h2 {
	font-size: var(--ycp-h2) !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
}

/* ---------- HOME: one title, a subtitle, then even spacing ---------- */
body.ycp-ui.home .page__text > h1 {
	margin: var(--ycp-gap) 0 6px !important;
}

body.ycp-ui.home .page__text > h1 + h2 {
	margin: 0 0 24px !important;
	font-family: var(--ycp-body) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	color: var(--ycp-muted) !important;
}

body.ycp-ui.home .page__text > .ycp-brand-carousel-wrap {
	margin: 32px auto 0 !important;
}

body.ycp-ui.home .page__text > #ycp-welcome,
body.ycp-ui.home .page__text > #ycp-latest {
	margin-top: var(--ycp-gap) !important;
	margin-bottom: 0 !important;
}

/* the logo carousel has its own air below the names */
body.ycp-ui.home .page__text > .ycp-brand-carousel-wrap + #ycp-welcome {
	margin-top: calc(var(--ycp-gap) - 20px) !important;
}

/* ---------- plain pages (Mission, Contact, Privacy…): a readable column ---------- */
body.ycp-ui.page:not(.home) .page__text {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: var(--ycp-gap);
}

body.ycp-ui.page:not(.home) .page__text p,
body.ycp-ui.page:not(.home) .page__text li {
	font-size: 17px !important;
	line-height: 1.75 !important;
	color: var(--ycp-text);
}

body.ycp-ui.page:not(.home) .page__text p {
	margin: 0 0 18px !important;
}

/* first sentence = the lead */
body.ycp-ui.page:not(.home) .page__text > h3:first-child + p,
body.ycp-ui.page:not(.home) .page__text > p:first-child {
	font-family: var(--ycp-head);
	font-size: 22px !important;
	font-weight: 500;
	line-height: 1.45 !important;
	color: var(--ycp-ink);
	margin-bottom: 24px !important;
}

/* small heading above the text ("Our Mission") = label */
body.ycp-ui.page:not(.home) .page__text > h3:first-child {
	margin: 0 0 10px !important;
	font-family: var(--ycp-body);
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
	color: var(--ycp-yellow-dark) !important;
}

/* ---------- small labels in forms: one style ---------- */
body.ycp-ui .hp-form__label,
body.ycp-ui .hp-field__label {
	font-family: var(--ycp-body);
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ycp-muted);
}

/* ---------- FOOTER: a solid, calm base ---------- */
body.ycp-ui .site-footer {
	margin-top: 0;
	padding: 44px 0 28px;
	border-top: 0;
	background: var(--ycp-ink);
	color: #bdbdbd;
}

body.ycp-ui .site-footer .ycp-foot-brand {
	display: block;
	margin-bottom: 4px;
	font-family: var(--ycp-head);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-align: center;
	color: #fff;
}

body.ycp-ui .site-footer .ycp-foot-tag {
	display: block;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-family: var(--ycp-head);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .02em;
	text-align: center;
	color: #e2e2e2;
	white-space: pre;
}

body.ycp-ui .site-footer .footer-navbar {
	margin-top: 18px;
}

body.ycp-ui .site-footer .footer-navbar__menu > ul.menu {
	gap: 8px 28px !important;
}

body.ycp-ui .site-footer .footer-navbar__menu > ul.menu > li > a {
	font-size: 15px !important;
	color: #e9e9e9 !important;
	text-decoration: none;
}

body.ycp-ui .site-footer .footer-navbar__menu > ul.menu > li > a:hover {
	color: var(--ycp-yellow) !important;
}

/* the old icons were mixed up (Mission had the house): text only, cleaner */
body.ycp-ui .site-footer .footer-navbar__menu > ul.menu > li > a::before {
	display: none !important;
}

@media (max-width: 781px) {
	body.ycp-ui .site-footer {
		padding: 32px 0 calc(28px + 64px); /* room for the phone bottom bar */
	}

	body.ycp-ui .site-footer .ycp-foot-tag {
		white-space: normal;
	}
}

/* ---------- Contact form (WPForms): same look as the rest of the site ---------- */
body.ycp-ui .wpforms-container .wpforms-field-label {
	font-family: var(--ycp-body);
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ycp-muted) !important;
}

body.ycp-ui .wpforms-container input[type="text"],
body.ycp-ui .wpforms-container input[type="email"],
body.ycp-ui .wpforms-container textarea {
	border: 1px solid var(--ycp-line) !important;
	border-radius: var(--ycp-radius-sm) !important;
	box-shadow: none !important;
	font-size: 16px !important;
}

body.ycp-ui .wpforms-container input:focus,
body.ycp-ui .wpforms-container textarea:focus {
	border-color: var(--ycp-yellow) !important;
	box-shadow: 0 0 0 3px rgba(253, 187, 24, .25) !important;
	outline: none !important;
}

body.ycp-ui .wpforms-container button[type="submit"],
body.ycp-ui .wpforms-container .wpforms-submit {
	padding: 12px 28px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--ycp-yellow) !important;
	color: var(--ycp-ink) !important;
	font-family: var(--ycp-head) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

body.ycp-ui .wpforms-container button[type="submit"]:hover,
body.ycp-ui .wpforms-container .wpforms-submit:hover {
	background: var(--ycp-yellow-dark) !important;
}

/* =========================================================================
 * MOBILE MENU (☰): a clear button, a tidy panel
 * ========================================================================= */
body.ycp-ui .site-header .header-navbar__burger > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 46px !important;
	height: 46px !important;
	border-radius: 12px;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	color: var(--ycp-ink) !important;
}

body.ycp-ui .site-header .header-navbar__burger > a i {
	font-size: 22px !important;
	line-height: 1;
	color: var(--ycp-ink) !important;
}

body.ycp-ui .site-header .header-navbar__burger > a:hover,
body.ycp-ui .site-header .header-navbar__burger > a:focus-visible {
	background: var(--ycp-yellow);
}


/* HOME on phones: taller photo + smaller logo, so the logo never sits on "Find your part" */
@media (max-width: 781px) {
	body.ycp-ui.home .ycp-hero-figure > img {
		height: 236px !important;
		object-fit: cover;
	}

	body.ycp-ui.home .site-header .custom-logo {
		width: auto !important;
		max-height: 124px !important;
	}
}


/* the ☰ was under the header bar (clicks never reached it): bring it on top */
body.ycp-ui .site-header .header-navbar__burger,
body.ycp-ui .site-header .header-navbar__burger > a,
body.ycp-ui .site-header .header-navbar__burger > ul {
	pointer-events: auto !important; /* its parent bar lets clicks pass through */
}

/* (no z-index here: it would trap the open panel under the phone bottom bar) */

/* ☰ is only for phones and tablets: on a computer (> 781 px) the icon
   buttons and the account button are already there */
@media (min-width: 782px) {
	body.ycp-ui .site-header .header-navbar__burger > a {
		display: none !important;
	}
}

/* computer with a narrower window (782–1199 px): the theme would hide the
   icon buttons and show ☰ — keep the computer version instead */
@media (min-width: 782px) and (max-width: 74.99em) {
	body.ycp-ui .site-header .header-navbar__menu {
		display: flex !important;
	}

	/* account button on the right, like on wide screens */
	body.ycp-ui .site-header .header-navbar__menu .menu-item--user-account.menu-item--first,
	body.ycp-ui .site-header .header-navbar__menu .menu-item--user-login.menu-item--first {
		display: none !important;
	}

	body.ycp-ui .site-header .menu-item--user-account.menu-item--last,
	body.ycp-ui .site-header .menu-item--user-login.menu-item--last {
		display: flex !important;
	}
}

/* narrow computer windows: buttons closer together, logo a little smaller,
   so nothing overlaps the logo (with 4 buttons: up to 1399 px) */
@media (min-width: 782px) and (max-width: 1399px) {
	body.ycp-ui .site-header .header-navbar__menu > ul {
		padding-left: 0 !important;
	}

	body.ycp-ui .site-header .header-navbar__menu > ul > li[class*="ycp-menu-"] {
		padding-left: 4px !important;
		padding-right: 4px !important;
		margin: 0 !important;
	}

	body.ycp-ui .site-header .custom-logo {
		width: auto !important;
		max-width: 200px !important;
		height: auto !important;
	}
}

@media (min-width: 782px) and (max-width: 1000px) {
	body.ycp-ui .site-header .custom-logo {
		max-width: 168px !important;
	}

	body.ycp-ui .site-header .header-navbar__menu > ul > li[class*="ycp-menu-"] {
		padding-left: 2px !important;
		padding-right: 2px !important;
	}

	/* smaller buttons so the 4 of them fit beside the logo */
	body.ycp-ui .site-header .header-navbar__menu > ul > li[class*="ycp-menu-"] > a {
		min-width: 58px !important;
		padding: 6px 4px 4px !important;
	}

	body.ycp-ui .site-header .header-navbar__menu > ul > li[class*="ycp-menu-"] > a::before {
		width: 22px !important;
		height: 22px !important;
		margin-bottom: 2px !important;
		background-size: 22px 22px !important;
	}

	body.ycp-ui .site-header .header-navbar__menu > ul > li[class*="ycp-menu-"] .ycp-nav-label {
		padding: 0 4px !important;
		font-size: 11px !important;
	}

	/* home: yellow circles, a bit smaller, icon inside with some air */
	body.ycp-ui.home .site-header .header-navbar__menu > ul > li[class*="ycp-menu-"] > a::before {
		width: 32px !important;
		height: 32px !important;
		background-size: 17px 17px !important;
	}
}

/* =========================================================================
 * PHONE / TABLET MENU PANEL v2
 * White panel sliding in from the right, yellow edge, page dimmed behind,
 * logo + × on top, account button, big links with icons, workbench photo
 * fading in at the bottom.
 * ========================================================================= */
@media (max-width: 781px) {
	body.ycp-ui .site-header .header-navbar__burger > ul.menu {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		z-index: 100000 !important;
		width: min(86vw, 360px) !important;
		height: auto !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 108px 20px 240px !important;
		overflow-y: auto;
		box-sizing: border-box;
		border: 0 !important;
		border-left: 4px solid var(--ycp-yellow) !important;
		border-radius: 0 !important;
		background:
			linear-gradient(180deg, #fff 0, #fff calc(100% - 285px), rgba(255, 255, 255, .75) calc(100% - 225px), rgba(255, 255, 255, 0) calc(100% - 130px)),
			var(--ycp-menu-photo, none) center bottom / 100% auto no-repeat,
			#fff !important;
		box-shadow: 0 0 0 100vmax rgba(21, 21, 21, .45), -10px 0 30px rgba(0, 0, 0, .25) !important;
		text-align: left;
		animation: ycp-menu-in .28s cubic-bezier(.2, .8, .2, 1);
	}

	body.ycp-ui.admin-bar .site-header .header-navbar__burger > ul.menu {
		top: 46px !important;
	}

	@keyframes ycp-menu-in {
		from { transform: translateX(40px); opacity: 0; }
		to   { transform: none; opacity: 1; }
	}

	/* logo on top-left */
	body.ycp-ui .site-header .header-navbar__burger > ul.menu::after {
		content: "";
		position: absolute;
		top: 14px;
		left: 18px;
		width: 120px;
		height: 80px;
		background: var(--ycp-menu-logo, none) left center / contain no-repeat;
		pointer-events: none;
	}

	/* × on top-right */
	body.ycp-ui .site-header .header-navbar__burger > ul.menu::before {
		position: absolute !important;
		top: 33px !important;
		right: 18px !important;
		left: auto !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 42px !important;
		height: 42px !important;
		margin: 0 !important;
		border-radius: 50%;
		background: #f3f1ec;
		color: var(--ycp-ink) !important;
		font-size: 18px !important;
		line-height: 1 !important;
		opacity: 1 !important;
		cursor: pointer;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li:not(.menu-item--last) {
		display: block !important;
		position: relative;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	/* ---- account / sign-in: one wide yellow button ---- */
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.menu-item--user-account,
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.menu-item--user-login {
		margin-bottom: 14px !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.menu-item--user-account > a,
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.menu-item--user-login > a {
		display: flex !important;
		align-items: center;
		justify-content: flex-start !important;
		gap: 12px;
		width: 100% !important;
		min-height: 56px;
		padding: 10px 44px 10px 12px !important;
		box-sizing: border-box;
		border: 0 !important;
		border-radius: 14px !important;
		background: var(--ycp-yellow) !important;
		color: var(--ycp-ink) !important;
		font-family: var(--ycp-head);
		font-size: 16px !important;
		font-weight: 600 !important;
		text-decoration: none;
		box-shadow: none !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.menu-item--user-account > a i,
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.menu-item--user-login > a i {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 34px;
		width: 34px;
		height: 34px;
		margin: 0 !important;
		border-radius: 50%;
		background: rgba(255, 255, 255, .65);
		font-size: 14px !important;
		color: var(--ycp-ink) !important;
	}

	/* the little arrow of the account sub-menu, inside the yellow button */
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.menu-item--user-account::after {
		position: absolute;
		top: 20px;
		right: 16px;
		margin: 0 !important;
		color: var(--ycp-ink) !important;
		font-size: 14px;
		pointer-events: none;
	}

	/* account sub-menu (My Listings, Settings, Sign Out…) */
	body.ycp-ui .site-header .header-navbar__burger > ul.menu .sub-menu {
		position: static !important;
		margin: 8px 0 4px !important;
		padding: 6px !important;
		border: 0 !important;
		border-radius: 12px;
		background: #f7f5f0 !important;
		box-shadow: none !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu .sub-menu li {
		display: block !important;
		margin: 0 !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu .sub-menu a {
		display: block !important;
		padding: 11px 12px !important;
		border-radius: 8px;
		font-family: var(--ycp-body);
		font-size: 15px !important;
		color: var(--ycp-text) !important;
		text-decoration: none;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu .sub-menu a:hover {
		background: #fff;
	}

	/* ---- the pages: big rows with an icon ---- */
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li[class*="ycp-menu-"] > a {
		display: flex !important;
		align-items: center;
		gap: 14px;
		min-height: 54px;
		padding: 0 10px !important;
		border-bottom: 1px solid var(--ycp-line);
		border-radius: 0;
		background: none !important;
		box-shadow: none !important;
		font-family: var(--ycp-head);
		font-size: 17px !important;
		font-weight: 500;
		color: var(--ycp-ink) !important;
		text-decoration: none;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li[class*="ycp-menu-"] > a::before {
		content: "" !important;
		display: block !important;
		flex: 0 0 22px;
		width: 22px !important;
		height: 22px !important;
		margin: 0 !important;
		background: var(--ycp-ink) !important;
		-webkit-mask: var(--ycp-ico) center / contain no-repeat;
		mask: var(--ycp-ico) center / contain no-repeat;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li[class*="ycp-menu-"] > a:hover,
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.current-menu-item > a {
		background: #faf8f3 !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.current-menu-item > a {
		box-shadow: inset 3px 0 0 var(--ycp-yellow) !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li[class*="ycp-menu-"] > a:hover::before,
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.current-menu-item > a::before {
		background: var(--ycp-yellow-dark) !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.ycp-menu-home {
		--ycp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M10 21v-6h4v6'/%3E%3C/svg%3E");
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.ycp-menu-mission {
		--ycp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2.2 4.8-4.8 2.2 2.2-4.8z'/%3E%3C/svg%3E");
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.ycp-menu-contact {
		--ycp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E");
	}
}

/* computer width: the phone panel never shows (e.g. menu opened on a narrow
   window and then the window was made wider) */
@media (min-width: 782px) {
	body.ycp-ui .site-header .header-navbar__burger > ul.menu {
		display: none !important;
	}
}

/* =========================================================================
 * PLACEHOLDERS – make without logo (emblem) / model without photo (silhouette)
 * ========================================================================= */
body.ycp-ui .ycp-emblem {
	--s: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--s);
	height: var(--s);
	padding: calc(var(--s) * .12);
	box-sizing: border-box;
	border: max(2px, calc(var(--s) * .028)) solid #111;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 calc(var(--s) * .045) #fff, inset 0 0 0 calc(var(--s) * .065) var(--ycp-yellow);
}

body.ycp-ui .ycp-emblem__t {
	font-family: Georgia, "Times New Roman", serif;
	font-size: min(calc(var(--s) * .17), calc(var(--s) * 1.02 / var(--n, 6)));
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: .05em;
	text-align: center;
	text-transform: uppercase;
	color: #111;
	word-break: keep-all;
}

body.ycp-ui .ycp-car-ph {
	container-type: inline-size;
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 400 / 255;
	background: #fff;
}

body.ycp-ui .ycp-car-ph svg {
	display: block;
	width: 100%;
	height: 100%;
}

body.ycp-ui .ycp-car-ph__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6%;
	font-family: var(--ycp-body);
	font-size: clamp(6px, 3cqw, 12px); /* small cards: smaller label */
	font-weight: 600;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
	color: #6b665d;
}

/* listing page */
body.ycp-ui .ycp-listing-vehicle > .ycp-emblem:first-child {
	position: absolute;
	top: 2px;
	left: 0;
	z-index: 2;
}

body.ycp-ui .ycp-listing-vehicle:not(:has(.ycp-listing-vehicle__car)) > .ycp-emblem:first-child {
	position: static;
	--s: 48px;
}

body.ycp-ui .ycp-listing-vehicle div.ycp-listing-vehicle__car {
	mix-blend-mode: normal;
}

/* home: brand buttons and model cards */
body.ycp-ui .ycp-brand-logo--emblem {
	display: flex;
	align-items: center;
	justify-content: center;
}

body.ycp-ui .ycp-brand-logo--emblem .ycp-emblem {
	--s: 60px;
}


/* very small tiles (home model buttons): silhouette only, no tiny text */
@container (max-width: 170px) {
	body.ycp-ui .ycp-car-ph__label {
		display: none;
	}
}

/* =========================================================================
 * HELP page + "?" help pills
 * ========================================================================= */
body.ycp-ui .ycp-help {
	max-width: 760px;
	margin: 0 auto;
}

body.ycp-ui .ycp-help__lead {
	margin: 0 0 18px !important;
	font-size: 17px !important;
	color: var(--ycp-muted) !important;
	text-align: center;
}

body.ycp-ui .ycp-help__search input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	font-size: 16px;
	background: #fff;
}

body.ycp-ui .ycp-help__search input:focus {
	border-color: var(--ycp-yellow);
	box-shadow: 0 0 0 3px rgba(253, 187, 24, .25);
	outline: none;
}

body.ycp-ui .ycp-help__topics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 8px;
}

body.ycp-ui .ycp-help__topics a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 8px;
	border: 1px solid var(--ycp-line);
	border-radius: 12px;
	background: #fff;
	font-family: var(--ycp-head);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	color: var(--ycp-ink);
}

body.ycp-ui .ycp-help__topics a:hover {
	border-color: var(--ycp-yellow);
	background: var(--ycp-yellow-soft);
}

body.ycp-ui .ycp-help__section {
	margin-top: 36px;
	scroll-margin-top: 20px;
}

body.ycp-ui .ycp-help__section[hidden],
body.ycp-ui .ycp-help__guide[hidden],
body.ycp-ui .ycp-help__none[hidden] {
	display: none !important;
}

body.ycp-ui .ycp-help__section h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px !important;
	font-size: 22px !important;
}

body.ycp-ui .ycp-help__guide {
	margin: 0 0 8px;
	border: 1px solid var(--ycp-line);
	border-radius: 12px;
	background: #fff;
	scroll-margin-top: 20px;
}

body.ycp-ui .ycp-help__guide summary {
	position: relative;
	padding: 15px 48px 15px 18px;
	font-family: var(--ycp-head);
	font-size: 16px;
	font-weight: 500;
	color: var(--ycp-ink);
	cursor: pointer;
	list-style: none;
}

body.ycp-ui .ycp-help__guide summary::-webkit-details-marker {
	display: none;
}

body.ycp-ui .ycp-help__guide summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background: #f3f1ec;
	font-size: 18px;
	line-height: 26px;
	text-align: center;
}

body.ycp-ui .ycp-help__guide[open] {
	border-color: var(--ycp-yellow);
	box-shadow: var(--ycp-shadow);
}

body.ycp-ui .ycp-help__guide[open] summary::after {
	content: "−";
	background: var(--ycp-yellow);
}

body.ycp-ui .ycp-help__body {
	padding: 0 18px 16px;
}

body.ycp-ui .ycp-help__body ol {
	counter-reset: ycp-step;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

body.ycp-ui .ycp-help__body ol li {
	position: relative;
	margin: 0 0 12px !important;
	padding-left: 40px;
	font-size: 16px !important;
	line-height: 1.6 !important;
	counter-increment: ycp-step;
}

body.ycp-ui .ycp-help__body ol li::before {
	content: counter(ycp-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ycp-ink);
	color: #fff;
	font-family: var(--ycp-head);
	font-size: 14px;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
}

body.ycp-ui .ycp-help__tip {
	margin: 4px 0 0 !important;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--ycp-yellow-soft);
	font-size: 15px !important;
}

body.ycp-ui .ycp-help__btn {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--ycp-yellow);
	color: var(--ycp-ink) !important;
	font-family: var(--ycp-head);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
}

body.ycp-ui .ycp-help__none {
	margin: 18px 0 0 !important;
	text-align: center;
	color: var(--ycp-muted);
}

body.ycp-ui .ycp-help__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 40px 0 0;
	padding: 18px 20px;
	border-radius: 14px;
	background: #f6f4ef;
}

body.ycp-ui .ycp-help__contact .ycp-help__btn {
	margin: 0 0 0 auto;
}

@media (max-width: 781px) {
	body.ycp-ui .ycp-help__topics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ycp-ui .ycp-help__contact .ycp-help__btn {
		margin: 6px 0 0;
	}
}

/* the "?" pill next to page titles */
body.ycp-ui .ycp-help-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: -14px 0 18px;
	padding: 5px 12px 5px 6px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	color: var(--ycp-text) !important;
	text-decoration: none !important;
}

body.ycp-ui .ycp-help-pill span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ycp-yellow);
	color: var(--ycp-ink);
	font-weight: 700;
	font-size: 12px;
}

body.ycp-ui .ycp-help-pill:hover {
	border-color: var(--ycp-yellow);
}

/* centred titles: pill centred under them */
body.ycp-ui .ycp-search-title + .ycp-help-pill,
body.ycp-ui .header-hero__content .page__title + .ycp-help-pill {
	display: flex;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

/* "Help" button in the header menu (same look as Homepage / Mission / Contact) */
body.ycp-ui .site-header .header-navbar__menu li.ycp-menu-help > a::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 0 7px;
	border-radius: 50%;
	background: #f4c400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319293e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M9.2 9.3a2.9 2.9 0 0 1 5.6 1c0 1.9-2.8 2.4-2.8 4'/%3E%3Ccircle cx='12' cy='17.4' r='.9' fill='%2319293e'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

body.ycp-ui.ycp-banner .site-header .header-navbar__menu li.ycp-menu-help > a::before {
	border-radius: 0;
	background-color: transparent;
	background-size: contain;
}

/* phone / tablet panel: same line icon as the other pages */
body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.ycp-menu-help {
	--ycp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.2 9.3a2.9 2.9 0 0 1 5.6 1c0 1.9-2.8 2.4-2.8 4'/%3E%3Ccircle cx='12' cy='17.4' r='.6' fill='black'/%3E%3C/svg%3E");
}

@media (min-width: 782px) and (max-width: 880px) {
	body.ycp-ui .site-header .custom-logo {
		max-width: 150px !important;
	}
}

body.ycp-ui .site-header .header-navbar__menu li.ycp-menu-help > a {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
}

/* footer credit: ARIA mark + "Website by ARIA" (azzurro, readable) */
@font-face {
	font-family: "YCP Cinzel";
	src: url(fonts/Cinzel.ttf) format("truetype");
	font-weight: 400 900;
	font-display: swap;
}

body.ycp-ui .ycp-credit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 20px auto 6px;
}

body.ycp-ui .ycp-credit[hidden] {
	display: none;
}

body.ycp-ui .ycp-credit img {
	display: block;
	width: auto;
	height: 64px;
}

body.ycp-ui .ycp-credit__txt {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

body.ycp-ui .ycp-credit__txt small {
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #9a9a9a;
}

body.ycp-ui .ycp-credit__txt strong {
	font-family: "YCP Cinzel", Georgia, serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: .22em;
	color: #5cc8ef;
}

/* the lowercase i of ARiA, as in the logo */
body.ycp-ui .ycp-credit__i {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 1.02em;
	letter-spacing: .22em;
	text-transform: none;
}

/* My Listings: part waiting for a proposed make / model */
body.ycp-ui .ycp-waiting {
	display: inline-block;
	margin: 6px 0 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff6dc;
	border: 1px solid #f1d27a;
	font-size: 12px;
	font-weight: 600;
	color: #7a5600;
}

body.ycp-ui .ycp-foot-brand[hidden],
body.ycp-ui .ycp-foot-tag[hidden] {
	display: none !important;
}

/* =========================================================================
 * EN / IT language switcher
 * ========================================================================= */
body.ycp-ui .ycp-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .88);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .14);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

body.ycp-ui .ycp-lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	font-family: var(--ycp-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
}

body.ycp-ui a.ycp-lang__item:hover {
	background: #f3f1ec;
}

body.ycp-ui .ycp-lang__item.is-current {
	background: var(--ycp-ink);
	color: #fff !important;
}

/* header (computer): small pill next to the account button */
body.ycp-ui .site-header .header-navbar__menu li.ycp-menu-lang {
	display: flex !important;
	align-items: center;
	margin-left: 10px !important;
	padding: 0 !important;
}

body.ycp-ui .site-header .header-navbar__menu li.ycp-menu-lang::before,
body.ycp-ui .site-header .header-navbar__menu li.ycp-menu-lang::after {
	display: none !important;
}

/* phone / tablet panel: a row at the bottom of the links */
@media (max-width: 781px) {
	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.ycp-menu-lang {
		display: block !important;
		margin-top: 16px !important;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.ycp-menu-lang .ycp-lang {
		box-shadow: none;
		background: #f3f1ec;
	}

	body.ycp-ui .site-header .header-navbar__burger > ul.menu > li.ycp-menu-lang .ycp-lang__item {
		min-width: 52px;
		height: 36px;
		font-size: 14px;
	}
}

/* EN/IT switcher: the "home" icon from Additional CSS targets links to the home page – not the EN link */
html body .header-navbar__menu li.ycp-menu-lang .ycp-lang a.ycp-lang__item::before,
html body .header-navbar__menu .ycp-lang a.ycp-lang__item::before,
body .ycp-lang a.ycp-lang__item::before,
body .ycp-lang a.ycp-lang__item::after {
	content: none !important;
	display: none !important;
}

/* Home: Latest / Most viewed switch */
body.ycp-ui .ycp-latest__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

body.ycp-ui .ycp-latest__modes {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
}

body.ycp-ui .ycp-latest__modes button {
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ycp-ink);
	font-family: var(--ycp-head);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}

body.ycp-ui .ycp-latest__modes button.is-on {
	background: var(--ycp-yellow);
}

@media (max-width: 640px) {
	body.ycp-ui .ycp-latest__head {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	body.ycp-ui .ycp-latest__tools {
		width: 100%;
		justify-content: space-between;
	}
}

/* My Listings: Pause / Resume / Delete + Deleted parts */
body.ycp-ui .ycp-state-btns {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: 6px;
	vertical-align: middle;
}

body.ycp-ui .ycp-state-btn {
	padding: 6px 12px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ycp-ink);
	font-family: var(--ycp-head);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	white-space: nowrap;
}

body.ycp-ui .ycp-state-btn:hover { border-color: var(--ycp-ink); }
body.ycp-ui .ycp-state-btn--resume { border-color: var(--ycp-yellow); background: #fff8dc; }
body.ycp-ui .ycp-state-btn--delete:hover,
body.ycp-ui .ycp-state-btn--remove { color: #b42318; border-color: #e7b4ae; }
body.ycp-ui .ycp-state-btn--remove:hover { background: #b42318; color: #fff; border-color: #b42318; }
body.ycp-ui .ycp-state-btn.is-busy { opacity: .5; cursor: wait; }

body.ycp-ui .ycp-row-paused { opacity: .7; }

body.ycp-ui .ycp-state-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #6b6b6b;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}

body.ycp-ui .ycp-deleted {
	margin: 32px 0 8px;
	border: 1px solid var(--ycp-line);
	border-radius: 12px;
	background: #fafafa;
	overflow: hidden;
}

body.ycp-ui .ycp-deleted__head {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border: 0;
	background: transparent;
	color: var(--ycp-ink);
	font-family: var(--ycp-head);
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

body.ycp-ui .ycp-deleted__head b {
	display: inline-block;
	min-width: 22px;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #e4e4e4;
	font-size: 12px;
	text-align: center;
}

body.ycp-ui .ycp-deleted__head small { color: var(--ycp-muted); font-weight: 400; font-size: 13px; }

body.ycp-ui .ycp-deleted__row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	border-top: 1px solid var(--ycp-line);
	background: #fff;
}

body.ycp-ui .ycp-deleted__row img,
body.ycp-ui .ycp-deleted__noimg {
	flex: 0 0 64px;
	width: 64px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	background: #eee;
	filter: grayscale(.6);
}

body.ycp-ui .ycp-deleted__txt { flex: 1 1 auto; min-width: 0; }
body.ycp-ui .ycp-deleted__txt strong { display: block; font-size: 14px; }
body.ycp-ui .ycp-deleted__txt small { color: var(--ycp-muted); font-size: 12px; }
body.ycp-ui .ycp-deleted__acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 640px) {
	body.ycp-ui .ycp-deleted__row { flex-wrap: wrap; }
	body.ycp-ui .ycp-deleted__acts { width: 100%; justify-content: flex-start; }
	body.ycp-ui .ycp-deleted__head small { display: none; }
}

/* Part page: Call / WhatsApp buttons */
body.ycp-ui .ycp-contact-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 6px;
}

body.ycp-ui .ycp-contact-btn {
	display: inline-flex;
	flex: 1 1 140px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 14px;
	border-radius: 999px;
	font-family: var(--ycp-head);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: filter .15s ease;
}

body.ycp-ui .ycp-contact-btn--call {
	border: 1px solid var(--ycp-ink);
	background: #fff;
	color: var(--ycp-ink) !important;
}

body.ycp-ui .ycp-contact-btn--wa {
	border: 1px solid #1fa855;
	background: #25d366;
	color: #fff !important;
}

body.ycp-ui .ycp-contact-btn:hover { filter: brightness(.95); }

/* List a Part: single parts only, real price */
body.ycp-ui .ycp-rules {
	margin: 0 0 22px;
	padding: 14px 18px;
	border: 1px solid #f0d27a;
	border-left: 5px solid var(--ycp-yellow);
	border-radius: 10px;
	background: #fffaeb;
	font-size: 14px;
	line-height: 1.5;
}

body.ycp-ui .ycp-rules strong { display: block; margin-bottom: 4px; font-family: var(--ycp-head); font-size: 15px; }
body.ycp-ui .ycp-rules ul { margin: 0; padding-left: 18px; }

body.ycp-ui .ycp-rules-confirm {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0 14px;
	padding: 12px 14px;
	border: 1px solid var(--ycp-line);
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}

body.ycp-ui .ycp-rules-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #d9a400; }
body.ycp-ui .ycp-rules-confirm.is-missing { border-color: #b42318; background: #fff4f2; }

/* Email is no longer shown on parts: hide the "show email publicly" tick in the part forms */
body.ycp-ui .hp-form--listing-submit .hp-form__field:has(input[name^="show_email_publicly"]),
body.ycp-ui .hp-form--listing-update .hp-form__field:has(input[name^="show_email_publicly"]) {
	display: none !important;
}

/* Settings: "Delete Account" clearly different from the other buttons */
body.ycp-ui a[href="#user_delete_modal"] {
	background: #fff !important;
	border: 1px solid #e7b4ae !important;
	color: #b42318 !important;
	box-shadow: none !important;
}

body.ycp-ui a[href="#user_delete_modal"]:hover {
	background: #b42318 !important;
	border-color: #b42318 !important;
	color: #fff !important;
}

/* =========================================================================
 * MESSAGES AS A CHAT
 * ========================================================================= */

body.ycp-ui .ycp-chat-hidden { display: none !important; }

body.ycp-ui .ycp-chat {
	display: grid;
	grid-template-columns: minmax(240px, 300px) 1fr;
	height: min(78vh, 780px);
	min-height: 480px;
	margin: 8px 0 24px;
	border: 1px solid var(--ycp-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}

body.ycp-ui .ycp-chat__side {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--ycp-line);
	background: #fbfbfa;
}

body.ycp-ui .ycp-chat__side-head { padding: 16px 14px 10px; border-bottom: 1px solid var(--ycp-line); }
body.ycp-ui .ycp-chat__side-head h1 { margin: 0 0 10px !important; font-family: var(--ycp-head); font-size: 22px !important; text-align: left !important; }

body.ycp-ui .ycp-chat__search {
	width: 100%;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
}

body.ycp-ui .ycp-chat__threads { flex: 1 1 auto; overflow-y: auto; }

body.ycp-ui .ycp-chat__thread {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid #f0efec;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
}

body.ycp-ui .ycp-chat__thread:hover { background: #f5f4f0; }
body.ycp-ui .ycp-chat__thread.is-open { background: #fff6d6; box-shadow: inset 3px 0 0 var(--ycp-yellow); }

body.ycp-ui .ycp-chat__tav { position: relative; flex: 0 0 46px; }

body.ycp-ui .ycp-chat__av {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	background: #2b2b2b;
	color: #fff;
	font-family: var(--ycp-head);
	font-size: 18px;
	font-weight: 600;
}

body.ycp-ui .ycp-chat__av img { width: 100%; height: 100%; object-fit: cover; }
body.ycp-ui .ycp-chat__av.is-initial { background: var(--ycp-yellow); color: #1a1a1a; }

body.ycp-ui .ycp-chat__tpart {
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 24px;
	height: 24px;
	border: 2px solid #fff;
	border-radius: 6px;
	overflow: hidden;
	background: #eee;
}

body.ycp-ui .ycp-chat__tpart img { width: 100%; height: 100%; object-fit: cover; }

body.ycp-ui .ycp-chat__ttext { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
body.ycp-ui .ycp-chat__trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.ycp-ui .ycp-chat__trow strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ycp-ui .ycp-chat__trow small { flex: 0 0 auto; color: var(--ycp-muted); font-size: 11px; }
body.ycp-ui .ycp-chat__tsub { color: #8a6d00; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ycp-ui .ycp-chat__tlast { color: var(--ycp-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ycp-ui .ycp-chat__thread.is-unread .ycp-chat__tlast { color: var(--ycp-ink); font-weight: 600; }

body.ycp-ui .ycp-chat__tcount {
	flex: 0 0 auto;
	min-width: 20px;
	padding: 2px 6px;
	border-radius: 999px;
	background: #d92d20;
	color: #fff;
	font-size: 11px;
	text-align: center;
}

body.ycp-ui .ycp-chat__none,
body.ycp-ui .ycp-chat__loading { padding: 24px 16px; color: var(--ycp-muted); font-size: 14px; text-align: center; }

body.ycp-ui .ycp-chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f7f5f0; }

body.ycp-ui .ycp-chat__empty {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 30px;
	color: var(--ycp-muted);
	text-align: center;
}

body.ycp-ui .ycp-chat__empty span { font-size: 40px; }
body.ycp-ui .ycp-chat__empty strong { color: var(--ycp-ink); font-family: var(--ycp-head); font-size: 18px; }
body.ycp-ui .ycp-chat__empty small { max-width: 340px; font-size: 13px; }

body.ycp-ui .ycp-chat__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--ycp-line);
	background: #fff;
}

body.ycp-ui .ycp-chat__av--head { width: 40px; height: 40px; flex: 0 0 40px; font-size: 16px; }
body.ycp-ui .ycp-chat__who { flex: 0 1 auto; min-width: 0; }
body.ycp-ui .ycp-chat__who strong { font-family: var(--ycp-head); font-size: 16px; }
body.ycp-ui .ycp-chat__head-part { margin-left: auto; min-width: 0; }
body.ycp-ui .ycp-chat__head-part .ycp-chat__part { max-width: 300px; }

body.ycp-ui .ycp-chat__back {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ycp-ink);
	box-shadow: none;
	cursor: pointer;
}

body.ycp-ui .ycp-chat__part {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--ycp-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ycp-ink) !important;
	text-decoration: none !important;
}

body.ycp-ui .ycp-chat__part img,
body.ycp-ui .ycp-chat__part-noimg { flex: 0 0 44px; width: 44px; height: 36px; border-radius: 6px; object-fit: cover; background: #eee; }
body.ycp-ui .ycp-chat__part > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
body.ycp-ui .ycp-chat__part small { color: var(--ycp-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
body.ycp-ui .ycp-chat__part strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ycp-ui .ycp-chat__part b { color: #8a6d00; font-size: 12px; }
body.ycp-ui .ycp-chat__part em { color: #b42318; font-size: 11px; font-style: normal; }

body.ycp-ui .ycp-chat__msgs { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px 8px; }

body.ycp-ui .ycp-chat__day { margin: 10px 0; text-align: center; }
body.ycp-ui .ycp-chat__day span { padding: 3px 10px; border-radius: 999px; background: #ebe8e0; color: #6b6b6b; font-size: 11px; }

body.ycp-ui .ycp-chat__about { display: flex; justify-content: center; margin: 10px 0; }
body.ycp-ui .ycp-chat__about .ycp-chat__part { max-width: 340px; }

body.ycp-ui .ycp-chat__msg { display: flex; margin: 4px 0; }
body.ycp-ui .ycp-chat__msg.is-mine { justify-content: flex-end; }

body.ycp-ui .ycp-chat__bubble {
	position: relative;
	max-width: min(78%, 520px);
	padding: 8px 12px 6px;
	border-radius: 14px 14px 14px 4px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
	font-size: 15px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

body.ycp-ui .ycp-chat__msg.is-mine .ycp-chat__bubble { border-radius: 14px 14px 4px 14px; background: #ffe58a; }
body.ycp-ui .ycp-chat__bubble p { margin: 0 0 4px; }
body.ycp-ui .ycp-chat__meta { display: block; color: #7a7a7a; font-size: 11px; text-align: right; }
body.ycp-ui .ycp-chat__tick { margin-left: 4px; font-style: normal; letter-spacing: -2px; }
body.ycp-ui .ycp-chat__tick.is-read { color: #1d7fd6; }
body.ycp-ui .ycp-chat__msg.is-sending { opacity: .6; }
body.ycp-ui .ycp-chat__msg.is-failed .ycp-chat__bubble { background: #fde3e0; }
body.ycp-ui .ycp-chat__msg.is-failed .ycp-chat__meta { color: #b42318; }
body.ycp-ui .ycp-chat__start { margin: 40px 0; color: var(--ycp-muted); text-align: center; }

body.ycp-ui .ycp-chat__form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 10px 12px 4px;
	border-top: 1px solid var(--ycp-line);
	background: #fff;
}

body.ycp-ui .ycp-chat__form textarea {
	flex: 1 1 auto;
	min-height: 44px;
	max-height: 160px;
	margin: 0;
	padding: 11px 16px;
	border: 1px solid var(--ycp-line);
	border-radius: 22px;
	background: #fafafa;
	font-size: 15px;
	line-height: 1.4;
	resize: none;
}

body.ycp-ui .ycp-chat__send {
	display: inline-flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ycp-yellow);
	color: #1a1a1a;
	box-shadow: none;
	cursor: pointer;
}

body.ycp-ui .ycp-chat__form.is-busy .ycp-chat__send { opacity: .5; }
body.ycp-ui .ycp-chat__hint { margin: 0; padding: 0 16px 8px; background: #fff; color: #9a9a9a; font-size: 11px; }

@media (hover: none) {
	body.ycp-ui .ycp-chat__hint { display: none; }
}

/* phone and small tablet: one pane at a time */
@media (max-width: 899px) {
	body.ycp-ui .ycp-chat {
		grid-template-columns: 1fr;
		height: calc(100dvh - 190px);
		min-height: 420px;
		border-radius: 12px;
	}

	body.ycp-ui .ycp-chat__main { display: none; }
	body.ycp-ui .ycp-chat.is-open .ycp-chat__side { display: none; }
	body.ycp-ui .ycp-chat.is-open .ycp-chat__main { display: flex; }
	body.ycp-ui .ycp-chat__back { display: inline-flex; }
	body.ycp-ui .ycp-chat__head-part .ycp-chat__part { max-width: 150px; padding-right: 8px; }
	body.ycp-ui .ycp-chat__head-part .ycp-chat__part small,
	body.ycp-ui .ycp-chat__head-part .ycp-chat__part b { display: none; }
	body.ycp-ui .ycp-chat__msgs { padding: 12px 10px 6px; }
	body.ycp-ui .ycp-chat__bubble { max-width: 86%; }
}

@media (max-width: 781px) {
	body.ycp-ui.ycp-chat-page .ycp-chat { height: calc(100dvh - 210px); }
	body.ycp-ui .ycp-chat__head-part .ycp-chat__part img { flex-basis: 34px; width: 34px; height: 28px; }
}
body.ycp-ui .ycp-chat__form textarea { overflow-y: hidden; }

/* My Listings: the car each part is for */
body.ycp-ui .ycp-myl-car {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-family: var(--ycp-body, inherit);
	font-weight: 400;
	line-height: 1.25;
}

body.ycp-ui .ycp-myl-car__pic {
	display: inline-flex;
	flex: 0 0 64px;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 40px;
	border: 1px solid var(--ycp-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

body.ycp-ui .ycp-myl-car__pic img { width: 100%; height: 100%; object-fit: contain; }
body.ycp-ui .ycp-myl-car__pic img.is-logo { width: 30px; height: 30px; }
body.ycp-ui .ycp-myl-car__none { width: 26px; height: 14px; border-radius: 6px 10px 3px 3px; background: #d9d6cf; }
body.ycp-ui .ycp-myl-car__txt { display: flex; flex-direction: column; min-width: 0; }
body.ycp-ui .ycp-myl-car__txt strong { font-size: 13px; font-weight: 600; color: var(--ycp-ink); }
body.ycp-ui .ycp-myl-car__txt small { font-size: 12px; color: var(--ycp-muted); }

/* My Listings: Pause / Delete on their own line under the other buttons of the row,
   so they never run under "+ Add Another Part" */
body.ycp-ui .hp-listing--edit-block .hp-listing__actions {
	flex-wrap: wrap;
	row-gap: 6px;
}

body.ycp-ui .hp-listing__actions .ycp-state-btns {
	display: flex;
	flex: 1 0 100%;
	justify-content: center;
	gap: 6px;
	margin: 2px 0 0;
	padding: 6px 0 0;
	border-left: 0;
	border-top: 1px dashed var(--ycp-line);
}

body.ycp-ui .hp-listing__actions .ycp-state-btn {
	padding: 5px 10px;
	font-size: 11px;
}

/* Find a Part: softer change while new results load */
body.ycp-ui.ycp-search-loading .hp-page__content .hp-listings {
	filter: grayscale(.3);
}

/* ARiA credit: new infinity-brush mark (wider than the old one) */
body.ycp-ui .ycp-credit img {
	height: 52px;
	width: auto;
}

/* "Website by" in bold, centred above ARiA */
body.ycp-ui .ycp-credit__txt {
	align-items: center;
	text-align: center;
}

body.ycp-ui .ycp-credit__txt small {
	font-weight: 700;
	color: #c4c4c4;
	margin-right: -.18em; /* the letter spacing adds room after the last letter: keep it truly centred */
}

body.ycp-ui .ycp-credit__txt strong {
	margin-right: -.22em;
}

/* My Listings: the part title keeps its room in every language
   ("+ Aggiungi un altro ricambio" is long and squeezed the title into one letter per line) */
body.ycp-ui .hp-listing--edit-block .hp-listing__title {
	min-width: 200px;
	word-break: normal;
	overflow-wrap: anywhere;
}

body.ycp-ui .hp-listing--edit-block .hp-listing__title a {
	word-break: normal;
	white-space: normal;
}

body.ycp-ui .ycp-my-listing-add-another-v3 {
	max-width: 132px;
	white-space: normal !important;
	line-height: 1.25;
	font-size: 12px;
	text-align: center;
}

body.ycp-ui .ycp-myl-car__txt strong,
body.ycp-ui .ycp-myl-car__txt small {
	white-space: nowrap;
}

body.ycp-ui .hp-listing--edit-block .hp-listing__date,
body.ycp-ui .hp-listing--edit-block time {
	white-space: nowrap;
}

@media (max-width: 781px) {
	body.ycp-ui .hp-listing--edit-block .hp-listing__title { min-width: 0; }
	body.ycp-ui .ycp-my-listing-add-another-v3 { max-width: none; }
}

/* =========================================================================
 * MAKES & MODELS catalogue (sellers)
 * ========================================================================= */

body.ycp-ui .ycp-cat { max-width: 1040px; margin: 0 auto 40px; }
body.ycp-ui .ycp-cat__intro { margin: 0 0 14px; color: var(--ycp-muted); text-align: center; }

body.ycp-ui .ycp-cat__search { display: flex; justify-content: center; margin: 0 0 22px; }
body.ycp-ui .ycp-cat__search input {
	width: min(100%, 520px);
	height: 46px;
	padding: 0 20px;
	border: 1px solid var(--ycp-line);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
}

body.ycp-ui .ycp-cat__makes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 10px;
}

body.ycp-ui .ycp-cat__make {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 8px 10px;
	border: 1px solid var(--ycp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ycp-ink);
	cursor: pointer;
	box-shadow: none;
	transition: border-color .15s ease, transform .15s ease;
}

body.ycp-ui .ycp-cat__make:hover { border-color: var(--ycp-yellow); transform: translateY(-1px); }
body.ycp-ui .ycp-cat__make.is-open { border-color: var(--ycp-yellow); background: #fff8dc; }
body.ycp-ui .ycp-cat__make[hidden] { display: none; }

body.ycp-ui .ycp-cat__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
}

body.ycp-ui .ycp-cat__logo img { width: 100%; height: 100%; object-fit: contain; }

body.ycp-ui .ycp-cat__emblem {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 4px;
	border: 2px solid #1c1b18;
	border-radius: 50%;
	font-family: "YCP Cinzel", Georgia, serif;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
	word-break: keep-all;
}

body.ycp-ui .ycp-cat__make strong { font-size: 13px; line-height: 1.2; text-align: center; }
body.ycp-ui .ycp-cat__make small { font-size: 11px; color: var(--ycp-muted); }

body.ycp-ui .ycp-cat__none { margin: 18px 0; color: var(--ycp-muted); text-align: center; }

body.ycp-ui .ycp-cat__panel {
	margin: 18px 0 0;
	padding: 16px 18px 18px;
	border: 1px solid var(--ycp-line);
	border-radius: 14px;
	background: #fbfaf7;
	scroll-margin-top: 90px;
}

body.ycp-ui .ycp-cat__panel-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
body.ycp-ui .ycp-cat__panel-head h2 { margin: 0 !important; font-size: 20px !important; }

body.ycp-ui .ycp-cat__close {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--ycp-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ycp-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

body.ycp-ui .ycp-cat__models {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

body.ycp-ui .ycp-cat__model {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 8px 8px 10px;
	border: 1px solid var(--ycp-line);
	border-radius: 10px;
	background: #fff;
}

body.ycp-ui .ycp-cat__model[hidden] { display: none; }

body.ycp-ui .ycp-cat__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 400 / 255;
	max-width: 100%;
	margin: 0 0 4px;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

body.ycp-ui .ycp-cat__photo img { width: 100%; height: 100%; object-fit: contain; }
body.ycp-ui .ycp-cat__nophoto { padding: 8px; border-radius: 6px; background: #f1efe9; color: #8b877e; font-size: 12px; }
body.ycp-ui .ycp-cat__model strong { font-size: 14px; line-height: 1.25; }
body.ycp-ui .ycp-cat__model small { font-size: 12px; color: var(--ycp-muted); }
body.ycp-ui .ycp-cat__model small.has-parts { color: #2f7d4f; font-weight: 600; }
body.ycp-ui .ycp-cat__empty { margin: 0; color: var(--ycp-muted); }

body.ycp-ui .ycp-cat__propose {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 28px 0 0;
	padding: 16px 20px;
	border: 1px solid #f0d27a;
	border-radius: 14px;
	background: #fffaeb;
}

body.ycp-ui .ycp-cat__propose div { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 560px; }
body.ycp-ui .ycp-cat__propose strong { font-family: var(--ycp-head); font-size: 16px; }
body.ycp-ui .ycp-cat__propose span { color: var(--ycp-muted); font-size: 14px; }

body.ycp-ui .ycp-cat-locked { max-width: 520px; margin: 20px auto 40px; padding: 22px; border: 1px solid var(--ycp-line); border-radius: 14px; text-align: center; }

body.ycp-ui .ycp-rules__cat { display: inline-block; margin-top: 8px; font-weight: 600; color: #8a6d00 !important; }

@media (max-width: 600px) {
	body.ycp-ui .ycp-cat__makes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.ycp-ui .ycp-cat__models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.ycp-ui .ycp-cat__propose .ycp-btn,
body.ycp-ui .ycp-cat-locked .ycp-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--ycp-yellow);
	color: #1a1a1a !important;
	font-family: var(--ycp-head);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

/* Makes & Models: "+ List a Part" buttons */
body.ycp-ui .ycp-cat__actions { display: flex; justify-content: center; margin: -4px 0 18px; }

body.ycp-ui .ycp-cat .ycp-cat__list,
body.ycp-ui .ycp-cat__btns .ycp-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--ycp-yellow);
	color: #1a1a1a !important;
	font-family: var(--ycp-head);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

body.ycp-ui .ycp-cat__btns { display: flex; flex-wrap: wrap; gap: 8px; }
body.ycp-ui .ycp-cat__btns .ycp-btn--ghost { background: #fff; border: 1px solid #e6c65c; }

/* List a Part: "Makes & Models" button */
body.ycp-ui .ycp-cat-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	padding: 8px 15px;
	border: 1px solid #e6c65c;
	border-radius: 999px;
	background: #fff;
	color: #1a1a1a !important;
	font-family: var(--ycp-head);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
}

body.ycp-ui .ycp-cat-btn:hover { background: var(--ycp-yellow); border-color: var(--ycp-yellow); }
body.ycp-ui .ycp-cat-btn--vehicle { grid-column: 1 / -1; justify-self: start; margin: 4px 0 8px; }

/* List a Part on phones: an old snippet (ycp-final-master-style) fixes the
   column at 1320px, so on a phone everything was cut on the right. */
@media (max-width: 1360px) {
	html body:has(form.hp-form--listing-submit) div.hp-page__content {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
	}
}

/* Home on phones: bigger make logos, using the side margins (arrows at the edges) */
@media (max-width: 600px) {
	body.ycp-ui.home .page__text > .ycp-brand-carousel-wrap {
		width: auto !important;
		max-width: none !important;
		margin: 28px -12px 0 !important;
		padding: 0 !important;
	}
	body.ycp-ui .ycp-brand-carousel-wrap .ycp-brand-grid {
		margin: 0 40px !important;
		width: auto !important;
		max-width: none !important;
	}
	body.ycp-ui .ycp-brand-carousel-wrap > .ycp-brand-carousel-arrow {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		top: 30px !important;
	}
	body.ycp-ui .ycp-brand-carousel-wrap > .ycp-brand-carousel-prev {
		left: 0 !important;
	}
	body.ycp-ui .ycp-brand-carousel-wrap > .ycp-brand-carousel-next {
		right: 0 !important;
		left: auto !important;
	}
	body.ycp-ui .ycp-brand-carousel-wrap .ycp-brand-card img {
		width: 68px !important;
		height: 68px !important;
		max-width: none !important;
	}
	body.ycp-ui .ycp-brand-carousel-wrap .ycp-brand-name {
		font-size: 15px !important;
	}
}

/* Makes & Models: a model is a link to List a Part with make and model filled in */
body.ycp-ui a.ycp-cat__model {
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.ycp-ui a.ycp-cat__model:hover,
body.ycp-ui a.ycp-cat__model:focus-visible {
	border-color: #f0bf2c;
	box-shadow: 0 4px 14px rgba(21, 21, 21, .08);
	transform: translateY(-1px);
}
body.ycp-ui .ycp-cat__go {
	margin-top: 6px;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f4c400;
	color: #1b1b1b;
	font-size: 12px;
	font-weight: 700;
}
body.ycp-ui .ycp-cat__hint {
	margin: 0 0 12px;
	color: var(--ycp-muted);
	font-size: 14px;
}

/* Footer on phones: about half as tall, smaller ARiA credit */
@media (max-width: 600px) {
	body.ycp-ui footer.site-footer { padding: 16px 0 80px !important; }
	body.ycp-ui footer.site-footer > .container { padding: 0 20px !important; }
	body.ycp-ui .ycp-foot-brand { font-size: 16px !important; margin: 0 !important; text-align: center; }
	body.ycp-ui footer.site-footer .footer-navbar { margin: 8px 0 0 !important; }
	body.ycp-ui footer.site-footer .footer-navbar__menu ul { justify-content: center !important; gap: 4px 14px !important; }
	body.ycp-ui footer.site-footer .footer-navbar__menu a { font-size: 13px !important; }
	body.ycp-ui .ycp-foot-tag { font-size: 12px !important; line-height: 1.35 !important; padding: 8px 0 0 !important; margin: 8px 0 0 !important; text-align: center; }
	body.ycp-ui .ycp-credit { margin: 10px 0 0 !important; transform: scale(.6); transform-origin: center top; height: 32px !important; }
}

/* Footer on phones, even smaller (brand name already in the header) */
@media (max-width: 600px) {
	body.ycp-ui footer.site-footer { padding: 10px 0 74px !important; }
	body.ycp-ui .ycp-foot-brand { display: none !important; }
	body.ycp-ui footer.site-footer .footer-navbar { margin: 0 !important; }
	body.ycp-ui footer.site-footer .footer-navbar__menu ul { gap: 2px 12px !important; }
	body.ycp-ui footer.site-footer .footer-navbar__menu a { font-size: 12px !important; line-height: 1.5 !important; }
	body.ycp-ui .ycp-foot-tag { font-size: 11px !important; padding: 5px 0 0 !important; margin: 5px 0 0 !important; }
	body.ycp-ui .ycp-credit { margin: 6px 0 0 !important; transform: scale(.45) !important; height: 24px !important; }
}

/* Footer on phones: a thin strip (menu on one line, tiny ARiA credit) */
@media (max-width: 600px) {
	body.ycp-ui footer.site-footer { padding: 6px 0 96px !important; }
	body.ycp-ui footer.site-footer > .container { padding: 0 10px !important; }
	html body.ycp-ui footer.site-footer .footer-navbar__menu > ul.menu { gap: 0 7px !important; }
	html body.ycp-ui footer.site-footer .footer-navbar__menu > ul.menu > li > a { font-size: 10.5px !important; letter-spacing: 0 !important; line-height: 1.6 !important; }
	body.ycp-ui .ycp-foot-tag { font-size: 9.5px !important; padding: 3px 0 0 !important; margin: 3px 0 0 !important; }
	body.ycp-ui .ycp-credit { margin: 14px 0 0 !important; transform: scale(.36) !important; height: 19px !important; }
}

/* "Install the app" card (phones, home page) */
.ycp-pwa {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(78px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 10px 34px 10px 10px;
	border-radius: 14px;
	background: #151515;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	font-size: 13px;
	line-height: 1.3;
}
.ycp-pwa__icon { width: 44px; height: 44px; border-radius: 10px; background: #fff; }
.ycp-pwa__text strong { display: block; font-size: 14px; }
.ycp-pwa__text span { color: #cfcfcf; font-size: 12px; }
.ycp-pwa__go {
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: #f4c400;
	color: #151515;
	font-weight: 700;
	font-size: 14px;
}
.ycp-pwa__x {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 26px;
	height: 26px;
	border: 0;
	background: transparent;
	color: #bbb;
	font-size: 20px;
	line-height: 1;
}
.ycp-pwa__ios { grid-column: 1 / -1; }
.ycp-pwa__ios p { margin: 2px 0 0; color: #eee; font-size: 13px; }
.ycp-pwa__share { display: inline-block; padding: 0 4px; border: 1px solid #888; border-radius: 4px; }

/* Duplicate a part: clear button, folded copy box, no copied photo previews */
.ycp-dup-open {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 14px;
	padding: 12px 16px;
	border: 1px dashed #d8c27a;
	border-radius: 12px;
	background: #fffaf0;
	color: #1b1b1b;
	font-weight: 600;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.ycp-dup-open__arrow { margin-left: auto; transition: transform .15s ease; }
.ycp-dup-open[aria-expanded="true"] .ycp-dup-open__arrow { transform: rotate(180deg); }
#ycp-visual-matrix-v24.ycp-dup-folded { display: none !important; }
.ycp-dup-note {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-left: 3px solid #f4c400;
	border-radius: 0 8px 8px 0;
	background: #fdf6dc;
	font-size: 13.5px;
	line-height: 1.4;
}
form.hp-form--listing-submit .ycp-copied-image,
form.hp-form--listing-submit .ycp-source-image-preview { display: none !important; }
.ycp-my-listing-use-v2.ycp-dup-btn { white-space: nowrap; }

/* My Listings on phones: each part is a separate card with space between */
@media (max-width: 900px) {
	html body.ycp-ui tr.hp-listing.hp-listing--edit-block {
		margin: 0 0 22px !important;
		border: 1px solid #e3ddcf !important;
		border-radius: 14px !important;
		background: #fff !important;
		box-shadow: 0 6px 18px rgba(21, 21, 21, .08) !important;
		overflow: hidden;
		padding-bottom: 12px !important;
	}
	html body.ycp-ui tr.hp-listing.hp-listing--edit-block:last-child {
		margin-bottom: 6px !important;
	}
}

/* My Listings on phones: dark background behind the white part cards */
@media (max-width: 900px) {
	html body.hp-template--listings-edit-page table.hp-listings {
		display: block !important;
		background: #2f2c27 !important;
		padding: 14px 10px !important;
		border-radius: 16px !important;
		border: 0 !important;
	}
	html body.hp-template--listings-edit-page table.hp-listings > tbody { display: block !important; }
	html body.hp-template--listings-edit-page tr.hp-listing.hp-listing--edit-block {
		border-color: #2f2c27 !important;
		box-shadow: 0 6px 16px rgba(0, 0, 0, .35) !important;
	}
}

/* My Listings: one line explaining "Other version" */
.ycp-ver-hint {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-left: 3px solid #f4c400;
	border-radius: 0 10px 10px 0;
	background: #fdf6dc;
	font-size: 13.5px;
	line-height: 1.45;
	color: #2b2b2b;
}
.ycp-ver-hint__icon { font-weight: 700; }

/* My Listings on phones: the part photo with space around, rounded and framed */
@media (max-width: 900px) {
	html body.hp-template--listings-edit-page tr.hp-listing td.ycp-listing-image {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		padding: 14px 14px 6px !important;
		width: auto !important;
	}
	html body.hp-template--listings-edit-page tr.hp-listing td.ycp-listing-image img {
		display: block;
		width: 120px !important;
		height: 120px !important;
		object-fit: contain !important;
		background: #f6f4ef;
		border-radius: 12px !important;
		border: 1px solid #e7e2d6 !important;
		box-shadow: 0 3px 10px rgba(21, 21, 21, .14) !important;
	}
}

/* My Listings: photo gallery (phones only; the computer keeps the small photo) */
.ycp-myl-gal { display: none; }
@media (max-width: 900px) {
	html body.hp-template--listings-edit-page tr.hp-listing td.ycp-listing-image.has-gal {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		padding: 14px 14px 8px !important;
		width: auto !important;
	}
	html body.hp-template--listings-edit-page tr.hp-listing td.ycp-listing-image.has-gal > img,
	html body.hp-template--listings-edit-page tr.hp-listing td.ycp-listing-image.has-gal > a { display: none !important; }
	.ycp-myl-gal { display: block; }
	.ycp-myl-gal__main {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 220px;
		border-radius: 12px;
		border: 1px solid #e7e2d6;
		background: #f6f4ef;
		overflow: hidden;
	}
	html body.hp-template--listings-edit-page tr.hp-listing td.ycp-listing-image .ycp-myl-gal__main img {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		object-fit: contain !important;
		border: 0 !important;
		box-shadow: none !important;
		border-radius: 0 !important;
	}
	.ycp-myl-gal__strip {
		display: flex;
		gap: 8px;
		margin-top: 8px;
		overflow-x: auto;
		padding-bottom: 2px;
		-webkit-overflow-scrolling: touch;
	}
	.ycp-myl-gal__th {
		flex: 0 0 auto;
		width: 52px;
		height: 52px;
		padding: 0;
		border: 2px solid transparent;
		border-radius: 8px;
		background: #f6f4ef;
		overflow: hidden;
		cursor: pointer;
	}
	.ycp-myl-gal__th.is-on { border-color: #f4c400; }
	html body.hp-template--listings-edit-page tr.hp-listing td.ycp-listing-image .ycp-myl-gal__th img {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
		border: 0 !important;
		box-shadow: none !important;
		border-radius: 0 !important;
	}
}

/* "Listen" button (reads the explanation aloud) */
.ycp-listen {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	padding: 5px 12px 5px 9px;
	border: 1px solid #e0c766;
	border-radius: 999px;
	background: #fff;
	color: #1b1b1b;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	vertical-align: middle;
}
.ycp-listen:hover { background: #fff7d6; }
.ycp-listen.is-on { background: #f4c400; border-color: #f4c400; }
.ycp-listen.is-on svg { animation: ycp-listen-pulse 1s ease-in-out infinite; }
@keyframes ycp-listen-pulse { 50% { opacity: .45; } }
.ycp-rules > .ycp-listen { float: right; margin: 0 0 6px 10px; }
.ycp-ver-hint > .ycp-listen { margin: 8px 0 0; display: flex; width: max-content; }
.ycp-help__body > .ycp-listen { margin: 0 0 10px; }

/* "Translate" button under the listing description (YCP Core 1.16) */
body.ycp-ui .ycp-tr { margin: 14px 0 0; }
body.ycp-ui .ycp-tr__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px 7px 11px;
	border: 1px solid #e0c766;
	border-radius: 999px;
	background: #fff;
	color: #1b1b1b;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}
body.ycp-ui .ycp-tr__btn:hover { background: #fff7d6; }
body.ycp-ui .ycp-tr__btn[disabled] { opacity: .6; cursor: wait; }
body.ycp-ui .ycp-tr__out {
	margin-top: 12px;
	padding: 16px 18px;
	background: #fffaf0;
	border: 1px solid #ecd9a0;
	border-left: 4px solid #f4c400;
	border-radius: 10px;
	font-size: 15px;
	color: var(--ycp-text, #2b2b2b);
}
body.ycp-ui .ycp-tr__out[hidden] { display: none; }
body.ycp-ui .ycp-tr__label {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ycp-muted, #777);
}
body.ycp-ui .ycp-tr__title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
body.ycp-ui .ycp-tr__out p { margin: 0 0 8px; }
body.ycp-ui .ycp-tr__note { font-size: 12px; color: var(--ycp-muted, #777); margin: 10px 0 0 !important; }
body.ycp-ui .ycp-tr__msg a { font-weight: 700; }

/* Listing page, visitor: contact card with Sign In / Register buttons (1.16.1) */
body .ycp-gc {
	margin: 0 0 15px;
	padding: 16px;
	background: #fff8df;
	border: 1px solid #fbbd19;
	border-radius: 12px;
	text-align: center;
}
body .ycp-gc__title { font-weight: 800; font-size: 16px; margin-bottom: 4px; color: #1b1b1b; }
body .ycp-gc__txt { font-size: 13px; line-height: 1.45; margin: 0 0 12px; color: #444; }
body .ycp-gc__btns { display: flex; gap: 8px; }
body .ycp-gc__btn {
	flex: 1;
	display: block;
	padding: 11px 8px;
	border-radius: 999px;
	border: 2px solid #1b1b1b;
	font-weight: 800;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none !important;
}
body .ycp-gc__btn--in { background: #1b1b1b; color: #fff !important; }
body .ycp-gc__btn--in:hover { background: #000; }
body .ycp-gc__btn--reg { background: #fff; color: #1b1b1b !important; }
body .ycp-gc__btn--reg:hover { background: #fff3c4; }

/* Call button on a computer: shows the number after the click (1.18.2) */
body .ycp-contact-btn--call.is-shown span { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Seller box: "Message the seller" button instead of the tiny icon (1.18.3) */
body .hp-vendor__footer:has(.ycp-vmsg) { justify-content: center; }
body .hp-vendor__action--message.ycp-vmsg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 320px;
	margin: 4px auto 0;
	padding: 10px 16px;
	border: 2px solid #1b1b1b;
	border-radius: 999px;
	background: #fff;
	color: #1b1b1b !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none !important;
	opacity: 1 !important;
}
body .hp-vendor__action--message.ycp-vmsg:hover { background: #fff3c4; }
body .hp-vendor__action--message.ycp-vmsg .hp-icon,
body .hp-vendor__action--message.ycp-vmsg i {
	font-size: 16px;
	color: #1b1b1b !important;
	background: none !important;
	margin: 0 !important;
}

/* Red numbers: one number only (ours), appearing softly (1.18.5) */
body.ycp-ui .menu-item--user-account > a > small,
body.ycp-ui .hp-menu a[href*="/account/messages"] > small {
	display: none !important;
}
body.ycp-ui .ycp-badge,
body.ycp-ui .ycp-mbar__badge {
	animation: ycp-badge-in .25s ease-out both;
}
@keyframes ycp-badge-in {
	from { opacity: 0; transform: scale(.6); }
	to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	body.ycp-ui .ycp-badge,
	body.ycp-ui .ycp-mbar__badge { animation: none; }
}

/* Makes & Models: makes with parts online first (1.19.0) */
body.ycp-ui .ycp-cat__group {
	margin: 22px 0 10px;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ycp-muted, #777);
}
body.ycp-ui .ycp-cat__group--with { color: #2f7d4f; }
body.ycp-ui .ycp-cat__group[hidden] { display: none; }
body.ycp-ui .ycp-cat__makes--with .ycp-cat__make {
	border-color: #9fd3b2;
	box-shadow: 0 0 0 1px #9fd3b2 inset;
}
body.ycp-ui .ycp-cat__parts {
	display: inline-block;
	margin-top: 2px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e7f5ec;
	color: #2f7d4f;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

/* =========================================================================
 * PARTS AS A LIST (like eBay): photo left, details right (1.20.0)
 * Home "Latest Listings" + search page, categories, seller pages, favorites
 * ========================================================================= */

/* shared row */
body.ycp-ui .ycp-row {
	position: relative;
	display: grid !important;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 16px 56px 16px 16px;
	background: #fff;
	border: 1px solid #ebe7de;
	border-radius: 14px;
	box-shadow: none;
	text-align: left;
}
body.ycp-ui .ycp-row:hover { border-color: #d9cfae; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }

body.ycp-ui .ycp-row__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	height: 220px;
	overflow: hidden;
	border-radius: 10px;
	background: #f4f2ee;
}
body.ycp-ui .ycp-row__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
body.ycp-ui .ycp-row__noimg { font-size: 12px; color: var(--ycp-muted, #777); }

body.ycp-ui .ycp-row__body { min-width: 0; padding: 2px 0 0; }
body.ycp-ui .ycp-row__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 4px;
	color: #151515 !important;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
}
body.ycp-ui .ycp-row__title:hover { text-decoration: underline !important; }
body.ycp-ui .ycp-row__meta {
	margin: 0 0 10px;
	color: #6b6b6b;
	font-size: 13.5px;
	line-height: 1.4;
}
body.ycp-ui .ycp-row__meta i { margin: 0 7px; font-style: normal; color: #c9c3b6; }
body.ycp-ui .ycp-row__price {
	margin: 0 0 8px;
	color: #151515;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
}
body.ycp-ui .ycp-row__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #6b6b6b;
	font-size: 13px;
	line-height: 1.4;
}
body.ycp-ui .ycp-row__seller b { color: #333; font-weight: 600; }
body.ycp-ui .ycp-row__cat {
	align-self: flex-start;
	margin-top: 4px;
	padding: 2px 9px;
	border-radius: 999px;
	background: #fff5cf;
	color: #6b5300;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* home: a vertical list instead of the side-scrolling strip */
body.ycp-ui .ycp-latest--rows .ycp-latest__grid {
	display: flex !important;
	flex-direction: column;
	gap: 12px;
	overflow: visible !important;
	scroll-snap-type: none;
	padding: 4px 0 0;
}
body.ycp-ui .ycp-latest--rows .ycp-latest__item {
	flex: 0 0 auto !important;
	width: 100%;
}
body.ycp-ui .ycp-latest--rows .ycp-latest__arrow { display: none !important; }
body.ycp-ui .ycp-row > .ycp-fav--icon { top: 14px; right: 14px; }
body.ycp-ui .ycp-latest__more-wrap { margin: 16px 0 0; text-align: center; }
body.ycp-ui .ycp-latest__more {
	padding: 10px 22px;
	border: 2px solid #151515;
	border-radius: 999px;
	background: #fff;
	color: #151515;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
}
body.ycp-ui .ycp-latest__more:hover { background: #fff3c4; }
body.ycp-ui .ycp-latest__more[hidden] { display: none; }

/* HivePress cards turned into rows */
body.ycp-ui .hp-grid.ycp-rows,
body.ycp-ui .hp-grid.ycp-rows > .hp-row { display: flex !important; flex-direction: column; flex-wrap: nowrap !important; gap: 12px; margin: 0 !important; }
body.ycp-ui .hp-grid.ycp-rows .hp-grid__item {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.ycp-ui .ycp-row--hp {
	grid-template-columns: 220px minmax(0, 1fr);
	grid-template-areas: "img body" "img foot";
	grid-template-rows: auto 1fr;
	height: auto !important;
	overflow: visible;
}
body.ycp-ui .ycp-row--hp > .hp-listing__header { grid-area: img; margin: 0; }
body.ycp-ui .ycp-row--hp .hp-listing__image {
	width: 220px !important;
	height: 220px !important;
	aspect-ratio: auto !important;
	overflow: hidden;
	border-radius: 10px;
	background: #f4f2ee;
}
body.ycp-ui .ycp-row--hp .hp-listing__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}
body.ycp-ui .ycp-row--hp > .hp-listing__content { grid-area: body; padding: 2px 0 0 !important; }
body.ycp-ui .ycp-row--hp > .hp-listing__footer {
	grid-area: foot;
	align-self: end;
	margin: 8px 0 0;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
}

/* phone: smaller photo, same layout */
@media (max-width: 640px) {
	body.ycp-ui .ycp-row,
	body.ycp-ui .ycp-row--hp {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 12px;
		padding: 10px 44px 10px 10px;
		border-radius: 12px;
	}
	body.ycp-ui .ycp-row__img,
	body.ycp-ui .ycp-row--hp .hp-listing__image {
		width: 112px !important;
		height: 112px !important;
	}
	body.ycp-ui .ycp-row__title { font-size: 15px; }
	body.ycp-ui .ycp-row__meta { margin-bottom: 6px; font-size: 12.5px; }
	body.ycp-ui .ycp-row__price { font-size: 19px; margin-bottom: 4px; }
	body.ycp-ui .ycp-row__info { font-size: 12px; }
	body.ycp-ui .ycp-row > .ycp-fav--icon { top: 8px; right: 8px; width: 30px; height: 30px; }
}

/* "Back" button, always at hand (1.20.1) */
body.ycp-ui .ycp-back {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 9980;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px 10px 12px;
	border: 2px solid #151515;
	border-radius: 999px;
	background: #f4c400;
	color: #151515;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	transition: transform .15s ease, background .15s ease;
}
body.ycp-ui .ycp-back:hover { background: #e0b400; transform: translateX(-2px); }
body.ycp-ui .ycp-back:focus-visible { outline: 3px solid #151515; outline-offset: 2px; }
@media (max-width: 768px) {
	body.ycp-ui .ycp-back {
		left: 10px;
		bottom: calc(74px + env(safe-area-inset-bottom, 0px));
		padding: 8px 14px 8px 10px;
		font-size: 13px;
	}
}
@media print {
	body.ycp-ui .ycp-back { display: none; }
}

/* List rows: details spread on two columns, less empty space (1.20.5) */
body.ycp-ui .ycp-row { align-items: stretch; }
body.ycp-ui .ycp-row__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 230px;
	gap: 24px;
	align-self: stretch;
}
body.ycp-ui .ycp-row__main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
body.ycp-ui .ycp-row__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 12px;
	color: #444;
	font-size: 14px;
	line-height: 1.55;
}
body.ycp-ui .ycp-row__main .ycp-row__cat { margin-top: auto; }
body.ycp-ui .ycp-row__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-left: 22px;
	border-left: 1px solid #efeae0;
}
body.ycp-ui .ycp-row__side .ycp-row__price { font-size: 28px; margin-bottom: 10px; }
body.ycp-ui .ycp-row__side .ycp-row__info { margin-bottom: 14px; }
body.ycp-ui .ycp-row__go {
	margin-top: auto;
	padding: 9px 18px;
	border-radius: 999px;
	background: #f4c400;
	color: #151515 !important;
	font-size: 13.5px;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
}
body.ycp-ui .ycp-row__go:hover { background: #e0b400; }

@media (max-width: 900px) {
	body.ycp-ui .ycp-row__body { grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; }
	body.ycp-ui .ycp-row__side { padding-left: 16px; }
}
@media (max-width: 640px) {
	body.ycp-ui .ycp-row__body { display: block; }
	body.ycp-ui .ycp-row__side { padding: 0; border: 0; }
	body.ycp-ui .ycp-row__excerpt,
	body.ycp-ui .ycp-row__go { display: none; }
	body.ycp-ui .ycp-row__main .ycp-row__cat { margin-top: 4px; }
	body.ycp-ui .ycp-row__side .ycp-row__price { font-size: 19px; margin: 6px 0 4px; }
	body.ycp-ui .ycp-row__side .ycp-row__info { margin-bottom: 0; }
}

/* Italian labels written by the stylesheet (1.20.6) */
html[lang^="it"] body.ycp-ui .hp-listing--view-page .hp-listing__description::before { content: "Descrizione"; }
html[lang^="it"] body.ycp-ui .hp-listing--view-page > .hp-listings::before { content: "Altri ricambi che potrebbero interessarti"; }

/* rows: one photo, centred (the HivePress slider is replaced); heart and message icon side by side */
body.ycp-ui .ycp-row--hp > .hp-listing__header { width: 220px; }
body.ycp-ui .ycp-row--hp > .hp-listing__footer,
body.ycp-ui .ycp-row--hp .hp-listing__actions {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 10px;
}
@media (max-width: 640px) {
	body.ycp-ui .ycp-row--hp > .hp-listing__header { width: 112px; }
}

/* "Back to top" button (1.20.7) */
body.ycp-ui .ycp-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9980;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 16px 10px 12px;
	border: 2px solid #151515;
	border-radius: 999px;
	background: #151515;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease;
}
body.ycp-ui .ycp-top.is-on { opacity: 1; visibility: visible; transform: none; }
body.ycp-ui .ycp-top:hover { background: #333; }
body.ycp-ui .ycp-top:focus-visible { outline: 3px solid #f4c400; outline-offset: 2px; }
/* the new-message notice sits above it */
@media (min-width: 769px) {
	body.ycp-ui .ycp-toast { bottom: 76px; }
}
@media (max-width: 768px) {
	body.ycp-ui .ycp-toast { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
	body.ycp-ui .ycp-top {
		right: 10px;
		bottom: calc(74px + env(safe-area-inset-bottom, 0px));
		padding: 8px 12px 8px 10px;
		font-size: 13px;
	}
}
@media print {
	body.ycp-ui .ycp-top { display: none; }
}

/* Notices at the moment they are needed (1.20.9) */
body .ycp-note {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid #ecd9a0;
	border-left: 4px solid #f4c400;
	background: #fffaf0;
	color: #2b2b2b;
	font-size: 14px;
	line-height: 1.5;
}
body .ycp-note strong { font-size: 15px; }
body .ycp-note--wait { border-left-color: #2f7d4f; background: #eef8f1; border-color: #bfe3cb; }
body .ycp-note[hidden] { display: none; }
body .ycp-note-line { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #555; }

/* Buyer / seller switch on the home panel and in the account menu (1.21.0) */
body.ycp-ui .ycp-mode {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}
body.ycp-ui .ycp-mode__label { font-size: 13px; font-weight: 700; color: #6b6b6b; margin-right: 4px; }
body.ycp-ui .ycp-mode__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 2px solid #151515;
	border-radius: 999px;
	background: #fff;
	color: #151515;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}
body.ycp-ui .ycp-mode__btn svg { width: 16px; height: 16px; }
body.ycp-ui .ycp-mode__btn.is-on { background: #151515; color: #fff; }
body.ycp-ui .ycp-mode__btn:not(.is-on):hover { background: #fff3c4; }
body.ycp-ui .ycp-mode__btn:focus-visible { outline: 3px solid #f4c400; outline-offset: 2px; }
body.ycp-ui .menu-item--user-account .ycp-menu-mode > a { font-weight: 800; color: #b07d00 !important; }

/* Buyer / seller switch on every page, above the page title (1.21.5) */
.ycp-role{position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;gap:4px;width:max-content!important;max-width:100%;margin:0 0 16px!important;padding:5px!important;background:#fff;border-radius:999px;box-shadow:0 3px 12px rgba(0,0,0,.12);white-space:nowrap;box-sizing:border-box}
.ycp-role.is-center{margin:0 auto 16px!important}
.ycp-role.is-top{margin:24px auto 0!important}
.ycp-role .ycp-role__label{padding:0 8px 0 14px;color:#666!important;font-size:13px!important;letter-spacing:0!important;text-transform:none!important}
.ycp-role a.ycp-role__btn{display:inline-block!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:9px 22px!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;color:#444!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important}
.ycp-role a.ycp-role__btn.is-active{background:var(--ycp-yellow)!important;color:#111!important;cursor:default}
.ycp-role a.ycp-role__btn:not(.is-active):hover{background:#f1f1f1!important}
body.ycp-ui .ycp-mode{display:none!important}
@media (max-width:600px){
	.ycp-role .ycp-role__label{display:none}
	.ycp-role a.ycp-role__btn{padding:8px 18px!important;font-size:14px!important}
}

/* anti-bot trap field on the registration form (1.21.6) */
.hp-form__field:has(input[name="ycp_hp"]), input[name="ycp_hp"] { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; opacity:0!important; }

/* List a Part: tip under the title (1.23.2) */
body.ycp-ui .ycp-title-tip { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: #6b6b6b; }
body.ycp-ui .ycp-rules .ycp-missing-btn { margin-left: 8px; cursor: pointer; height: auto; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal; }
body.ycp-ui .ycp-rules .ycp-missing-btn::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; background: #fdbb18; color: #111; font-weight: 700; font-size: 13px; line-height: 1; }

/* Back to a private preview page (1.23.5) */
body.ycp-ui .ycp-prev { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 99990; display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 4px; border-radius: 999px; background: #151515; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
body.ycp-ui .ycp-prev a { padding: 8px 14px; border-radius: 999px; background: #fbbd19; color: #111 !important; font-size: 14px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
body.ycp-ui .ycp-prev button { width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; }
body.admin-bar.ycp-ui .ycp-prev { top: calc(44px + env(safe-area-inset-top, 0px)); }

/* ARiA credit is a link (e-mail) – 1.23.9 */
body.ycp-ui a.ycp-credit { width: fit-content; color: inherit !important; text-decoration: none !important; border-radius: 10px; transition: opacity .15s; }
body.ycp-ui a.ycp-credit:hover { opacity: .8; }
body.ycp-ui a.ycp-credit:focus-visible { outline: 2px solid #fbbd19; outline-offset: 4px; }

/* Welcome panel: 5 or 6 tiles fill whole rows (1.24.1) */
@media (min-width: 900px) {
	body.ycp-ui .ycp-welcome__tiles:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); }
	body.ycp-ui .ycp-welcome__tiles:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}

/* List a Part: what goes in each category */
body.ycp-ui .ycp-cathelp { margin-top: 8px; font-size: 13px; line-height: 1.45; color: #444; }
body.ycp-ui .ycp-cathelp__now { margin: 0 0 6px; padding: 8px 11px; background: #fffaeb; border-left: 3px solid #fdbb18; border-radius: 6px; }
body.ycp-ui .ycp-cathelp__now b { color: #111; }
body.ycp-ui .ycp-cathelp__toggle { padding: 0; border: 0; background: none; color: #9a6b00; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
body.ycp-ui .ycp-cathelp__list { margin: 8px 0 0; padding: 10px 12px; list-style: none; background: #fff; border: 1px solid #ececec; border-radius: 8px; }
body.ycp-ui .ycp-cathelp__list li { margin: 0 0 6px; }
body.ycp-ui .ycp-cathelp__list li:last-child { margin-bottom: 0; }
body.ycp-ui .ycp-cathelp__list b { color: #111; }

/* Home, "Latest listings" filters: on computers the pills wrap onto more lines
   (a mouse cannot swipe a hidden-scrollbar row); on phones they stay one
   swipeable row, with a soft fade on the right as a hint that there is more. */
@media (min-width: 768px) {
	body.ycp-ui .ycp-latest__pills { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 767px) {
	body.ycp-ui .ycp-latest__pills {
		-webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
		mask-image: linear-gradient(to right, #000 85%, transparent);
		padding-right: 24px;
	}
}
