.thps-share,
.thps-share-modal {
	--thps-share-green: var(--thps-v2-forest, #20351a);
	--thps-share-orange: var(--thps-v2-orange, #c45d22);
	--thps-share-paper: var(--thps-v2-paper, #fffef8);
	--thps-share-line: var(--thps-v2-line, #dcd7c5);
	font-family: var(--thps-v2-font-body, inherit);
	color: var(--thps-share-green);
}
.thps-share { display: inline-flex; margin: 14px 0 0; }
.thps-share--card { flex: 0 0 auto; margin: 0; vertical-align: middle; }
.thps-share--card .thps-share__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.thps-share [hidden], .thps-share-modal[hidden], .thps-share-modal [hidden] { display: none !important; }
.thps-share__trigger,
.thps-share-modal__action,
.thps-share-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	box-sizing: border-box;
	padding: 10px 16px;
	border: 1px solid var(--thps-share-line);
	border-radius: 0;
	background: transparent;
	color: var(--thps-share-green);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.thps-share__trigger { border-color: var(--thps-share-green); }
.thps-share .thps-share__trigger--icon { width: 46px; min-width: 46px; min-height: 46px; height: 46px; padding: 0; border: 1px solid var(--thps-share-orange); background: transparent; color: var(--thps-share-orange); }
.jet-woo-products-cqw-wrapper.thps-share-actions { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px !important; }
.jet-woo-products-cqw-wrapper.thps-share-actions > * { flex: 0 0 46px; min-width: 0 !important; }
body.thcat-catalog-active .thcat-catalog-results .jet-woo-products-cqw-wrapper.thps-share-actions { min-width: 0 !important; max-width: 100%; width: 100% !important; }
.jet-woo-products-cqw-wrapper.thps-share-actions > .thsc-quick-view-button { flex: 1 1 100%; }
.thps-share-card-actions { display: flex; flex: 0 0 auto; grid-column: 1 / -1; gap: 8px; align-items: center; justify-content: flex-end; min-width: 0; margin-top: 12px; }
.thps-share-card-actions > .thps-stock-alert__card-action { margin: 0; }
.thps-v2-home-offer__actions:has(.thps-share-card-actions) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thps-v2-volltreffer-card__bottom:has(.thps-share-card-actions) { flex-wrap: wrap; }
.thps-v2-volltreffer-card__bottom > .thps-share-card-actions { flex-basis: 100%; }
@media (max-width: 620px) {
	.thps-v2-home-offer__actions:has(.thps-share-card-actions) { grid-template-columns: minmax(0, 1fr); }
	.thps-v2-volltreffer-card__bottom:has(.thps-share-card-actions) { flex-wrap: nowrap; }
	.thps-v2-volltreffer-card__bottom > .thps-share-card-actions { flex-basis: auto; width: 100%; }
}
.thps-share__icon { display: block; flex: 0 0 22px; width: 22px; height: 22px; pointer-events: none; }
.thps-share__trigger > .thps-share__icon { color: var(--thps-share-orange); }
.thps-share__trigger:hover,
.thps-share-modal__action:hover,
.thps-share-modal__close:hover { border-color: var(--thps-share-orange); background: var(--thps-share-paper); color: var(--thps-share-green); }
.thps-share__trigger:focus-visible,
.thps-share-modal :is(button, a, input):focus-visible { outline: 3px solid var(--thps-share-orange); outline-offset: 3px; }
body.thps-share-open { overflow: hidden; }
.thps-share-modal { position: fixed; inset: 0; z-index: 100100; display: grid; place-items: center; padding: 20px; box-sizing: border-box; }
.thps-share-modal__backdrop { position: absolute; inset: 0; background: rgb(20 39 18 / 65%); }
.thps-share-modal__panel { position: relative; width: min(100%, 530px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: 32px; border: 1px solid var(--thps-share-line); border-top: 4px solid var(--thps-share-orange); background: var(--thps-share-paper); box-shadow: 0 24px 70px rgb(20 39 18 / 25%); }
.thps-share-modal__close { position: absolute; top: 10px; right: 10px; width: 46px; padding: 10px; border-color: transparent; }
.thps-share-modal__eyebrow { display: block; padding-right: 42px; color: var(--thps-v2-orange-dark, #a94716); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.thps-share-modal__panel h2 { margin: 9px 42px 12px 0; color: var(--thps-share-green); font-family: var(--thps-v2-font-display, inherit); font-size: clamp(25px, 5vw, 32px); font-weight: 700; line-height: 1.2; }
.thps-share-modal__panel p { margin: 0 0 22px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.thps-share-modal__label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.thps-share-modal__link { display: block; width: 100%; min-width: 0; min-height: 46px; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--thps-share-line); border-radius: 0; background: #fff; color: var(--thps-share-green); font: inherit; font-size: 16px; line-height: 1.4; }
.thps-share-modal__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.thps-share-modal__action { width: 100%; min-width: 0; }
.thps-share-modal__action--primary { border-color: var(--thps-share-green); background: var(--thps-share-green); color: #fff; }
.thps-share-modal__action--primary:hover { border-color: var(--thps-v2-orange-dark, #a94716); background: var(--thps-v2-orange-dark, #a94716); color: #fff; }
.thps-share-modal__action--native { grid-column: 1 / -1; }
.thps-share-modal__action:disabled { cursor: wait; opacity: .65; }
.thps-share-modal__panel .thps-share-modal__privacy { margin: 16px 0 0; color: #596152; font-size: 12px; }
.thps-share-modal__panel .thps-share-modal__status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; font-weight: 700; }
@media (max-width: 420px) {
	.thps-share-modal { padding: 12px; }
	.thps-share-modal__panel { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 25px 18px 18px; }
	.thps-share-modal__actions { grid-template-columns: 1fr; }
	.thps-share__trigger { width: 100%; }
}
@media (forced-colors: active) {
	.thps-share-modal__panel { border: 2px solid CanvasText; }
	.thps-share-modal__backdrop { background: Canvas; opacity: .8; }
}

/* Keep catalog actions together without shrinking touch targets.
 * Existing button heights, colors and interaction styles remain in their modules.
 */
body.thcat-catalog-active .thcat-catalog-results .hovered-content:has(> .jet-woo-products-cqw-wrapper.thps-share-actions) {
	display: flex !important;
	flex: 0 0 auto !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 14px !important;
	min-width: 0 !important;
	margin-top: auto !important;
}

body.thcat-catalog-active .thcat-catalog-results .hovered-content:has(> .jet-woo-products-cqw-wrapper.thps-share-actions) > .jet-woo-product-button {
	flex: 0 1 190px !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
}

body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions {
	display: flex !important;
	flex: 0 1 384px !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	align-self: center !important;
	justify-content: flex-start !important;
	gap: 8px !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	container-type: inline-size;
	container-name: thps-catalog-actions;
}

body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > * {
	flex: 0 0 48px !important;
	width: 48px !important;
	min-width: 48px !important;
	max-width: 48px !important;
	align-self: center !important;
	justify-content: center !important;
	margin: 0 !important;
}

body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > .thsc-quick-view-button {
	order: 1;
	flex: 0 0 160px !important;
	width: auto !important;
	min-width: 160px !important;
	max-width: 160px !important;
}
body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > .jet-wishlist-button__container { order: 2; }
body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > .thps-stock-alert__card-action { order: 3; }
body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > [data-thps-share-slot] { order: 4; }
body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > .jet-compare-button__container { order: 5; }
body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > [hidden] { display: none !important; }

/* 160px quick view + four 48px icons + four 8px gaps need 384px.
 * Below that, quick view owns the first row; the icons stay together below it.
 */
@container thps-catalog-actions (width < 384px) {
	body.thcat-catalog-active .thcat-catalog-results .hovered-content > .jet-woo-products-cqw-wrapper.thps-share-actions > .thsc-quick-view-button {
		flex: 1 1 100% !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
	}
}
