/**
 * v2.6.20 — desktop Chat with Us circular FAB.
 *
 * Only applies when body has .jc620-chat-fab (toggle v2620_chat_fab).
 * Desktop only (min-width: 768px) so the existing mobile hide rule in
 * jc-v238.css is left alone:
 *   @media (max-width: 767px) {
 *     body.jc-has-mbar .ht-ctc { display: none !important; }
 *   }
 * Do not add a floating button on 390px viewports.
 *
 * Values match the approved option-2 board: collapsed 52×52, bottom 67px
 * (55px cookie + 12px gap), right 16px; expanded padding 0 16px 0 0,
 * border-radius 26px, font 13px/600, icon margin 0 8px 0 10px.
 * Grey #e4e4e4 + WhatsApp icon; label colour #7f7d7d. Brand colours
 * are not changed. The #ht-ctc-chat { bottom: 95px !important; } inline
 * rule is overridden by the higher-specificity selectors below.
 */

@media (min-width: 768px) {
	body.jc620-chat-fab #ht-ctc-chat {
		bottom: 67px !important; /* 55px cookie + 12px gap */
		right: 16px !important;
		left: auto !important;
		top: auto !important;
		width: 52px !important;
		height: 52px !important;
		overflow: visible !important;
	}

	body.jc620-chat-fab #ht-ctc-chat .ht_ctc_style,
	body.jc620-chat-fab #ht-ctc-chat .ht_ctc_chat_style {
		width: auto !important;
		height: auto !important;
	}

	body.jc620-chat-fab #ht-ctc-chat .ctc_chip,
	body.jc620-chat-fab #ht-ctc-chat .ctc_s_4 {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 52px !important;
		min-width: 52px !important;
		max-width: 52px !important;
		height: 52px !important;
		padding: 0 !important;
		margin: 0 !important;
		border-radius: 50% !important;
		overflow: hidden !important;
		font-size: 0 !important;
		line-height: 0 !important;
		color: transparent !important;
		letter-spacing: 0 !important;
		gap: 0 !important;
		background-color: #e4e4e4 !important;
		box-shadow: 0 4px 14px rgba(15, 39, 66, 0.16);
		transition: width 0.18s ease, max-width 0.18s ease, border-radius 0.18s ease, padding 0.18s ease;
	}

	body.jc620-chat-fab #ht-ctc-chat .ctc_chip .s4_img {
		margin: 0 !important;
		order: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex: 0 0 32px !important;
		width: 32px !important;
		height: 32px !important;
	}

	body.jc620-chat-fab #ht-ctc-chat .ctc_chip svg {
		width: 32px !important;
		height: 32px !important;
		display: block !important;
	}

	/* Expanded: hover, keyboard focus, or .jc620-fab-open after click. */
	body.jc620-chat-fab.jc620-fab-open #ht-ctc-chat,
	body.jc620-chat-fab #ht-ctc-chat:hover,
	body.jc620-chat-fab #ht-ctc-chat:focus-within {
		width: auto !important;
		height: 52px !important;
	}

	body.jc620-chat-fab.jc620-fab-open #ht-ctc-chat .ctc_chip,
	body.jc620-chat-fab.jc620-fab-open #ht-ctc-chat .ctc_s_4,
	body.jc620-chat-fab #ht-ctc-chat:hover .ctc_chip,
	body.jc620-chat-fab #ht-ctc-chat:hover .ctc_s_4,
	body.jc620-chat-fab #ht-ctc-chat:focus-within .ctc_chip,
	body.jc620-chat-fab #ht-ctc-chat:focus-within .ctc_s_4 {
		width: auto !important;
		min-width: 52px !important;
		max-width: none !important;
		height: 52px !important;
		padding: 0 16px 0 0 !important;
		border-radius: 26px !important;
		overflow: visible !important;
		font-size: 13px !important;
		line-height: 52px !important;
		font-weight: 600 !important;
		color: #7f7d7d !important;
		letter-spacing: 0 !important;
		justify-content: flex-start !important;
		gap: 0 !important;
	}

	body.jc620-chat-fab.jc620-fab-open #ht-ctc-chat .ctc_chip .s4_img,
	body.jc620-chat-fab #ht-ctc-chat:hover .ctc_chip .s4_img,
	body.jc620-chat-fab #ht-ctc-chat:focus-within .ctc_chip .s4_img {
		margin: 0 8px 0 10px !important;
	}
}
