/* =========================================================================
   Orion Checkout – chat assistant (bubble + panel). Built by orion-chat.js.
   "body .oc-chat" in every selector so Hello Elementor's button/input styles
   don't leak in.
   ========================================================================= */

body .oc-chat {
	--oc-ink: #181C28;
	--oc-muted: #5E6575;
	--oc-line: #E3E5E8;
	--oc-panel: #F4F5F2;
	--oc-tint: #F1F8EF;
	--oc-chat-bottom: 20px;
	position: fixed;
	right: 20px;
	bottom: var(--oc-chat-bottom);
	z-index: 99990;
	font-family: Heebo, "IBM Plex Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--oc-ink);
	-webkit-font-smoothing: antialiased;
	transition: bottom .2s ease;
}

body .oc-chat *,
body .oc-chat *::before,
body .oc-chat *::after {
	box-sizing: border-box;
}

body .oc-chat button,
body .oc-chat input,
body .oc-chat textarea {
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
}

body .oc-chat button {
	cursor: pointer;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	line-height: inherit;
	white-space: normal;
}

body .oc-chat button:focus-visible,
body .oc-chat a:focus-visible,
body .oc-chat input:focus-visible,
body .oc-chat textarea:focus-visible {
	outline: 2px solid var(--oc-accent, #237F19);
	outline-offset: 2px;
}

/* ---------- Launcher ----------------------------------------------------- */

body .oc-chat .oc-chat__launcher {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--oc-accent, #237F19);
	color: #fff;
	box-shadow: 0 6px 20px rgba(24, 28, 40, .22), 0 2px 6px rgba(24, 28, 40, .12);
	transition: transform .15s ease, background-color .15s ease;
}

body .oc-chat .oc-chat__launcher:hover {
	background: var(--oc-accent-dark, #1C6614);
	color: #fff;
	transform: translateY(-2px);
}

body .oc-chat .oc-chat__launcher svg {
	width: 28px;
	height: 28px;
}

body .oc-chat .oc-chat__badge {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #E5484D;
}

body .oc-chat .oc-chat__teaser {
	position: absolute;
	right: 72px;
	bottom: 8px;
	width: max-content;
	max-width: 240px;
	padding: 10px 14px;
	border-radius: 12px 12px 4px 12px;
	background: #fff;
	color: var(--oc-ink);
	font-size: 14px;
	text-align: left;
	box-shadow: 0 6px 24px rgba(24, 28, 40, .16);
	animation: oc-chat-in .25s ease;
}

body .oc-chat.is-open .oc-chat__launcher,
body .oc-chat.is-open .oc-chat__teaser {
	display: none;
}

/* ---------- Panel -------------------------------------------------------- */

body .oc-chat .oc-chat__panel {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 390px;
	height: min(640px, calc(100vh - var(--oc-chat-bottom) - 40px));
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(24, 28, 40, .24), 0 2px 8px rgba(24, 28, 40, .08);
	overflow: hidden;
	animation: oc-chat-in .2s ease;
}

body .oc-chat .oc-chat__panel[hidden] {
	display: none;
}

@keyframes oc-chat-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

body .oc-chat .oc-chat__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 14px 18px;
	background: var(--oc-ink);
	color: #fff;
}

body .oc-chat .oc-chat__avatar {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--oc-accent, #237F19);
}

body .oc-chat .oc-chat__avatar img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: contain;
}

body .oc-chat .oc-chat__avatar svg {
	width: 22px;
	height: 22px;
}

body .oc-chat .oc-chat__avatar::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 11px;
	height: 11px;
	border: 2px solid var(--oc-ink);
	border-radius: 50%;
	background: #3DD15F;
}

body .oc-chat .oc-chat__title {
	flex: 1;
	min-width: 0;
}

body .oc-chat .oc-chat__title strong {
	display: block;
	font-family: "IBM Plex Sans", Heebo, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

body .oc-chat .oc-chat__title span {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
}

body .oc-chat .oc-chat__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	color: rgba(255, 255, 255, .8);
}

body .oc-chat .oc-chat__icon-btn:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

body .oc-chat .oc-chat__icon-btn svg {
	width: 20px;
	height: 20px;
}

/* ---------- Messages ----------------------------------------------------- */

body .oc-chat .oc-chat__log {
	position: relative; /* offsetTop of messages is measured from here */
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 16px 8px;
	background: var(--oc-panel);
}

body .oc-chat .oc-chat__msg {
	display: flex;
	margin: 0 0 12px;
}

body .oc-chat .oc-chat__msg--user {
	justify-content: flex-end;
}

body .oc-chat .oc-chat__bubble {
	max-width: 88%;
	padding: 10px 14px;
	border-radius: 14px 14px 14px 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(24, 28, 40, .06);
	overflow-wrap: anywhere;
}

body .oc-chat .oc-chat__msg--user .oc-chat__bubble {
	border-radius: 14px 14px 4px 14px;
	background: var(--oc-accent, #237F19);
	color: #fff;
	white-space: pre-wrap;
}

body .oc-chat .oc-chat__bubble p,
body .oc-chat .oc-chat__bubble ul,
body .oc-chat .oc-chat__bubble ol {
	margin: 0 0 8px;
	padding: 0;
}

body .oc-chat .oc-chat__bubble ul,
body .oc-chat .oc-chat__bubble ol {
	padding-left: 20px;
}

body .oc-chat .oc-chat__bubble li {
	margin: 0 0 4px;
}

body .oc-chat .oc-chat__bubble > :last-child {
	margin-bottom: 0;
}

body .oc-chat .oc-chat__bubble strong {
	font-weight: 600;
}

body .oc-chat .oc-chat__bubble a {
	color: var(--oc-accent, #237F19);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body .oc-chat .oc-chat__calc {
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--oc-tint);
}

/* Typing dots */
body .oc-chat .oc-chat__typing {
	display: inline-flex;
	gap: 4px;
	padding: 14px 16px;
}

body .oc-chat .oc-chat__typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #A3A8B3;
	animation: oc-chat-dot 1s infinite ease-in-out;
}

body .oc-chat .oc-chat__typing i:nth-child(2) { animation-delay: .15s; }
body .oc-chat .oc-chat__typing i:nth-child(3) { animation-delay: .3s; }

@keyframes oc-chat-dot {
	0%, 60%, 100% { opacity: .35; transform: none; }
	30% { opacity: 1; transform: translateY(-3px); }
}

/* Product cards */
body .oc-chat .oc-chat__cards {
	display: grid;
	gap: 8px;
	margin: -4px 0 12px;
}

body .oc-chat a.oc-chat__card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 8px 8px;
	border: 1px solid var(--oc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--oc-ink);
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

body .oc-chat a.oc-chat__card:hover {
	border-color: var(--oc-accent, #237F19);
	box-shadow: 0 2px 8px rgba(24, 28, 40, .08);
	color: var(--oc-ink);
}

body .oc-chat .oc-chat__card img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	background: var(--oc-panel);
	object-fit: contain;
}

body .oc-chat .oc-chat__card-body {
	flex: 1;
	min-width: 0;
}

body .oc-chat .oc-chat__card-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

body .oc-chat .oc-chat__card-price {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--oc-accent, #237F19);
}

body .oc-chat .oc-chat__card-price.is-out {
	color: var(--oc-muted);
	font-weight: 400;
}

body .oc-chat .oc-chat__card svg {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--oc-muted);
}

/* Link buttons and suggestion chips */
body .oc-chat .oc-chat__links,
body .oc-chat .oc-chat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -4px 0 12px;
}

body .oc-chat a.oc-chat__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--oc-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

body .oc-chat a.oc-chat__link:hover {
	background: #2D3344;
	color: #fff;
}

body .oc-chat a.oc-chat__link svg {
	width: 14px;
	height: 14px;
	flex: none;
}

body .oc-chat .oc-chat__chips {
	justify-content: flex-end;
}

body .oc-chat button.oc-chat__chip {
	padding: 7px 12px;
	border: 1px solid var(--oc-accent, #237F19);
	border-radius: 999px;
	background: #fff;
	color: var(--oc-accent, #237F19);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	transition: background-color .15s ease, color .15s ease;
}

body .oc-chat button.oc-chat__chip:hover {
	background: var(--oc-accent, #237F19);
	color: #fff;
}

body .oc-chat button.oc-chat__chip--contact {
	border-color: var(--oc-ink);
	color: var(--oc-ink);
}

body .oc-chat button.oc-chat__chip--contact:hover {
	background: var(--oc-ink);
	color: #fff;
}

/* ---------- Contact form ------------------------------------------------- */

body .oc-chat .oc-chat__form {
	display: grid;
	gap: 10px;
	margin: 0 0 12px;
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(24, 28, 40, .06);
}

body .oc-chat .oc-chat__form h3 {
	margin: 0;
	font-family: "IBM Plex Sans", Heebo, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--oc-ink);
}

body .oc-chat .oc-chat__form p {
	margin: 0;
	font-size: 13px;
	color: var(--oc-muted);
}

body .oc-chat .oc-chat__form label > span {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 500;
}

body .oc-chat .oc-chat__form input,
body .oc-chat .oc-chat__form textarea {
	display: block;
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #D3D6DC;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
}

body .oc-chat .oc-chat__form input:focus,
body .oc-chat .oc-chat__form textarea:focus {
	border-color: var(--oc-accent, #237F19);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(35, 127, 25, .15);
}

body .oc-chat .oc-chat__form textarea {
	min-height: 72px;
	resize: vertical;
}

body .oc-chat .oc-chat__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

body .oc-chat .oc-chat__form-actions {
	display: flex;
	gap: 8px;
}

body .oc-chat button.oc-chat__submit {
	flex: 1;
	padding: 11px 16px;
	border-radius: 8px;
	background: var(--oc-accent, #237F19);
	color: #fff;
	font-weight: 600;
}

body .oc-chat button.oc-chat__submit:hover {
	background: var(--oc-accent-dark, #1C6614);
	color: #fff;
}

body .oc-chat button.oc-chat__submit[disabled] {
	opacity: .6;
	cursor: default;
}

body .oc-chat button.oc-chat__cancel {
	padding: 11px 14px;
	border-radius: 8px;
	color: var(--oc-muted);
}

body .oc-chat button.oc-chat__cancel:hover {
	background: var(--oc-panel);
	color: var(--oc-ink);
}

body .oc-chat .oc-chat__form-msg {
	font-size: 13px;
	color: #B42318;
}

body .oc-chat .oc-chat__form-msg:empty {
	display: none;
}

/* ---------- Composer ----------------------------------------------------- */

body .oc-chat .oc-chat__compose {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--oc-line);
	background: #fff;
}

body .oc-chat .oc-chat__compose textarea {
	flex: 1;
	min-height: 42px;
	max-height: 120px;
	padding: 10px 12px;
	border: 1px solid #D3D6DC;
	border-radius: 10px;
	background: #fff;
	font-size: 16px; /* no zoom on iOS */
	line-height: 1.35;
	resize: none;
	box-shadow: none;
}

body .oc-chat .oc-chat__compose textarea:focus {
	border-color: var(--oc-accent, #237F19);
	outline: 0;
}

body .oc-chat button.oc-chat__send {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--oc-accent, #237F19);
	color: #fff;
}

body .oc-chat button.oc-chat__send:hover {
	background: var(--oc-accent-dark, #1C6614);
	color: #fff;
}

body .oc-chat button.oc-chat__send[disabled] {
	background: #C9CDD4;
	cursor: default;
}

body .oc-chat button.oc-chat__send svg {
	width: 20px;
	height: 20px;
}

body .oc-chat .oc-chat__foot {
	padding: 0 12px 8px;
	background: #fff;
	font-size: 11px;
	line-height: 1.4;
	color: var(--oc-muted);
	text-align: center;
}

body .oc-chat .oc-chat__foot a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Phones: full screen ----------------------------------------- */

@media (max-width: 600px) {
	body .oc-chat {
		right: 16px;
	}

	body .oc-chat.is-open {
		inset: 0;
	}

	body .oc-chat .oc-chat__panel {
		position: fixed;
		inset: 0;
		width: auto;
		height: 100%;
		border-radius: 0;
	}

	body .oc-chat .oc-chat__launcher {
		width: 56px;
		height: 56px;
	}

	body .oc-chat .oc-chat__teaser {
		right: 66px;
		max-width: calc(100vw - 100px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body .oc-chat *,
	body .oc-chat .oc-chat__panel {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	body .oc-chat {
		display: none;
	}
}
