/* Take2 Customizations - auction page */

/* plugin's single value field + side-by-side buttons are replaced by the two Take2 boxes
   (only once take2-front.js has confirmed the boxes can drive them) */
form.take2-boxes-active .uwa-input-second-layout,
form.take2-boxes-active #uwa_auction_lists,
form.take2-boxes-active .group-row {
	display: none !important;
}

.take2-bid-boxes {
	margin: 0 0 10px;
}

.take2-bid-box {
	margin-bottom: 16px;
}

.take2-bid-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.take2-bid-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	flex-wrap: wrap;
}

.take2-currency {
	display: inline-flex;
	align-items: center;
	padding: 0 10px;
	background: #d7d7d7;
	font-weight: 700;
	font-size: 1.1em;
}

.take2-bid-row input.take2-bid-input {
	flex: 1 1 140px;
	min-width: 120px;
	margin: 0;
}

.take2-bid-row .take2-bid-button {
	flex: 0 0 auto;
	min-width: 150px;
	margin: 0;
}

/* same height for the $ label, the box and the button (Astra theme) */
.take2-bid-boxes span.take2-currency {
	height: 40px;
}

.take2-bid-boxes .take2-bid-row button.take2-bid-button {
	margin-bottom: auto;
	height: 40px;
}

.take2-bid-row .take2-bid-button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.take2-auto-bid-explained-link {
	display: inline-block;
	margin-top: 8px;
	text-decoration: underline;
}

.take2-gst-live {
	margin: 4px 0 10px;
	font-weight: 600;
}

/* current bid above the clock */
.take2-clock-price {
	margin: 0 0 12px;
}

.take2-clock-price .take2-price {
	margin: 0 0 4px;
}

.take2-gst-rate,
.take2-gst-current {
	display: block;
	margin: 0 0 4px;
}

.take2-gst-current {
	font-weight: 600;
}

/* auction video */
.take2-video {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	margin: 0 0 18px;
	background: #000;
}

.take2-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* pop-up */
.take2-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.55);
	padding: 16px;
	overflow-y: auto;
}

.take2-modal-box {
	background: #fff;
	color: #222;
	max-width: 600px;
	margin: 40px auto;
	padding: 24px;
	border-radius: 6px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.take2-modal-box h3 {
	margin-top: 0;
}

.take2-increment-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 18px;
}

.take2-increment-table th,
.take2-increment-table td {
	border: 1px solid #ddd;
	padding: 6px 10px;
	text-align: left;
}

@media (max-width: 544px) {
	.take2-bid-row .take2-bid-button {
		flex: 1 1 100%;
	}
	.take2-modal-box {
		margin: 16px auto;
		padding: 18px;
	}
}

/* GST lines directly under the (only) current bid */
.take2-clock-price.take2-under-price {
	margin: -6px 0 14px;
}
