/* =========================================================
   ŠIBOR.CZ – plovoucí kontakt vpravo dole
   ========================================================= */
.sb-fc {
	--fc-gap: 24px;
	position: fixed;
	right: var(--fc-gap);
	bottom: var(--fc-gap);
	z-index: 990; /* pod hlavičkou s mobilním menu (999) a galerií */
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	font-family: var(--sb-font);
	pointer-events: none;
}
.sb-fc > * { pointer-events: auto; }
.sb-no-scroll .sb-fc { display: none; } /* otevřené mobilní menu */

/* ---------- Tlačítko ---------- */
.sb-fc__toggle,
.sb-fc__toggle:hover,
.sb-fc__toggle:focus {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	margin: 0;
	padding: 0 24px 0 20px;
	border: 0;
	border-radius: var(--sb-radius); /* stejné rohy jako tlačítko Poptávka v hlavičce */
	background: var(--sb-orange);
	color: var(--sb-white);
	font: 600 17px/1 var(--sb-font);
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	box-shadow: 0 14px 30px -12px rgba(255, 146, 19, .65), 0 4px 12px -4px rgba(15, 23, 42, .25);
	transition: background-color .25s, transform .25s, box-shadow .25s;
}
.sb-fc__toggle:hover { background: var(--sb-navy); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 63, 124, .6); }
.sb-fc__toggle:focus-visible { outline: 3px solid var(--sb-navy); outline-offset: 3px; }
.sb-fc__icon { display: inline-flex; font-size: 22px; }
.sb-fc__icon--close { display: none; }
.sb-fc.is-open .sb-fc__toggle { background: var(--sb-navy); box-shadow: 0 16px 30px -12px rgba(37, 63, 124, .6); }
.sb-fc.is-open .sb-fc__icon--open { display: none; }
.sb-fc.is-open .sb-fc__icon--close { display: inline-flex; }

/* Po načtení se tlačítko jen jednou jemně vysune zespodu – žádné blikání. */
.sb-fc__toggle { position: relative; animation: sb-fc-rise .5s ease-out .6s backwards; }
@keyframes sb-fc-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Karta ---------- */
.sb-fc__panel {
	position: relative;
	width: 340px;
	max-width: calc(100vw - 2 * var(--fc-gap));
	padding: 24px;
	border-top: 4px solid var(--sb-orange);
	border-radius: 16px;
	background: var(--sb-white);
	color: var(--sb-text);
	box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45), 0 2px 8px rgba(15, 23, 42, .06);
	transform-origin: bottom right;
	animation: sb-fc-in .22s ease-out;
}
.sb-fc__panel[hidden] { display: none; }
@keyframes sb-fc-in {
	from { opacity: 0; transform: translateY(10px) scale(.97); }
	to { opacity: 1; transform: none; }
}

.sb-fc__head { display: flex; align-items: center; gap: 14px; }
.sb-fc__avatar {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--sb-navy);
	color: var(--sb-white);
	overflow: hidden;
}
.sb-fc__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-fc__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: .02em;
}
.sb-fc__who p { margin: 0; }
/* velikosti ze škály webu (main.css / ŠIBOR → Vzhled webu) */
.sb-fc__name { color: var(--sb-heading); font-size: var(--sb-fs-h4); font-weight: 600; line-height: 1.25; }
.sb-fc__role { color: #64748b; font-size: var(--sb-fs-small); line-height: 1.4; }
.sb-fc__status { margin-top: 2px !important; color: var(--sb-orange); font-size: var(--sb-fs-xs); font-weight: 600; line-height: 1.35; }

.sb-fc__text { margin: 16px 0 0; font-size: var(--sb-fs-small); line-height: 1.55; }

.sb-fc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	margin-top: 18px;
	padding: 12px 18px;
	border-radius: var(--sb-radius);
	background: var(--sb-orange);
	color: var(--sb-white);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .25s;
}
.sb-fc__btn .sb-icon { transition: transform .25s; }
.sb-fc__btn:hover { background: var(--sb-navy); color: var(--sb-white); }
.sb-fc__btn:hover .sb-icon { transform: translateX(3px); }

.sb-fc__list { margin: 14px 0 0; padding: 0; list-style: none; }
.sb-fc__list li + li { border-top: 1px solid #edf0f4; }
.sb-fc__list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 0;
	color: var(--sb-heading);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
	transition: color .2s;
}
.sb-fc__list a:hover { color: var(--sb-orange); }
.sb-fc__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff4e6;
	color: var(--sb-orange);
	font-size: 17px;
	transition: background-color .2s, color .2s;
}
.sb-fc__list a:hover .sb-fc__ico { background: var(--sb-orange); color: var(--sb-white); }

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
	.sb-fc { --fc-gap: 16px; }
	.sb-fc__toggle,
	.sb-fc__toggle:hover,
	.sb-fc__toggle:focus { min-height: 52px; padding: 0 18px 0 16px; font-size: 16px; }
	.sb-fc__panel { width: calc(100vw - 2 * var(--fc-gap)); padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.sb-fc__panel,
	.sb-fc__toggle { animation: none; }
	.sb-fc__toggle { transition: none; }
}

@media print { .sb-fc { display: none; } }
