/* Scoped polish for first-party SUPEROVO public templates only. */
body.home,
body.category-page,
body.product-page {
	--superovo-color-primary: #005aff;
	--superovo-color-highlight: #fbff00;
	--superovo-color-text: #333333;
	--superovo-color-muted: #6b7280;
	--superovo-color-border: #d7dbe2;
	--superovo-color-surface: #ffffff;
	--superovo-color-focus: #174ea6;
	--superovo-font-family: Arial, Helvetica, sans-serif;
	--superovo-font-size: 14px;
	--superovo-line-height: 1.4;
	--superovo-radius-small: 3px;
	--superovo-space-1: 4px;
	--superovo-space-2: 8px;
	--superovo-space-3: 12px;
	--superovo-space-4: 16px;
	--superovo-space-5: 24px;
	--superovo-space-6: 32px;
	--superovo-content-max: 1200px;
	min-width: 0;
	max-width: 100%;
	font-family: var(--superovo-font-family, Arial, Helvetica, sans-serif);
	font-size: var(--superovo-font-size, 14px);
	color: var(--superovo-color-text, #333333);
}

body.home input,
body.home select,
body.home textarea,
body.home button,
body.category-page input,
body.category-page select,
body.category-page textarea,
body.category-page button,
body.product-page input,
body.product-page select,
body.product-page textarea,
body.product-page button {
	font-family: inherit;
}

body.home img,
body.category-page img,
body.product-page img {
	max-width: 100%;
}

/* Keep the account menu inside the viewport on narrow Bootstrap containers. */
body.home #user-info-top .mega_dropdown,
body.category-page #user-info-top .mega_dropdown,
body.product-page #user-info-top .mega_dropdown {
	right: 0;
	left: auto;
}

body.home a:focus,
body.home input:focus,
body.home select:focus,
body.home textarea:focus,
body.home button:focus,
body.category-page a:focus,
body.category-page input:focus,
body.category-page select:focus,
body.category-page textarea:focus,
body.category-page button:focus,
body.product-page a:focus,
body.product-page input:focus,
body.product-page select:focus,
body.product-page textarea:focus,
body.product-page button:focus {
	outline: 2px solid #174ea6 !important;
	outline: 2px solid var(--superovo-color-focus, #174ea6) !important;
	outline-offset: 2px;
}

@supports selector(:focus-visible) {
	body.home a:focus:not(:focus-visible),
	body.home input:focus:not(:focus-visible),
	body.home select:focus:not(:focus-visible),
	body.home textarea:focus:not(:focus-visible),
	body.home button:focus:not(:focus-visible),
	body.category-page a:focus:not(:focus-visible),
	body.category-page input:focus:not(:focus-visible),
	body.category-page select:focus:not(:focus-visible),
	body.category-page textarea:focus:not(:focus-visible),
	body.category-page button:focus:not(:focus-visible),
	body.product-page a:focus:not(:focus-visible),
	body.product-page input:focus:not(:focus-visible),
	body.product-page select:focus:not(:focus-visible),
	body.product-page textarea:focus:not(:focus-visible),
	body.product-page button:focus:not(:focus-visible) {
		outline: none !important;
	}

	body.home a:focus-visible,
	body.home input:focus-visible,
	body.home select:focus-visible,
	body.home textarea:focus-visible,
	body.home button:focus-visible,
	body.category-page a:focus-visible,
	body.category-page input:focus-visible,
	body.category-page select:focus-visible,
	body.category-page textarea:focus-visible,
	body.category-page button:focus-visible,
	body.product-page a:focus-visible,
	body.product-page input:focus-visible,
	body.product-page select:focus-visible,
	body.product-page textarea:focus-visible,
	body.product-page button:focus-visible {
		outline: 2px solid #174ea6 !important;
		outline: 2px solid var(--superovo-color-focus, #174ea6) !important;
		outline-offset: 2px;
	}
}

@media (max-width: 992px) {
	body.home #form_edit .header-search-box td:nth-child(2) input,
	body.category-page #form_edit .header-search-box td:nth-child(2) input,
	body.product-page #form_edit .header-search-box td:nth-child(2) input {
		box-sizing: border-box;
		width: calc(100% - 44px) !important;
		min-width: 0;
	}

	body.home .NizMenu,
	body.category-page .NizMenu,
	body.product-page .NizMenu {
		position: static;
		display: table;
		width: auto;
		max-width: calc(100% - 24px);
		margin: 12px auto;
		padding: 6px 8px;
		border-radius: var(--superovo-radius-small, 3px);
	}

	body.home .NizMenu a,
	body.category-page .NizMenu a,
	body.product-page .NizMenu a {
		display: inline-block;
		padding: 6px 8px;
		font-size: 14px;
	}
}

/* Restore Bootstrap container gutters at the tablet breakpoint to prevent clipped rows. */
@media (min-width: 768px) and (max-width: 991px) {
	body.home .container,
	body.category-page .container,
	body.product-page .container {
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media (max-width: 480px) {
	body.home #form_edit .header-search-box td:nth-child(2),
	body.category-page #form_edit .header-search-box td:nth-child(2),
	body.product-page #form_edit .header-search-box td:nth-child(2) {
		width: 34% !important;
	}

	body.home #form_edit .header-search-box td:nth-child(2) input,
	body.home #form_edit .header-search-box td:nth-child(4) input,
	body.category-page #form_edit .header-search-box td:nth-child(2) input,
	body.category-page #form_edit .header-search-box td:nth-child(4) input,
	body.product-page #form_edit .header-search-box td:nth-child(2) input,
	body.product-page #form_edit .header-search-box td:nth-child(4) input {
		box-sizing: border-box;
		width: calc(100% - 44px) !important;
		min-width: 0;
		padding: 8px 4px !important;
		font-size: 12px;
	}

	body.home #form_edit .header-search-box td:nth-child(2),
	body.category-page #form_edit .header-search-box td:nth-child(2),
	body.product-page #form_edit .header-search-box td:nth-child(2) {
		background-color: var(--superovo-color-highlight, #fbff00) !important;
	}
}

/* Compact shared mobile header: one account strip, a tight brand/search stack, and aligned menus. */
@media (max-width: 767px) {
	.top-header {
		background: #f6f7f9;
		border-bottom: 1px solid #e7eaf0;
	}

	.top-header > .container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 36px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.top-header .nav-top-links,
	.top-header .user-info,
	.top-header .support-link {
		float: none !important;
		width: auto !important;
		min-width: 0;
		line-height: 1.2;
	}

	.top-header .nav-top-links .dropdown,
	.top-header .user-info .dropdown {
		display: flex;
		align-items: center;
	}

	.top-header a {
		margin: 0;
		padding: 7px 8px;
		border: 0;
		color: #344054;
		font-size: 12px;
		line-height: 1.2;
		white-space: nowrap;
	}

	.top-header #user-info-top {
		margin-left: auto;
		text-align: right;
	}

	.top-header a.current-open:after {
		padding-left: 6px;
		font-size: 14px;
	}

	.main-header.container {
		padding-right: 12px;
		padding-left: 12px;
	}

	.main-header > .row {
		display: flex;
		flex-direction: column;
		margin-right: 0;
		margin-left: 0;
	}

	.main-header .logo {
		float: none;
		width: 100%;
		margin: 5px 0 7px;
		padding: 0;
		text-align: center;
		font-size: 11px;
		line-height: 1.25;
	}

	.main-header .logo img {
		width: auto;
		max-width: min(205px, 64vw);
		max-height: 42px;
		object-fit: contain;
	}

	.main-header form#form_edit {
		width: 100%;
		margin: 0 0 8px;
	}

	.main-header #form_edit table.header-search-box {
		display: flex !important;
		width: 100% !important;
		margin: 0;
		padding: 0;
		table-layout: fixed;
		border-spacing: 0;
	}

	.main-header #form_edit table.header-search-box > tbody,
	.main-header #form_edit table.header-search-box > tbody > tr {
		display: flex;
		width: 100%;
		gap: 6px;
	}

	.main-header #form_edit table.header-search-box > tbody > tr > td:first-child,
	.main-header #form_edit table.header-search-box > tbody > tr > td:nth-child(3),
	.main-header #form_edit table.header-search-box > tbody > tr > td:last-child {
		display: none;
	}

	.main-header #form_edit table.header-search-box > tbody > tr > td:nth-child(2),
	.main-header #form_edit table.header-search-box > tbody > tr > td:nth-child(4) {
		position: relative;
		display: block;
		flex: 1 1 0;
		width: auto !important;
		min-width: 0;
		height: 40px;
		padding: 0 !important;
		border: 1px solid #dce2ea;
		border-radius: 8px;
		overflow: hidden;
	}

	.main-header #form_edit table.header-search-box > tbody > tr > td:nth-child(2) {
		flex-grow: .82;
		background: #fbff00 !important;
	}

	.main-header #form_edit table.header-search-box > tbody > tr > td:nth-child(4) {
		flex-grow: 1.18;
		background: #fff;
	}

	.main-header #form_edit .header-search-box input {
		box-sizing: border-box;
		width: calc(100% - 36px) !important;
		min-width: 0;
		height: 38px;
		padding: 0 8px !important;
		border: 0 !important;
		background: transparent;
		font-size: 12px;
	}

	.main-header #form_edit .header-search-box .btn-search {
		top: 0;
		right: 0;
		width: 36px;
		height: 38px;
		margin: 0;
		border: 0;
		border-radius: 0;
	}

	.nav-top-menu {
		background: transparent;
	}

	.nav-top-menu > .container {
		width: 100%;
		padding-right: 12px;
		padding-left: 12px;
	}

	.nav-top-menu > .container > .row {
		display: flex;
		flex-wrap: nowrap;
		margin-right: 0;
		margin-left: 0;
	}

	.nav-top-menu #box-vertical-megamenus,
	.nav-top-menu #main-menu {
		float: none;
		width: 50% !important;
		min-width: 0;
		height: 42px;
		padding: 0;
	}

	.nav-top-menu .box-vertical-megamenus {
		position: relative;
		left: auto;
		right: auto;
		padding: 0;
	}

	.nav-top-menu .box-vertical-megamenus > .title {
		height: 42px;
		padding-right: 12px;
		padding-left: 12px;
		border-radius: 9px 0 0 9px;
		font-size: 12px;
		letter-spacing: .4px;
		line-height: 42px;
	}

	.nav-top-menu .box-vertical-megamenus > .title .btn-open-mobile {
		line-height: 42px;
	}

	.nav-top-menu #main-menu .navbar-header {
		position: relative;
		display: block;
		width: 100%;
		height: 42px;
		margin: 0 !important;
		border-radius: 0 9px 9px 0;
	}

	.nav-top-menu #main-menu .navbar-header .navbar-brand {
		height: 42px;
		margin: 0;
		padding: 0 12px;
		font-size: 12px;
		line-height: 42px;
	}

	.nav-top-menu #main-menu .navbar-header .navbar-toggle {
		position: absolute;
		top: 5px;
		right: 8px;
		width: 32px;
		height: 32px;
		margin: 0;
		padding: 0;
		line-height: 30px;
	}

	.nav-top-menu #main-menu .navbar-collapse {
		top: 42px;
		z-index: 1002;
		border-radius: 0 0 8px 8px;
	}
}

/* Give every public catalog/ad filter a consistent full-width control system. */
.searchbar-form {
	width: 100%;
	max-width: 100%;
	color: #26364a;
	font-family: Arial, Helvetica, sans-serif;
}

.searchbar-form fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.searchbar-form table,
.searchbar-form table[border] {
	width: 100% !important;
	max-width: 100%;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
}

.searchbar-form td,
.searchbar-form th {
	padding: 0;
	border: 0 !important;
	vertical-align: middle;
}

.searchbar-form tr[id^="reg_"],
.searchbar-form tr[id^="cat_"],
.searchbar-form td[id^="reg_"],
.searchbar-form td[id^="cat_"] {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.searchbar-form tr[id^="reg_"] > td {
	display: block;
	width: 100%;
	min-width: 0;
}

.searchbar-form tr[id^="reg_"] > td > select,
.searchbar-form tr[id^="cat_"] > select,
.searchbar-form tr[id^="reg_"] > select {
	width: 100% !important;
}

.searchbar-form center {
	display: block;
	text-align: left;
}

.searchbar-form hr {
	margin: 13px 0;
	border: 0;
	border-top: 1px solid #e7ebf1;
}

.searchbar-form input[type="text"],
.searchbar-form input[type="search"],
.searchbar-form input[type="number"],
.searchbar-form input[type="email"],
.searchbar-form select,
.searchbar-form textarea {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
	min-height: 42px;
	margin: 0 0 8px;
	padding: 9px 12px;
	color: #26364a;
	background-color: #fff;
	border: 1px solid #d5deea !important;
	border-radius: 9px;
	box-shadow: 0 1px 2px rgba(24, 40, 59, .04);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.searchbar-form select {
	padding-right: 34px;
	cursor: pointer;
}

.searchbar-form input:focus,
.searchbar-form select:focus,
.searchbar-form textarea:focus {
	border-color: #6b9de6 !important;
	box-shadow: 0 0 0 3px rgba(0, 90, 255, .12);
	outline: 0;
}

.searchbar-form input[type="checkbox"] {
	accent-color: #0867d8;
}

.searchbar-form input[type="radio"] {
	width: 17px;
	height: 17px;
	margin: 0 7px 0 0;
	accent-color: #0867d8;
	vertical-align: middle;
}

.searchbar-form .check-box-list {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.searchbar-form .check-box-list li {
	display: block;
	margin: 0;
	padding: 5px 0;
	line-height: 1.45;
}

.searchbar-form .check-box-list label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: #435168;
	font-size: 14px;
	line-height: 1.4;
}

.searchbar-form .check-box-list input[type="checkbox"] + label span.button {
	position: relative;
	display: inline-block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #bdc9d8;
	border-radius: 5px;
}

.searchbar-form .check-box-list input[type="checkbox"]:checked + label span.button {
	background: #0867d8;
	border-color: #0867d8;
}

.searchbar-form .check-box-list input[type="checkbox"]:checked + label span.button:after {
	position: absolute;
	top: 1px;
	left: 5px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	transform: rotate(45deg);
}

.searchbar-form .link-all,
.searchbar-form input[type="submit"].link-all {
	display: block;
	width: auto !important;
	min-width: 150px;
	min-height: 44px;
	margin: 14px auto 0;
	padding: 0 24px;
	color: #fff;
	background: #0867d8;
	border: 0 !important;
	border-radius: 9px;
	box-shadow: 0 4px 10px rgba(8, 103, 216, .16);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
}

.searchbar-form .link-all:hover,
.searchbar-form input[type="submit"].link-all:hover {
	background: #0758bc;
}

.searchbar-form fieldset > center > span.button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 !important;
	color: inherit;
	background: transparent !important;
	border: 0 !important;
}

.searchbar-form fieldset > center > span.button:before,
.searchbar-form fieldset > center > span.button:after {
	display: none !important;
	content: none !important;
}

#left_column .left-module:has(.searchbar-form) {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 13px;
	box-shadow: 0 8px 24px rgba(24, 40, 59, .045);
}

#left_column .left-module:has(.searchbar-form) .title_block {
	padding: 15px 16px;
	color: #223148;
	background: #fff;
	border-bottom: 1px solid #e9edf3;
	font-size: 14px;
	letter-spacing: .025em;
}

#left_column .left-module:has(.searchbar-form) .block_content {
	padding: 14px 16px 16px;
}

@media (max-width: 767px) {
	.columns-container #columns.container {
		width: 100%;
		padding-right: 8px;
		padding-left: 8px;
	}

	.columns-container #left_column,
	.columns-container #center_column {
		padding-right: 4px;
		padding-left: 4px;
	}

	.columns-container #columns > .row {
		display: block;
		margin-right: 0;
		margin-left: 0;
	}

	.columns-container #columns > .row > #left_column,
	.columns-container #columns > .row > #center_column {
		float: none;
		width: 100% !important;
		max-width: 100%;
	}

	.searchbar-form select,
	.searchbar-form input[type="text"],
	.searchbar-form input[type="search"],
	.searchbar-form input[type="number"],
	.searchbar-form input[type="email"],
	.searchbar-form textarea {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.searchbar-form input,
	.searchbar-form select,
	.searchbar-form textarea,
	.searchbar-form button {
		transition-duration: .01ms !important;
	}
}

/* Keep the desktop logo and both search controls aligned in one balanced row. */
@media (min-width: 992px) {
	body.home .main-header > .row,
	body.category-page .main-header > .row,
	body.product-page .main-header > .row {
		display: flex;
		align-items: center;
		margin-right: 0;
		margin-left: 0;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	body.home .main-header > .row > .logo,
	body.category-page .main-header > .row > .logo,
	body.product-page .main-header > .row > .logo {
		float: none;
		flex: 0 0 25%;
		width: 25%;
		margin: 0;
		padding: 0;
	}

	body.home .main-header > .row > .logo img,
	body.category-page .main-header > .row > .logo img,
	body.product-page .main-header > .row > .logo img {
		display: block;
		max-width: 100%;
		height: auto;
	}

	body.home .main-header > .row > form#form_edit,
	body.category-page .main-header > .row > form#form_edit,
	body.product-page .main-header > .row > form#form_edit {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		margin: 0;
	}

	body.home .main-header #form_edit table.header-search-box,
	body.category-page .main-header #form_edit table.header-search-box,
	body.product-page .main-header #form_edit table.header-search-box {
		float: none;
		width: 100% !important;
		margin: 0;
		padding-right: 0;
		padding-left: 0;
		table-layout: fixed;
	}

	body.home .main-header .header-search-box,
	body.category-page .main-header .header-search-box,
	body.product-page .main-header .header-search-box {
		margin-top: 0;
	}
}

/* Use the same usable desktop flyout on every public category listing. */
@media (min-width: 993px) {
	body.category-page #box-vertical-megamenus .vertical-menu-content {
		min-width: 270px;
	}

	body.category-page #box-vertical-megamenus .vertical-menu-list > li {
		position: relative;
	}

	body.category-page #box-vertical-megamenus .vertical-menu-list > li > .vertical-dropdown-menu {
		top: -3px;
		left: 100%;
		width: calc(100vw - 340px);
		max-width: 820px;
		min-width: 360px;
		max-height: 72vh;
		overflow: auto;
	}

	body.category-page #box-vertical-megamenus .vertical-menu-content ul > li:hover > .vertical-dropdown-menu,
	body.category-page #box-vertical-megamenus .vertical-menu-content ul > li:focus-within > .vertical-dropdown-menu {
		visibility: visible;
		display: block;
		height: auto;
		transform: translate(0, 0);
		opacity: 1;
	}
}
