/* Base UI */
:root {
	--min-eb-bg: rgba(255, 255, 255, 0.9);
	--min-eb-border: rgba(34, 197, 94, 0.25);
	--min-eb-primary: #15803d;
	--min-eb-accent: #22c55e;
	--min-eb-shadow: 0 20px 40px rgba(12, 83, 33, 0.18);
	--min-eb-radius: 20px;
	--min-eb-text: #0f2f1a;
	--min-eb-subtle: #1f4b2e;
}

#min-eb-widget {
	position: relative;
	background: var(--min-eb-bg);
	border: 1px solid var(--min-eb-border);
	box-shadow: var(--min-eb-shadow);
	backdrop-filter: blur(12px);
	border-radius: 24px;
	padding: 20px;
	color: var(--min-eb-text);
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.min-eb-toggle {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}

.min-eb-tab {
	border: 1px solid var(--min-eb-border);
	background: rgba(255, 255, 255, 0.6);
	border-radius: var(--min-eb-radius);
	padding: 12px 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.min-eb-tab.is-active {
	background: linear-gradient(120deg, var(--min-eb-primary), var(--min-eb-accent));
	color: #fff;
	box-shadow: 0 10px 24px rgba(21, 128, 61, 0.35);
}

.min-eb-panel {
	margin-top: 10px;
}

.min-eb-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(34, 197, 94, 0.1);
	color: var(--min-eb-primary);
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	letter-spacing: 0.5px;
}

.min-eb-btn,
.min-eb-btn-primary {
	border: none;
	cursor: pointer;
	border-radius: 14px;
	padding: 12px 16px;
	font-weight: 700;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.min-eb-btn {
	background: #e6f4eb;
	color: var(--min-eb-text);
}

.min-eb-btn.ghost {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--min-eb-border);
}

.min-eb-btn-primary {
	background: linear-gradient(120deg, var(--min-eb-primary), var(--min-eb-accent));
	color: #fff;
	box-shadow: 0 12px 24px rgba(21, 128, 61, 0.28);
}

.min-eb-btn:hover,
.min-eb-btn-primary:hover {
	transform: translateY(-1px);
}

.min-eb-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.min-eb-muted {
	color: var(--min-eb-subtle);
}

.min-eb-shell.is-open {
	animation: min-eb-fade 0.25s ease;
}

@keyframes min-eb-fade {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.min-eb-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.min-eb-product-card {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid var(--min-eb-border);
	border-radius: 16px;
	box-shadow: 0 12px 20px rgba(12, 83, 33, 0.08);
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.min-eb-product-card .img {
	width: 100%;
	height: 150px;
	border-radius: 12px;
	background: #e6f4eb center/cover no-repeat;
}

.min-eb-product-card h4 {
	margin: 0;
	font-size: 15px;
}

.min-eb-product-card .price {
	font-weight: 700;
	color: var(--min-eb-primary);
}

.min-eb-summary-card {
	border: 1px solid var(--min-eb-border);
	border-radius: 18px;
	background: rgba(240, 253, 244, 0.9);
	padding: 16px;
	margin-top: 16px;
}

.min-eb-summary-list {
	list-style: none;
	padding: 0;
	margin: 12px 0;
}

.min-eb-summary-list li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px dashed #e2e8f0;
}

.min-eb-summary-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

@media (max-width: 640px) {
	#min-eb-widget {
		position: fixed;
		bottom: 80px;
		right: 12px;
		left: 12px;
		z-index: 9999;
	}
}
