/* Horizon Sticky CTA — Scoped Frontend Styles */
.hcta-root,
.hcta-root *,
.hcta-root *::before,
.hcta-root *::after {
	box-sizing: border-box;
}

.hcta-root {
	position: fixed !important;
	z-index: 99990 !important;
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.3;
	--hcta-tx: 0px;
	--hcta-ty: -50%;
	transform: translate3d(var(--hcta-tx), var(--hcta-ty), 0);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s ease;
	will-change: transform;
}

.hcta-root.hcta-valign-center {
	top: calc(50% + var(--hcta-offset, 0px));
	bottom: auto;
	--hcta-ty: -50%;
}

.hcta-root.hcta-valign-top {
	top: calc(16px + var(--hcta-offset, 0px));
	bottom: auto;
	--hcta-ty: 0px;
}

body.admin-bar .hcta-root.hcta-valign-top {
	top: calc(48px + var(--hcta-offset, 0px));
}

.hcta-root.hcta-valign-bottom {
	top: auto;
	bottom: calc(16px - var(--hcta-offset, 0px));
	--hcta-ty: 0px;
}

.hcta-root.hcta-pos-right {
	right: 0;
	left: auto;
}

.hcta-root.hcta-pos-left {
	left: 0;
	right: auto;
}

/* Responsive visibility */
@media screen and (min-width: 1025px) {
	.hcta-root.hcta-sticky.hcta-show-desktop {
		display: flex !important;
	}
	.hcta-root.hcta-floating.hcta-show-desktop {
		display: block !important;
	}
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
	.hcta-root.hcta-sticky.hcta-show-tablet {
		display: flex !important;
		width: min(92vw, var(--hcta-tablet-width, 440px));
	}
	.hcta-root.hcta-floating.hcta-show-tablet {
		display: block !important;
	}
}

@media screen and (max-width: 767px) {
	.hcta-root.hcta-sticky.hcta-show-mobile {
		display: flex !important;
		width: min(92vw, var(--hcta-mobile-width, 340px));
	}
	.hcta-root.hcta-floating.hcta-show-mobile {
		display: block !important;
	}
}

/* JS Trigger / Hide state */
.hcta-root.hcta-trigger-pending,
.hcta-root.hcta-is-hidden {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.hcta-root.hcta-is-visible {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

/* ================================
   Sticky CTA (Tab + Slide-out Card)
   ================================ */
.hcta-sticky {
	align-items: stretch;
	width: min(92vw, var(--hcta-width, 525px));
	max-height: 90vh;
}

.hcta-sticky.hcta-pos-right.hcta-collapsed {
	--hcta-tx: calc(100% - var(--hcta-tab-width, 52px));
}

.hcta-sticky.hcta-pos-left.hcta-collapsed {
	--hcta-tx: calc(-100% + var(--hcta-tab-width, 52px));
}

.hcta-sticky.hcta-shadow .hcta-tab,
.hcta-sticky.hcta-shadow .hcta-panel {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.hcta-sticky .hcta-tab {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: var(--hcta-tab-width, 52px);
	padding: 18px 8px;
	margin: 0;
	border: 0;
	cursor: pointer;
	background-color: var(--hcta-tab-bg, #ff7600);
	color: var(--hcta-tab-color, #ffffff);
	font-family: var(--hcta-tab-font, 'Open Sans', sans-serif);
	font-weight: var(--hcta-tab-weight, 800);
	font-size: var(--hcta-tab-size, 30px);
	line-height: 1.1;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	border-radius: var(--hcta-radius, 5px) 0 0 var(--hcta-radius, 5px);
}

.hcta-sticky.hcta-pos-left .hcta-tab {
	order: 2;
	border-radius: 0 var(--hcta-radius, 5px) var(--hcta-radius, 5px) 0;
}

.hcta-sticky .hcta-tab:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: -3px;
}

.hcta-sticky .hcta-tab-label {
	display: block;
	white-space: nowrap;
	writing-mode: vertical-lr;
}

.hcta-sticky .hcta-close {
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 22px;
	line-height: 20px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0.85;
}

.hcta-sticky .hcta-close:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.2);
}

.hcta-sticky .hcta-panel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	text-decoration: none !important;
	background-color: var(--hcta-content-bg, #3644af);
	color: var(--hcta-content-color, #ffffff);
}

.hcta-sticky .hcta-image-wrap {
	width: 100%;
	height: var(--hcta-img-height, 200px);
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.hcta-sticky .hcta-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.hcta-sticky .hcta-content {
	padding: var(--hcta-content-padding, 14px 24px);
	background-color: var(--hcta-content-bg, #3644af);
	color: var(--hcta-content-color, #ffffff);
	font-family: var(--hcta-content-font, 'Open Sans', sans-serif);
	font-weight: var(--hcta-content-weight, 800);
	font-style: var(--hcta-content-style, italic);
	font-size: var(--hcta-content-size, 23px);
	line-height: 1.3;
	overflow-y: auto;
}

.hcta-sticky .hcta-content p {
	margin: 0 !important;
	padding: 0 !important;
	color: inherit;
	font: inherit;
}

.hcta-sticky .hcta-sep {
	margin: 0 !important;
	border: 0 !important;
	height: 2px;
	background-color: var(--hcta-sep-color, #ffffff);
}

.hcta-sticky .hcta-action {
	padding: 12px 24px;
	background-color: var(--hcta-action-bg, #1b7ccc);
	color: var(--hcta-action-color, #ffffff);
	font-family: var(--hcta-content-font, 'Open Sans', sans-serif);
	font-size: var(--hcta-action-size, 18px);
	font-weight: 700;
}

/* ================================
   Floating Buttons
   ================================ */
.hcta-floating.hcta-pos-right {
	--hcta-tx: calc(100% - var(--hcta-btn-width, 50px));
}

.hcta-floating.hcta-pos-left {
	--hcta-tx: calc(-100% + var(--hcta-btn-width, 50px));
}

.hcta-floating:hover,
.hcta-floating:focus-within,
.hcta-floating.hcta-open {
	--hcta-tx: 0px;
}

.hcta-floating .hcta-floating-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hcta-floating .hcta-floating-item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: var(--hcta-bg, #ff7600);
	color: var(--hcta-color, #ffffff);
	border-radius: var(--hcta-radius, 5px) 0 0 var(--hcta-radius, 5px);
	overflow: hidden;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hcta-floating.hcta-pos-left .hcta-floating-item {
	border-radius: 0 var(--hcta-radius, 5px) var(--hcta-radius, 5px) 0;
}

.hcta-floating.hcta-shadow .hcta-floating-item {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.hcta-floating .hcta-floating-item:hover {
	background-color: var(--hcta-bg-hover, #e06600);
	color: var(--hcta-color-hover, #ffffff);
}

.hcta-floating .hcta-floating-link {
	display: flex;
	align-items: center;
	min-height: var(--hcta-btn-width, 50px);
	color: inherit !important;
	text-decoration: none !important;
	font-family: var(--hcta-font, 'Open Sans', sans-serif);
	font-size: var(--hcta-font-size, 16px);
	font-weight: 600;
	white-space: nowrap;
}

.hcta-floating.hcta-pos-left .hcta-floating-link {
	flex-direction: row-reverse;
}

.hcta-floating .hcta-floating-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--hcta-btn-width, 50px);
	height: var(--hcta-btn-width, 50px);
	flex: 0 0 auto;
}

.hcta-floating .hcta-floating-icon svg {
	width: var(--hcta-icon-size, 22px);
	height: var(--hcta-icon-size, 22px);
	display: block;
}

.hcta-floating .hcta-floating-label {
	padding-inline-end: 18px;
	padding-inline-start: 2px;
}

.hcta-floating.hcta-pos-left .hcta-floating-label {
	padding-inline-start: 18px;
	padding-inline-end: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.hcta-root,
	.hcta-floating .hcta-floating-item {
		transition: none !important;
	}
}
