/* Reachly – floating contact button */
.rcb {
	--rcb-accent: #2563eb;
	--rcb-offset: 24px;
	--rcb-bg: #ffffff;
	--rcb-fg: #0f172a;
	--rcb-muted: #64748b;
	--rcb-line: rgba(15, 23, 42, 0.08);
	--rcb-hover: rgba(15, 23, 42, 0.045);
	--rcb-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.35), 0 2px 6px rgba(15, 23, 42, 0.06);
	position: fixed;
	bottom: var(--rcb-offset);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--rcb-fg);
	-webkit-font-smoothing: antialiased;
}
.rcb *, .rcb *::before, .rcb *::after { box-sizing: border-box; }
.rcb--right { right: var(--rcb-offset); align-items: flex-end; }
.rcb--left { left: var(--rcb-offset); align-items: flex-start; }
.rcb--preview { position: absolute; }

.rcb-theme-dark {
	--rcb-bg: #111827;
	--rcb-fg: #f9fafb;
	--rcb-muted: #9ca3af;
	--rcb-line: rgba(249, 250, 251, 0.08);
	--rcb-hover: rgba(249, 250, 251, 0.06);
	--rcb-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
}
@media (prefers-color-scheme: dark) {
	.rcb-theme-auto {
		--rcb-bg: #111827;
		--rcb-fg: #f9fafb;
		--rcb-muted: #9ca3af;
		--rcb-line: rgba(249, 250, 251, 0.08);
		--rcb-hover: rgba(249, 250, 251, 0.06);
		--rcb-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
	}
}

@media (min-width: 769px) { .rcb--no-desktop { display: none !important; } }
@media (max-width: 768px) {
	.rcb--no-mobile { display: none !important; }
	.rcb { --rcb-offset: 16px !important; }
}

/* ---------- Button ---------- */
.rcb .rcb-fab {
	all: unset;
	box-sizing: border-box;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	min-width: 58px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--rcb-accent);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 14px 30px -10px var(--rcb-accent), 0 4px 10px rgba(15, 23, 42, 0.15);
	transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.3), box-shadow 0.25s;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none !important;
}
.rcb--icon .rcb-fab { padding: 0; justify-content: center; width: 58px; }
.rcb .rcb-fab:hover { transform: translateY(-2px) scale(1.03); }
.rcb .rcb-fab:active { transform: scale(0.97); }
.rcb .rcb-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--rcb-accent) 45%, transparent); outline-offset: 3px; }
.rcb-fab::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 var(--rcb-accent);
	animation: rcb-ring 3.2s ease-out 2s infinite;
	pointer-events: none;
}
.rcb.is-open .rcb-fab::after { animation: none; }
@keyframes rcb-ring {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rcb-accent) 55%, transparent); }
	45%, 100% { box-shadow: 0 0 0 16px transparent; }
}

.rcb-fab__icons { position: relative; width: 26px; height: 26px; flex: none; }
.rcb-fab__i { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 0.3s, opacity 0.2s; }
.rcb-fab__i--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.rcb.is-open .rcb-fab__i--open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.rcb.is-open .rcb-fab__i--close { opacity: 1; transform: none; }
.rcb-fab__text { font-weight: 650; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap; padding-right: 4px; }

/* ---------- Panel ---------- */
.rcb-panel {
	width: min(360px, calc(100vw - 2 * var(--rcb-offset)));
	max-height: min(560px, calc(100vh - 120px));
	overflow: auto;
	border-radius: 24px;
	background: var(--rcb-bg);
	border: 1px solid var(--rcb-line);
	box-shadow: var(--rcb-shadow);
	opacity: 0;
	transform: translateY(14px) scale(0.97);
	transform-origin: bottom right;
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.2, .9, .3, 1.15);
}
.rcb--left .rcb-panel { transform-origin: bottom left; }
.rcb-panel.is-in { opacity: 1; transform: none; }
.rcb-panel[hidden] { display: none; }

.rcb-panel__head {
	position: relative;
	padding: 22px 22px 20px;
	color: #fff;
	background:
		radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%),
		var(--rcb-accent);
}
.rcb .rcb-panel__title { margin: 0 0 4px; padding: 0 36px 0 0; font-size: 20px; font-weight: 750; letter-spacing: -0.015em; color: #fff; line-height: 1.25; }
.rcb .rcb-panel__sub { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.88); }
.rcb .rcb-panel__x {
	all: unset;
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	cursor: pointer;
	transition: background 0.2s;
}
.rcb .rcb-panel__x:hover { background: rgba(255, 255, 255, 0.28); }
.rcb .rcb-panel__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.rcb-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	padding: 3px 10px 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 650;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}
.rcb-status__dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3); }
.rcb-status.is-off .rcb-status__dot { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3); }

.rcb .rcb-away {
	margin: 14px 14px 0;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 13.5px;
	color: var(--rcb-fg);
	background: color-mix(in srgb, #fbbf24 14%, transparent);
}

.rcb .rcb-list { list-style: none; margin: 0; padding: 10px; }
.rcb .rcb-list li { margin: 0; padding: 0; }
.rcb .rcb-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 12px;
	border-radius: 16px;
	color: var(--rcb-fg) !important;
	text-decoration: none !important;
	transition: background 0.15s, transform 0.15s;
}
.rcb .rcb-item:hover { background: var(--rcb-hover); }
.rcb .rcb-item:focus-visible { outline: 2px solid var(--rcb-accent); outline-offset: -2px; }
.rcb .rcb-item:active { transform: scale(0.985); }
.rcb-item__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	color: #fff;
	background: var(--rcb-c);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 60%);
	box-shadow: 0 6px 14px -6px var(--rcb-c);
	flex: none;
}
.rcb-item__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rcb-item__label { font-weight: 650; font-size: 15px; }
.rcb-item__sub { font-size: 13px; color: var(--rcb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcb-item__go { color: var(--rcb-muted); opacity: 0.6; transition: transform 0.2s, opacity 0.2s; display: grid; }
.rcb .rcb-item:hover .rcb-item__go { transform: translateX(3px); opacity: 1; }

/* ---------- Greeting ---------- */
.rcb-greet {
	position: relative;
	max-width: 260px;
	padding: 14px 34px 14px 16px;
	border-radius: 18px 18px 6px 18px;
	background: var(--rcb-bg);
	border: 1px solid var(--rcb-line);
	box-shadow: var(--rcb-shadow);
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s, transform 0.35s cubic-bezier(.2, .9, .3, 1.2);
}
.rcb--left .rcb-greet { border-radius: 18px 18px 18px 6px; }
.rcb-greet.is-in { opacity: 1; transform: none; }
.rcb-greet[hidden] { display: none; }
.rcb .rcb-greet p { margin: 0; font-size: 14.5px; }
.rcb .rcb-greet__x {
	all: unset;
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--rcb-muted);
	cursor: pointer;
}
.rcb .rcb-greet__x:hover { background: var(--rcb-hover); }
.rcb.is-open .rcb-greet { display: none; }

@media (prefers-reduced-motion: reduce) {
	.rcb *, .rcb-fab::after { animation: none !important; transition: none !important; }
}
@supports not (color: color-mix(in srgb, red 10%, white)) {
	.rcb .rcb-away { background: rgba(251, 191, 36, 0.15); }
}
