/* ==========================================================================
   QUOTE DOCK
   The floating "Request a quote" and phone buttons that follow the visitor
   down a page. Bottom left, clear of the "Text us" bubble on the right.
   On a single service, a single brand and the Brands page it is the QUOTE BAR
   (class dc-dock--bar): on desktop a wider bar centred along the bottom that
   names the service or brand. On a phone it is a floating button pair held to
   the bottom LEFT, lifted off the edge of the screen, so the bottom right
   corner stays free for the "Text us" bubble (Podium).
   Markup and behaviour: mu-plugins/decode-components/decode-quote-dock.php
   ========================================================================== */

.dc-dock {
	position: fixed; left: 24px; bottom: 24px;
	z-index: 900;
	display: flex; align-items: stretch;
	background: var(--fl-global-navy, #04213b);
	border-radius: 4px;
	box-shadow: 0 18px 44px -14px rgba(2, 24, 39, .6), 0 0 0 1px rgba(255, 255, 255, .08);
	overflow: hidden;
	opacity: 0; visibility: hidden;
	transform: translateY(14px);
	transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.dc-dock.is-on {
	opacity: 1; visibility: visible;
	transform: none;
	transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.dc-dock, .dc-dock * { box-sizing: border-box; }
.dc-dock a {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 20px 13px;
	font-family: "Khand", "Arial Narrow", sans-serif;
	font-size: 19px; font-weight: 600; line-height: 1;
	letter-spacing: .05em; text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
.dc-dock a svg { flex: 0 0 auto; width: 18px; height: 18px; transition: transform .2s ease; }
.dc-dock a.dc-dock__quote { background: linear-gradient(90deg, var(--fl-global-orange-dark, #f1592a), var(--fl-global-orange, #f7961e)); }
.dc-dock a.dc-dock__quote:hover,
.dc-dock a.dc-dock__quote:focus-visible { color: #fff; filter: brightness(1.07); text-decoration: none; }
.dc-dock a.dc-dock__quote:hover svg { transform: translateX(4px); }
.dc-dock a.dc-dock__call { letter-spacing: .02em; }
.dc-dock a.dc-dock__call svg { color: var(--fl-global-orange, #f7961e); }
.dc-dock a.dc-dock__call:hover,
.dc-dock a.dc-dock__call:focus-visible { color: var(--fl-global-orange, #f7961e); text-decoration: none; }
.dc-dock a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* -- The quote bar on service and brand pages (desktop and tablet) ---------- */
@media (min-width: 768px) {
	.dc-dock.dc-dock--bar {
		left: 50%; bottom: 22px;
		width: max-content; max-width: calc(100% - 220px);
		transform: translate(-50%, 14px);
		border-top: 3px solid var(--fl-global-orange, #f7961e);
		border-image: linear-gradient(90deg, var(--fl-global-orange-dark, #f1592a), var(--fl-global-orange, #f7961e)) 1;
		border-radius: 0;
	}
	.dc-dock.dc-dock--bar.is-on { transform: translate(-50%, 0); }
	.dc-dock--bar .dc-dock__label {
		display: flex; flex-direction: column; justify-content: center; gap: 5px;
		min-width: 0;
		padding: 12px 34px 10px 24px;
	}
	.dc-dock--bar .dc-dock__label small {
		font-family: "Manrope", sans-serif;
		font-size: 11px; font-weight: 600; line-height: 1;
		letter-spacing: .26em; text-transform: uppercase;
		color: var(--fl-global-orange, #f7961e);
	}
	.dc-dock--bar .dc-dock__label strong {
		max-width: 340px;
		overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
		font-family: "Khand", "Arial Narrow", sans-serif;
		font-size: 22px; font-weight: 600; line-height: 1;
		letter-spacing: .02em; text-transform: uppercase;
		color: #fff;
	}
	.dc-dock--bar a { padding: 20px 24px 18px; }
	.dc-dock--bar a.dc-dock__call { order: 2; border-left: 1px solid rgba(255, 255, 255, .14); }
	.dc-dock--bar a.dc-dock__quote { order: 3; padding-left: 28px; padding-right: 26px; }
}

/* -- Phones --------------------------------------------------------------------
   Every page: a floating pair of buttons, bottom left. It is kept narrow (no
   arrow, tight padding) so it ends before the "Text us" bubble's frame, which
   takes about 160px of the bottom right corner on a phone. */
@media (max-width: 767px) {
	.dc-dock,
	.dc-dock.dc-dock--bar {
		left: 12px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
		width: auto; max-width: calc(100% - 104px);
		border-radius: 8px;
		box-shadow: 0 16px 34px -10px rgba(2, 24, 39, .7), 0 2px 8px rgba(2, 24, 39, .28), 0 0 0 1px rgba(255, 255, 255, .14);
	}
	.dc-dock a { padding: 0 14px; min-height: 54px; font-size: 18px; gap: 9px; }
	.dc-dock a.dc-dock__quote { padding: 2px 14px 0 16px; letter-spacing: .04em; }
	.dc-dock a.dc-dock__quote svg { display: none; }
	.dc-dock .dc-dock__label { display: none; }
	/* The number is a tap target: icon only, to leave room */
	.dc-dock a.dc-dock__call span { display: none; }
	.dc-dock a.dc-dock__call { padding: 0 14px; }
	.dc-dock a.dc-dock__call svg { width: 20px; height: 20px; }
}
@media (max-width: 359px) {
	.dc-dock a.dc-dock__quote { padding-left: 13px; padding-right: 11px; font-size: 16.5px; }
	.dc-dock a.dc-dock__call { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.dc-dock, .dc-dock.is-on { transition: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
	.dc-dock.dc-dock--bar, .dc-dock.dc-dock--bar.is-on { transform: translateX(-50%); }
}
@media print { .dc-dock { display: none; } }
