/**
 * Frontend Styles for Tequila Black November.
 * Clean, warm coffee/gold aesthetic (zero purple/violet).
 */

/* Cart & Checkout Progress Card (Harmonized with Tequila Café Dark Roast, Gold, Black & White Identity) */
.tequila-bn-progress-card {
	background: #26150a;
	background: linear-gradient(145deg, #2d180c 0%, #1a0c05 100%);
	border: 1px solid rgba(212, 175, 55, 0.35);
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 24px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 235, 175, 0.15);
	box-sizing: border-box;
}

.progress-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.progress-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: #ffffff;
	font-weight: 700;
}

.progress-title strong {
	color: #ffffff;
	letter-spacing: 0.3px;
}

.progress-title .week-pill {
	background: rgba(212, 175, 55, 0.16);
	color: #f5dfa3;
	border: 1px solid rgba(212, 175, 55, 0.35);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.current-tier-text {
	display: inline-block;
	background: rgba(212, 175, 55, 0.18);
	color: #ffe58f;
	border: 1px solid rgba(212, 175, 55, 0.45);
	font-weight: 700;
	font-size: 13px;
	padding: 5px 12px;
	border-radius: 6px;
	text-shadow: 0 0 6px rgba(212, 175, 55, 0.35);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Motivation Text */
.progress-motivation p {
	margin: 0 0 16px 0;
	font-size: 14px;
	color: #d6cac0;
	line-height: 1.5;
}

.progress-motivation .next-step strong {
	color: #ffe58f;
	font-weight: 700;
	text-shadow: 0 0 6px rgba(212, 175, 55, 0.25);
}

.progress-motivation .congrats {
	color: #81c784;
	font-size: 15px;
}

.progress-motivation .congrats strong {
	color: #a5d6a7;
}

.progress-motivation .shipping-alert {
	display: inline-block;
	margin-left: 8px;
	color: #ffe58f;
	font-weight: 700;
}

/* Progress Bar */
.progress-bar-container {
	height: 12px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(212, 175, 55, 0.22);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 14px;
	position: relative;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #c5a059 0%, #d4af37 50%, #2e7d32 100%);
	border-radius: 5px;
	transition: width 0.4s ease-in-out;
	box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* Milestones */
.progress-milestones {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: relative;
	gap: 6px;
}

.progress-milestones .milestone {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1 1 0;
	padding: 0 2px;
}

.progress-milestones .bullet {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #472c1b;
	border: 2px solid rgba(212, 175, 55, 0.25);
	margin-bottom: 6px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.progress-milestones .milestone.reached .bullet {
	background: #d4af37;
	border-color: #ffe58f;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35), 0 0 10px rgba(212, 175, 55, 0.6);
}

.progress-milestones .label {
	font-size: 11px;
	font-weight: 500;
	color: #a89585;
	line-height: 1.25;
	transition: color 0.25s ease;
}

.progress-milestones .milestone.reached .label {
	color: #ffe58f;
	font-weight: 700;
	text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Cart Item Table Enhancements */
.tequila-bn-item-regular {
	color: #999999;
	font-size: 0.9em;
	margin-right: 4px;
}

.tequila-bn-item-sale {
	color: #2e7d32;
	font-weight: 700;
	text-decoration: none;
}

.tequila-bn-item-badge {
	display: inline-block;
	background: #eef6ec;
	color: #2e7d32;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 4px;
	vertical-align: middle;
}

/* Shipping Notice Badge */
.tequila-bn-shipping-notice-row th {
	padding: 12px 0 !important;
}

.tequila-bn-shipping-badge {
	background: #e8f4fd;
	border: 1px solid #b8dafb;
	color: #0c4a6e;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.tequila-bn-shipping-badge strong {
	color: #0284c7;
	font-size: 14px;
}

/* Checkout Quantity Modifier (Matched to Tequila Café Cart Drawer Layout) */
.tequila-bn-checkout-qty-container {
	display: block !important;
	margin-top: 6px !important;
	margin-bottom: 4px !important;
	clear: both !important;
}

.tequila-bn-checkout-qty-wrapper {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	height: 30px !important;
	width: 92px !important;
	min-width: 92px !important;
	max-width: 92px !important;
	border: 1px solid rgba(212, 197, 181, 0.45) !important;
	border-radius: 4px !important;
	overflow: hidden !important;
	background: rgba(0, 0, 0, 0.2) !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	vertical-align: middle !important;
	transition: opacity 0.2s ease, border-color 0.2s ease !important;
}

.tequila-bn-checkout-qty-wrapper:hover {
	border-color: rgba(212, 197, 181, 0.8) !important;
}

.tequila-bn-checkout-qty-wrapper.is-loading {
	opacity: 0.4 !important;
	pointer-events: none !important;
}

.tequila-bn-checkout-qty-wrapper .tequila-bn-qty-btn {
	flex: 0 0 28px !important;
	width: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	height: 28px !important;
	background: transparent !important;
	color: #e5dcd3 !important;
	border: none !important;
	border-radius: 0 !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 28px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease !important;
}

.tequila-bn-checkout-qty-wrapper .tequila-bn-qty-btn:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #ffffff !important;
}

.tequila-bn-checkout-qty-wrapper .tequila-bn-qty-btn:active {
	background: rgba(255, 255, 255, 0.2) !important;
}

.tequila-bn-checkout-qty-wrapper .tequila-bn-qty-input {
	flex: 1 1 34px !important;
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 28px !important;
	line-height: 28px !important;
	border: none !important;
	border-left: 1px solid rgba(212, 197, 181, 0.35) !important;
	border-right: 1px solid rgba(212, 197, 181, 0.35) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-align: center !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	-moz-appearance: textfield !important;
}

.tequila-bn-checkout-qty-wrapper .tequila-bn-qty-input:focus {
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.tequila-bn-checkout-qty-wrapper .tequila-bn-qty-input::-webkit-outer-spin-button,
.tequila-bn-checkout-qty-wrapper .tequila-bn-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

@media (max-width: 600px) {
	.progress-card-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.current-tier-text {
		align-self: flex-start;
	}
	.progress-milestones .label {
		font-size: 9.5px;
	}
}

/* ==========================================================================
   GLOBAL BLACK NOVEMBER STICKY ANNOUNCEMENT BAR (BELOW MENU)
   Espresso/Black Background with Fine Metallic Gold & Breathing Glow
   ========================================================================== */

.tequila-bn-top-bar {
	position: sticky;
	top: 0;
	z-index: 9998;
	width: 100%;
	background: #0d0b0a;
	background: linear-gradient(180deg, #171310 0%, #0d0b0a 100%);
	border-top: 1px solid rgba(212, 175, 55, 0.22);
	border-bottom: 1px solid rgba(212, 175, 55, 0.35);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 235, 175, 0.12);
	font-family: inherit;
	box-sizing: border-box;
}

/* WordPress Admin Bar Compatibility */
.admin-bar .tequila-bn-top-bar {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .tequila-bn-top-bar {
		top: 46px;
	}
}

.tequila-bn-bar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
}

/* Brand Section */
.tequila-bn-brand-tag {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.tequila-bn-brand-tag .bn-flame {
	font-size: 16px;
	line-height: 1;
	filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}

.tequila-bn-brand-tag .bn-title {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #d4af37;
	background: linear-gradient(90deg, #d4af37 0%, #fff2be 50%, #d4af37 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: tequilaGoldShimmer 4s linear infinite;
	white-space: nowrap;
}

.tequila-bn-brand-tag .bn-week-tag {
	background: rgba(212, 175, 55, 0.14);
	color: #f5dfa3;
	border: 1px solid rgba(212, 175, 55, 0.35);
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

/* Levels Track (5 Levels side by side) */
.tequila-bn-levels-track {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1;
}

.tequila-bn-level-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(212, 175, 55, 0.22);
	border-radius: 6px;
	transition: all 0.22s ease-in-out;
	cursor: default;
	white-space: nowrap;
}

.tequila-bn-level-item:hover {
	border-color: rgba(212, 175, 55, 0.6);
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-1px);
}

.tequila-bn-level-item .bn-lvl-label {
	font-size: 11px;
	font-weight: 700;
	color: #d4af37;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tequila-bn-level-item .bn-lvl-range {
	font-size: 11px;
	color: #c4baa9;
	font-weight: 500;
}

.tequila-bn-level-item .bn-lvl-discount {
	font-size: 11.5px;
	font-weight: 800;
	color: #ffffff;
	background: rgba(212, 175, 55, 0.2);
	border: 1px solid rgba(212, 175, 55, 0.32);
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: 0.3px;
}

/* Mini Tag for Best Sellers or Maximum */
.tequila-bn-level-item .bn-badge-flag {
	position: absolute;
	top: -7px;
	right: 6px;
	background: #c5a059;
	color: #0d0b0a;
	font-size: 8px;
	font-weight: 800;
	padding: 1px 5px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.2;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Active Level (Matches User's Cart Items) */
.tequila-bn-level-item.is-current {
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(140, 91, 54, 0.28) 100%);
	border-color: #d4af37;
	animation: tequilaGoldPulse 2.2s ease-in-out infinite;
}

.tequila-bn-level-item.is-current .bn-lvl-label {
	color: #ffe58f;
	text-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

.tequila-bn-level-item .bn-active-badge {
	background: #2e7d32;
	color: #ffffff;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 5px;
	border-radius: 3px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

/* CTA Button */
.tequila-bn-bar-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, #d4af37 0%, #aa8022 100%);
	color: #0d0b0a !important;
	font-size: 11px;
	font-weight: 800;
	padding: 6px 14px;
	border-radius: 20px;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
	transition: all 0.2s ease;
}

.tequila-bn-bar-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(212, 175, 55, 0.6);
	color: #000000 !important;
}

/* Animations */
@keyframes tequilaGoldShimmer {
	0% {
		background-position: -200% center;
	}
	100% {
		background-position: 200% center;
	}
}

@keyframes tequilaGoldPulse {
	0%, 100% {
		box-shadow: 0 0 8px rgba(212, 175, 55, 0.35), inset 0 0 6px rgba(212, 175, 55, 0.15);
		border-color: rgba(212, 175, 55, 0.85);
	}
	50% {
		box-shadow: 0 0 18px rgba(212, 175, 55, 0.75), inset 0 0 12px rgba(212, 175, 55, 0.35);
		border-color: #f5dfa3;
	}
}

/* Mobile & Tablet Responsiveness */
@media screen and (max-width: 1080px) {
	.tequila-bn-bar-inner {
		flex-wrap: wrap;
		justify-content: center;
		padding: 6px 12px;
	}
	.tequila-bn-levels-track {
		order: 2;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		justify-content: flex-start;
		padding: 4px 4px 6px 4px;
		scroll-snap-type: x mandatory;
	}
	.tequila-bn-levels-track::-webkit-scrollbar {
		display: none;
	}
	.tequila-bn-level-item {
		flex: 0 0 auto;
		scroll-snap-align: center;
	}
	.tequila-bn-brand-tag {
		order: 1;
	}
	.tequila-bn-bar-cta {
		order: 1;
		padding: 4px 10px;
		font-size: 10px;
	}
}

@media screen and (max-width: 640px) {
	.tequila-bn-brand-tag .bn-title {
		font-size: 11.5px;
	}
	.tequila-bn-bar-cta {
		display: none;
	}
}

