/* Fammco Sales Rep block – colours follow the Astra palette, override via the custom properties. */
.fsr {
	--fsr-accent: var(--ast-global-color-0, #f28c1e);
	--fsr-text: var(--ast-global-color-2, #1a1a1a);
	--fsr-muted: #6b6b6b;
	--fsr-bg: #f1f1f1;
	--fsr-heading-font: var(--ast-global-font-family-1, inherit);
	background: var(--fsr-bg);
	border-radius: 6px;
	padding: 22px 24px;
	margin: 24px 0;
	color: var(--fsr-text);
	transition: box-shadow .3s;
}
.fsr--changed { box-shadow: 0 0 0 3px var(--fsr-accent); }
.fsr--compact { padding: 16px 20px; }

.fsr__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fsr--compact .fsr__head { margin-bottom: 10px; }
.fsr__title { margin: 0; font-family: var(--fsr-heading-font); font-weight: 500; font-size: 17px; text-transform: uppercase; letter-spacing: .5px; line-height: 1.2; }
.fsr__region { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fsr-muted); margin: 0; }
.fsr__select {
	font: inherit; font-family: var(--fsr-heading-font); font-size: 14px; line-height: 1.3;
	padding: 6px 30px 6px 10px; border: 1px solid #ccc; border-radius: 4px; color: var(--fsr-text);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 10px center;
	-webkit-appearance: none; appearance: none; max-width: 100%; height: auto;
}

.fsr__body { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.fsr__avatar {
	width: 76px; height: 76px; border-radius: 50%; background: #cfcfcf; flex: none; overflow: hidden;
	display: grid; place-items: center; font-family: var(--fsr-heading-font); font-size: 26px; color: #fff;
	border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.fsr--compact .fsr__avatar { width: 52px; height: 52px; font-size: 18px; }
.fsr__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fsr--office .fsr__avatar { background: var(--fsr-accent); }

.fsr__info { flex: 1; min-width: 200px; }
.fsr__name { font-family: var(--fsr-heading-font); font-size: 20px; font-weight: 600; margin: 0 0 2px; line-height: 1.2; }
.fsr--compact .fsr__name { font-size: 17px; }
.fsr__role { font-size: 13px; color: var(--fsr-muted); margin: 0 0 10px; }
.fsr__role b { color: var(--fsr-text); font-weight: 500; }
.fsr__sep { margin: 0 4px; }

.fsr__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fsr__btn {
	display: inline-flex; align-items: center; gap: 8px; font-family: var(--fsr-heading-font);
	text-transform: uppercase; font-weight: 600; letter-spacing: .5px; font-size: 15px; line-height: 1;
	padding: 12px 22px; text-decoration: none !important; border: 0; cursor: pointer; white-space: nowrap;
}
.fsr__btn--call,
.fsr__btn--ghost { clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); transition: background .2s, transform .2s, color .2s; padding-left: 26px; padding-right: 26px; }
.fsr__btn--call { background: var(--fsr-accent); color: #fff !important; }
.fsr__btn--call:hover { filter: brightness(.93); transform: translateY(-1px); }

/* Ghost button: a real border can't follow a clip-path, so the border is the
   element background and the fill is an inset pseudo-element with the same clip. */
.fsr__btn--ghost { position: relative; background: var(--fsr-text); color: var(--fsr-text) !important; border: 0; isolation: isolate; }
.fsr__btn--ghost::before {
	content: ""; position: absolute; inset: 2px; background: #fff; z-index: -1;
	clip-path: polygon(9px 0%, 100% 0%, calc(100% - 9px) 100%, 0% 100%); transition: background .2s;
}
.fsr__btn--ghost:hover { color: #fff !important; transform: translateY(-1px); }
.fsr__btn--ghost:hover::before { background: var(--fsr-text); }
.fsr__mail { font-size: 13px; color: var(--fsr-muted) !important; text-decoration: underline dotted; }
.fsr--compact .fsr__btn { font-size: 14px; padding: 9px 18px; }

.fsr__foot { margin: 14px 0 0; font-size: 12.5px; color: var(--fsr-muted); }
.fsr__foot a { color: var(--fsr-text); text-decoration: underline dotted; }

@media (max-width: 600px) {
	.fsr { padding: 18px 16px; }
	.fsr__head { flex-direction: column; align-items: stretch; gap: 10px; }
	.fsr__region { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
	.fsr__region-label { white-space: nowrap; }
	.fsr__select { width: 100%; }
	.fsr__avatar { display: none; }
	.fsr__body { align-items: flex-start; }
	.fsr__info { min-width: 0; }
	.fsr__actions .fsr__btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- Floating contact button ---- */
.fsr-float { position: fixed; right: 20px; bottom: var(--fsr-float-offset, 24px); z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: inherit; }
.fsr-float__btn {
	display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 28px; cursor: pointer;
	background: var(--ast-global-color-0, #f28c1e); color: #fff; font-family: var(--ast-global-font-family-1, inherit);
	font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; line-height: 1;
	box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s, filter .2s;
}
.fsr-float__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.26); filter: brightness(.95); }
.fsr-float__btn:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.fsr-float__panel { position: relative; width: min(440px, calc(100vw - 32px)); background: #fff; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.28); padding: 8px; transform-origin: bottom right; animation: fsr-pop .18s ease-out; }
.fsr-float__panel .fsr { margin: 0; }
.fsr-float__panel .fsr__avatar { display: grid; }
.fsr-float__close { position: absolute; top: 6px; right: 10px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #6b6b6b; font-size: 24px; line-height: 1; cursor: pointer; }
.fsr-float__close:hover { background: #e5e5e5; color: #1a1a1a; }
.fsr-float__panel .fsr__head { padding-right: 28px; }
@keyframes fsr-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
	.fsr-float { right: 14px; }
	.fsr-float__btn { width: 56px; padding: 0; justify-content: center; }
	.fsr-float__label { display: none; }
	.fsr-float__panel { width: calc(100vw - 28px); }
	.fsr-float__panel .fsr__avatar { display: none; }
}
@media print { .fsr-float { display: none; } }
