/* Auction cards — uses Kadence global palette variables so colors follow Customizer settings. */

/*
 * Wrapping flex row rather than CSS grid, so a last row with fewer cards
 * than columns is centered. Card width = (100% - gaps) / columns.
 */
.tanners-auctions {
	--tanners-cols: 3;
	--tanners-gap: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--tanners-gap);
}

@media (max-width: 1024px) {
	.tanners-auctions {
		--tanners-cols: 2;
	}
}

@media (max-width: 640px) {
	.tanners-auctions {
		--tanners-cols: 1;
	}
}

.tanners-auction {
	flex: 0 0 calc((100% - (var(--tanners-cols) - 1) * var(--tanners-gap)) / var(--tanners-cols));
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--global-palette9, #fff);
	border: 1px solid var(--global-gray-400, #e2e8f0);
	border-radius: 8px;
}

.tanners-auction__thumb {
	display: block;
	overflow: hidden;
}

.tanners-auction__thumb img {
	transition: transform 0.3s ease;
}

.tanners-auction__thumb:hover img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.tanners-auction__thumb img {
		transition: none;
	}
}

.tanners-auction__thumb img,
.tanners-auction__thumb-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--global-palette7, #edf2f7);
}

.tanners-auction__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.25rem;
}

.tanners-auction__badge {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.15em 0.6em;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	background: var(--global-palette7, #edf2f7);
	color: var(--global-palette3, #1a202c);
}

.tanners-auction--live .tanners-auction__badge {
	background: var(--global-palette1, #2b6cb0);
	color: #fff;
}

.tanners-auction__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.tanners-auction__title a {
	text-decoration: none;
	color: inherit;
}

.tanners-auction__desc {
	margin: 0 0 0.75rem;
}

.tanners-auction__meta {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.tanners-auction__meta li + li {
	margin-top: 0.25rem;
}

/* Push the button to the bottom so buttons line up across a row. */
.tanners-auction__button {
	margin-top: auto;
}

.tanners-auction__button--disabled {
	display: inline-block;
	padding: 0.4em 1em;
	border-radius: 3px;
	background: var(--global-palette7, #edf2f7);
	color: var(--global-palette5, #4a5568);
	font-weight: 600;
	cursor: default;
}

.tanners-auction--closed {
	opacity: 0.85;
}

/* Details box at the top of a single auction page. */
.tanners-auction-details {
	margin: 0 0 2rem;
	padding: 1.25rem;
	background: var(--global-palette8, #f7fafc);
	border-radius: 8px;
}

/* Confirm / unsubscribe message pages. */
.tanners-alerts-page {
	max-width: 640px;
	margin: 4rem auto;
	padding: 0 1rem;
	text-align: center;
}

.tanners-alerts-page form {
	margin: 1.5rem 0;
}

/* Extra class for specificity: Kadence's ".single-content p { margin-top: 0 }" would otherwise win. */
.tanners-auctions-wrap .tanners-auctions-more {
	margin: 2rem 0 0;
	text-align: center;
}

.tanners-auctions-more__link[aria-disabled="true"] {
	opacity: 0.6;
	pointer-events: none;
}
