/* =====================================================
   Mine rabatter – discount list
   Color philosophy:
   - Text: never override. Let everything inherit from Astra's body/heading styles.
   - Borders: var(--ast-border-color) from Astra.
   - Accent: var(--ast-global-color-0) — the site's own brand color.
   - Badges only: semantic green/gray (these are UI status indicators, not typography).
   ===================================================== */

/* List reset – fight theme bullet styles */
ul.nordglaze-discounts {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ── Single card ── */
.nordglaze-discount-item {
	border: 1px solid var(--ast-border-color, #e2e2e2);
	border-left: 4px solid var(--ast-global-color-0, #333);
	border-radius: 0 6px 6px 0;
	padding: 14px 18px 12px;
	transition: box-shadow .15s ease;
}

.nordglaze-discount-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

/* ── Header: name left, badge right ── */
.nordglaze-discount-item__header {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.nordglaze-discount-item__name {
	font-weight: 600;
	line-height: 1.3;
	/* color: inherits from Astra body text */
}

/* ── Combine badges — only place with explicit colors ── */
.nordglaze-discount-item__combine {
	display: inline-block;
	font-size: .7em;
	font-weight: 500;
	letter-spacing: .02em;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
}

.nordglaze-discount-item__combine--yes {
	background: #dcfce7;
	color: #166534;
}

.nordglaze-discount-item__combine--no {
	background: #f1f5f9;
	color: #475569;
}

/* ── Body ── */
.nordglaze-discount-item__body {
	font-size: .9em;
	/* color: inherits */
}

.nordglaze-discount-item__content p {
	margin: 0 0 4px;
}

/* ── Meta (scope · exclusions · date): secondary feel via opacity ── */
.nordglaze-discount-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 5px;
	font-size: .85em;
	opacity: .6;
}

.nordglaze-discount-item__meta > span + span::before {
	content: " · ";
}

/* ── Bulk pricing tiers ── */
.nordglaze-discount-tiers {
	border-collapse: collapse;
	width: auto !important;
	min-width: 180px;
	margin: 6px 0 4px;
	font-size: .9em;
}

.nordglaze-discount-tiers th,
.nordglaze-discount-tiers td {
	padding: 3px 24px 3px 0 !important;
	text-align: left !important;
	border: none !important;
	background: transparent !important;
}

.nordglaze-discount-tiers th:first-child,
.nordglaze-discount-tiers td:first-child {
	padding-left: 8px !important;
}

.nordglaze-discount-tiers thead th {
	font-size: .8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .55;
	border-bottom: 1px solid var(--ast-border-color, #e2e2e2) !important;
	padding-bottom: 5px !important;
}
