/* Cart drawer. Scoped so it does not restyle the header icon, which also uses .ph-cart. */

.pheronia-cart {
	--ph-green: var(--e-global-color-primary, #144130);
	--ph-night: var(--e-global-color-secondary, #0a2a1e);
	--ph-gold: var(--e-global-color-accent, #cba85f);
	--ph-ivory: var(--e-global-color-ivory, #f4efe4);
	--ph-ground: #faf8f3;
	--ph-ground-2: #f4efe4;
	--ph-text: var(--e-global-color-text, #1f221f);
	--ph-text-2: var(--e-global-color-muted, #5a5f59);
	--ph-text-3: #7c817b;
	--ph-line: #e2dbcb;
	--ph-line-2: var(--e-global-color-line, #d1c8b4);
	--ph-gold-14: rgba(203, 168, 95, 0.14);
	--ph-gold-50: rgba(203, 168, 95, 0.5);
	--ph-sage-soft: #e3eae1;
	--ph-r-xl: 28px;
	--ph-r-l: 20px;
	--ph-r-m: 16px;
	--ph-r-s: 12px;
	--ph-r-pill: 999px;
	--ph-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ph-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ph-t: 0.32s;
	--ph-t-fast: 0.18s;
	--ph-t-slow: 0.56s;
	--ph-font-display: "Fraunces Text", var(--e-global-typography-primary-font-family), var(--e-global-typography-secondary-font-family), Georgia, "Times New Roman", serif;
	--ph-font-body: Inter, var(--e-global-typography-text-font-family), -apple-system, "Helvetica Neue", Arial, sans-serif;
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	font-family: var(--ph-font-body);
	letter-spacing: 0.6px;
	color: var(--ph-text);
}

.pheronia-cart .ph-cart {
	position: absolute;
	inset: 0;
}

.pheronia-cart .ph-cart__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 42, 30, 0.4);
	opacity: 0;
	transition: opacity var(--ph-t) var(--ph-ease);
	backdrop-filter: blur(4px);
}

.pheronia-cart .ph-cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(440px, 100%);
	display: flex;
	flex-direction: column;
	background: var(--ph-ground);
	background-image: linear-gradient(180deg, rgba(227, 234, 225, 0.55), transparent 220px);
	color: var(--ph-text);
	border-radius: var(--ph-r-xl) 0 0 var(--ph-r-xl);
	box-shadow: 0 48px 90px -40px rgba(20, 65, 48, 0.45);
	overflow: hidden;
	transform: translate3d(104%, 0, 0);
	transition: transform var(--ph-t-slow) var(--ph-ease-out);
}

.pheronia-cart.is-open {
	pointer-events: auto;
}

.pheronia-cart.is-open .ph-cart__overlay {
	opacity: 1;
}

.pheronia-cart.is-open .ph-cart__panel {
	transform: none;
}

.pheronia-cart #ph-cart-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.pheronia-cart .ph-cart__griff {
	display: none;
	width: 40px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 2px;
	background: var(--ph-line-2);
}

.pheronia-cart .ph-cart__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 12px;
}

.pheronia-cart .ph-cart__titel {
	margin: 0;
	font-family: var(--ph-font-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.15;
	font-optical-sizing: auto;
}

.pheronia-cart .ph-cart__titel small {
	display: block;
	margin-top: 2px;
	font-family: var(--ph-font-body);
	font-weight: 400;
	font-size: 12px;
	line-height: 1.15;
	color: var(--ph-text-2);
}

.pheronia-cart .ph-cart__zu {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ph-ground-2);
	color: var(--ph-green);
	cursor: pointer;
}

.pheronia-cart .ph-cart__zu svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.pheronia-cart .ph-cart__inhalt {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	padding: 0 20px 16px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.pheronia-cart .ph-cart__fuss {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
	background: var(--ph-ground);
	box-shadow: 0 -12px 30px -24px rgba(20, 65, 48, 0.4);
}

.pheronia-cart .ph-frei {
	padding: 12px 14px;
	border-radius: var(--ph-r-l);
	background: var(--ph-ground-2);
}

.pheronia-cart .ph-frei__text {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	color: var(--ph-text-2);
	font-size: 13px;
}

.pheronia-cart .ph-frei__text b {
	font-weight: 500;
	color: var(--ph-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pheronia-cart .ph-frei__linie {
	position: relative;
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--ph-ground);
}

.pheronia-cart .ph-frei__linie i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--ph-frei, 0%);
	border-radius: 3px;
	background: linear-gradient(90deg, var(--ph-green), var(--ph-gold));
	transition: width 0.7s var(--ph-ease-out);
}

.pheronia-cart .ph-frei.ist-frei {
	background: var(--ph-gold-14);
	box-shadow: inset 0 0 0 1px var(--ph-gold-50);
}

.pheronia-cart .ph-frei.ist-frei .ph-frei__text {
	color: var(--ph-green);
}

.pheronia-cart .ph-cart__liste {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pheronia-cart .ph-pos {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 12px;
	align-items: start;
	padding: 10px;
	border-radius: var(--ph-r-l);
	background: var(--ph-ground-2);
}

.pheronia-cart .ph-pos.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.pheronia-cart .ph-pos__media {
	display: block;
}

.pheronia-cart .ph-pos .ph-img,
.pheronia-cart .ph-pos img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--ph-r-m);
	background: var(--ph-sage-soft);
}

.pheronia-cart .ph-pos__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pheronia-cart .ph-pos__name {
	color: inherit;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}

.pheronia-cart .ph-pos__var {
	color: var(--ph-text-2);
	font-size: 13px;
}

.pheronia-cart .ph-pos__einheit {
	color: var(--ph-text-3);
	font-size: 12px;
}

.pheronia-cart .ph-pos__zeile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
}

.pheronia-cart .ph-pos__preis {
	font-weight: 500;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pheronia-cart .ph-pos__preis s,
.pheronia-cart .ph-pos__preis del {
	margin-right: 6px;
	color: var(--ph-text-3);
	font-weight: 400;
	font-size: 12px;
}

.pheronia-cart .ph-stepper {
	display: inline-flex;
	align-items: center;
	border-radius: var(--ph-r-pill);
	background: var(--ph-ground);
	box-shadow: inset 0 0 0 1px var(--ph-line);
}

.pheronia-cart .ph-stepper button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ph-green);
	cursor: pointer;
}

.pheronia-cart .ph-stepper button svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.pheronia-cart .ph-stepper input {
	width: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.pheronia-cart .ph-stepper input::-webkit-outer-spin-button,
.pheronia-cart .ph-stepper input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.pheronia-cart .ph-pos__entfernen {
	align-self: flex-start;
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: var(--ph-text-3);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.pheronia-cart .ph-cart__trust {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: var(--ph-text-2);
	font-size: 13px;
	line-height: 1.4;
}

.pheronia-cart .ph-cart__trust svg {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	fill: none;
	stroke: var(--ph-green);
	stroke-width: 1.8;
}

.pheronia-cart .ph-cart__notiz summary {
	color: var(--ph-text-2);
	font-size: 13px;
	cursor: pointer;
	list-style: none;
}

.pheronia-cart .ph-cart__notiz summary::-webkit-details-marker {
	display: none;
}

.pheronia-cart .ph-cart__notiz textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 70px;
	margin-top: 8px;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--ph-r-s);
	background: var(--ph-ground-2);
	color: var(--ph-text);
	font: inherit;
	font-size: 14px;
	resize: vertical;
}

.pheronia-cart .ph-summen {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--ph-text-2);
	font-size: 13px;
}

.pheronia-cart .ph-summen div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.pheronia-cart .ph-summen b {
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.pheronia-cart .ph-summen .ist-gesamt {
	padding-top: 6px;
	color: var(--ph-text);
	font-size: 18px;
	font-weight: 500;
}

.pheronia-cart .ph-summen .ist-frei b {
	color: var(--ph-green);
}

.pheronia-cart .ph-cart__code {
	margin: 0;
	color: var(--ph-text-3);
	font-size: 12px;
	text-align: center;
}

.pheronia-cart .ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--ph-r-pill);
	background: var(--ph-green);
	color: var(--ph-ivory);
	box-shadow: 0 12px 28px -14px rgba(20, 65, 48, 0.55);
	font-family: var(--ph-font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--ph-t-fast) var(--ph-ease), transform var(--ph-t-fast) var(--ph-ease);
}

.pheronia-cart .ph-btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.pheronia-cart .ph-btn:hover {
	background: var(--ph-night);
	color: var(--ph-ivory);
	transform: translateY(-1px);
}

.pheronia-cart .ph-btn--cta {
	width: 100%;
	min-height: 56px;
	font-size: 14px;
}

.pheronia-cart .ph-cart__leer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 0;
}

.pheronia-cart .ph-cart__leer h3 {
	margin: 0;
	font-family: var(--ph-font-display);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.3;
	font-optical-sizing: auto;
}

.pheronia-cart .ph-cart__leer p {
	margin: 0;
	color: var(--ph-text-2);
	font-size: 13.5px;
	line-height: 1.6;
}

.pheronia-cart .ph-cart__leer .ph-btn {
	font-size: 12px;
	font-weight: 550;
	letter-spacing: 1.2px;
}

.pheronia-cart .ph-cart__fehler {
	margin: 0 20px 8px;
	padding: 8px 12px;
	border-radius: var(--ph-r-s);
	background: rgba(138, 59, 46, 0.08);
	color: #8a3b2e;
	font-size: 13px;
}

.pheronia-cart .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.elementor-element-phcart01 .elementor-icon {
	position: relative;
}

.ph-cart-count {
	position: absolute;
	top: -2px;
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--e-global-color-accent, #cba85f);
	color: var(--e-global-color-secondary, #0a2a1e);
	font-family: var(--e-global-typography-text-font-family), Jost, sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.ph-cart-count[hidden] {
	display: none;
}

@media (max-width: 599px) {
	.pheronia-cart .ph-cart__panel {
		top: auto;
		right: 0;
		left: 0;
		width: auto;
		max-height: 92svh;
		border-radius: var(--ph-r-xl) var(--ph-r-xl) 0 0;
		transform: translate3d(0, 104%, 0);
	}

	.pheronia-cart.is-open .ph-cart__panel {
		transform: none;
	}

	.pheronia-cart .ph-cart__griff {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pheronia-cart .ph-cart__overlay,
	.pheronia-cart .ph-cart__panel,
	.pheronia-cart .ph-frei__linie i,
	.pheronia-cart .ph-btn {
		transition: none;
	}
}
