/*
 * FSE OS product dock
 *
 * Canonical geometry for the sticky commercial row on public product pages.
 * Product-specific content stays in the renderer; this file owns layout,
 * responsive compression and interaction states.
 */

body.fse-os-product-template .fse-os-product-sticky-dock {
	--fse-ui-control-height-large: 44px;
	position: sticky;
	top: 0;
	z-index: 95;
	width: 100%;
	height: 84px !important;
	min-height: 84px !important;
	background: var(--fse-ui-color-surface, #fff);
	border: 0;
	border-bottom: 1px solid var(--fse-ui-color-ink, #111);
	box-shadow: none;
}

body.admin-bar.fse-os-product-template .fse-os-product-sticky-dock {
	top: 32px;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__actions {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: center !important;
	gap: clamp(16px, 2vw, 32px) !important;
	box-sizing: border-box !important;
	width: 100% !important;
	height: 84px !important;
	min-height: 84px !important;
	margin: 0 !important;
	padding: 12px clamp(24px, 6vw, 120px) !important;
	background: transparent !important;
	border: 0 !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: baseline !important;
	gap: 8px !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	white-space: nowrap !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price-label,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__status {
	align-self: baseline !important;
	margin: 0 !important;
	font: 500 11px/1 Inter, Arial, sans-serif !important;
	letter-spacing: .08em !important;
	text-transform: uppercase;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price strong {
	display: block !important;
	margin: 0 !important;
	font: 700 clamp(26px, 2.1vw, 32px)/1 Blinker, Inter, Arial, sans-serif !important;
	letter-spacing: -.025em;
	white-space: nowrap !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-preorder-hero__final,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-preorder-hero__next {
	display: none !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__actions-links {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 8px !important;
	min-width: 0;
	height: 44px !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	overflow: visible !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-offer-card__button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	box-sizing: border-box !important;
	width: auto !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 17px !important;
	color: var(--fse-ui-color-ink, #111) !important;
	background: var(--fse-ui-color-surface, #fff) !important;
	border: 1px solid var(--fse-ui-color-ink, #111) !important;
	border-radius: var(--fse-ui-radius-control, 999px) !important;
	font: 700 12px/1 Inter, Arial, sans-serif !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	text-transform: none !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	transform: none !important;
	translate: none !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:hover,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:focus-visible {
	color: var(--fse-ui-color-ink, #111) !important;
	background: var(--fse-ui-color-muted, #f5f5f2) !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy:not(.fse-os-dock-action),
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy form {
	display: contents !important;
	margin: 0 !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy.fse-os-dock-action,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-offer-card__button {
	color: #fff !important;
	background: var(--fse-ui-color-commerce, #22c55e) !important;
	border-color: var(--fse-ui-color-commerce, #22c55e) !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy.fse-os-dock-action:hover,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy.fse-os-dock-action:focus-visible,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-offer-card__button:hover,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-offer-card__button:focus-visible {
	color: #fff !important;
	background: #16a34a !important;
	border-color: #16a34a !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-favorite {
	flex: 0 0 44px !important;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	padding: 0 !important;
	color: var(--fse-ui-color-ink, #111) !important;
	background: var(--fse-ui-color-surface, #fff) !important;
	border-color: var(--fse-ui-color-ink, #111) !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-favorite > span:not(.fse-favorite-toggle__icon) {
	display: none !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-favorite.is-active {
	color: #fff !important;
	background: #ef4b2c !important;
	border-color: #ef4b2c !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-favorite .fse-favorite-toggle__icon,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-favorite .fse-favorite-toggle__icon svg {
	width: 21px !important;
	height: 21px !important;
	flex: 0 0 21px !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:hover .fse-os-dock-icon--bot,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:focus-visible .fse-os-dock-icon--bot {
	animation: fse-dock-bot .52s cubic-bezier(.22, 1, .36, 1) both;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:hover .fse-os-dock-icon--layout rect,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:focus-visible .fse-os-dock-icon--layout rect {
	transform-box: fill-box;
	transform-origin: center;
	animation: fse-dock-layout .42s cubic-bezier(.22, 1, .36, 1) both;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:hover .fse-os-dock-icon--layout rect:nth-child(2),
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:focus-visible .fse-os-dock-icon--layout rect:nth-child(2) { animation-delay: .04s; }
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:hover .fse-os-dock-icon--layout rect:nth-child(3),
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:focus-visible .fse-os-dock-icon--layout rect:nth-child(3) { animation-delay: .08s; }
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:hover .fse-os-dock-icon--layout rect:nth-child(4),
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:focus-visible .fse-os-dock-icon--layout rect:nth-child(4) { animation-delay: .12s; }

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:hover .fse-os-dock-icon--badge-check,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-action:focus-visible .fse-os-dock-icon--badge-check,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-offer-card__button:hover .fse-os-dock-icon--badge-check,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-offer-card__button:focus-visible .fse-os-dock-icon--badge-check {
	animation: fse-dock-badge .48s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes fse-dock-bot {
	0%, 100% { transform: translateY(0) rotate(0); }
	42% { transform: translateY(-2px) rotate(-4deg); }
	72% { transform: translateY(0) rotate(3deg); }
}

@keyframes fse-dock-layout {
	0% { transform: scale(.72); opacity: .45; }
	100% { transform: scale(1); opacity: 1; }
}

@keyframes fse-dock-badge {
	0%, 100% { transform: scale(1) rotate(0); }
	48% { transform: scale(1.16) rotate(-7deg); }
}

html body.postid-26298.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price,
html body.postid-26298.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__status {
	align-items: flex-end !important;
	align-self: flex-end !important;
}

body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-demo { order: 1 !important; }
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-plans { order: 2 !important; }
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy,
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-offer-card__button { order: 3 !important; }
body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-favorite { order: 4 !important; }

@media (max-width: 782px) {
	body.admin-bar.fse-os-product-template .fse-os-product-sticky-dock {
		top: 46px;
	}
}

@media (max-width: 680px) {
	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-product-public-hero__actions {
		grid-template-columns: auto minmax(0, 1fr) !important;
		gap: 10px !important;
		padding: 8px 12px !important;
	}

	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price {
		gap: 5px !important;
	}

	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price-label,
	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__status {
		font-size: 9px !important;
		letter-spacing: .05em !important;
	}

	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price strong {
		font-size: 24px !important;
	}

	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-product-public-hero__actions-links {
		gap: 6px !important;
		width: 100% !important;
		overflow: visible !important;
	}

	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-product-public-hero__actions .fse-os-product-public-hero__actions-links .fse-os-dock-action.fse-os-dock-demo,
	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-product-public-hero__actions .fse-os-product-public-hero__actions-links .fse-os-dock-action.fse-os-dock-plans {
		flex: 0 0 44px !important;
		width: 44px !important;
		min-width: 44px !important;
		padding: 0 !important;
	}

	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-demo .fse-os-dock-action__label,
	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-plans .fse-os-dock-action__label {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}

	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-product-public-hero__actions .fse-os-product-public-hero__actions-links .fse-os-dock-buy.fse-os-dock-action,
	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-offer-card__button {
		padding-inline: 13px !important;
	}
}

@media (max-width: 420px) {
	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price-label,
	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__status {
		display: none !important;
	}

	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-product-public-hero__price strong {
		font-size: 22px !important;
	}

	body.fse-os-product-template .fse-os-product-sticky-dock:not(:has(.fse-os-dock-demo)) .fse-os-product-public-hero__price-label,
	body.fse-os-product-template .fse-os-product-sticky-dock:not(:has(.fse-os-dock-demo)) .fse-os-product-public-hero__status {
		display: inline !important;
	}
}

@media (max-width: 340px) {
	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-product-public-hero__actions .fse-os-product-public-hero__actions-links .fse-os-dock-buy.fse-os-dock-action,
	html body.fse-os-product-template article.fse-os-product-template__article .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-offer-card__button {
		flex: 0 0 44px !important;
		width: 44px !important;
		min-width: 44px !important;
		padding: 0 !important;
	}

	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-buy .fse-os-dock-action__label {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-icon,
	body.fse-os-product-template .fse-os-product-sticky-dock .fse-favorite-toggle__icon,
	body.fse-os-product-template .fse-os-product-sticky-dock .fse-os-dock-icon--layout rect {
		animation: none !important;
	}
}
