/**
 * Header action icons — jednotná veľkosť (hľadať, +, účet, správy, zvonček, menu).
 * Načítava sa po bundle, preto prepíše staré roztrieštené pravidlá.
 */
:root {
	--header-action-size: 36px;
	--header-action-icon: 16px;
}

@media (max-width: 991px) {
	:root {
		--header-action-size: 44px;
		--header-action-icon: 16px;
	}
}

/* Jednotný box pre všetky header akcie */
.ms_header .search-toggle-btn,
.ms_header .ms_top_btn > .ms_btn,
.ms_header .ms_top_btn > a.ms_btn,
.ms_header .ms_top_btn > button.ms_btn,
.ms_header .ms_top_btn .ms_btn.add_btn,
.ms_header .ms_top_btn .ms_btn.acc_btn,
.ms_header .ms_top_btn .ms_btn.login_btn,
.ms_header .ms_top_btn .messages-bell-link,
.ms_header .ms_top_btn .notification-bell-link,
.ms_header .ms_top_btn button.notification-bell-link,
.ms_header .ms_top_btn button.messages-bell-link,
.ms_header #messages-inbox-link,
.ms_header #notification-bell-link,
.ms_header .notification-bell-link,
.ms_header .messages-bell-link,
.ms_header .header-notif-wrap > .ms_btn,
.ms_header .header-notif-wrap > button.ms_btn {
	width: var(--header-action-size) !important;
	height: var(--header-action-size) !important;
	min-width: var(--header-action-size) !important;
	min-height: var(--header-action-size) !important;
	max-width: var(--header-action-size) !important;
	max-height: var(--header-action-size) !important;
	padding: 0 !important;
	border-radius: 0 !important;
	position: relative !important;
	overflow: visible !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

@media (min-width: 992px) {
	.ms_header .ms_top_btn .ms_btn.login_btn {
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		height: var(--header-action-size) !important;
		min-height: var(--header-action-size) !important;
		padding: 0 14px !important;
	}
}

.ms_header .header-notif-wrap {
	width: var(--header-action-size);
	height: var(--header-action-size);
	flex-shrink: 0;
}

.ms_header .header-notif-wrap + .header-notif-wrap {
	margin-left: 0;
}

.ms_header .ms_top_btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.ms_header .ms_top_search {
	flex-shrink: 0;
}

.ms_header .search-toggle-btn img {
	width: var(--header-action-icon) !important;
	height: var(--header-action-icon) !important;
	max-width: var(--header-action-icon) !important;
	max-height: var(--header-action-icon) !important;
	position: static !important;
	top: auto !important;
}

.ms_header .ms_top_btn .ms_btn.add_btn {
	font-size: var(--header-action-icon) !important;
	font-weight: 700 !important;
	background: #65B24C !important;
	color: #fff !important;
}

.ms_header .ms_top_btn .ms_btn.acc_btn,
.ms_header .ms_top_btn .ms_btn.login_btn {
	background: #000 !important;
	color: #fff !important;
}

.ms_header .ms_top_btn .acc_btn .fa-user {
	font-size: var(--header-action-icon) !important;
	display: block;
	line-height: 1;
}

.ms_header #messages-inbox-link,
.ms_header .messages-bell-link {
	background: #000 !important;
	color: #fff !important;
	border: 0;
}

.ms_header #messages-inbox-link:hover,
.ms_header #messages-inbox-link:focus,
.ms_header .messages-bell-link:hover,
.ms_header .messages-bell-link:focus {
	background: #222 !important;
	color: #fff !important;
}

.ms_header #notification-bell-link,
.ms_header .notification-bell-link {
	background: #000 !important;
	color: #fff !important;
	border: 0;
	cursor: pointer;
	font: inherit;
}

.ms_header #notification-bell-link:hover,
.ms_header #notification-bell-link:focus,
.ms_header .notification-bell-link:hover,
.ms_header .notification-bell-link:focus {
	background: #222 !important;
	color: #fff !important;
}

.ms_header #messages-inbox-link .fa-envelope,
.ms_header #notification-bell-link .fa-bell,
.ms_header .messages-bell-link .fa-envelope,
.ms_header .notification-bell-link .fa-bell {
	font-size: var(--header-action-icon) !important;
	display: block;
	line-height: 1;
}

/* Hamburger — rovnaká veľkosť ako ostatné ikony */
@media (max-width: 991px) {
	.ms_header .ms_nav_close {
		width: var(--header-action-size) !important;
		height: var(--header-action-size) !important;
		min-width: var(--header-action-size) !important;
		min-height: var(--header-action-size) !important;
		max-width: var(--header-action-size) !important;
		max-height: var(--header-action-size) !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex-shrink: 0 !important;
		padding: 0 !important;
		margin-left: 4px !important;
	}
}

@media (max-width: 991px) {
	.ms_header .ms_top_btn .ms_btn.add_btn::after,
	.ms_header .ms_top_btn .ms_btn.acc_btn::after,
	.ms_header .ms_top_btn .ms_btn.login_btn::after,
	.ms_header .ms_top_btn .messages-bell-link.ms_btn.reg_btn::after,
	.ms_header .ms_top_btn .notification-bell-link.ms_btn.reg_btn::after,
	.ms_header .ms_top_btn button.notification-bell-link.ms_btn.reg_btn::after,
	.ms_header .ms_top_btn button.messages-bell-link.ms_btn.reg_btn::after {
		position: absolute !important;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
		-webkit-transform: translate(-50%, -50%) !important;
		font: normal normal normal var(--header-action-icon)/1 FontAwesome !important;
		line-height: 1 !important;
	}

	.ms_header .ms_top_btn .ms_btn.add_btn::after {
		content: "+" !important;
		font-family: inherit !important;
		font-size: calc(var(--header-action-icon) + 2px) !important;
		font-weight: 700 !important;
		line-height: 1 !important;
		color: #fff !important;
	}

	.ms_header .ms_top_btn .ms_btn.add_btn {
		font-size: 0 !important;
		color: transparent !important;
	}

	.ms_header .ms_top_btn .ms_btn.acc_btn::after,
	.ms_header .ms_top_btn .ms_btn.login_btn::after {
		content: "\f007" !important;
	}

	.ms_header .ms_top_btn .messages-bell-link.ms_btn.reg_btn::after,
	.ms_header .ms_top_btn button.messages-bell-link.ms_btn.reg_btn::after {
		content: "\f0e0" !important;
	}

	.ms_header .ms_top_btn .notification-bell-link.ms_btn.reg_btn::after,
	.ms_header .ms_top_btn button.notification-bell-link.ms_btn.reg_btn::after {
		content: "\f0f3" !important;
	}

	.ms_header .ms_top_btn .acc_btn .fa-user,
	.ms_header .ms_top_btn .messages-bell-link .fa-envelope,
	.ms_header .ms_top_btn .notification-bell-link .fa-bell {
		display: none !important;
	}

	.ms_header .ms_top_btn .ms_btn #message-badge.notification-badge[data-count]:not([data-count="0"]),
	.ms_header .ms_top_btn .ms_btn #notification-badge.notification-badge[data-count]:not([data-count="0"]) {
		display: inline-flex !important;
	}
}
