/**
 * WebBundl Smart Offers - Storefront Styles
 * Theme-independent, responsive, lightweight.
 */

.wb-smart-offer-notice-wrap {
	display: block;
	width: 100%;
	clear: both;
}

.wb-smart-offer-notice {
	display: block;
	margin: 16px 0;
	padding: 16px 18px;
	background: var(--wb-notice-bg, #ffffff);
	border: 1px solid var(--wb-notice-border, #e2e8f0);
	border-radius: 12px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	box-sizing: border-box;
	transition: all 0.3s ease;
	clear: both;
}

.wb-smart-offer-notice * {
	box-sizing: border-box;
}

/* Header */
.wb-notice-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.wb-notice-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: var(--wb-badge-bg, #eff6ff);
	color: var(--wb-badge-color, #2563eb);
	font-size: 12px;
	font-weight: 700;
	border-radius: 20px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wb-badge-svg {
	display: inline-block;
	vertical-align: middle;
	color: inherit;
}

.wb-notice-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--wb-inactive-text, #0f172a);
	line-height: 1.3;
}

/* Tiers Grid */
.wb-tiers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.wb-tier-pill {
	background: var(--wb-inactive-bg, #f8fafc);
	border: 1.5px solid var(--wb-inactive-border, #e2e8f0);
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
	transition: all 0.2s ease-in-out;
	cursor: default;
}

.wb-tier-pill:hover {
	border-color: #cbd5e1;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.wb-tier-pill.wb-tier-active {
	background: var(--wb-active-bg, #f0fdf4);
	border-color: var(--wb-active-border, #22c55e);
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.wb-tier-qty {
	font-size: 12px;
	font-weight: 600;
	color: var(--wb-inactive-text, #64748b);
	text-transform: uppercase;
	margin-bottom: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.wb-tier-active .wb-tier-qty {
	color: var(--wb-active-text, #15803d);
}

/* Bold, clearly visible (+) icon in quantity tier pills */
.wb-tier-plus {
	display: inline-block;
	font-weight: 900;
	font-size: 13.5px;
	line-height: 1;
	margin-left: 2px;
	color: var(--wb-badge-color, #2563eb);
	vertical-align: baseline;
}

.wb-tier-active .wb-tier-plus {
	color: var(--wb-active-text, #15803d);
}

.wb-tier-discount {
	font-size: 14px;
	font-weight: 700;
	color: var(--wb-inactive-text, #0f172a);
}

.wb-tier-active .wb-tier-discount {
	color: var(--wb-active-text, #166534);
}

/* Progress Box */
.wb-notice-progress-box {
	background: var(--wb-progress-bg, #f8fafc);
	border-left: 3.5px solid var(--wb-progress-fill, #22c55e);
	border-radius: 8px;
	padding: 12px 14px;
	transition: all 0.3s ease;
}

.wb-notice-progress-box.wb-unlocked {
	background: var(--wb-active-bg, #f0fdf4);
	border-left-color: var(--wb-active-border, #22c55e);
}

.wb-progress-msg {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wb-progress-text, #1e293b);
	margin-bottom: 8px;
	line-height: 1.4;
}

.wb-notice-progress-box.wb-unlocked .wb-progress-msg {
	color: var(--wb-active-text, #166534);
}

.wb-progress-bar-wrap {
	width: 100%;
	height: 7px;
	background: #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
}

.wb-progress-bar {
	height: 100%;
	background: var(--wb-progress-fill, #22c55e);
	border-radius: 6px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wb-notice-progress-box.wb-unlocked .wb-progress-bar {
	background: var(--wb-active-border, #22c55e);
}

/* Ensure WooCommerce / WoodMart Single Product Quantity (+ / -) Buttons Are Crisp & Distinct */
.single-product .quantity .plus,
.single-product .quantity .minus,
.single-product div.quantity input.plus,
.single-product div.quantity input.minus,
.single-product .quantity button.plus,
.single-product .quantity button.minus {
	opacity: 1 !important;
	color: #0f172a !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	visibility: visible !important;
}

/* Cart & Checkout Line Price Display */
.wb-cart-price-wrap,
.wb-cart-subtotal-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wb-regular-price,
.wb-regular-subtotal {
	color: #94a3b8 !important;
	font-size: 0.88em !important;
	text-decoration: line-through !important;
}

.wb-discounted-price,
.wb-discounted-subtotal {
	color: #16a34a !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

.wb-cart-offer-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	background: #dcfce7;
	color: #15803d;
	border-radius: 4px;
	padding: 2px 6px;
	width: fit-content;
	margin-top: 4px;
}

.wb-subtotal-saved {
	font-size: 11.5px;
	font-weight: 600;
	color: #16a34a;
}

/* Savings Row in Totals Table */
.wb-smart-offers-savings-row th {
	color: #166534 !important;
}

.wb-smart-offers-savings-row .wb-savings-amount {
	color: #16a34a !important;
	font-weight: 700 !important;
}

.wb-savings-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.wb-tiers-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.wb-smart-offer-notice {
		padding: 14px 14px;
	}
}
