/* YE Cart Upsell — frontend
   Colors and sizes come from CSS variables printed by the plugin settings. */

:root {
	--yecu-primary: #17104f;
	--yecu-text: #17104f;
	--yecu-muted: #8d8c99;
	--yecu-track: #dcdce5;
	--yecu-box-bg: #f7f7fb;
	--yecu-popup-bg: #fff;
	--yecu-card-bg: #f3f4f6;
	--yecu-btn-bg: #17104f;
	--yecu-btn-text: #fff;
	--yecu-badge: #ff4b22;
	--yecu-success: #30bf69;
	--yecu-icon: #39b9d4;
	--yecu-overlay: rgba(18, 22, 35, .6);
	--yecu-popup-width: 1040px;
	--yecu-radius-popup: 18px;
	--yecu-radius-card: 14px;
	--yecu-radius-btn: 9px;
	--yecu-pv-desktop: 3;
	--yecu-pv-tablet: 2;
	--yecu-pv-mobile: 1.2;
}

html.yecu-popup-open,
html.yecu-popup-open body {
	overflow: hidden !important;
}

.yecu-popup[hidden],
.yecu-toast[hidden],
.yecu-progress[hidden],
.yecu-popup [hidden] {
	display: none !important;
}

.yecu-popup *,
.yecu-toast *,
.yecu-progress * {
	box-sizing: border-box;
}

/* Fonts: theme font by default, custom font when chosen. */
.yecu-popup,
.yecu-toast,
.yecu-progress,
.yecu-bar { font-family: var(--yecu-font, inherit); }
.yecu-popup button,
.yecu-popup select,
.yecu-popup input,
.yecu-toast a,
.yecu-bar button { font-family: inherit; }
.yecu-progress__title,
.yecu-popup__heading,
.yecu-qv__title { font-family: var(--yecu-heading-font, inherit); }

/* =========================================================
   PROGRESS BAR
   ========================================================= */

.yecu-progress {
	width: 100%;
	color: var(--yecu-text);
	text-align: center;
	line-height: 1.4;
}

.yecu-progress--page,
.yecu-progress--compact {
	border: 1px solid color-mix(in srgb, var(--yecu-primary) 10%, transparent);
	background: var(--yecu-box-bg);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--yecu-primary) 5%, transparent);
}

.yecu-progress--page {
	margin: 0 0 26px;
	padding: 19px 24px 16px;
	border-radius: 14px;
}

.yecu-progress--compact {
	margin: 14px 0;
	padding: 12px 10px 11px;
	border-radius: 11px;
}

.yecu-progress__title {
	margin: 0 0 14px;
	color: var(--yecu-text);
	font-size: calc(18px * var(--yecu-ts, 1));
	line-height: 1.35;
	font-weight: 700;
}

.yecu-progress--compact .yecu-progress__title {
	margin-bottom: 11px;
	font-size: calc(13px * var(--yecu-ts, 1));
}

.yecu-progress__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--yecu-steps, 3), minmax(0, 1fr));
	align-items: end;
	padding-bottom: 16px;
}

.yecu-progress__track,
.yecu-progress__fill {
	position: absolute;
	inset-inline: 0;
	bottom: 4px;
	height: 3px;
	border-radius: 999px;
}

.yecu-progress__track {
	background: var(--yecu-track);
}

.yecu-progress__fill {
	inset-inline-end: auto;
	width: 0;
	background: var(--yecu-primary);
	transition: width .38s ease;
}

.yecu-progress__step {
	position: relative;
	z-index: 2;
	min-width: 0;
	padding: 0 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	color: var(--yecu-muted);
	text-align: center;
	transition: color .25s ease;
}

.yecu-progress__step-label {
	display: block;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: .02em;
}

.yecu-progress__step-value {
	display: block;
	color: inherit;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 800;
}

.yecu-progress__step--shipping .yecu-progress__step-value {
	white-space: nowrap;
	font-size: 13px;
}

.yecu-progress__dot {
	position: absolute;
	inset-inline-end: -5.5px;
	bottom: -16px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--yecu-track);
	border-radius: 50%;
	background: #fff;
	transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.yecu-progress__step.is-active,
.yecu-progress__step.is-unlocked {
	color: var(--yecu-text);
}

.yecu-progress__step.is-active .yecu-progress__dot {
	border-color: var(--yecu-primary);
	transform: scale(1.12);
}

.yecu-progress__step.is-unlocked .yecu-progress__dot {
	border-color: var(--yecu-primary);
	background: var(--yecu-primary);
}

.yecu-progress__step.is-unlocked .yecu-progress__dot::after {
	content: "✓";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 7px;
	line-height: 1;
	font-weight: 900;
}

.yecu-progress__message {
	margin-top: 15px;
	color: var(--yecu-text);
	font-size: calc(13px * var(--yecu-xs, 1));
	line-height: 1.45;
	font-weight: 650;
}

.yecu-progress--compact .yecu-progress__step {
	padding: 0 2px;
}

.yecu-progress--compact .yecu-progress__step-label {
	font-size: 8.5px;
}

.yecu-progress--compact .yecu-progress__step-value {
	font-size: 10.5px;
}

.yecu-progress--compact .yecu-progress__step--shipping .yecu-progress__step-value {
	font-size: 9.5px;
}

.yecu-progress--compact .yecu-progress__message {
	margin-top: 13px;
	font-size: 10.5px;
	line-height: 1.35;
}

/* Popup variant: the title becomes the popup heading, the box keeps the frame. */
.yecu-progress--popup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.yecu-progress--popup .yecu-progress__title {
	max-width: 780px;
	margin: 0;
	font-size: calc(21px * var(--yecu-ts, 1));
	line-height: 1.45;
}

.yecu-progress--popup .yecu-progress__box {
	width: min(820px, 100%);
	padding: 17px 20px 15px;
	border: 1px solid color-mix(in srgb, var(--yecu-primary) 10%, transparent);
	border-radius: 14px;
	background: var(--yecu-box-bg);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--yecu-primary) 5%, transparent);
}

/* =========================================================
   TOAST
   ========================================================= */

.yecu-toast {
	position: fixed;
	z-index: 1000002;
	width: min(390px, calc(100vw - 30px));
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 14px 15px;
	background: #fff;
	border-radius: 12px;
	border-top: 4px solid var(--yecu-success);
	box-shadow: 0 12px 35px rgba(0, 0, 0, .17);
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity .25s ease, transform .25s ease;
}

.yecu-toast--top-start { top: 22px; inset-inline-start: 22px; }
.yecu-toast--top-end { top: 22px; inset-inline-end: 22px; }
.yecu-toast--bottom-start { bottom: 22px; inset-inline-start: 22px; transform: translateY(12px); }
.yecu-toast--bottom-end { bottom: 22px; inset-inline-end: 22px; transform: translateY(12px); }

.yecu-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.yecu-toast__icon {
	width: 33px;
	height: 33px;
	flex: 0 0 33px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--yecu-success) 12%, transparent);
	color: var(--yecu-success);
}

.yecu-toast__icon svg { width: 19px; height: 19px; }

.yecu-toast__content {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: start;
}

.yecu-toast__content strong {
	color: var(--yecu-text);
	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;
}

.yecu-toast__content span {
	overflow: hidden;
	color: #777b87;
	font-size: 12px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.yecu-toast__cart {
	flex: 0 0 auto;
	padding: 7px 10px;
	border-radius: 7px;
	background: var(--yecu-btn-bg);
	color: var(--yecu-btn-text) !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
}

/* =========================================================
   POPUP
   ========================================================= */

.yecu-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	color: var(--yecu-text);
	font-size: 14px;
	line-height: 1.45;
	text-align: start;
}

.yecu-popup__overlay {
	position: absolute;
	inset: 0;
	background: var(--yecu-overlay);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .22s ease;
}

.yecu-popup__dialog {
	position: relative;
	z-index: 2;
	width: min(var(--yecu-popup-width), 96vw);
	max-height: 92vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 18px 30px 27px;
	background: var(--yecu-popup-bg);
	border-radius: var(--yecu-radius-popup);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
	opacity: 0;
	transform: translateY(14px) scale(.985);
	transition: opacity .22s ease, transform .22s ease;
	overscroll-behavior: contain;
}

.yecu-popup.is-open .yecu-popup__overlay,
.yecu-popup.is-open .yecu-popup__dialog {
	opacity: 1;
	transform: none;
}

.yecu-popup__top {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.yecu-popup__close {
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--yecu-text) !important;
	cursor: pointer;
	box-shadow: none !important;
	text-decoration: none !important;
}

.yecu-popup__close svg { width: 22px; height: 22px; }
.yecu-popup__close:hover,
.yecu-popup__close:focus-visible { background: rgba(0, 0, 0, .06) !important; color: var(--yecu-text) !important; }

.yecu-popup__go-cart {
	text-transform: var(--yecu-btn-transform, none);
	min-height: 41px;
	padding: 8px 17px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	background: var(--yecu-btn-bg);
	color: var(--yecu-btn-text) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
}

.yecu-popup__go-cart svg { width: 19px; height: 19px; }

.yecu-popup__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 0 45px 23px;
}

.yecu-popup__icon {
	width: 49px;
	height: 49px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--yecu-icon) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--yecu-icon) 20%, transparent);
	color: var(--yecu-icon);
}

.yecu-popup__icon svg { width: 25px; height: 25px; }

.yecu-popup__added {
	color: var(--yecu-text);
	font-size: calc(14px * var(--yecu-xs, 1));
	font-weight: 500;
}

.yecu-popup__heading {
	margin: 0;
	color: var(--yecu-text);
	font-size: calc(21px * var(--yecu-ts, 1));
	line-height: 1.45;
	font-weight: 700;
}

/* Skeleton */

.yecu-popup__skeleton {
	display: none;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 0 42px 22px;
}

.yecu-popup.is-loading .yecu-popup__skeleton { display: grid; }

.yecu-popup.is-loading .yecu-popup__carousel,
.yecu-popup.is-loading .yecu-popup__empty { display: none !important; }

.yecu-skeleton {
	padding: 12px;
	background: var(--yecu-card-bg);
	border-radius: var(--yecu-radius-card);
}

.yecu-skeleton__image,
.yecu-skeleton__line,
.yecu-skeleton__button {
	position: relative;
	overflow: hidden;
	background: rgba(0, 0, 0, .07);
}

.yecu-skeleton__image::after,
.yecu-skeleton__line::after,
.yecu-skeleton__button::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
	animation: yecuSkeleton 1.15s infinite;
}

@keyframes yecuSkeleton { 100% { transform: translateX(100%); } }

.yecu-skeleton__image { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; margin-bottom: 14px; }
.yecu-skeleton__line { height: 12px; width: 65%; margin-bottom: 9px; border-radius: 999px; }
.yecu-skeleton__line--big { width: 90%; height: 14px; }
.yecu-skeleton__button { height: 44px; margin-top: 17px; border-radius: var(--yecu-radius-btn); }

.yecu-popup__empty {
	padding: 40px 15px;
	text-align: center;
	color: #777b87;
	font-size: 14px;
}

/* Carousel */

.yecu-popup__carousel {
	position: relative;
	padding: 0 42px 8px;
}

.yecu-popup__track {
	--yecu-gap: 16px;
	--yecu-pv: var(--yecu-pv-desktop);
	width: 100%;
	display: flex;
	gap: var(--yecu-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	direction: ltr;
	cursor: grab;
	padding: 2px 0 6px;
}

.yecu-popup__track::-webkit-scrollbar { display: none; }

.yecu-popup__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.yecu-popup__slide {
	flex: 0 0 calc((100% - (var(--yecu-pv) - 1) * var(--yecu-gap)) / var(--yecu-pv));
	min-width: 0;
	scroll-snap-align: start;
}

[dir="rtl"] .yecu-popup__slide { direction: rtl; }

/* Card */

.yecu-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--yecu-card-bg);
	border: 1px solid color-mix(in srgb, var(--yecu-primary) 6%, transparent);
	border-radius: var(--yecu-radius-card);
	transition: transform .22s ease, box-shadow .22s ease;
}

.yecu-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px color-mix(in srgb, var(--yecu-primary) 10%, transparent);
}

.yecu-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
}

.yecu-card__image-link { display: block; width: 100%; height: 100%; }

.yecu-card__media img,
.yecu-card__image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	margin: 0 !important;
}

.yecu-card__badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 5px 10px;
	border-radius: 7px;
	background: var(--yecu-badge);
	color: #fff;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	pointer-events: none;
}

.yecu-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 14px;
}

.yecu-card__title {
	min-height: 2.9em;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: var(--yecu-text) !important;
	font-size: calc(14px * var(--yecu-xs, 1));
	line-height: 1.45;
	font-weight: 600;
	text-decoration: none !important;
}

.yecu-card__price {
	margin-top: auto;
	margin-bottom: 13px;
	font-size: 14px;
	color: var(--yecu-text);
}

.yecu-card__price del { opacity: .55; margin-inline-end: 4px; }
.yecu-card__price ins { text-decoration: none; font-weight: 700; }

.yecu-card__atc { width: 100%; }

.yecu-card__btn {
	position: relative;
	width: 100%;
	min-height: 45px;
	margin: 0;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: var(--yecu-radius-btn);
	background: var(--yecu-btn-bg) !important;
	color: var(--yecu-btn-text) !important;
	font-size: var(--yecu-fs-btn, 14px);
	text-transform: var(--yecu-btn-transform, none);
	letter-spacing: var(--yecu-btn-ls, normal);
	font-weight: var(--yecu-btn-weight, 600);
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none;
	transition: opacity .2s ease;
}

.yecu-card__btn:hover { opacity: .9; }
.yecu-card__btn:disabled { opacity: .45; cursor: not-allowed; }

.yecu-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: yecuSpin .7s linear infinite;
}

.yecu-card__btn.is-loading { pointer-events: none; }
.yecu-card__btn.is-loading .yecu-spinner { display: inline-block; }

@keyframes yecuSpin { to { transform: rotate(360deg); } }

/* Arrows & dots */

.yecu-popup__arrow {
	position: absolute;
	top: 43%;
	z-index: 15;
	width: 42px !important;
	height: 42px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid color-mix(in srgb, var(--yecu-primary) 10%, transparent) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--yecu-text) !important;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .09) !important;
	cursor: pointer;
	transform: translateY(-50%);
}

.yecu-popup__arrow svg { width: 20px; height: 20px; }
.yecu-popup__arrow--prev { left: 0; }
.yecu-popup__arrow--next { right: 0; }
.yecu-popup__arrow:disabled { opacity: .25; pointer-events: none; }

.yecu-popup__pagination {
	min-height: 16px;
	margin-top: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	direction: ltr;
}

.yecu-popup__dot {
	width: 7px !important;
	height: 7px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	background: color-mix(in srgb, var(--yecu-primary) 22%, transparent) !important;
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}

.yecu-popup__dot.is-active {
	width: 22px !important;
	background: var(--yecu-primary) !important;
}

/* =========================================================
   QUICK VIEW (inside the popup)
   ========================================================= */

.yecu-card__quick {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 5;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--yecu-text) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12) !important;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.yecu-card__quick svg { width: 20px; height: 20px; }

.yecu-card__quick:hover,
.yecu-card__quick:focus-visible {
	background: var(--yecu-btn-bg) !important;
	color: var(--yecu-btn-text) !important;
}

.yecu-popup.is-qv .yecu-popup__header,
.yecu-popup.is-qv .yecu-popup__carousel,
.yecu-popup.is-qv .yecu-popup__empty,
.yecu-popup.is-qv .yecu-popup__skeleton {
	display: none !important;
}

.yecu-popup__qv {
	padding: 0 12px 6px;
	animation: yecuFadeIn .2s ease;
}

@keyframes yecuFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.yecu-popup__qv-top {
	margin: -6px 0 14px;
}

.yecu-popup__qv-back {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 7px 12px 7px 8px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(0, 0, 0, .05) !important;
	color: var(--yecu-text) !important;
	font-size: 13px !important;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none !important;
}

.yecu-popup__qv-back svg { width: 16px; height: 16px; }
[dir="rtl"] .yecu-popup__qv-back svg { transform: scaleX(-1); }

.yecu-popup__qv-loading {
	display: flex;
	justify-content: center;
	padding: 80px 0;
	color: var(--yecu-primary);
}

.yecu-popup__qv-loading[hidden] { display: none !important; }

.yecu-popup__qv-loading .yecu-spinner {
	display: inline-block;
	width: 30px;
	height: 30px;
	border-width: 3px;
}

.yecu-qv {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.yecu-qv__main {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--yecu-radius-card);
	background: var(--yecu-card-bg);
}

.yecu-qv__main img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	margin: 0 !important;
}

.yecu-qv__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.yecu-qv__thumb {
	flex: 0 0 64px;
	width: 64px !important;
	height: 64px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 2px solid transparent !important;
	border-radius: 8px !important;
	background: var(--yecu-card-bg) !important;
	cursor: pointer;
	box-shadow: none !important;
	opacity: .75;
}

.yecu-qv__thumb.is-active { border-color: var(--yecu-primary) !important; opacity: 1; }
.yecu-qv__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.yecu-qv__info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: start;
}

.yecu-qv__title {
	margin: 0 !important;
	color: var(--yecu-text);
	font-size: 22px !important;
	line-height: 1.35 !important;
	font-weight: 700;
}

.yecu-qv__price {
	color: var(--yecu-text);
	font-size: 18px;
	font-weight: 600;
}

.yecu-qv__price del { opacity: .55; margin-inline-end: 6px; font-weight: 400; }
.yecu-qv__price ins { text-decoration: none; }

.yecu-qv__desc {
	color: #5f6270;
	font-size: 14px;
	line-height: 1.6;
}

.yecu-qv__attr-label {
	margin-bottom: 8px;
	color: var(--yecu-text);
	font-size: 13px;
	font-weight: 700;
}

.yecu-qv__attr-selected { font-weight: 500; color: #5f6270; }

.yecu-qv__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.yecu-qv__option {
	min-width: 48px;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 8px 14px !important;
	border: 1.5px solid color-mix(in srgb, var(--yecu-primary) 18%, transparent) !important;
	border-radius: var(--yecu-radius-btn) !important;
	background: #fff !important;
	color: var(--yecu-text) !important;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none !important;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.yecu-qv__option:hover { border-color: var(--yecu-primary) !important; }

.yecu-qv__option.is-selected {
	border-color: var(--yecu-primary) !important;
	background: var(--yecu-primary) !important;
	color: #fff !important;
}

.yecu-qv__option.is-unavailable {
	opacity: .4;
	text-decoration: line-through;
}

.yecu-qv__select {
	width: 100%;
	max-width: 320px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1.5px solid color-mix(in srgb, var(--yecu-primary) 18%, transparent);
	border-radius: var(--yecu-radius-btn);
	background: #fff;
	color: var(--yecu-text);
	font-size: 14px;
}

.yecu-qv__notice {
	min-height: 1em;
	color: #2e7d32;
	font-size: 13px;
	font-weight: 600;
}

.yecu-qv__notice:empty { display: none; }
.yecu-qv__notice.is-error { color: #c62828; }

.yecu-qv__buy {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.yecu-qv__qty {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	border: 1.5px solid color-mix(in srgb, var(--yecu-primary) 18%, transparent);
	border-radius: var(--yecu-radius-btn);
	overflow: hidden;
	background: #fff;
}

.yecu-qv__qty button {
	width: 38px !important;
	height: 45px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--yecu-text) !important;
	font-size: 18px !important;
	cursor: pointer;
	box-shadow: none !important;
}

.yecu-qv__qty input {
	width: 44px !important;
	height: 45px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--yecu-text) !important;
	text-align: center;
	font-size: 15px !important;
	font-weight: 600;
	box-shadow: none !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

.yecu-qv__qty input::-webkit-outer-spin-button,
.yecu-qv__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.yecu-qv__add { flex: 1; width: auto; }

.yecu-qv__details {
	color: var(--yecu-text) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* =========================================================
   STANDALONE BAR
   ========================================================= */

.yecu-bar[hidden] { display: none !important; }

.yecu-bar {
	position: relative;
	z-index: 99990;
	width: 100%;
	background: var(--yecu-bar-bg);
	border-bottom: 1px solid color-mix(in srgb, var(--yecu-primary) 10%, transparent);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.yecu-bar--top_sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}

.yecu-bar--bottom {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	border-top: 1px solid color-mix(in srgb, var(--yecu-primary) 10%, transparent);
	border-bottom: 0;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
}

.yecu-bar--floating {
	position: fixed;
	bottom: 20px;
	inset-inline-end: 20px;
	width: min(380px, calc(100vw - 32px));
	border: 1px solid color-mix(in srgb, var(--yecu-primary) 10%, transparent);
	border-radius: 14px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}

html.yecu-popup-open .yecu-bar--bottom,
html.yecu-popup-open .yecu-bar--floating { visibility: hidden; }

.yecu-bar__inner {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px 52px 10px 20px;
}

[dir="rtl"] .yecu-bar__inner { padding: 10px 20px 10px 52px; }

.yecu-bar--floating .yecu-bar__inner { padding: 14px 16px 12px; }

.yecu-bar__close {
	position: absolute;
	top: 50%;
	inset-inline-end: 12px;
	width: 32px !important;
	height: 32px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--yecu-text) !important;
	box-shadow: none !important;
	cursor: pointer;
	transform: translateY(-50%);
}

.yecu-bar__close:hover { background: rgba(0, 0, 0, .06) !important; }
.yecu-bar__close svg { width: 18px; height: 18px; }

.yecu-bar--floating .yecu-bar__close { top: 8px; transform: none; inset-inline-end: 8px; }

/* Horizontal layout of the progress inside top / bottom bars. */
.yecu-progress--bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	grid-template-areas: "title box";
	align-items: center;
	gap: 6px 28px;
	text-align: start;
}

.yecu-progress--bar .yecu-progress__title {
	grid-area: title;
	margin: 0;
	font-size: calc(15px * var(--yecu-ts, 1));
}

.yecu-progress--bar .yecu-progress__box {
	grid-area: box;
	display: flex;
	flex-direction: column;
}

.yecu-progress--bar .yecu-progress__steps { padding-bottom: 13px; }
.yecu-progress--bar .yecu-progress__step-label { font-size: 9.5px; }
.yecu-progress--bar .yecu-progress__step-value { font-size: 11.5px; }
.yecu-progress--bar .yecu-progress__step--shipping .yecu-progress__step-value { font-size: 10.5px; }
.yecu-progress--bar .yecu-progress__dot { bottom: -13px; width: 10px; height: 10px; }
.yecu-progress--bar .yecu-progress__message { margin-top: 10px; font-size: 11.5px; text-align: center; }

.yecu-bar--floating .yecu-progress--bar {
	grid-template-columns: 1fr;
	grid-template-areas: "title" "box";
	gap: 12px;
	text-align: center;
}

.yecu-bar--floating .yecu-progress--bar .yecu-progress__title { padding: 0 24px; }

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 989px) {
	.yecu-popup__track { --yecu-pv: var(--yecu-pv-tablet); }
	.yecu-popup__skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yecu-skeleton:nth-child(3) { display: none; }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
	.yecu-popup {
		padding: 0;
		align-items: flex-end;
	}

	.yecu-popup__dialog {
		width: 100%;
		max-height: 92vh;
		border-radius: var(--yecu-radius-popup) var(--yecu-radius-popup) 0 0;
		padding: 13px 10px 18px;
		transform: translateY(40px);
	}

	.yecu-toast--top-start,
	.yecu-toast--top-end { top: 12px; inset-inline: 12px; }
	.yecu-toast--bottom-start,
	.yecu-toast--bottom-end { bottom: 12px; inset-inline: 12px; }
	.yecu-toast { width: auto; }
	html.yecu-popup-open .yecu-toast { top: 12px; bottom: auto; transform: translateY(-12px); }
	html.yecu-popup-open .yecu-toast.is-visible { transform: none; }
	.yecu-toast__cart { display: none; }

	.yecu-popup__go-cart { min-height: 39px; padding: 7px 13px; font-size: 13px; }
	.yecu-popup__header { padding: 4px 6px 18px; }
	.yecu-popup__icon { width: 43px; height: 43px; }
	.yecu-popup__added { font-size: calc(13px * var(--yecu-xs, 1)); }
	.yecu-popup__heading,
	.yecu-progress--popup .yecu-progress__title { font-size: calc(17px * var(--yecu-ts, 1)); line-height: 1.4; }

	.yecu-progress--popup .yecu-progress__box,
	.yecu-progress--page { padding: 14px 9px 13px; border-radius: 12px; }

	.yecu-progress--page .yecu-progress__title { font-size: calc(15px * var(--yecu-ts, 1)); margin-bottom: 12px; }
	.yecu-progress--page .yecu-progress__step,
	.yecu-progress--popup .yecu-progress__step { padding: 0 2px; }
	.yecu-progress--page .yecu-progress__step-label,
	.yecu-progress--popup .yecu-progress__step-label { font-size: 9px; }
	.yecu-progress--page .yecu-progress__step-value,
	.yecu-progress--popup .yecu-progress__step-value { font-size: 12px; }
	.yecu-progress--page .yecu-progress__step--shipping .yecu-progress__step-value,
	.yecu-progress--popup .yecu-progress__step--shipping .yecu-progress__step-value { font-size: 10px; }
	.yecu-progress--page .yecu-progress__message,
	.yecu-progress--popup .yecu-progress__message { margin-top: 14px; font-size: calc(12px * var(--yecu-xs, 1)); }

	.yecu-popup__carousel { padding: 0 27px 5px; }
	.yecu-popup__track { --yecu-gap: 11px; --yecu-pv: var(--yecu-pv-mobile); }
	.yecu-popup__skeleton { grid-template-columns: 82%; padding: 0 27px 20px; overflow: hidden; }
	.yecu-skeleton:nth-child(2),
	.yecu-skeleton:nth-child(3) { display: none; }
	.yecu-popup__arrow { width: 36px !important; height: 36px !important; }
	.yecu-popup__arrow--prev { left: 1px; }
	.yecu-popup__arrow--next { right: 1px; }

	.yecu-popup__qv { padding: 0 6px 6px; }
	.yecu-qv { grid-template-columns: 1fr; gap: 18px; }
	.yecu-qv__title { font-size: 18px !important; }
	.yecu-qv__thumb { flex-basis: 54px; width: 54px !important; height: 54px !important; }

	.yecu-bar__inner,
	[dir="rtl"] .yecu-bar__inner { padding: 8px 40px 8px 12px; }
	[dir="rtl"] .yecu-bar__inner { padding: 8px 12px 8px 40px; }
	.yecu-bar__close { inset-inline-end: 4px; }
	.yecu-progress--bar {
		grid-template-columns: 1fr;
		grid-template-areas: "title" "box";
		gap: 8px;
		text-align: center;
	}
	.yecu-progress--bar .yecu-progress__title { font-size: calc(13px * var(--yecu-ts, 1)); }
	.yecu-progress--bar .yecu-progress__message { display: none; }
	.yecu-bar--floating { bottom: 12px; inset-inline-end: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.yecu-popup__dialog,
	.yecu-popup__overlay,
	.yecu-toast,
	.yecu-progress__fill,
	.yecu-card { transition: none; }
	.yecu-popup__track { scroll-behavior: auto; }
}

/* =========================================================
   PROGRESS SIZE: LARGE
   ========================================================= */

.yecu-size--large.yecu-progress--page { padding: 24px 28px 22px; }
.yecu-size--large.yecu-progress--popup .yecu-progress__box { padding: 22px 24px 20px; }
.yecu-size--large .yecu-progress__steps { padding-bottom: 22px; }
.yecu-size--large .yecu-progress__track,
.yecu-size--large .yecu-progress__fill { height: 8px; bottom: 5px; }
.yecu-size--large .yecu-progress__dot { width: 20px; height: 20px; bottom: -23px; inset-inline-end: -10px; border-width: 3px; }
.yecu-size--large .yecu-progress__step.is-unlocked .yecu-progress__dot::after { font-size: 10px; }
.yecu-size--large .yecu-progress__step-label { font-size: 13px; }
.yecu-size--large .yecu-progress__step-value { font-size: 18px; }
.yecu-size--large .yecu-progress__step--shipping .yecu-progress__step-value { font-size: 16px; }
.yecu-size--large.yecu-progress--page .yecu-progress__title { font-size: calc(22px * var(--yecu-ts, 1)); margin-bottom: 18px; }
.yecu-size--large.yecu-progress--popup .yecu-progress__title { font-size: calc(25px * var(--yecu-ts, 1)); }
.yecu-size--large.yecu-progress--bar .yecu-progress__title { font-size: calc(17px * var(--yecu-ts, 1)); }
.yecu-size--large .yecu-progress__message { margin-top: 20px; font-size: calc(15px * var(--yecu-xs, 1)); }
.yecu-size--large.yecu-progress--bar .yecu-progress__step-label { font-size: 11px; }
.yecu-size--large.yecu-progress--bar .yecu-progress__step-value { font-size: 13px; }
.yecu-size--large.yecu-progress--bar .yecu-progress__message { margin-top: 12px; font-size: 12.5px; }

/* Mini cart: clearer but still fits a narrow drawer */
.yecu-size--large.yecu-progress--compact { padding: 16px 12px 14px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__title { font-size: calc(15px * var(--yecu-ts, 1)); margin-bottom: 14px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__steps { padding-bottom: 18px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__track,
.yecu-size--large.yecu-progress--compact .yecu-progress__fill { height: 6px; bottom: 4px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__dot { width: 15px; height: 15px; bottom: -18.5px; inset-inline-end: -7.5px; border-width: 2px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__step-label { font-size: 10px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__step-value { font-size: 13px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__step--shipping .yecu-progress__step-value { font-size: 12px; }
.yecu-size--large.yecu-progress--compact .yecu-progress__message { margin-top: 16px; font-size: calc(12px * var(--yecu-xs, 1)); }

@media (max-width: 767px) {
	.yecu-size--large.yecu-progress--page { padding: 18px 12px 16px; }
	.yecu-size--large .yecu-progress__step-label { font-size: 10.5px; }
	.yecu-size--large .yecu-progress__step-value { font-size: 14px; }
	.yecu-size--large .yecu-progress__step--shipping .yecu-progress__step-value { font-size: 12px; }
	.yecu-size--large.yecu-progress--page .yecu-progress__title { font-size: calc(17px * var(--yecu-ts, 1)); }
	.yecu-size--large.yecu-progress--popup .yecu-progress__title { font-size: calc(19px * var(--yecu-ts, 1)); }
	.yecu-size--large .yecu-progress__message { font-size: calc(13px * var(--yecu-xs, 1)); }
}

/* =========================================================
   PROGRESS ANIMATION
   ========================================================= */

.yecu-anim--none .yecu-progress__fill { transition: none; }

.yecu-anim--subtle .yecu-progress__step.is-active .yecu-progress__dot,
.yecu-anim--lively .yecu-progress__step.is-active .yecu-progress__dot {
	animation: yecuPulse 2s ease-out infinite;
}

@keyframes yecuPulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--yecu-primary) 45%, transparent); }
	70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--yecu-primary) 0%, transparent); }
	100% { box-shadow: 0 0 0 0 transparent; }
}

/* Lively: moving stripes and glow on the fill */
.yecu-anim--lively .yecu-progress__fill {
	overflow: hidden;
	background: linear-gradient(90deg, var(--yecu-primary), color-mix(in srgb, var(--yecu-primary) 65%, #fff), var(--yecu-primary));
	background-size: 200% 100%;
	box-shadow: 0 0 14px color-mix(in srgb, var(--yecu-primary) 55%, transparent);
	animation: yecuFlow 3s linear infinite;
	transition: width .9s cubic-bezier(.34, 1.4, .64, 1);
}

.yecu-anim--lively .yecu-progress__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 12px);
	background-size: 17px 17px;
	animation: yecuStripes .8s linear infinite;
}

[dir="rtl"] .yecu-anim--lively .yecu-progress__fill::after { animation-direction: reverse; }

@keyframes yecuFlow { to { background-position: -200% 0; } }
@keyframes yecuStripes { to { background-position: 17px 0; } }

/* Lively: the next goal breathes */
.yecu-anim--lively .yecu-progress__step.is-active .yecu-progress__step-value {
	animation: yecuNudge 2.4s ease-in-out infinite;
}

@keyframes yecuNudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

/* Lively: light sweep across the box */
.yecu-anim--lively .yecu-progress__box { position: relative; isolation: isolate; }

.yecu-anim--lively .yecu-progress__box::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
	background-size: 250% 100%;
	background-position: 150% 0;
	animation: yecuSweep 5s ease-in-out infinite;
}

@keyframes yecuSweep {
	0%, 55% { background-position: 150% 0; }
	100% { background-position: -100% 0; }
}

/* Title bump when the message changes */
.yecu-progress__title.is-bump { animation: yecuBump .6s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes yecuBump {
	0% { transform: scale(.94); opacity: .4; }
	100% { transform: scale(1); opacity: 1; }
}

/* Celebration when a goal unlocks */
.yecu-progress__step.is-celebrate .yecu-progress__dot { animation: yecuPop .8s cubic-bezier(.34, 1.56, .64, 1); }
.yecu-progress__step.is-celebrate .yecu-progress__step-value { animation: yecuBump .7s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes yecuPop {
	0% { transform: scale(.4); }
	60% { transform: scale(1.7); }
	100% { transform: scale(1); }
}

.yecu-burst {
	position: absolute;
	inset-inline-end: 0;
	bottom: -12px;
	width: 0;
	height: 0;
	pointer-events: none;
	z-index: 5;
}

.yecu-burst i {
	position: absolute;
	left: 0;
	top: 0;
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: var(--c, var(--yecu-primary));
	animation: yecuBurst .9s ease-out forwards;
}

@keyframes yecuBurst {
	0% { transform: translate(0, 0) rotate(0); opacity: 1; }
	100% { transform: translate(var(--x), var(--y)) rotate(220deg); opacity: 0; }
}

/* Quick view opened straight from a product list */
.yecu-popup.is-qv-only [data-yecu-qv-back] {
	display: none !important;
}
