/**
 * Frontend Styles for Bluteee Commerce Suite
 * Designed for visual harmony with the Blocksy theme, WooCommerce, and 100% mobile responsiveness.
 */

:root {
	--bcs-primary: #2563eb;
	--bcs-primary-hover: #1d4ed8;
	--bcs-success: #10b981;
	--bcs-warning: #f59e0b;
	--bcs-danger: #ef4444;
	--bcs-radius: 8px;
}

/* ==========================================================================
   1. Dynamic Free Shipping Notice & Progress Meter
   ========================================================================== */
.bcs-shipping-notice-wrap {
	margin: 18px 0 24px;
	padding: 16px 20px;
	border-radius: var(--bcs-radius);
	font-family: inherit;
	transition: all 0.3s ease;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bcs-shipping-notice-wrap.bcs-shipping-locked {
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	color: #1e3a8a;
}

.bcs-shipping-notice-wrap.bcs-shipping-unlocked {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.bcs-shipping-notice-content {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.bcs-shipping-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.bcs-shipping-text {
	font-size: 14.5px;
	line-height: 1.4;
	font-weight: 500;
	word-break: break-word;
}

.bcs-shipping-text strong {
	font-weight: 700;
	color: #0f172a;
}

.bcs-shipping-success {
	font-weight: 600;
	color: #047857;
}

.bcs-shipping-progress-track {
	width: 100%;
	height: 8px;
	background: rgba(0, 0, 0, 0.07);
	border-radius: 999px;
	overflow: hidden;
}

.bcs-shipping-progress-bar {
	height: 100%;
	border-radius: 999px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
}

.bcs-shipping-unlocked .bcs-shipping-progress-bar {
	background: #10b981;
}

/* ==========================================================================
   2. Checkout Payment Gateway Notices & Badges
   ========================================================================== */
.bcs-gateway-notice {
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.bcs-gateway-notice .bcs-icon {
	font-size: 15px;
	flex-shrink: 0;
	margin-top: 1px;
}

.bcs-cod-notice {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.bcs-cod-notice strong {
	color: #78350f;
}

.bcs-prepaid-notice {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.bcs-prepaid-notice .bcs-highlight {
	font-weight: 700;
	color: #1d4ed8;
}

/* ==========================================================================
   3. Sleek Single Product Offer Callout Banner (Clean & Non-Intrusive)
   ========================================================================== */
.bcs-single-offer-banner {
	background: #f0f7ff;
	border: 1.5px solid #bfdbfe;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 14px 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
	transition: all 0.2s ease;
}

.bcs-single-offer-banner:hover {
	border-color: #93c5fd;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.09);
}

.bcs-sob-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.bcs-sob-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1d4ed8;
	font-size: 13.5px;
	font-weight: 700;
}

.bcs-sob-desc {
	font-size: 13px;
	line-height: 1.4;
	color: #334155;
}

.bcs-sob-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	background: #2563eb;
	color: #ffffff !important;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.2s ease;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.bcs-sob-btn:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   4. Collection Archive Offer Card (Aligned inside Blocksy Container)
   ========================================================================== */
.bcs-archive-offer-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 10px 0 26px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
	width: 100%;
	box-sizing: border-box;
}

.bcs-aoc-top {
	margin-bottom: 14px;
}

.bcs-aoc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eff6ff;
	color: #1d4ed8;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid #bfdbfe;
	margin-bottom: 8px;
}

.bcs-aoc-desc {
	font-size: 14px;
	line-height: 1.5;
	color: #475569;
	margin: 0;
}

.bcs-aoc-tracker {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 16px;
}

.bcs-aoc-tracker-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	gap: 10px;
}

.bcs-aoc-tracker-text {
	font-size: 13.5px;
	color: #1e293b;
	line-height: 1.4;
}

.bcs-aoc-tracker-text strong {
	color: #0f172a;
}

.bcs-aoc-tracker-pct {
	font-size: 13px;
	font-weight: 700;
	color: #2563eb;
}

.bcs-aoc-progress-track {
	width: 100%;
	height: 7px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.bcs-aoc-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
	border-radius: 999px;
	transition: width 0.5s ease;
}

/* ==========================================================================
   5. Sticky Bottom Progress Bar (Desktop & Mobile on All Pages)
   ========================================================================== */
.bcs-sticky-bottom-bar {
	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-width: 100vw !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 9999999 !important;
	background: #0f172a !important;
	background: rgba(15, 23, 42, 0.96) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3) !important;
	color: #ffffff !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
	box-sizing: border-box !important;
	transform: translateZ(0);
	animation: bcsSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bcs-sticky-bottom-bar.bcs-sticky-dismissed,
.bcs-sticky-bottom-bar.bcs-sticky-hidden {
	display: none !important;
}

@keyframes bcsSlideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.bcs-sticky-inner {
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 12px 24px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	box-sizing: border-box !important;
}

.bcs-sticky-info {
	display: flex !important;
	align-items: center !important;
	gap: 16px !important;
	flex: 1 !important;
	min-width: 0 !important;
}

.bcs-sticky-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	background: rgba(59, 130, 246, 0.25) !important;
	color: #93c5fd !important;
	padding: 5px 12px !important;
	border-radius: 20px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	border: 1px solid rgba(59, 130, 246, 0.4) !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

.bcs-sticky-text-wrap {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	flex: 1 !important;
	min-width: 0 !important;
}

.bcs-sticky-msg {
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #f1f5f9 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	line-height: 1.4 !important;
}

.bcs-sticky-unlocked .bcs-sticky-msg {
	color: #34d399 !important;
}

.bcs-sticky-progress-track {
	width: 160px !important;
	height: 6px !important;
	background: rgba(255, 255, 255, 0.18) !important;
	border-radius: 999px !important;
	overflow: hidden !important;
	flex-shrink: 0 !important;
}

.bcs-sticky-progress-bar {
	height: 100% !important;
	background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%) !important;
	border-radius: 999px !important;
	transition: width 0.4s ease !important;
}

.bcs-sticky-unlocked .bcs-sticky-progress-bar {
	background: #10b981 !important;
}

.bcs-sticky-action {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-shrink: 0 !important;
}

.bcs-sticky-btn {
	background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
	color: #ffffff !important;
	padding: 8px 18px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
	transition: all 0.2s ease !important;
	display: inline-block !important;
	border: none !important;
	line-height: 1.3 !important;
}

.bcs-sticky-btn:hover {
	background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5) !important;
	color: #ffffff !important;
}

.bcs-sticky-close {
	background: rgba(255, 255, 255, 0.12) !important;
	border: none !important;
	color: #cbd5e1 !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-size: 13px !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	line-height: 1 !important;
}

.bcs-sticky-close:hover {
	background: rgba(255, 255, 255, 0.25) !important;
	color: #ffffff !important;
}

/* ==========================================================================
   6. Badges & Cart Page Layout
   ========================================================================== */
.woocommerce-cart-form table.cart td.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail {
	width: 100px !important;
	max-width: 100px !important;
}

.woocommerce-cart-form table.cart td.product-thumbnail img,
.woocommerce-cart table.cart td.product-thumbnail img {
	max-width: 90px !important;
	height: auto !important;
	display: block !important;
}

/* ==========================================================================
   Distinct Products Notice on Cart Page
   ========================================================================== */
.bcs-cart-distinct-notices-container {
	margin: 16px 0 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bcs-cart-distinct-notice-wrap {
	border-radius: var(--bcs-radius, 8px);
	padding: 16px 20px;
	transition: all 0.3s ease;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bcs-cart-distinct-notice-wrap.bcs-distinct-locked {
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	color: #1e3a8a;
}

.bcs-cart-distinct-notice-wrap.bcs-distinct-warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.bcs-cart-distinct-notice-wrap.bcs-distinct-unlocked {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.bcs-distinct-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.bcs-distinct-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bcs-distinct-icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
}

.bcs-distinct-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 8px;
	border-radius: 4px;
	margin-right: 6px;
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
}

.bcs-distinct-warning .bcs-distinct-badge {
	background: rgba(217, 119, 6, 0.15);
	color: #b45309;
}

.bcs-distinct-unlocked .bcs-distinct-badge {
	background: rgba(5, 150, 105, 0.15);
	color: #059669;
}

.bcs-distinct-title {
	font-size: 15px;
	color: #0f172a;
}

.bcs-distinct-counter {
	font-size: 13px;
	font-weight: 600;
}

.bcs-distinct-track {
	width: 100%;
	height: 8px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 12px;
}

.bcs-distinct-bar {
	height: 100%;
	border-radius: 999px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
}

.bcs-distinct-warning .bcs-distinct-bar {
	background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.bcs-distinct-unlocked .bcs-distinct-bar {
	background: #10b981;
}

.bcs-distinct-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.bcs-distinct-msg {
	font-size: 13.5px;
	line-height: 1.5;
	flex: 1;
	min-width: 260px;
}

.bcs-distinct-msg strong {
	color: #0f172a;
}

.bcs-distinct-btn {
	background: #2563eb;
	color: #ffffff !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.2s ease;
	display: inline-block;
}

.bcs-distinct-warning .bcs-distinct-btn {
	background: #d97706;
}

.bcs-distinct-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.bcs-distinct-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.bcs-distinct-body {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.bcs-distinct-btn {
		text-align: center;
		width: 100%;
	}
}

.bcs-single-product-badges {
	margin: 10px 0 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bcs-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 6px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.bcs-badge-single {
	padding: 5px 12px;
	font-size: 13px;
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.bcs-loop-badge-wrap {
	margin-top: 6px;
	margin-bottom: 6px;
}

.bcs-badge-loop {
	padding: 3px 8px;
	font-size: 11px;
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
	border-radius: 4px;
}


/* ==========================================================================
   7. Mobile & Phone Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
	.bcs-single-offer-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px 14px;
	}

	.bcs-sob-btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.bcs-sticky-inner {
		padding: 10px 14px;
		padding-bottom: max(10px, env(safe-area-inset-bottom));
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.bcs-sticky-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		width: 100%;
	}

	.bcs-sticky-text-wrap {
		width: 100%;
		justify-content: space-between;
	}

	.bcs-sticky-msg {
		font-size: 12.5px;
	}

	.bcs-sticky-progress-track {
		width: 110px;
	}

	.bcs-sticky-action {
		width: 100%;
		justify-content: space-between;
	}

	.bcs-sticky-btn {
		flex: 1;
		text-align: center;
		padding: 10px 14px;
		font-size: 12.5px;
	}

	.bcs-archive-offer-card {
		padding: 16px 16px;
		margin-bottom: 20px;
	}

	.bcs-aoc-desc {
		font-size: 13px;
	}

	.bcs-aoc-tracker-text {
		font-size: 12.5px;
	}
}

/* Dual Pool Collection Tabs */
.bcs-archive-pool-tabs {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.bcs-pool-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.85);
	color: #475569;
	border: 1px solid #cbd5e1;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.bcs-pool-tab:hover {
	background: #ffffff;
	color: #0f172a;
	border-color: #94a3b8;
}

.bcs-pool-tab-active {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
	color: #ffffff !important;
	border-color: transparent !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.bcs-pool-tab-active.bcs-pool-tab-free {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.bcs-hero-action-btn {
	display: inline-block;
	background: #059669;
	color: #ffffff !important;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 6px;
	margin-left: 10px;
	text-decoration: none !important;
	font-size: 12px;
	transition: background 0.2s;
}

.bcs-hero-action-btn:hover {
	background: #047857;
}

/* Code7x Product Card Badges Compatibility */
.code7x-pcd-badge-bcs {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.code7x-pcd-badge-bcs-gift {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}
