/* BHB Info Icon – Frontend Styles */
.bhb-info-icon-widget {
	--bhb-panel-width: min(380px, calc(100vw - 32px));
	font-family: var(--bhb-font-family, inherit);
	font-size: var(--bhb-font-size, 16px);
	line-height: 1.55;
	color: var(--bhb-text-color, #2f241d);
	z-index: 9999;
}

.bhb-info-icon-widget * {
	box-sizing: border-box;
}

.bhb-info-icon-widget[hidden],
.bhb-info-icon-widget [hidden] {
	display: none !important;
}

.bhb-info-icon-widget a {
	color: inherit;
}

.bhb-context-global {
	position: fixed;
}

.bhb-context-global.bhb-position-bottom-left {
	left: 24px;
	bottom: 24px;
}

.bhb-context-global.bhb-position-bottom-right {
	right: 24px;
	bottom: 24px;
}

.bhb-context-global.bhb-position-middle-left {
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.bhb-context-global.bhb-position-middle-right {
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.bhb-context-inline,
.bhb-context-preview {
	position: relative;
	display: block;
	max-width: 420px;
	margin: 1rem 0;
}

.bhb-context-preview {
	margin: 0;
}

.bhb-info-icon-shell {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.bhb-context-inline .bhb-info-icon-shell,
.bhb-context-preview .bhb-info-icon-shell {
	align-items: stretch;
	width: 100%;
}

.bhb-info-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: var(--bhb-icon-bg, #8a4b2e);
	color: var(--bhb-icon-text-color, #fff);
	box-shadow: var(--bhb-shadow, 0 18px 45px rgba(17, 24, 39, 0.18));
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.bhb-info-toggle:hover,
.bhb-info-toggle:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.bhb-mode-icon .bhb-info-toggle {
	width: var(--bhb-icon-size, 60px);
	height: var(--bhb-icon-size, 60px);
	border-radius: 999px;
}

.bhb-mode-sticky .bhb-info-toggle {
	width: 58px;
	min-height: 160px;
	padding: 16px 10px;
	border-radius: 20px;
}

.bhb-mode-sticky.bhb-position-bottom-left .bhb-info-toggle,
.bhb-mode-sticky.bhb-position-middle-left .bhb-info-toggle {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.bhb-mode-sticky.bhb-position-bottom-right .bhb-info-toggle,
.bhb-mode-sticky.bhb-position-middle-right .bhb-info-toggle {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.bhb-context-inline .bhb-mode-sticky .bhb-info-toggle,
.bhb-context-preview .bhb-mode-sticky .bhb-info-toggle {
	width: 100%;
	min-height: auto;
	padding: 14px 18px;
	border-radius: var(--bhb-radius, 18px);
}

.bhb-info-toggle-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.bhb-mode-sticky .bhb-info-toggle-inner {
	flex-direction: column;
}

.bhb-info-toggle-svg {
	display: inline-flex;
	width: 28px;
	height: 28px;
}

.bhb-info-toggle-svg svg {
	width: 100%;
	height: 100%;
}

.bhb-info-toggle-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.bhb-context-inline .bhb-info-toggle-label,
.bhb-context-preview .bhb-info-toggle-label {
	writing-mode: initial;
	transform: none;
}

.bhb-info-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 24px;
	padding: 3px 7px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: var(--bhb-shadow, 0 18px 45px rgba(17, 24, 39, 0.18));
}

.bhb-info-panel {
	position: absolute;
	background: var(--bhb-panel-bg, #fffaf5);
	color: var(--bhb-text-color, #2f241d);
	border-radius: var(--bhb-radius, 18px);
	box-shadow: var(--bhb-shadow, 0 18px 45px rgba(17, 24, 39, 0.18));
	border: 1px solid var(--bhb-outline, rgba(138, 75, 46, 0.2));
	width: var(--bhb-panel-width);
	overflow: hidden;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.24s ease, transform 0.24s ease;
}

.bhb-mode-icon .bhb-info-panel {
	bottom: calc(var(--bhb-icon-size, 60px) + 12px);
}

.bhb-position-bottom-left .bhb-info-panel,
.bhb-position-middle-left .bhb-info-panel {
	left: 0;
	right: auto;
}

.bhb-position-bottom-right .bhb-info-panel,
.bhb-position-middle-right .bhb-info-panel {
	right: 0;
	left: auto;
}

.bhb-mode-sticky .bhb-info-panel {
	top: 0;
	bottom: auto;
}

.bhb-mode-sticky.bhb-position-bottom-right .bhb-info-panel,
.bhb-mode-sticky.bhb-position-middle-right .bhb-info-panel {
	right: calc(100% + 12px);
	left: auto;
	transform: translateX(16px);
}

.bhb-mode-sticky.bhb-position-bottom-left .bhb-info-panel,
.bhb-mode-sticky.bhb-position-middle-left .bhb-info-panel {
	left: calc(100% + 12px);
	right: auto;
	transform: translateX(-16px);
}

.bhb-info-icon-widget.is-open .bhb-info-panel {
	opacity: 1;
	transform: translate(0, 0);
	pointer-events: auto;
}

.bhb-context-inline .bhb-info-panel,
.bhb-context-preview .bhb-info-panel {
	position: relative;
	left: auto;
	right: auto;
	top: auto;
	bottom: auto;
	width: 100%;
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.bhb-info-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	color: inherit;
	cursor: pointer;
	backdrop-filter: blur(6px);
}

.bhb-info-close:hover,
.bhb-info-close:focus-visible {
	background: rgba(255, 255, 255, 0.96);
	outline: none;
}

.bhb-info-media {
	aspect-ratio: 16 / 9;
	background: rgba(0, 0, 0, 0.05);
}

.bhb-info-media.is-empty {
	display: none;
}

.bhb-info-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhb-info-body {
	padding: 22px;
}

.bhb-info-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
	padding-right: 38px;
}

.bhb-info-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: var(--bhb-chip-bg, rgba(138, 75, 46, 0.12));
	color: var(--bhb-chip-text, #8a4b2e);
}

.bhb-info-chip-new {
	background: rgba(239, 68, 68, 0.12);
	color: #b91c1c;
}

.bhb-info-title {
	margin: 0 0 10px;
	font-size: clamp(1.1rem, 1rem + 0.25vw, 1.35rem);
	line-height: 1.25;
	color: inherit;
}

.bhb-info-content {
	color: inherit;
}

.bhb-info-content > :first-child {
	margin-top: 0;
}

.bhb-info-content > :last-child {
	margin-bottom: 0;
}

.bhb-info-content p,
.bhb-info-content ul,
.bhb-info-content ol {
	margin-top: 0;
	margin-bottom: 0.85em;
}

.bhb-info-content ul,
.bhb-info-content ol {
	padding-left: 1.2em;
}

.bhb-info-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bhb-info-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	padding: 11px 16px;
	border-radius: 999px;
	background: var(--bhb-icon-bg, #8a4b2e);
	color: var(--bhb-icon-text-color, #fff);
	text-decoration: none;
	font-weight: 700;
	box-shadow: none;
}

.bhb-info-link:hover,
.bhb-info-link:focus-visible {
	opacity: 0.92;
	outline: none;
}

.bhb-info-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.bhb-info-dot {
	width: 10px;
	height: 10px;
	border: 0;
	padding: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.bhb-info-dot.is-active {
	background: var(--bhb-icon-bg, #8a4b2e);
}

.bhb-animation-pulse {
	animation: bhbPulse 2.6s infinite;
}

.bhb-animation-wiggle {
	animation: bhbWiggle 3.4s infinite;
}

.bhb-info-icon-widget.is-open .bhb-info-toggle {
	animation-play-state: paused;
}

.bhb-context-preview .bhb-info-toggle {
	animation: none;
}

@keyframes bhbPulse {
	0%,
	100% {
		box-shadow: var(--bhb-shadow, 0 18px 45px rgba(17, 24, 39, 0.18));
		transform: scale(1);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(138, 75, 46, 0.12), var(--bhb-shadow, 0 18px 45px rgba(17, 24, 39, 0.18));
		transform: scale(1.02);
	}
}

@keyframes bhbWiggle {
	0%,
	85%,
	100% {
		transform: rotate(0deg);
	}
	89% {
		transform: rotate(-4deg);
	}
	93% {
		transform: rotate(4deg);
	}
	97% {
		transform: rotate(-2deg);
	}
}

@media (max-width: 782px) {
	.bhb-context-global {
		top: auto !important;
		bottom: 16px !important;
		transform: none !important;
	}

	.bhb-context-global.bhb-mobile-position-bottom-right {
		right: 16px !important;
		left: auto !important;
	}

	.bhb-context-global.bhb-mobile-position-bottom-left {
		left: 16px !important;
		right: auto !important;
	}

	.bhb-mode-icon .bhb-info-toggle {
		width: var(--bhb-mobile-icon-size, 52px);
		height: var(--bhb-mobile-icon-size, 52px);
	}

	.bhb-mode-sticky .bhb-info-toggle {
		width: var(--bhb-mobile-icon-size, 52px);
		min-height: var(--bhb-mobile-icon-size, 52px);
		padding: 10px;
		border-radius: 999px;
	}

	.bhb-mode-sticky .bhb-info-toggle-label {
		display: none;
	}

	.bhb-context-global .bhb-info-panel {
		width: min(92vw, 360px);
	}

	.bhb-mode-icon .bhb-info-panel,
	.bhb-mode-sticky .bhb-info-panel {
		bottom: calc(var(--bhb-mobile-icon-size, 52px) + 12px);
		top: auto;
		left: auto;
		right: 0;
		transform: translateY(10px);
	}

	.bhb-context-global.bhb-mobile-position-bottom-left .bhb-info-panel {
		left: 0;
		right: auto;
	}

	.bhb-info-body {
		padding: 18px;
	}
}
