/* HTML Sitemap widget — default look. Every value here can be changed from the Elementor Style tab. */

.tms-hs {
	--tms-hs-speed: 500ms;
	--tms-hs-ease: cubic-bezier(.4, 0, .2, 1);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.tms-hs__row {
	border-bottom: 1px solid #fff;
	border-bottom-width: 0;
}

.tms-hs__row:not(:last-child) {
	border-bottom-width: 1px;
}

/* Main rows */
.tms-hs__link,
.tms-hs__toggle {
	display: block;
	margin: 0;
	padding: 15px 20px;
	background-color: #f1f1f1;
	color: #222;
	font-size: 15px;
	line-height: 1.4;
	font-weight: inherit;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease;
}

a.tms-hs__link:hover,
.tms-hs__toggle:hover {
	background-color: #e6e6e6;
	color: #000;
}

.tms-hs__toggle {
	position: relative;
	cursor: pointer;
	padding-right: 50px;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

/* Arrow */
.tms-hs__toggle::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-style: solid;
	border-color: #555;
	border-width: 0 2px 2px 0;
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--tms-hs-speed) var(--tms-hs-ease), border-color .3s ease;
}

/* Hidden checkbox that drives the dropdown */
.tms-hs__check {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.tms-hs__check:focus-visible + .tms-hs__toggle {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.tms-hs__check:checked + .tms-hs__toggle {
	background-color: #e6e6e6;
}

.tms-hs__check:checked + .tms-hs__toggle::after {
	transform: translateY(-30%) rotate(-135deg);
}

/* Smooth open / close */
.tms-hs__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--tms-hs-speed) var(--tms-hs-ease);
}

.tms-hs__panel-inner {
	min-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity calc(var(--tms-hs-speed) * .8) ease, transform var(--tms-hs-speed) var(--tms-hs-ease);
}

.tms-hs__check:checked ~ .tms-hs__panel {
	grid-template-rows: 1fr;
}

.tms-hs__check:checked ~ .tms-hs__panel .tms-hs__panel-inner {
	opacity: 1;
	transform: none;
	transition-delay: 50ms;
}

/* Dropdown links */
.tms-hs__sub {
	list-style: none;
	margin: 0;
	padding: 0;
	background-color: #fafafa;
}

.tms-hs__sub li {
	margin: 0;
	padding: 0;
	border-top: 1px solid #ececec;
}

.tms-hs__sub a {
	display: flex;
	align-items: center;
	padding: 12px 20px 12px 22px;
	color: #444;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}

.tms-hs__sub a[href]:hover {
	background-color: #f1f1f1;
	color: #000;
}

.tms-hs__sub a::before {
	content: "";
	display: none;
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	margin-right: 12px;
	border-radius: 50%;
	background-color: #bbb;
}

.tms-hs-bullets-yes .tms-hs__sub a::before {
	display: inline-block;
}

.tms-hs__sub .tms-hs__depth-1 a { margin-left: 20px; }
.tms-hs__sub .tms-hs__depth-2 a { margin-left: 40px; }
.tms-hs__sub .tms-hs__depth-3 a { margin-left: 60px; }

.tms-hs-empty {
	padding: 20px;
	border: 1px dashed #c5c5c5;
	color: #666;
	font-size: 14px;
	text-align: center;
}

@media (max-width: 600px) {
	.tms-hs__link,
	.tms-hs__toggle {
		padding: 13px 44px 13px 16px;
		font-size: 14px;
	}
	.tms-hs__link {
		padding-right: 16px;
	}
	.tms-hs__toggle::after {
		right: 18px;
	}
	.tms-hs__sub a {
		padding: 11px 16px 11px 18px;
		font-size: 13.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tms-hs,
	.tms-hs * {
		transition: none !important;
	}
}
