/* BestBid One Page Checkout
   Lightweight styling. Override freely in your theme. */

.bestbid-opc {
	margin: 0 0 2rem;
}

.bestbid-opc__title {
	margin: 0 0 1.5rem;
}

.bestbid-opc__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media ( max-width: 900px ) {
	.bestbid-opc__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.bestbid-opc__grid--checkout-only {
	grid-template-columns: 1fr;
	max-width: 720px;
	margin: 0 auto;
}

/* Dedicated checkout page — full width form, normal page scroll. */
body.bestbid-opc-checkout-page .bestbid-opc__grid--checkout-only {
	max-width: 800px;
}

.bestbid-opc__heading {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

/* ---- Product list ---- */
.bestbid-opc__list {
	display: grid;
	gap: 0.85rem;
}

.bestbid-opc__list--grid {
	grid-template-columns: 1fr;
}

.bestbid-opc__item {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 0.9rem 1rem;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bestbid-opc__item.is-in-cart {
	border-color: #2563eb;
	box-shadow: inset 0 0 0 1px #2563eb;
}

.bestbid-opc__item-media {
	flex: 0 0 72px;
}

.bestbid-opc__item-media img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.bestbid-opc__item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.bestbid-opc__item-title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	line-height: 1.3;
}

.bestbid-opc__item-price {
	font-weight: 600;
}

.bestbid-opc__item-price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 0.35rem;
}

.bestbid-opc__item-desc {
	font-size: 0.85rem;
	color: #666;
	margin-top: 0.35rem;
}

.bestbid-opc__item-desc p {
	margin: 0;
}

.bestbid-opc__item-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.bestbid-opc__qty {
	width: 64px;
	padding: 0.45rem;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.bestbid-opc__add {
	white-space: nowrap;
	cursor: pointer;
}

.bestbid-opc__add.is-loading {
	opacity: 0.6;
	cursor: progress;
}

.bestbid-opc__item.is-in-cart .bestbid-opc__add {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* ---- Checkout column ---- */
.bestbid-opc__checkout .woocommerce-checkout .col2-set,
.bestbid-opc__checkout .woocommerce-checkout #customer_details {
	width: 100%;
	float: none;
}

.bestbid-opc__checkout #order_review_heading {
	margin-top: 1.5rem;
}

.bestbid-opc-empty {
	padding: 1rem 1.25rem;
	background: #fff8e5;
	border: 1px solid #f3e2b3;
	border-radius: 8px;
}

/* ---- Buy now (product page) — inline with Add to cart ---- */
body.bestbid-opc-auto-mode .woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

body.bestbid-opc-auto-mode .woocommerce div.product form.cart .quantity {
	float: none;
	margin: 0;
}

body.bestbid-opc-auto-mode .woocommerce div.product form.cart .single_add_to_cart_button {
	float: none;
	margin: 0 !important;
	flex: 1 1 auto;
}

.bestbid-opc__buy-wrap {
	display: inline-flex;
	flex: 1 1 auto;
	min-width: 140px;
}

.bestbid-opc__buy-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 !important;
	padding: 0.75em 1.25em !important;
	font-size: 1em !important;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
}

.bestbid-opc__buy-now.is-loading {
	opacity: 0.7;
	cursor: progress;
}

/* Hide express PayPal on product page — use Buy now → checkout page instead. */
body.bestbid-opc-auto-mode .wcppec-checkout-buttons,
body.bestbid-opc-auto-mode .ppc-button-wrapper,
body.bestbid-opc-auto-mode #wc-ppcp-product-button,
body.bestbid-opc-auto-mode .paypal-buttons-contextual,
body.bestbid-opc-auto-mode .woocommerce-PayPal-buttons,
body.bestbid-opc-auto-mode .paypal-buttons {
	display: none !important;
}

@media ( max-width: 600px ) {
	body.bestbid-opc-auto-mode .woocommerce div.product form.cart .single_add_to_cart_button,
	body.bestbid-opc-auto-mode .bestbid-opc__buy-wrap {
		flex: 1 1 100%;
	}
}
