/* ==========================================================================
   DP Slide-Cart — Drawer im Design des Checkouts
   ========================================================================== */

.dp-sc {
	--dp-accent: #f68622;
	--dp-accent-tint: #fdf1e4;
	--dp-text: #1a1a1a;
	--dp-muted: #707070;
	--dp-border: #dedede;
	--dp-border-strong: #b8b8b8;
	--dp-error: #c0392b;
	--dp-radius: 8px;

	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--dp-text);
}

.dp-sc * {
	box-sizing: border-box;
}

.dp-sc__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.25s;
}

.dp-sc__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(470px, 92vw);
	background: #fff;
	transform: translateX(103%);
	transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.14);
	display: flex;
}

.dp-sc--open {
	pointer-events: auto;
}

.dp-sc--open .dp-sc__overlay {
	opacity: 1;
}

.dp-sc--open .dp-sc__panel {
	transform: none;
}

body.dp-sc-lock {
	overflow: hidden;
}

.dp-sc--loading .dp-sc__body,
.dp-sc--loading .dp-sc__footer {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s;
}

/* --- Aufbau ---------------------------------------------------------- */

.dp-sc__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.dp-sc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 18px;
	border-bottom: 1px solid var(--dp-border);
	flex-shrink: 0;
}

.dp-sc__title {
	font-size: 16px;
	font-weight: 700;
}

.dp-sc__close {
	border: none;
	background: none;
	font-size: 24px;
	line-height: 1;
	color: var(--dp-muted);
	cursor: pointer;
	padding: 2px 6px;
}

.dp-sc__close:hover {
	color: var(--dp-text);
}

.dp-sc__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px 18px;
}

.dp-sc__footer {
	border-top: 1px solid var(--dp-border);
	padding: 13px 18px 16px;
	flex-shrink: 0;
	background: #fff;
}

.dp-sc__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 3px 0;
	font-size: 14px;
}

.dp-sc__row--muted {
	color: var(--dp-muted);
	font-size: 13px;
}

.dp-sc__hint {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--dp-muted);
}

.dp-sc__btn {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #1a1a1a;
	border-radius: var(--dp-radius);
	transition: opacity 0.12s;
}

.dp-sc__btn:hover {
	opacity: 0.85;
}

/* Theme-/Breakdance-Linkfarben übersteuern die Buttons sonst —
   alle Link-Zustände explizit festnageln. */
.dp-sc a.dp-sc__btn,
.dp-sc a.dp-sc__btn:link,
.dp-sc a.dp-sc__btn:visited,
.dp-sc a.dp-sc__btn:hover,
.dp-sc a.dp-sc__btn:focus,
.dp-sc a.dp-sc__btn:active {
	color: #fff !important;
	text-decoration: none !important;
}

.dp-sc__btn--ghost {
	background: transparent;
	border: 1px solid var(--dp-accent);
}

.dp-sc a.dp-sc__btn--ghost,
.dp-sc a.dp-sc__btn--ghost:link,
.dp-sc a.dp-sc__btn--ghost:visited {
	color: var(--dp-accent) !important;
}

.dp-sc a.dp-sc__btn--ghost:hover,
.dp-sc a.dp-sc__btn--ghost:focus {
	color: #fff !important;
	background: var(--dp-accent);
	opacity: 1;
}

.dp-sc__empty {
	text-align: center;
	padding: 40px 10px;
	color: var(--dp-muted);
}

/* Quick-Reorder-Karte im Leerzustand */
.dp-sc__reorder-card {
	background: #fafafa;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 16px;
	margin: 18px 0 12px;
	text-align: center;
}

.dp-sc__reorder-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--dp-text);
	margin-bottom: 4px;
}

.dp-sc__reorder-meta {
	font-size: 13px;
	color: var(--dp-muted);
	margin-bottom: 12px;
}

.dp-sc button.dp-sc__btn {
	border: none;
	cursor: pointer;
	font-family: inherit;
	color: #fff;
}

.dp-sc button.dp-sc__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.dp-sc__notice {
	background: #fdf1e4;
	border: 1px solid #f8d3ae;
	border-radius: var(--dp-radius);
	padding: 10px 12px;
	font-size: 12.5px;
	margin-bottom: 12px;
}

/* Bestellvorlagen im Leerzustand */
.dp-sc__tpl {
	text-align: left;
	margin-bottom: 12px;
}

.dp-sc__tpl .dp-sc__reorder-title {
	text-align: center;
	margin-bottom: 8px;
}

.dp-sc__tpl-load {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 6px;
	background: #fff;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.12s;
}

.dp-sc__tpl-load:hover {
	border-color: var(--dp-accent);
}

.dp-sc__tpl-load:disabled {
	opacity: 0.6;
	cursor: wait;
}

.dp-sc__tpl-name {
	font-weight: 600;
	color: var(--dp-text);
}

.dp-sc__tpl-meta {
	color: var(--dp-muted);
	font-size: 12px;
	white-space: nowrap;
}

/* "Als Vorlage speichern" unter dem Kassen-Button */
.dp-sc__save-tpl {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 4px;
	border: none;
	background: none;
	font: inherit;
	font-size: 12.5px;
	color: var(--dp-muted);
	text-decoration: underline;
	cursor: pointer;
}

.dp-sc__save-tpl:hover {
	color: var(--dp-text);
}

/* --- Gratisversand-Bar ------------------------------------------------ */

.dp-sc .dp-fsb {
	padding: 9px 12px;
	margin-bottom: 14px;
	background: #fff8f2;
	border: 1px solid #f8d3ae;
	border-radius: var(--dp-radius);
}

.dp-sc .dp-fsb__row {
	margin-bottom: 6px;
}

.dp-sc .dp-fsb--done .dp-fsb__row {
	margin-bottom: 0;
}

.dp-sc .dp-fsb__text {
	font-size: 12.5px;
	line-height: 1.35;
}

.dp-sc .dp-fsb__track {
	height: 6px;
	background: #f3e3d3;
	border-radius: 3px;
	overflow: hidden;
}

.dp-sc .dp-fsb__fill {
	height: 100%;
	background: var(--dp-accent);
	border-radius: 3px;
	transition: width 0.4s ease;
}

.dp-sc .dp-fsb--done {
	border-color: #bfe0c5;
	background: #f2faf3;
}

.dp-sc .dp-fsb--done .dp-fsb__text {
	color: #1e7233;
	font-weight: 600;
}

.dp-sc .dp-fsb__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #1e7233;
	color: #fff;
	font-size: 10px;
	margin-right: 3px;
	vertical-align: text-bottom;
}

/* --- Positionen (gleiches Markup wie der Checkout-Mini-Warenkorb) ----- */

.dp-sc .dp-mini-cart__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	color: var(--dp-muted);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--dp-border);
}

/* Warenkorb komplett leeren — bewusst dezent */
.dp-sc .dp-cart-clear {
	border: none;
	background: none;
	padding: 0;
	font: inherit;
	font-size: 12px;
	color: var(--dp-muted);
	text-decoration: underline;
	cursor: pointer;
}

.dp-sc .dp-cart-clear:hover {
	color: var(--dp-error);
}

.dp-sc .dp-mini-cart__items {
	max-height: none;
	overflow: visible;
}

.dp-sc .dp-mini-cart__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 10px;
	padding: 9px 0;
}

.dp-sc .dp-mini-cart__item + .dp-mini-cart__item {
	border-top: 1px solid #ececec;
}

.dp-sc .dp-mini-cart__thumb {
	position: relative;
}

.dp-sc .dp-mini-cart__thumb img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--dp-border);
	background: #fff;
	display: block;
}

.dp-sc .dp-mini-cart__badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: rgba(60, 60, 60, 0.92);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
}

.dp-sc .dp-mini-cart__name {
	display: block;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.3;
}

.dp-sc .dp-mini-cart__info .variation {
	font-size: 11px;
	color: var(--dp-muted);
	margin: 1px 0 0;
	display: block;
	line-height: 1.4;
}

.dp-sc .dp-mini-cart__info .variation dt {
	display: none;
}

.dp-sc .dp-mini-cart__info .variation dd,
.dp-sc .dp-mini-cart__info .variation p {
	display: inline;
	margin: 0;
	font-weight: 400;
}

.dp-sc .dp-mini-cart__info .variation dd + dd::before {
	content: "\00B7\00A0";
}

.dp-sc .dp-mini-cart__price {
	font-weight: 500;
	font-size: 13px;
	text-align: right;
	white-space: nowrap;
}

.dp-sc .dp-mini-cart__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.dp-sc .dp-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--dp-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.dp-sc .dp-qty button {
	width: 26px;
	height: 26px;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	color: var(--dp-text);
	padding: 0;
	transition: color 0.12s, background 0.12s;
}

.dp-sc .dp-qty button:hover {
	color: #fff;
	background: var(--dp-accent);
}

.dp-sc .dp-qty .dp-qty-input {
	width: 34px;
	height: 26px;
	border: none;
	border-left: 1px solid #ececec;
	border-right: 1px solid #ececec;
	border-radius: 0;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	padding: 0;
	-moz-appearance: textfield;
	caret-color: transparent;
	cursor: default;
	background: #fff;
	color: var(--dp-text);
}

.dp-sc .dp-qty .dp-qty-input::-webkit-outer-spin-button,
.dp-sc .dp-qty .dp-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.dp-sc .dp-item-remove {
	border: none;
	background: none;
	padding: 0 4px;
	font-size: 16px;
	line-height: 1;
	color: var(--dp-muted);
	cursor: pointer;
}

.dp-sc .dp-item-remove:hover {
	color: var(--dp-error);
}

.dp-sc .dp-mini-cart__qty-single {
	font-size: 13px;
	color: var(--dp-muted);
}

/* --- VPE+1-Aktion (z. B. 10+1): Gratis-Sorten-Picker + Gratiszeilen ------ */

.dp-free-offer {
	border: 1px solid #bfe0c5;
	background: #f2faf3;
	border-radius: 8px;
	padding: 10px 12px;
	margin: 10px 0;
}

.dp-free-offer--teaser {
	border-style: dashed;
	font-size: 12.5px;
	color: #1e7233;
	line-height: 1.4;
}

.dp-free-offer__title {
	font-weight: 700;
	color: #1e7233;
	font-size: 13px;
	margin-bottom: 2px;
}

.dp-free-offer__text {
	font-size: 12.5px;
	color: #1e7233;
	margin-bottom: 8px;
	line-height: 1.4;
}

.dp-free-offer__controls {
	display: flex;
	gap: 6px;
}

.dp-free-offer .dp-free-pick-select {
	flex: 1;
	min-width: 0;
	padding: 7px 8px;
	border: 1px solid #bfe0c5;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
	color: inherit;
}

.dp-free-offer .dp-free-pick-btn {
	border: none;
	background: #1e7233;
	color: #fff;
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.dp-free-offer .dp-free-pick-btn:hover {
	background: #175a28;
}

.dp-free-offer .dp-free-pick-btn:disabled {
	opacity: 0.6;
	cursor: default;
}


.dp-mini-cart__item--free {
	background: #f2faf3;
}
/* Aktionsprodukt: grüner Hintergrund über die gesamte Drawer-Breite
   (Bleed bis an die Ränder = seitliches Padding von .dp-sc__body). */
.dp-sc .dp-mini-cart__item--free {
	margin-left: -18px;
	margin-right: -18px;
	padding: 9px 18px;
	border-radius: 0;
}

.dp-mini-cart__free-note {
	font-size: 12px;
	color: #1e7233;
	line-height: 1.3;
}

.dp-free-aktion {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #1e7233;
	color: #fff;
	border-radius: 6px;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}


.dp-mini-cart__gratis {
	color: #1e7233;
	font-weight: 700;
}

/* Aktions-Hinweis auf der Produktseite */
.dp-free-offer-badge {
	border: 2px solid #1e7233;
	background: #f2faf3;
	color: #14532d;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Pfand (automatische Pfand-Zeile + Kennzeichnungen)
   -------------------------------------------------------------------------- */

.dp-mini-cart__item--pfand {
	background: #f7faf7;
	border-radius: 8px;
	padding-left: 6px;
	padding-right: 6px;
}

.dp-pfand-label {
	font-size: 12px;
	font-weight: 600;
	color: #1e7233;
}

.dp-mini-cart__pfandnote {
	display: block;
	font-size: 11px;
	color: #1e7233;
	margin-top: 1px;
}

.dp-pfand-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 4px 0;
	font-size: 13px;
	color: #707070;
}

.dp-pfand-total:empty {
	display: none;
	padding: 0;
}

.dp-pfand-total__amount {
	font-weight: 500;
	color: #1a1a1a;
	white-space: nowrap;
}

/* Mengen-Badges am Thumbnail in der Slide-Cart ausblenden */
.dp-sc .dp-mini-cart__badge {
	display: none;
}

/* Pfand-Zeile: grüner Hintergrund über die gesamte Drawer-Breite
   (Bleed bis an die Ränder = seitliches Padding von .dp-sc__body). */
.dp-sc .dp-mini-cart__item--pfand {
	margin-left: -18px;
	margin-right: -18px;
	padding: 9px 18px;
	border-radius: 0;
}

/* Sitewide "NEU"-Badges (dp-neu-corner) haben in der Slide-Cart nichts verloren */
.dp-sc .dp-neu-corner {
	display: none !important;
}
