/*
Theme Name: Themify Ultra Child
Description: A child theme of Themify Ultra
Template: themify-ultra
Author: a.szybowska@gmail.com (a.szybowska@gmail.com)
*/

/* Woohoo! Let's customize! */

/* SHOWP Brands: filter state + active filter chips */
.showp-filter-selections {
	display: none;
}

.showp-filter-selections.has-selections {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 4px 0 16px;
}

.facetwp-flyout-open.has-active-filters {
	font-weight: 600;
}

.showp-flyout-clear-wrap {
	padding: 16px 20px 24px;
}

.showp-flyout-clear {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #111;
	border-radius: 2px;
	background: #111;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.showp-flyout-clear:hover,
.showp-flyout-clear:focus {
	background: #fff;
	color: #111;
}

.showp-filter-chip {
	padding: 4px 9px;
	border: 1px solid #d2d2d2;
	border-radius: 999px;
	background: #fff;
	color: #666;
	font: inherit;
	font-size: 0.85em;
	line-height: 1.3;
	cursor: pointer;
}

.showp-filter-chip:hover,
.showp-filter-chip:focus {
	border-color: #888;
	color: #111;
}

.showp-filter-clear-all {
	padding: 4px 2px;
	border: 0;
	background: transparent;
	color: #777;
	font: inherit;
	font-size: 0.85em;
	line-height: 1.3;
	text-decoration: underline;
	cursor: pointer;
}

.showp-filter-clear-all:hover,
.showp-filter-clear-all:focus {
	color: #111;
}

@media (max-width: 1024px) {
	.showp-filter-selections.has-selections {
		margin-bottom: 14px;
	}
}

/* SHOWP desktop sticky header: keep the menu level with the logo. */
@media (min-width: 1025px) {
	body.fixed-header-on #headerwrap.fixed-header #header {
		position: relative;
		min-height: 0 !important;
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}

	body.fixed-header-on #headerwrap.fixed-header .header-bar {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	/* Keep the Submit tab available without letting its row make the sticky header taller. */
	body.fixed-header-on #headerwrap.fixed-header #header > .tb_layout_part_wrap {
		position: absolute;
		top: 100%;
		right: 0;
		width: auto;
		margin: 0;
	}

	body.fixed-header-on #headerwrap.fixed-header #mobile-menu {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		position: absolute !important;
		top: 68%;
		right: 0;
		width: max-content;
		max-width: none;
		height: auto !important;
		overflow: visible !important;
		transform: translateY(calc(-50% + 18px)) !important;
		margin: 0 !important;
	}

	body.fixed-header-on #headerwrap.fixed-header #main-nav {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		white-space: nowrap;
	}
}

/* SHOWP mobile header: slimmer, with room for the hamburger. */
@media (max-width: 1024px) {
	#headerwrap #header {
		position: relative;
		min-height: 0 !important;
		padding-top: 9px !important;
		padding-bottom: 9px !important;
	}

	#headerwrap .header-bar,
	#headerwrap #site-logo {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	#headerwrap #site-logo img.site-logo-image {
		width: 270px !important;
		max-width: calc(100vw - 90px) !important;
		height: auto !important;
	}

	/* Keep Submit as a tab below the header without making the header taller. */
	#headerwrap #header > .tb_layout_part_wrap {
		position: absolute;
		top: 100%;
		right: 0;
		width: auto;
		margin: 0;
	}

	#headerwrap .header-icons {
		top: 50% !important;
		transform: translateY(-50%) !important;
	}
}

/* SHOWP tooltips: clean outlined UI card */
.tooltip {
	position: relative;
	display: inline-block;
	cursor: help;
	border-bottom: 0 !important;
	text-decoration: none !important;
}

.tooltip .tooltiptext {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	z-index: 9999;
	left: calc(100% + 18px);
	top: 50%;
	bottom: auto;
	width: 210px;
	max-width: min(210px, 80vw);
	box-sizing: border-box;
	transform: translateX(-3px) translateY(-50%);
	padding: 10px 12px;
	background: rgba(255, 255, 255, .98) !important;
	color: #222 !important;
	border: 1px solid #222 !important;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: left;
	white-space: normal;
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
	pointer-events: none;
}

/* dark outer arrow = border */
.tooltip .tooltiptext::before {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	margin-top: -7px;
	border-width: 7px;
	border-style: solid;
	border-color: transparent #222 transparent transparent;
}

/* white inner arrow = card background */
.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	margin-top: -6px;
	border-width: 6px;
	border-style: solid;
	border-color: transparent rgba(255, 255, 255, .98) transparent transparent;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext,
.tooltip:focus-within .tooltiptext {
	visibility: visible;
	opacity: 1;
	transform: translateX(0) translateY(-50%);
	pointer-events: auto;
}

.tooltip .tooltiptext a {
	color: #222;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* Keep tooltips inside narrow mobile screens. */
@media (max-width: 600px) {
	.tooltip .tooltiptext {
		left: 50%;
		top: auto;
		bottom: calc(100% + 10px);
		transform: translateX(-50%) translateY(3px);
	}

	.tooltip:hover .tooltiptext,
	.tooltip:focus .tooltiptext,
	.tooltip:focus-within .tooltiptext {
		transform: translateX(-50%) translateY(0);
	}

	.tooltip .tooltiptext::before,
	.tooltip .tooltiptext::after {
		top: 100%;
		right: auto;
		left: 50%;
		margin-top: 0;
	}

	.tooltip .tooltiptext::before {
		margin-left: -7px;
		border-color: #222 transparent transparent transparent;
	}

	.tooltip .tooltiptext::after {
		margin-left: -6px;
		border-color: rgba(255, 255, 255, .98) transparent transparent transparent;
	}
}
