/**
 * PXS Related Products Widget styles
 */
.pxs-related-products-heading {
	margin: 0 0 20px 0;
}

.pxs-live-products-browse-wrap {
	width: 100%;
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

.pxs-live-products-browse-more {
	cursor: pointer;
	border: none;
	box-sizing: border-box;
	font: inherit;
}

.pxs-related-products-wrap {
	display: grid;
	gap: 20px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Related widget: horizontal carousel when “Products per page” exceeds column count */
.pxs-related-products-carousel {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.pxs-related-products-carousel-viewport {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pxs-related-products-carousel-viewport::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.pxs-related-products-carousel--ajax-loading .pxs-related-products-carousel-viewport {
	min-height: 120px;
}

.pxs-related-products-carousel-skeleton {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 0;
}

.pxs-related-products-carousel-skeleton-bar {
	flex: 1;
	min-height: 140px;
	border-radius: 8px;
	background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
	background-size: 200% 100%;
	animation: pxs-related-carousel-skel 1.2s ease-in-out infinite;
}

@keyframes pxs-related-carousel-skel {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

.pxs-related-products-carousel-error {
	margin: 0;
	padding: 12px;
	font-size: 14px;
	color: #64748b;
}

.pxs-related-products-wrap.pxs-related-products-wrap--carousel {
	display: flex !important;
	flex-wrap: nowrap;
	width: max-content;
	min-width: 100%;
	grid-template-columns: none !important;
}

.pxs-related-products-wrap.pxs-related-products-wrap--carousel .pxs-related-product-card {
	box-sizing: border-box;
}

.pxs-related-products-carousel-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	flex-shrink: 0;
	line-height: 1;
	font-size: 1.25rem;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.pxs-related-products-carousel-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pxs-related-products-carousel-nav-icon {
	display: block;
	line-height: 1;
	pointer-events: none;
}

.pxs-related-product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/**
 * PXS Live Competitions only: angled “Featured” ribbon (top-right, 45° band flush to card edges).
 * Markup is output only when context is live; styles scoped to the live grid wrap.
 */
.pxs-live-products-wrap .pxs-related-product-card--featured {
	position: relative;
	overflow: visible;
}

.pxs-live-products-wrap .pxs-related-product-featured-ribbon {
	position: absolute;
	top: 0;
	right: 0;
	/* Square clip: ribbon band runs along the diagonal from top edge to right edge */
	width: 7rem;
	height: 7rem;
	overflow: hidden;
	z-index: 12;
	pointer-events: none;
}

/*
 * Layout and angle only — no background, color, or shadow (those come from Elementor Featured ribbon styles).
 */
.pxs-live-products-wrap .pxs-related-product-featured-ribbon__inner {
	position: absolute;
	top: 14px;
	right: -30px;
	display: block;
	box-sizing: border-box;
	width: 11rem;
	min-width: 11rem;
	padding: 8px 12px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	transform: rotate(45deg);
	transform-origin: center center;
}

.pxs-related-product-image-wrap {
	position: relative;
	line-height: 0;
}

.pxs-related-product-image-link {
	display: block;
	line-height: 0;
}

.pxs-related-product-future-overlay {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	padding: 16px;
}

.pxs-related-product-badges {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	bottom: auto;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	max-width: calc(100% - 20px);
	box-sizing: border-box;
	pointer-events: none;
}

.pxs-related-product-instant-win-badge,
.pxs-related-product-sale-badge {
	max-width: 100%;
	box-sizing: border-box;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: #fff;
	border-radius: 6px;
	padding: 6px 10px;
}

.pxs-related-product-instant-win-badge {
	background-color: #7c3aed;
}

.pxs-related-product-sale-badge {
	background-color: #dc2626;
}

.pxs-related-product-future-overlay-image {
	max-width: 85%;
	max-height: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.pxs-related-product-future-overlay-text {
	display: block;
}

.pxs-related-product-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.pxs-related-product-countdown {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 8px;
	gap: 12px;
}

.pxs-related-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pxs-related-countdown-number {
	display: block;
	line-height: 1.2;
}

.pxs-related-countdown-label {
	display: block;
	line-height: 1.2;
	margin-top: 2px;
}

.pxs-related-countdown-separator {
	display: inline-block;
	width: 1px;
	min-width: 1px;
	height: 24px;
	background-color: currentColor;
	flex-shrink: 0;
}

.pxs-related-product-end-date {
	margin-bottom: 6px;
}

.pxs-related-product-cash-alternative {
	margin-bottom: 6px;
}

.pxs-related-product-cash-alternative:empty {
	background-color: transparent !important;
	border: none !important;
}

.pxs-related-product-tickets-bar-wrap {
	display: flex;
	flex-direction: column;
	width: 100%;
	align-items: stretch;
}

.pxs-related-product-tickets-bar-wrap > .pxs-related-product-tickets-bar {
	margin-bottom: 0;
}

.pxs-related-product-tickets-bar {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pxs-related-product-tickets-bar-stats {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5em;
	width: 100%;
	line-height: 1.3;
}

.pxs-related-product-tickets-bar-stats-left {
	flex-shrink: 0;
}

.pxs-related-product-tickets-bar-stats-right {
	flex-shrink: 0;
	margin-left: auto;
	text-align: right;
}

.pxs-related-product-tickets-bar-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
}

.pxs-related-product-tickets-bar-text {
	position: relative;
	z-index: 1;
}

.pxs-related-product-price {
	margin-bottom: 8px;
	font-weight: 600;
}

.pxs-related-product-price-old {
	text-decoration: line-through;
	opacity: 0.7;
}

.pxs-related-product-price-suffix {
	font-weight: 400;
	opacity: 0.85;
}

.pxs-related-product-title {
	margin: 0 0 12px 0;
	font-size: 16px;
	line-height: 1.3;
	flex-grow: 1;
}

.pxs-related-product-title a {
	text-decoration: none;
	color: inherit;
}

.pxs-related-product-title a:hover {
	text-decoration: underline;
}

.pxs-related-product-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pxs-related-product-button-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.pxs-related-product-button-icon svg {
	width: 1em;
	height: 1em;
	max-width: 1em;
	max-height: 1em;
	flex-shrink: 0;
}

.pxs-related-product-button--buy:hover {
	opacity: 0.95;
}

.pxs-related-product-button--disabled {
	opacity: 1;
	user-select: none;
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	cursor: not-allowed;
	box-sizing: border-box;
}

.pxs-related-product-button--disabled:disabled {
	opacity: 1;
}
