/**
 * AKAI RFQ System — floating cart button styles.
 */

#akai-rfq-fab {
	--akai-fab-bg: #17113d;
	--akai-fab-badge: #cc0000;

	position: fixed;
	z-index: 99990;
	bottom: 24px;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 16px;
	background: var(--akai-fab-bg);
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 10px 30px rgba(23, 17, 61, 0.28);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#akai-rfq-fab.is-visible {
	display: inline-flex;
	animation: akai-fab-pop .25s ease;
}

#akai-rfq-fab.akai-fab-right { right: 24px; }
#akai-rfq-fab.akai-fab-left { left: 24px; }

#akai-rfq-fab:hover,
#akai-rfq-fab:focus {
	transform: translateY(-3px);
	box-shadow: 0 16px 38px rgba(23, 17, 61, 0.36);
	color: #fff;
}

#akai-rfq-fab:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

#akai-rfq-fab .akai-fab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#akai-rfq-fab .akai-fab-label {
	white-space: nowrap;
}

#akai-rfq-fab .akai-fab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: var(--akai-fab-badge);
	color: #fff;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 800;
}

@keyframes akai-fab-pop {
	0% { transform: scale(.7); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

/* Compact on small screens: icon + badge only. */
@media (max-width: 600px) {
	#akai-rfq-fab {
		padding: 14px;
		bottom: 18px;
	}
	#akai-rfq-fab.akai-fab-right { right: 16px; }
	#akai-rfq-fab.akai-fab-left { left: 16px; }
	#akai-rfq-fab .akai-fab-label { display: none; }
	#akai-rfq-fab .akai-fab-badge {
		position: absolute;
		top: -4px;
		right: -4px;
		box-shadow: 0 0 0 2px var(--akai-fab-bg);
	}
}

@media (prefers-reduced-motion: reduce) {
	#akai-rfq-fab,
	#akai-rfq-fab.is-visible { transition: none; animation: none; }
}

/* ==========================================================================
   Nav menu cart icon
   ========================================================================== */
.akai-nav-cart-item { list-style: none; display: inline-flex; align-items: center; }
.akai-nav-cart {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
	text-decoration: none;
	color: inherit;
	padding: 6px 4px;
	font-family: 'Barlow', sans-serif;
	font-weight: 600;
}
.akai-nav-cart-ico { display: inline-flex; line-height: 0; }
.akai-nav-cart-ico svg { width: 20px; height: 20px; }
.akai-nav-cart-label { font-size: 15px; }
.akai-nav-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #cc0000;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity .15s ease, transform .15s ease;
}
.akai-nav-cart-count.has-items { opacity: 1; transform: scale(1); }

@media (max-width: 782px) {
	.akai-nav-cart-label { display: none; }
}
