/**
 * Joomla 4+ front-end module editing chrome.
 * Cassiopeia ships these rules; the native ilikevents template must load them too
 * or Super Users see raw "Edit Module / Position: …" tooltips and the header breaks.
 */

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

[role="tooltip"]:not(.show) {
	z-index: 1070;
	display: none;
	max-width: 100%;
	margin: 0.5em;
	padding: 0.5em;
	color: #000;
	text-align: start;
	background: #fff;
	border: 1px solid #6d757e;
	border-radius: 0.25rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.8);
}

:focus + [role="tooltip"],
:hover + [role="tooltip"] {
	display: block;
	position: absolute;
}

.btn.jmodedit {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	z-index: 900;
	padding: 2px 6px;
	line-height: 1.2;
	color: #337ab7;
	background-color: rgba(255, 255, 255, 0.85);
	border: 1px solid #58595a;
	border-radius: 0.25rem;
}

.btn.jmodedit:focus,
.btn.jmodedit:active {
	box-shadow: none;
}

/* IcoMoon is not loaded on this template; reuse Font Awesome. */
.jmodedit .icon-edit::before {
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	content: "\f040";
}

/* Compact modules in the header must keep position:relative for the edit button. */
#btl,
.t3-module,
.module {
	position: relative;
}

a.jmenuedit {
	margin-inline-start: 0.25em;
	color: #337ab7;
}
