/* 1 - one button per product. Every per-product quote button is hidden, not
   removed: the theme's own on cards and in variation rows, bs-Get-Offer's on
   cards and product pages, the accessory tabs' - plus WooCommerce's "View cart"
   link that appears under a button after an AJAX add, because the panel opens
   instead.
   Each class is written eight times, the weight bs-offer-two-buttons.php
   measured: the theme holds these buttons visible with display: inline-flex
   !important at six classes and four elements, and between two !important
   declarations the heavier selector wins. */
.bs-inquiry-add.bs-inquiry-add.bs-inquiry-add.bs-inquiry-add.bs-inquiry-add.bs-inquiry-add.bs-inquiry-add.bs-inquiry-add,
.bs-offer-add.bs-offer-add.bs-offer-add.bs-offer-add.bs-offer-add.bs-offer-add.bs-offer-add.bs-offer-add,
.bs-offer-add-loop.bs-offer-add-loop.bs-offer-add-loop.bs-offer-add-loop.bs-offer-add-loop.bs-offer-add-loop.bs-offer-add-loop.bs-offer-add-loop,
.bs-offer-btn.bs-offer-btn.bs-offer-btn.bs-offer-btn.bs-offer-btn.bs-offer-btn.bs-offer-btn.bs-offer-btn,
.woocommerce ul.products li.product a.added_to_cart {
	display: none !important;
}

/* The label is longer than "Add to cart": it wraps instead of leaving the card. */
.woocommerce ul.products li.product .add_to_cart_button,
.select-variation-button {
	white-space: normal;
	line-height: 1.25;
	text-align: center;
	justify-content: center;
}

/* A phone shows two cards per row and leaves the button 146 px. With the
   theme's side padding the label needs three lines there (70 px); with 8 px it
   fits in two (52 px). The 14 px type is the theme's and stays. */
@media (max-width: 576px) {
	.woocommerce ul.products li.product .add_to_cart_button {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}

/* A product that cannot be bought online: the quote is its only action, so it
   takes the blue the quote buttons have everywhere else. */
.woocommerce ul.products li.product a.button.bs-sc-quote-product.bs-sc-quote-product {
	background: #1b99d7 !important;
	border-color: #1b99d7 !important;
	color: #fff !important;
	text-align: center;
	justify-content: center;
}

.woocommerce ul.products li.product a.button.bs-sc-quote-product.bs-sc-quote-product:hover,
.woocommerce ul.products li.product a.button.bs-sc-quote-product.bs-sc-quote-product:focus {
	background: #1787bf !important;
	border-color: #1787bf !important;
}

.bs-sc-quote-product.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* 2 - one basket, one icon in the header */
.mini-header-cart,
.basket-div .separator {
	display: none !important;
}

/* 3 - the drawer: a full-height panel on the right instead of a dropdown under
   the header. Same element and same open class as before (html.bs-drawer-open),
   only where it sits and how it enters changes. */
html .bs-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(15, 23, 42, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

html.bs-drawer-open .bs-drawer-overlay {
	opacity: 1;
	pointer-events: auto;
}

/* Shown by hovering the cart icon: a look, not a decision. The page behind is
   neither dimmed nor blocked, and the panel leaves with the mouse. */
html.bs-drawer-open.bs-sc-peek .bs-drawer-overlay {
	opacity: 0;
	pointer-events: none;
}

html .bs-drawer,
html .bs-drawer.bs-drawer--wide {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(420px, 100vw);
	height: auto;
	max-height: none;
	padding: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	opacity: 1;
	visibility: hidden;
	transform: translateX(105%);
	transition: transform .22s ease, visibility 0s linear .22s;
	box-shadow: -12px 0 30px rgba(0, 0, 0, .18);
	z-index: 99999;
}

html.bs-drawer-open .bs-drawer {
	visibility: visible;
	transform: translateX(0);
	transition: transform .22s ease, visibility 0s;
}

body.admin-bar .bs-drawer {
	top: 32px;
}

html .bs-drawer .bs-drawer-header {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	border: 0;
}

html .bs-drawer .bs-drawer-close {
	padding: 4px 10px;
	font-size: 28px;
	line-height: 1;
	color: #212529;
}

/* Every wrapper between the panel and the list passes the height on, so the
   list is the only thing that scrolls and the two buttons stay at the bottom.
   align-items: the theme sets `start` on the content wrapper for its two-column
   grid; as a column that shrinks every child to the width of its text. */
html .bs-drawer .bs-drawer-body,
html .bs-drawer .widget_shopping_cart,
html .bs-drawer .widget_shopping_cart_content,
html .bs-drawer .mini-cart-content-left {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	height: auto;
	overflow: hidden;
}

html .bs-drawer .mini-cart-content-left {
	gap: 0;
	padding: 0 16px 16px;
	background: #fff;
}

.bs-sc-title {
	flex: 0 0 auto;
	margin: 0;
	padding: 16px 56px 12px 16px;
	border-bottom: 1px solid #e9ecef;
	font-size: 18px;
	font-weight: 700;
}

/* The theme's own heading ("BUY ONLINE") named the left of two columns. */
.widget_shopping_cart_content .mini-cart-content-left > p.mb-0:first-child {
	display: none;
}

html .bs-drawer ul.woocommerce-mini-cart {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 12px 0;
	overflow-y: auto;
}

html .bs-drawer .woocommerce-mini-cart__total {
	flex: 0 0 auto;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #e9ecef;
}

html .bs-drawer .woocommerce-mini-cart__buttons {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

html .bs-drawer .woocommerce-mini-cart__empty-message {
	padding: 24px 0;
}

/* 4 - the two choices. The quote in the brand blue the header and the other
   quote buttons use, the purchase dark like "Add to cart" on a card. */
.bs-sc-cta,
html .bs-drawer .widget_shopping_cart .buttons a.bs-sc-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
}

.bs-sc-cta .bs-sc-main {
	font-size: 16px;
	font-weight: 700;
}

.bs-sc-cta .bs-sc-sub {
	font-size: 12px;
	font-weight: 400;
}

.bs-sc-quote {
	background: #1b99d7;
	color: #fff !important;
}

.bs-sc-quote:hover,
.bs-sc-quote:focus {
	background: #1787bf;
}

.bs-sc-quote.is-busy {
	opacity: .6;
	pointer-events: none;
}

.bs-sc-buy,
.bs-sc-buy:visited {
	background: #212529;
	color: #fff !important;
}

.bs-sc-buy:hover,
.bs-sc-buy:focus {
	background: #000;
}

.bs-sc-view,
html .bs-drawer .widget_shopping_cart .buttons a.bs-sc-view {
	display: block;
	margin: 0;
	padding-top: 2px;
	font-size: 13px;
	color: #495057;
	text-align: center;
	text-decoration: underline;
}

.wc-proceed-to-checkout .bs-sc-quote {
	margin-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {
	html .bs-drawer,
	html.bs-drawer-open .bs-drawer,
	html .bs-drawer-overlay {
		transition: none;
	}
}