/**
 * WordPress-specific fixes (header logo, admin bar, custom logo).
 *
 * @package Noile
 */

/* Correct header logo size (theme PNG is 233x60) */
.header__logo a,
.main-menu-one__logo a,
.logo-box a,
.sidebar-one__logo-box a {
	display: inline-block;
	line-height: 0;
}

.header__logo img,
.main-menu-one__logo img {
	max-height: 60px;
	width: auto;
	max-width: 233px;
	height: auto;
	display: block;
}

.main-menu-one__logo img {
	max-height: 50px;
	max-width: 200px;
}

/* WordPress custom logo — prevent huge / split logo in header */
.noile-custom-logo,
.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.noile-custom-logo img,
.custom-logo-link img,
.noile-custom-logo .custom-logo {
	max-height: 60px !important;
	width: auto !important;
	max-width: 233px !important;
	height: auto !important;
}

/* Header contact block — prevent text overlap */
.header__left {
	flex-wrap: nowrap;
	align-items: center;
}

.header__info {
	flex-shrink: 0;
}

.header__phone-text,
.header__email-text {
	white-space: nowrap;
}

.header__phone-title,
.header__email-title {
	white-space: nowrap;
	display: block;
}

.header__phone-number,
.header__email-address {
	white-space: nowrap;
	display: block;
}

/* Admin bar offset */
body.admin-bar .stricky-header.stricky-header-one.stricked-menu.stricky-fixed {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .stricky-header.stricky-header-one.stricked-menu.stricky-fixed {
		top: 46px;
	}
}

/* Elementor / block editor content inside theme pages */
.noile-wp-content .alignwide,
.entry-content .alignwide {
	max-width: 1200px;
}
