/* ==========================================================================
   Sale Single Template — supporting styles
   Enqueued by sale-single-template.php only on single sale/lot pages.
   Replaces styling that previously came from the Salient theme
   framework (dark/left helpers, vc_row/wpb_row grid, nectar-button,
   tab system, etc.), none of which exist in Divi.
   ========================================================================== */

/* ---- Banner / header ---- */

.sale-banner-section {
	position: relative;
	overflow: hidden;
}

.sale-banner {
	width: 100%;
	min-height: 450px;
	background-size: cover;
	background-position: bottom center;
}

.sale-header-row {
	display: flex; 
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;

}

.sales-body {
    background-color: #e9e5dc;
}
.sale-header-row.left {
	text-align: center;
}

.sale-header-col {
    background-image: url('/wp-content/uploads/2026/06/bronze-strip-2-shine-1.png') !important;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top center;
	color: #fff;
	flex: 1 1 100%;
}
.sale-header-col2 {
    	flex: 1 1 100%;
    	background-color: #e9e5dc;
}
.salename { 
    background-image: url('/wp-content/uploads/2026/06/bronze-strip-2-shine-1.png') !important;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top center;
	color: #fff;
	flex: 1 1 100%;
}

.saledetails {
    
}
h1.sale {
    font-family: 'Playfair Display';
    text-align: center;
}

h3.sale,
p.sale {
    font-family: 'Playfair Display';
    text-align: center;
    text-transoform: uppercase;
}

/* ---- Tabs ---- */

.tabs {

	display: block;
	margin-top: 30px;
	padding-left: 5%;
	padding-right: 5%;
}

.tab-links {
	list-style: none;
	padding: 0;
	margin: 0;
	border-bottom: 1px solid #9e9393;
	background: #f4f4f4;
}

.tab-links li {
	display: inline-block;
	min-width: 175px;

}

.tab-links a {
	padding: 5px;
	display: block;
	color: #768b99;
	text-decoration: none;
	border-radius: 0;
	font-family: 'Raleway', sans-serif;
    font-weight: 500;
	font-size: 18px;
	padding: 10px 25px 10px 25px;
	text-align: center;
}

.tab-links li.active a {
	background: #997452;
	color: #fff;
}

.tab-content {
    background: #fff;
	border: 1px solid #9e9393;
	padding-top: 15px;
	padding-bottom: 15px;

}

.tab {
	display: none;
}

.tab.active {
	display: block;
}

/* ---- Live video ---- */

.sale-live-video-wrap {
	margin-bottom: 30px;
	width: 90%;
}

.sale-live-video-aspect {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.sale-live-video-aspect iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ---- Lots / results messaging ---- */

.lots-msg {
	padding: 1%;
	border: none !important;
	color: #000000;
	text-align: center;
	text-transform: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

/* ---- TablePress overrides (loaded alongside TablePress's own CSS) ---- */

.tablepress.stats,
.tablepress.lots-overview-result,
.tablepress.topresults {
    margin-left: 30px;
    margin-right: 30px;
    width: 90%;
	max-width: 90%;
	font-size: 14px;
	line-height: 22px;
	text-transform: uppercase;
	font-family: 'Montserrat';
	font-weight: 500;
	float: center;
	border: 1px solid #9e9393;
	color: #000000;
	background-color: #ffffff;
}

.tablepress thead th {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	color: #ffffff;
	background-color: #997452;
	border: 1px solid #997452;
}

.tablepress .row-hover tr:hover td {
	background-color: #f4f4f4;
}

.tablepress .row-hover tr td {
	border-left: none;
	border-right: none;
	color: #000000;
	background-color: #ffffff;
}

.tablepress-table-name {
	color: #000000;
	padding-top: 0;
	margin-top: 0;
}

.lots-overview-result .img-thumbnail {
	max-width: 20px;
	float: left;
	margin: 1px 1px 0;
	padding: 0;
}

.topresults .column-1 {
	width: 40%;
}

.topresults .column-2,
.topresults .column-3,
.topresults .column-4 {
	width: 20%;
}

.tablepress.stats tr,
.tablepress.lots-overview-result tr td,
.tablepress.topresults tr td  {
	border: 1px #9e9393;
}

.stats .column-1,
.stats .column-2 {
	width: 50%;
	padding-left: 30px;
}

/* ---- Multi-day sale ---- */

.tables-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.table-container {
	width: 48%;
	margin-bottom: 20px;
}

/* ---- Downloads tab ---- */

#tab-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 10px;
}

.sale-download-item {
	flex: 0 0 auto;
}

.sale-download-btn {
	display: inline-block;
	padding: 12px 24px;
	background-color: #000000;
	color: #ffffff;
	text-decoration: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	border-radius: 3px;
	transition: opacity 0.2s ease;
}

.sale-download-btn:hover {
	opacity: 0.8;
}

/* ---- Lot single page: next/prev navigation ---- */

.lot_next_prev_buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background-color: #000;
	padding: 2%;
}

.lot_next_prev_buttons ul {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lot_next_prev_buttons .previous-post,
.lot_next_prev_buttons .next-post {
	flex: 1;
	min-height: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #000;
	transition: all 0.3s ease;
}

.lot_next_prev_buttons .title {
	flex: 2;
	text-align: center;
	min-height: 80px;
	background-color: #000;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.lot_next_prev_buttons .title .linksale a {
	color: #ffffff;
	font-size: 20px;
	font-weight: bold;
	text-transform: uppercase;
}

.lot_next_prev_buttons .title .linklot {
	color: #ffffff;
	font-size: 28px;
	font-weight: bold;
	text-transform: uppercase;
}

.lot_next_prev_buttons h3 {
	display: inline-block;
	color: #fff;
	text-transform: uppercase;
	margin: 0;
	transition: transform 0.4s ease;
}

.lot_next_prev_buttons .previous-post:hover h3 {
	transform: translateX(10px);
}

.lot_next_prev_buttons .next-post:hover h3 {
	transform: translateX(-10px);
}

.lot_next_prev_buttons a {
	text-decoration: none;
	color: inherit;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- Lot single page: lot info table + media ---- */

.lotinfo .column-1,
.lotinfo .column-2 {
	width: 50%;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
}

.pdfemb-viewer {
	display: block;
	width: 100%;
	max-width: 600px;
}

#newlot {
	display: flex;
	flex-wrap: wrap;
}

.lot-info-col {
	flex: 0 0 40%;
	max-width: 40%;
	padding: 3%;
}

.lot-pedigree-col {
	flex: 0 0 60%;
	max-width: 60%;
	padding: 3%;
}

.lot-image-wrap {
	margin-top: 20px;
}

.lot-image {
	max-width: 100%;
	height: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lot-video-wrap {
	margin-top: 20px;
}

.lot-video-aspect {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.lot-video-aspect iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

@media only screen and (max-width: 900px) {
	.lot-info-col,
	.lot-pedigree-col {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ---- Responsive ---- */

@media only screen and (max-width: 1024px) {
	.sponsor-logo {
		width: 300px;
	}

	.sponsor-logo img {
		max-width: 50%;
	}

	.tablepress td {
		font-size: 90%;
	}

	.pdfemb-viewer {
		min-height: 450px;
	}
}

@media only screen and (max-width: 768px) {
	.sale-header-row {
		flex-direction: column;
		padding: 80px 20px 60px;
	}

	.sale-sponsor-col {
		text-align: left;
		margin-top: 20px;
	}

	h1.name {
		font-size: 1.2em;
		line-height: 1em;
		max-width: 250px;
	}

	h3.name {
		font-size: 1em;
		max-width: 250px;
	}

	p.info {
		max-width: 250px;
	}

	.sponsor-logo,
	.sponsor-logo img {
		display: none;
	}

	.tab-links {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 0;
	}

	.tab-links li {
		width: 100%;
		text-align: left;
		margin-bottom: 5px;
	}
}

/* ==========================================================================
   Dashboard (single-dashboard.php) — live results kiosk display
   ========================================================================== */
.post-content.sales-body,
.sale-dashboard-body {
	background-color: #e9e5dc !important;
	color: #000000;
	font-family: 'Montserrat', sans-serif;
	margin: 0;
}

.dashboard-inner-wrap {
	padding: 0;
}

.dashboard-stats-row {
    background: #e9e5dc;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0px;
	padding: 30px;
	border-bottom: 1px solid #9e9393;
}

.dashboard-stats-logo img {
	max-height: 120px;
	width: auto;
}

.dashboardstat {
	text-align: center;
}

.dashboardh4 {
	color: #997452;
	font-size: 22px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 6px;
	font-weight: 500;
	font-family: "Playfair Display";
}

.dashboardh2 {
	color: #997452;
	font-size: 36px;
	font-weight: 700;
	margin: 0;
	font-family: "Playfair Display";
}

.dashboard-carousel {
	position: relative;
	min-height: 100%;
	padding-top: 30px;
	padding-bottom: 30px;
}

.dashboard-carousel-item {
	display: none;
}

.dashboard-carousel-item h4.dashboardh4 {
	text-align: center;
	margin-bottom: 16px;
}

table.dashboard {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	text-transform: uppercase;
}

table.dashboard thead th {
	color: #997452;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 1px;
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid #9e9393;
	font-family: "Playfair Display";
}

table.dashboard tbody td {
	color: #000000;
	padding: 12px 14px;
	border-bottom: 1px solid #9e9393;
}

table.dashboard tbody tr:nth-child(even) {
	background-color: #e9e5dc !important;
}

.dashboard-carousel-dots {
	display: none;
}

.dashboard-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color:  #997452;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dashboard-carousel-dot.active {
	background-color: #ffffff;
}

@media only screen and (max-width: 768px) {
	.dashboard-stats-row {
		flex-direction: column;
		text-align: center;
	}

	.dashboardh2 {
		font-size: 28px;
	}

	table.dashboard {
		font-size: 13px;
	}
}
