#ohgs-root {
	--ohgs-brand: #ed1c35;
	font-family: inherit;
}

.ohgs-launcher {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	border: 0;
	border-radius: 999px;
	background: var(--ohgs-brand);
	color: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
	padding: 13px 20px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ohgs-launcher:hover,
.ohgs-launcher:focus-visible,
.ohgs-offer-cta:hover,
.ohgs-offer-cta:focus-visible {
	filter: brightness(.92);
}

.ohgs-chat-panel {
	position: fixed;
	right: 22px;
	bottom: 82px;
	z-index: 99991;
	display: flex;
	flex-direction: column;
	width: min(360px, calc(100vw - 28px));
	max-height: min(520px, calc(100vh - 120px));
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
	overflow: hidden;
}

.ohgs-chat-panel[hidden] {
	display: none;
}

.ohgs-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--ohgs-brand);
	color: #fff;
}

.ohgs-close-chat,
.ohgs-offer-close {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.ohgs-transcript {
	flex: 1 1 auto;
	min-height: 150px;
	padding: 14px;
	overflow-y: auto;
}

.ohgs-message {
	max-width: 90%;
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 12px;
	line-height: 1.45;
	white-space: pre-line;
	word-break: break-word;
}

.ohgs-message--assistant {
	margin-right: auto;
	background: #f4f4f4;
	color: #222;
}

.ohgs-message--user {
	margin-left: auto;
	background: #fff2b8;
	color: #222;
}

.ohgs-chat-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #eee;
}

.ohgs-privacy-note {
	margin: 0;
	padding: 0 12px 10px;
	color: #666;
	font-size: 11px;
	line-height: 1.4;
}

.ohgs-chat-form input {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 10px;
	font: inherit;
}

.ohgs-chat-form button,
.ohgs-offer-cta {
	border: 0;
	border-radius: 8px;
	background: var(--ohgs-brand);
	color: #fff;
	padding: 10px 14px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ohgs-chat-form button:disabled {
	opacity: .6;
	cursor: wait;
}

.ohgs-product-list {
	display: grid;
	gap: 8px;
}

.ohgs-product {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 8px;
	color: inherit;
	text-decoration: none;
}

.ohgs-product img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
}

.ohgs-product-details {
	display: grid;
	gap: 4px;
}

.ohgs-product-summary {
	color: #555;
	font-size: 12px;
	line-height: 1.35;
}

.ohgs-product-stock.is-in-stock {
	color: #277a36;
}

.ohgs-product-stock.is-out-of-stock {
	color: #a21a1a;
}

.ohgs-category-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ohgs-category {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 8px;
	color: inherit;
	text-decoration: none;
}

.ohgs-category img {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 6px;
	object-fit: cover;
}

.ohgs-category-details {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.ohgs-category-details strong {
	overflow-wrap: anywhere;
	font-size: 12px;
}

.ohgs-category-details small {
	color: #666;
}

.ohgs-contact-link {
	display: inline-block;
	margin: 0 0 12px 4px;
	color: var(--ohgs-brand);
	font-weight: 700;
}

.ohgs-source-list {
	display: grid;
	gap: 5px;
	margin: 0 0 12px;
	padding: 0 4px;
	font-size: 12px;
}

.ohgs-source-list > small {
	color: #666;
	font-weight: 700;
}

.ohgs-source-list a {
	color: var(--ohgs-brand);
	text-decoration: underline;
}

.ohgs-offer-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(0, 0, 0, .55);
}

.ohgs-offer-dialog {
	position: relative;
	width: min(460px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 18px;
	background: #fff;
	padding: 28px;
	box-shadow: 0 14px 48px rgba(0, 0, 0, .25);
}

.ohgs-offer-dialog h2 {
	margin: 0 34px 12px 0;
	font-size: 1.6rem;
}

.ohgs-offer-dialog p {
	margin: 0 0 12px;
}

.ohgs-offer-close {
	position: absolute;
	top: 12px;
	right: 14px;
	color: #222;
}

.ohgs-offer-code {
	border: 1px dashed #aaa;
	border-radius: 8px;
	padding: 10px;
	font-weight: 700;
}

.ohgs-offer-terms {
	font-size: .9rem;
	color: #555;
}

.ohgs-offer-cta {
	display: inline-block;
	margin-top: 8px;
	text-decoration: none;
}

@media (max-width: 480px) {
	.ohgs-launcher {
		right: 14px;
		bottom: 14px;
	}
	.ohgs-chat-panel {
		right: 14px;
		bottom: 72px;
	}
	.ohgs-offer-dialog {
		padding: 24px 20px;
	}
}
