/*
 * Produktaktionen (Gratis-Zugabe, Halber Preis, seit 2.20.0): Hinweise über den
 * Positionen, Badges, Preise; Hinweise bei Produkten und Kaufleisten. Nur geladen,
 * wenn das Plugin-Modul aktiv ist (inc/class-oaschwossa-promotions.php). Jeder
 * Selektor beginnt mit .sirupe-site bzw. .oaschwossa-page (Sortenseiten).
 * Farben mit mindestens 4,5:1 Kontrast (PFLEGE.md).
 */

/* ---------- Hinweise über den Positionen (Stil wie der Versandbalken) ---------- */

.sirupe-site.sirupe-kasse .sirupe-promo-notices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice {
	padding: 16px 24px;
	border-radius: 24px;
	background: var(--s-surface);
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice--done {
	background: #fbe6c9;
	color: #6e3500;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__name {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__text {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__text a:not(.sirupe-promo-notice__btn) {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__note {
	font-weight: 400;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin-top: 10px;
	padding: 8px 18px;
	border-radius: var(--s-radius-pill);
	background: var(--s-ink);
	color: #ffffff;
	font-size: 15px;
	text-decoration: none;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__btn:hover,
.sirupe-site.sirupe-kasse .sirupe-promo-notice__btn:focus-visible {
	background: #3d342b;
	color: #ffffff;
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__bar {
	height: 10px;
	margin-top: 12px;
	overflow: hidden;
	border-radius: var(--s-radius-pill);
	background: rgba(29, 26, 22, 0.1);
}

.sirupe-site.sirupe-kasse .sirupe-promo-notice__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #b84a06;
}

/* ---------- Positionen ---------- */

.sirupe-site.sirupe-kasse .sirupe-promo-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 10px;
	border-radius: var(--s-radius-pill);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.sirupe-site.sirupe-kasse .sirupe-promo-badge--gift {
	background: #2f5d2a;
	color: #ffffff;
}

.sirupe-site.sirupe-kasse .sirupe-promo-badge--half {
	background: #b3123a;
	color: #ffffff;
}

.sirupe-site.sirupe-kasse .sirupe-promo-free {
	color: #2f5d2a;
	font-weight: 700;
}

.sirupe-site.sirupe-kasse .sirupe-promo-was {
	color: var(--s-ink-soft);
	font-weight: 400;
}

.sirupe-site.sirupe-kasse .sirupe-promo-was .amount {
	color: inherit;
}

.sirupe-site.sirupe-kasse .sirupe-promo-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 14px;
	border: 2px solid var(--s-line);
	border-radius: var(--s-radius-pill);
	font-weight: 700;
}

/* ---------- Hinweise bei Produkten und Kaufleisten ---------- */

.sirupe-site .sirupe-promo-hint {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: 16px;
	background: #fbe6c9;
	color: #5c2c00;
	font-size: 15px;
	line-height: 1.45;
}

.sirupe-site .sirupe-promo-hint[hidden],
.oaschwossa-page .sirupe-promo-hint[hidden],
.sirupe-site .sirupe-promo-hint__limit[hidden],
.oaschwossa-page .sirupe-promo-hint__limit[hidden] {
	display: none;
}

.sirupe-site .sirupe-promo-hint__line,
.sirupe-site .sirupe-promo-hint__limit,
.oaschwossa-page .sirupe-promo-hint__line,
.oaschwossa-page .sirupe-promo-hint__limit {
	margin: 0;
}

.sirupe-site .sirupe-promo-hint__line + .sirupe-promo-hint__line,
.oaschwossa-page .sirupe-promo-hint__line + .sirupe-promo-hint__line {
	margin-top: 6px;
}

.sirupe-site .sirupe-promo-hint__tag,
.oaschwossa-page .sirupe-promo-hint__tag {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sirupe-site .sirupe-promo-hint .amount {
	color: inherit;
	font-weight: 700;
}

.sirupe-site .sirupe-promo-hint__limit,
.oaschwossa-page .sirupe-promo-hint__limit {
	margin-top: 8px;
	font-weight: 700;
}

/* Oaschwossa-Sortenseiten (dunkel) */
.oaschwossa-page .sirupe-promo-hint {
	margin: 12px 0 0;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--oas-radius, 12px);
	background: rgba(255, 255, 255, 0.08);
	color: var(--oas-text, #ffffff);
	font-size: 0.95rem;
	line-height: 1.45;
}

.oaschwossa-page .sirupe-promo-hint strong,
.oaschwossa-page .sirupe-promo-hint .amount {
	color: inherit;
	font-weight: 700;
}

/* ---------- Kasse: Bestellübersicht und Aktionscode ---------- */

.sirupe-site.sirupe-kasse .sirupe-ro-item__text .sirupe-promo-badge {
	align-self: flex-start;
	margin-top: 4px;
	font-size: 12px;
}

.sirupe-site.sirupe-kasse .sirupe-promo-code {
	color: #2f5d2a;
	font-weight: 700;
}

.sirupe-site.sirupe-kasse .sirupe-promo-code-hint {
	display: block;
	margin-top: 4px;
	color: var(--s-ink-soft);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

/* Bestellübersicht: alter Preis über dem neuen, damit die Preisspalte schmal bleibt
   (sonst bricht der Name am Handy mitten im Wort um). */
.sirupe-site.sirupe-kasse .woocommerce-checkout-review-order-table .product-total .sirupe-promo-was {
	display: block;
	font-size: 13px;
	line-height: 1.2;
}
