/* Your Bikini by Ada – header cart dropdown polish */

/* WooCommerce's cart refresh re-renders the dropdown with a "hidden" class; always show it while open */
.module-cart-icon .tbp_show_cart .tbp_shopdock.tf_hide {
	display: block !important;
}

/* The loading circle should only show while the cart is updating */
.tbp_cart_wrap:not(.tf_cart_updating) .tbp_cart_update_overlay {
	display: none !important;
}

/* Quantity fixed at 1 (hidden input): the − / + buttons do nothing, so hide them */
.tbp_cart_wrap .quantity:has(input[type="hidden"]) button.minus,
.tbp_cart_wrap .quantity:has(input[type="hidden"]) button.plus {
	display: none !important;
}

/* Otherwise a compact pill stepper instead of two full-size buttons */
.tbp_cart_wrap .quantity {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	height: auto !important;
	margin-top: 6px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 999px;
	overflow: hidden;
}

.tbp_cart_wrap .quantity:has(input[type="hidden"]) {
	display: none !important;
}

.tbp_cart_wrap .quantity button.minus,
.tbp_cart_wrap .quantity button.plus {
	width: 28px !important;
	height: 28px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font-size: 14px !important;
	line-height: 1 !important;
	box-shadow: none !important;
}

.tbp_cart_wrap .quantity button.minus:hover,
.tbp_cart_wrap .quantity button.plus:hover {
	background: rgba(0, 0, 0, 0.06) !important;
}

.tbp_cart_wrap .quantity input.qty {
	width: 2.4em !important;
	min-width: 0 !important;
	height: 28px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: center;
	box-shadow: none !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

/* After "Add to cart" further down the page, float the dropdown in the top-right corner */
body.byada-cart-float .module-cart-icon .tbp_show_cart .tbp_shopdock {
	position: fixed !important;
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	z-index: 99999 !important;
	width: 300px !important;
	max-width: calc(100vw - 32px);
	height: auto !important;
	overflow: visible !important;
	background: #fff !important;
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	animation: byada-drop-in 0.2s ease-out;
}

body.byada-cart-float .module-cart-icon .tbp_show_cart .tbp_cart_wrap {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	background: #fff !important;
	max-height: min(420px, calc(100vh - 32px));
}

@keyframes byada-drop-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	body.byada-cart-float .module-cart-icon .tbp_show_cart .tbp_shopdock {
		animation: none;
	}
}

/* "Qty 1 · Size L" under each product name in the dropdown */
.byada-dock-meta {
	display: none;
}

.tbp_cart_wrap .byada-dock-meta {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	opacity: 0.7;
}

/* Homepage hero: "Custom Order" button text white, black on hover */
.tb_y81r599 a.builder_button[href*="contact"] {
	color: #fff !important;
}

.tb_y81r599 a.builder_button[href*="contact"]:hover,
.tb_y81r599 a.builder_button[href*="contact"]:focus-visible {
	color: #000 !important;
}
