/**
 * Lynx custom layer for Pojo Accessibility (legacy toolbar).
 * Float trigger button, close button, RTL/LTR title row.
 */

/* Hide the plugin's default toggle — kept in DOM for open/close logic */
.pojo-a11y-toolbar-toggle {
	display: none !important;
}

/* Float trigger — always bottom-left (LTR and RTL) */
.pojo-a11y-float-btn {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 10001;
	width: 50px;
	height: 50px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: #c1a26d;
	color: #132538;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.pojo-a11y-float-btn:hover,
.pojo-a11y-float-btn:focus {
	background-color: #a88a55;
}

.pojo-a11y-float-btn:focus-visible {
	outline: 2px solid #132538;
	outline-offset: 3px;
}

.pojo-a11y-float-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	pointer-events: none;
}

@media (max-width: 950px) {
	.pojo-a11y-float-btn {
		width: 40px;
		height: 40px;
		left: 16px;
		bottom: 16px;
	}

	.pojo-a11y-float-btn svg {
		width: 20px;
		height: 20px;
	}
}

/* Title row wrapper (JS wraps title + close) */
.pojo-a11y-toolbar-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	padding: 0 0.5rem 0.75rem;
}

.pojo-a11y-toolbar-title-row .pojo-a11y-toolbar-title {
	flex: 1;
	margin: 0;
	padding: 0;
	min-width: 0;
}

/* Close button */
.pojo-a11y-toolbar-close {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pojo-a11y-toolbar-close:hover,
.pojo-a11y-toolbar-close:focus {
	background-color: rgba(0, 0, 0, 0.08);
}

.pojo-a11y-toolbar-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* LTR: close on the right */
[dir="ltr"] .pojo-a11y-toolbar-title-row,
body.ltr .pojo-a11y-toolbar-title-row {
	flex-direction: row;
}

/* RTL: close on the left */
[dir="rtl"] .pojo-a11y-toolbar-title-row,
body.rtl .pojo-a11y-toolbar-title-row {
	flex-direction: row-reverse;
}
