/* Oscar Malo — Chat Bubble */
.omchat {
	--oc-ink: #2B2B28;
	--oc-muted: #6B665F;
	--oc-soft: #9A948B;
	--oc-terra: #BC5A34;
	--oc-terra-dark: #A24A27;
	--oc-blush: #EBCDBC;
	--oc-cream: #FAF5EF;
	--oc-line: #EEE7DE;
	--oc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--oc-sans: Jost, "Helvetica Neue", Arial, sans-serif;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 2147482500;
	font-family: var(--oc-sans);
	color: var(--oc-ink);
	-webkit-font-smoothing: antialiased;
}
.omchat *, .omchat *::before, .omchat *::after { box-sizing: border-box; }
.omchat [hidden] { display: none !important; }
.omchat svg { display: block; width: 100%; height: 100%; }
.omchat button { font-family: inherit; }
.omchat__proxy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* launcher */
.omchat .omchat__launcher {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	width: 60px;
	height: 60px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--oc-terra);
	color: #fff;
	box-shadow: 0 10px 28px rgba(43, 43, 40, .28), 0 2px 6px rgba(43, 43, 40, .18);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .2s ease, box-shadow .25s ease;
	text-shadow: none;
	line-height: 1;
}
.omchat .omchat__launcher:hover { background: var(--oc-terra-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(43, 43, 40, .32), 0 2px 6px rgba(43, 43, 40, .18); }
.omchat .omchat__launcher:focus-visible { outline: 2px solid var(--oc-ink); outline-offset: 3px; }
.omchat__ico { position: absolute; width: 28px; height: 28px; transition: opacity .2s ease, transform .25s ease; }
.omchat__ico--close { width: 22px; height: 22px; opacity: 0; transform: rotate(-60deg) scale(.6); }
.omchat.is-open .omchat__ico--chat { opacity: 0; transform: rotate(60deg) scale(.6); }
.omchat.is-open .omchat__ico--close { opacity: 1; transform: none; }
.omchat__badge {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--oc-ink);
	border: 2px solid #fff;
}

/* greeting */
.omchat__greet {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 280px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.omchat.greet-on .omchat__greet { opacity: 1; transform: none; }
.omchat .omchat__greet-msg {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 16px 34px 16px 18px;
	background: #fff;
	color: var(--oc-ink);
	border: 0;
	border-radius: 14px 14px 4px 14px;
	box-shadow: 0 12px 34px rgba(43, 43, 40, .18), 0 1px 3px rgba(43, 43, 40, .1);
	font: 400 14.5px/1.5 var(--oc-sans);
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	min-height: 0;
	height: auto;
}
.omchat .omchat__greet-msg:hover { background: var(--oc-cream); }
.omchat .omchat__greet-x {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 1;
	width: 26px;
	height: 26px;
	min-height: 0;
	padding: 5px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--oc-soft);
	cursor: pointer;
}
.omchat .omchat__greet-x:hover { color: var(--oc-ink); background: var(--oc-line); }

/* panel */
.omchat__panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 360px;
	max-height: calc(100vh - 120px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(43, 43, 40, .26), 0 2px 8px rgba(43, 43, 40, .12);
	opacity: 0;
	transform: translateY(10px) scale(.98);
	transform-origin: bottom right;
	transition: opacity .22s ease, transform .28s cubic-bezier(.2, .7, .2, 1);
}
.omchat.is-open .omchat__panel { opacity: 1; transform: none; }

.omchat__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 14px 18px 18px;
	background: var(--oc-cream);
	border-bottom: 1px solid var(--oc-line);
}
.omchat__avatar {
	position: relative;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--oc-blush);
	display: flex;
	align-items: center;
	justify-content: center;
}
.omchat__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; margin: 0; }
.omchat__avatar span { font: 500 16px/1 var(--oc-serif); color: var(--oc-ink); letter-spacing: .04em; }
.omchat__dot { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #2E9E5B; border: 2px solid var(--oc-cream); }
.omchat__who { flex: 1 1 auto; min-width: 0; }
.omchat .omchat__name { margin: 0; font: 500 16.5px/1.25 var(--oc-serif); color: var(--oc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omchat .omchat__status { margin: 3px 0 0; font: 400 12.5px/1.35 var(--oc-sans); color: var(--oc-muted); }

.omchat__lang { display: flex; border: 1px solid #DCD3C8; border-radius: 999px; padding: 2px; background: #fff; flex: 0 0 auto; }
.omchat .omchat__lang button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	min-height: 0;
	height: auto;
	padding: 4px 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--oc-muted);
	font: 500 11px/1 var(--oc-sans);
	letter-spacing: .08em;
	cursor: pointer;
}
.omchat .omchat__lang button[aria-pressed="true"] { background: var(--oc-ink); color: #fff; }
.omchat .omchat__x {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 7px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--oc-muted);
	cursor: pointer;
}
.omchat .omchat__x:hover { background: var(--oc-line); color: var(--oc-ink); }

.omchat__body { padding: 18px 16px 6px; overflow-y: auto; }
.omchat .omchat__intro { margin: 0 4px 14px; font: 400 15px/1.5 var(--oc-serif); color: var(--oc-ink); }
.omchat .omchat__list { list-style: none; margin: 0; padding: 0; }
.omchat .omchat__list li { margin: 0 0 8px; padding: 0; list-style: none; }
.omchat .omchat__list li::before { content: none; }

.omchat .omchat__card {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid var(--oc-line);
	border-radius: 12px;
	background: #fff;
	color: var(--oc-ink);
	text-align: left;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
	font: inherit;
}
.omchat .omchat__card--split { cursor: default; align-items: flex-start; }
.omchat .omchat__card--split .omchat__card-ico { margin-top: 1px; }
.omchat a.omchat__card:hover,
.omchat button.omchat__card:hover { border-color: #DCCFC2; background: var(--oc-cream); color: var(--oc-ink); }
.omchat .omchat__card:focus-visible,
.omchat .omchat__pill:focus-visible,
.omchat .omchat__lang button:focus-visible,
.omchat .omchat__x:focus-visible,
.omchat .omchat__greet-msg:focus-visible { outline: 2px solid var(--oc-terra); outline-offset: 2px; }
.omchat__card-ico { flex: 0 0 38px; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--oc-cream); color: var(--oc-terra); }
.omchat button.omchat__card[data-act="chat"] .omchat__card-ico { background: var(--oc-terra); color: #fff; }
.omchat__card-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.omchat .omchat__card-txt strong { font: 500 14.5px/1.3 var(--oc-sans); color: var(--oc-ink); }
.omchat .omchat__card-txt small { margin-top: 2px; font: 400 12.5px/1.35 var(--oc-sans); color: var(--oc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omchat__card-chev { flex: 0 0 18px; width: 18px; height: 18px; color: var(--oc-soft); }
.omchat__pills { display: flex; gap: 6px; margin-top: 9px; }
.omchat .omchat__pill {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid var(--oc-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--oc-ink);
	font: 500 11px/1 var(--oc-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.omchat .omchat__pill:hover { background: var(--oc-ink); color: #fff; }

.omchat__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 16px 14px 20px;
}
.omchat .omchat__tag {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font: 400 9.5px/1.4 var(--oc-sans);
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--oc-soft);
}

/* phones */
@media (max-width: 600px) {
	.omchat { right: 16px; bottom: 16px; }
	.omchat .omchat__launcher { width: 56px; height: 56px; }
	.omchat__ico { width: 26px; height: 26px; }
	.omchat__greet { bottom: 70px; width: min(280px, calc(100vw - 32px)); }
	.omchat__panel {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 84px;
		width: auto;
		max-height: calc(100vh - 100px);
		max-height: calc(100dvh - 100px);
	}
}

/* the guide popup takes priority */
html.omlp-lock .omchat { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
	.omchat__panel, .omchat__greet, .omchat .omchat__launcher, .omchat__ico { transition: none; }
}

@media print { .omchat { display: none !important; } }
