/* John Morley — Sticky Quote: floating panel (desktop), bottom bar (phones). JS adds .is-on. */
.jm.sq { position: fixed; z-index: 55; display: none; }
.jm .sq__in { display: flex; align-items: center; color: #fff; background-color: var(--slate); }
.jm .sq__svc { display: flex; align-items: center; gap: 10px; min-width: 0; font: 800 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jm .sq__ridge { flex: none; width: 20px; height: 7px; background: #FFB27A; clip-path: polygon(0 100%, 50% 0, 100% 100%, 82% 100%, 50% 36%, 18% 100%); }
.jm .sq__call { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.jm .sq__call svg { flex: none; width: 20px; height: 20px; stroke-width: 1.8; color: #FFB27A; }
.jm .sq__call small { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, .66); }
.jm .sq__call b { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.jm .sq__call:hover b { color: #FFB27A; }
.jm .sq .btn { min-height: 46px; white-space: nowrap; }

/* desktop and tablet: a slim panel bottom-right */
@media (min-width: 769px) {
	.jm.sq.sq--desk { display: block; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; }
	.jm.sq.sq--desk.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	/* Sky360's WhatsApp button lives in the same corner: sit to its left */
	body:has(.sky-whatsapp-widget) .jm.sq.sq--desk { right: calc(clamp(16px, 2vw, 28px) + 84px); max-width: calc(100vw - 132px); }
	.jm .sq__in { gap: 22px; padding: 10px 10px 10px 22px; border-radius: 6px; box-shadow: 0 18px 50px rgba(22, 22, 24, .28), 0 2px 6px rgba(22, 22, 24, .2); }
	.jm .sq__svc { max-width: 260px; padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .16); }
	.jm .sq__mob { display: none; }
}

/* phones: a 60px bar across the bottom, Call and Get a quote */
@media (max-width: 768px) {
	.jm.sq.sq--phone { display: block; left: 0; right: 0; bottom: 0; transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
	.jm.sq.sq--phone.is-on { transform: none; visibility: visible; transition-delay: 0s; }
	.jm .sq__in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 30px rgba(22, 22, 24, .2); }
	.jm .sq__svc, .jm .sq__desk { display: none; }
	.jm .sq__call { justify-content: center; min-height: 44px; border: 2px solid rgba(255, 255, 255, .5); border-radius: var(--r); font-weight: 700; }
	.jm .sq .btn { min-height: 44px; width: 100%; padding: 0 12px; }
	/* the WhatsApp/chat bubble moves above the bar while it shows */
	body:has(.jm.sq.is-on) .sky-whatsapp-widget { bottom: 84px !important; }
}

/* pop-up or menu open: out of the way */
html.jm-lock .jm.sq, html.jm-locked .jm.sq { opacity: 0 !important; visibility: hidden !important; }

/* Elementor editor: show it in place so it can be edited */
.jm.sq.is-preview { position: relative; display: block !important; right: auto !important; bottom: auto !important; left: auto !important; opacity: 1 !important; visibility: visible !important; transform: none !important; padding: 16px; }
