/* Copy helper for mailto:/tel: links
 * Hardened: some templates (e.g. taxonomy-product_category.php, pages/page-product.php)
 * ship a bare `button{width:100%;height:40px;font-size:18px;...}` rule, plus global
 * `*{margin:0;padding:0;font-family:...}` resets; everything below is !important
 * and doubled in specificity so the button stays a small ~24px pill everywhere.
 * top/left are set inline by JS (also !important). */
a[href^="mailto:"],
a[href^="tel:"] {
	-webkit-user-select: text !important;
	-moz-user-select: text !important;
	-ms-user-select: text !important;
	user-select: text !important;
}

button.ccl-copy-btn.ccl-copy-btn {
	position: fixed !important;
	z-index: 100000 !important;
	right: auto !important;
	bottom: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	float: none !important;
	box-sizing: border-box !important;
	width: auto !important;
	height: 24px !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 10px !important;
	border: 0 !important;
	border-radius: 12px !important;
	outline: none !important;
	background: var(--mainColor, #3074f1) none !important;
	color: #fff !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	line-height: 24px !important;
	letter-spacing: .2px !important;
	text-align: center !important;
	text-indent: 0 !important;
	text-decoration: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	white-space: nowrap !important;
	vertical-align: top !important;
	overflow: visible !important;
	cursor: pointer !important;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 2px 8px rgba(0, 0, 0, .25) !important;
	transform: none !important;
	filter: none !important;
	zoom: 1 !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity var(--dl-transition) ease, visibility var(--dl-transition) ease, background-color var(--dl-transition) ease !important;
	-webkit-user-select: none !important;
	user-select: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

button.ccl-copy-btn.ccl-copy-btn .ccl-copy-label {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: inherit !important;
	font: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: none !important;
	white-space: nowrap !important;
	width: auto !important;
	height: auto !important;
}

button.ccl-copy-btn.ccl-copy-btn.ccl-visible {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

button.ccl-copy-btn.ccl-copy-btn:hover,
button.ccl-copy-btn.ccl-copy-btn:focus-visible {
	filter: brightness(1.1) !important;
}

/* invisible bridge so the pointer can travel link -> button */
button.ccl-copy-btn.ccl-copy-btn::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 100% !important;
	bottom: auto !important;
	width: auto !important;
	height: 10px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 1 !important;
}

button.ccl-copy-btn.ccl-copy-btn.ccl-below::before {
	top: auto !important;
	bottom: 100% !important;
}

/* arrow */
button.ccl-copy-btn.ccl-copy-btn::after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	left: var(--ccl-arrow-x, 50%) !important;
	right: auto !important;
	top: 100% !important;
	bottom: auto !important;
	box-sizing: content-box !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 0 0 -5px !important;
	padding: 0 !important;
	border: 5px solid transparent !important;
	border-bottom-width: 0 !important;
	border-top-color: var(--mainColor, #3074f1) !important;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 1 !important;
	transition: border-color var(--dl-transition) ease !important;
}

button.ccl-copy-btn.ccl-copy-btn.ccl-below::after {
	top: auto !important;
	bottom: 100% !important;
	border-top-width: 0 !important;
	border-bottom-width: 5px !important;
	border-top-color: transparent !important;
	border-bottom-color: var(--mainColor, #3074f1) !important;
}

button.ccl-copy-btn.ccl-copy-btn.ccl-copied {
	background: #1f9d55 none !important;
}

button.ccl-copy-btn.ccl-copy-btn.ccl-copied::after {
	border-top-color: #1f9d55 !important;
}

button.ccl-copy-btn.ccl-copy-btn.ccl-copied.ccl-below::after {
	border-top-color: transparent !important;
	border-bottom-color: #1f9d55 !important;
}
