/**
 * Stickshop Austria – Hinweis „Zum Warenkorb hinzugefügt“ (Box im Stil der Kasse)
 * Job: WEB-J004. Siehe inc/warenkorb-hinweis.php
 * Wird auf allen Seiten geladen; alle Regeln hängen an .ss-hinzugefuegt bzw. an der
 * WooCommerce-Meldung, die eine .ss-hinzugefuegt enthält. Andere Meldungen bleiben unverändert.
 */

@font-face {
	font-family: 'Noto Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../../fonts/noto-sans-latin-wght-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Noto Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../../fonts/noto-sans-latin-ext-wght-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Rahmen: die WooCommerce-Meldung wird zur schwebenden Box ---------- */
html .woocommerce-message:has(.ss-hinzugefuegt) {
	position: fixed !important;
	top: 24px !important;
	right: 24px !important;
	bottom: auto !important;
	left: auto !important;
	z-index: 100000;
	width: 400px !important;
	max-width: calc(100vw - 32px);
	margin: 0 !important;
	padding: 20px !important;
	border: 1px solid #e6e8eb !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: 0 2px 4px rgba(17, 24, 39, .06), 0 20px 48px rgba(17, 24, 39, .18);
	color: #212121 !important;
	font-family: 'Noto Sans', Arial, sans-serif;
	font-size: 14px !important;
	line-height: 1.45;
	text-align: left !important;
	animation: ss-einblenden .25s ease-out;
}
body.admin-bar .woocommerce-message:has(.ss-hinzugefuegt) {
	top: 56px !important;
}
.woocommerce-message:has(.ss-hinzugefuegt)::before,
.woocommerce-message:has(.ss-hinzugefuegt)::after {
	display: none !important; /* WooCommerce-Häkchen-Symbol */
}
.woocommerce-message.ss-hinzugefuegt--zu {
	display: none !important;
}
@keyframes ss-einblenden {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.woocommerce-message:has(.ss-hinzugefuegt) { animation: none; }
}

.ss-hinzugefuegt,
.ss-hinzugefuegt * {
	font-family: 'Noto Sans', Arial, sans-serif;
	box-sizing: border-box;
}

/* ---------- Kopfzeile ---------- */
.ss-hinzugefuegt .ss-hinzugefuegt__titel {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 40px 16px 0;
	padding: 0;
	color: #212121;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.ss-hinzugefuegt__haken {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #0b7c83 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ss-hinzugefuegt__zu {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: #4b5563;
	cursor: pointer;
}
.ss-hinzugefuegt__zu::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	margin: auto;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ss-hinzugefuegt__zu:hover {
	background: #f3f4f6;
	color: #212121;
}
.ss-hinzugefuegt__zu:focus-visible,
.ss-hinzugefuegt__weiter:focus-visible,
.ss-hinzugefuegt__warenkorb:focus-visible {
	outline: 2px solid #0b7c83;
	outline-offset: 2px;
}

/* ---------- Produkt ---------- */
.ss-hinzugefuegt__produkt {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid #eef0f2;
	border-bottom: 1px solid #eef0f2;
}
.ss-hinzugefuegt .ss-hinzugefuegt__bild {
	flex: none;
	width: 72px !important;
	height: 72px !important;
	margin: 0 !important;
	object-fit: cover;
	border: 1px solid #eef0f2;
	border-radius: 8px;
}
.ss-hinzugefuegt__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.ss-hinzugefuegt__name {
	color: #212121;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}
.ss-hinzugefuegt__details {
	color: #4b5563;
	font-size: 13px;
	line-height: 1.45;
}
.ss-hinzugefuegt__preis {
	margin-top: 2px;
	color: #212121;
	font-size: 14px;
	font-weight: 700;
}
.ss-hinzugefuegt__preis .woocommerce-Price-amount {
	font-weight: 700;
}

/* ---------- Fortschritt Gratis-Geschenk (kompakt) ---------- */
.ss-hinzugefuegt .ss-ziel {
	margin: 14px 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}
.ss-hinzugefuegt .ss-ziel__text {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	color: #212121;
	font-size: 13.5px;
	line-height: 1.4;
}
.ss-hinzugefuegt .ss-ziel__icon {
	flex: none;
	width: 20px;
	height: 20px;
	background-color: #0b7c83;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8v12'/%3E%3Cpath d='M12 8c-1.5-3-5-3.5-5-1.2C7 8 9 8 12 8zM12 8c1.5-3 5-3.5 5-1.2C17 8 15 8 12 8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8v12'/%3E%3Cpath d='M12 8c-1.5-3-5-3.5-5-1.2C7 8 9 8 12 8zM12 8c1.5-3 5-3.5 5-1.2C17 8 15 8 12 8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ss-hinzugefuegt .ss-ziel__balken {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #e6e8eb;
}
.ss-hinzugefuegt .ss-ziel__balken > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #10b0b9, #0b7c83);
}
.ss-hinzugefuegt .ss-ziel--erreicht .ss-ziel__text {
	color: #0b6a70;
	font-weight: 700;
}

/* ---------- Buttons ---------- */
.ss-hinzugefuegt__knoepfe {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 16px;
}
.woocommerce-message .ss-hinzugefuegt a.ss-hinzugefuegt__warenkorb {
	display: block;
	position: static !important;
	float: none !important;
	width: 100%;
	margin: 0 !important;
	padding: 13px 18px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #0b7c83 !important;
	box-shadow: 0 6px 16px rgba(11, 124, 131, .25);
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
}
.woocommerce-message .ss-hinzugefuegt a.ss-hinzugefuegt__warenkorb:hover {
	background: #095f65 !important;
}
.ss-hinzugefuegt__weiter {
	width: 100%;
	margin: 0;
	padding: 11px 18px;
	border: 1.5px solid #0b7c83;
	border-radius: 10px;
	background: #fff;
	color: #0b7c83;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}
.ss-hinzugefuegt__weiter:hover {
	background: #f0fafb;
}

/* ---------- Handy: oben, volle Breite (unten liegt das Trusted-Shops-Siegel) ---------- */
@media (max-width: 767px) {
	.woocommerce-message:has(.ss-hinzugefuegt),
	body.admin-bar .woocommerce-message:has(.ss-hinzugefuegt) {
		top: 12px !important;
		right: 12px !important;
		bottom: auto !important;
		left: 12px !important;
		width: auto !important;
		max-width: none;
		max-height: calc(100vh - 24px);
		overflow-y: auto;
		padding: 18px !important;
	}
	.ss-hinzugefuegt .ss-hinzugefuegt__bild {
		width: 64px !important;
		height: 64px !important;
	}
}

