/**
 * Show readable labels on Estatik Grid / List / Map layout buttons.
 */

body .es-control.es-control--layouts {
	font-size: inherit;
	margin-bottom: 0;
	gap: 4px;
}

body .es-control.es-control--layouts li {
	font-size: inherit;
	margin: 0 4px 0 0;
}

body .es-control.es-control--layouts li a.js-es-change-layout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: auto !important;
	min-width: 2.5rem;
	height: 32px;
	padding: 0 10px 0 8px;
	font-size: 0.75rem !important;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	color: var(--ls-text-muted, #4a4a4a);
	border-radius: 4px;
	box-shadow: none !important;
	transition: background 0.12s ease, color 0.12s ease;
}

body .es-control.es-control--layouts li a.js-es-change-layout .es-icon {
	font-size: 14px;
	flex-shrink: 0;
}

body .es-control.es-control--layouts li a.js-es-change-layout.es-btn--active {
	color: #fff;
	background: var(--ls-brand-primary, #353738);
	border-color: var(--ls-brand-primary, #353738);
}

body .es-control.es-control--layouts li a.js-es-change-layout:not(.es-btn--active):hover {
	color: #fff;
	background: var(--ls-brand-secondary, #454849);
}

@media (max-width: 640px) {
	body .es-control.es-control--layouts li a.js-es-change-layout {
		padding: 0 10px;
		min-width: 44px;
		min-height: 44px;
		height: 44px;
	}

	body .es-control.es-control--layouts li a.js-es-change-layout .es-layout-btn__text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}
