/**
 * iDanny utility bar and footer disclaimer.
 * Isolated from the existing header and footer implementation.
 */

.idanny-utility-bar {
	display: none;
}

@media only screen and (min-width: 769px) {
	#header > .idanny-utility-bar {
		display: block;
		width: 100%;
		height: 28px;
		margin: 0;
		padding: 0;
		background: #ffffff;
	}

	.idanny-utility-bar__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: calc(100% - 168px);
		max-width: 1388px;
		height: 28px;
		margin: 0 auto;
		padding: 0 12px;
		box-sizing: border-box;
		background: #fafafd;
		border: 0;
	}

	.idanny-utility-bar__nav,
	.idanny-utility-bar__contacts {
		display: flex;
		align-items: center;
		min-width: 0;
	}

	.idanny-utility-bar__nav {
		gap: 24px;
	}

	.idanny-utility-bar a {
		color: #34343d;
		font-size: 13px;
		font-weight: 400;
		line-height: 26px;
		text-decoration: none;
		white-space: nowrap;
		transition: color 0.16s ease;
	}

	.idanny-utility-bar a:hover,
	.idanny-utility-bar a:focus-visible {
		color: #5d51ff;
	}

	.idanny-utility-bar__contacts {
		gap: 10px;
		margin-left: 24px;
	}

	.idanny-utility-bar a.idanny-utility-bar__messenger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 18px;
		height: 18px;
		min-width: 18px;
		color: #ffffff;
		line-height: 1;
		background: linear-gradient(135deg, #3478ff 0%, #7047ff 100%);
		border-radius: 50%;
	}

	.idanny-utility-bar__messenger svg {
		width: 11px;
		height: 11px;
		fill: currentColor;
	}

	.idanny-utility-bar a.idanny-utility-bar__messenger:hover,
	.idanny-utility-bar a.idanny-utility-bar__messenger:focus-visible {
		color: #ffffff;
		filter: brightness(1.08);
	}

	.idanny-utility-bar a.idanny-utility-bar__phone {
		margin-left: 8px;
		color: #202027;
		font-weight: 600;
	}
}

@media only screen and (min-width: 769px) and (max-width: 1180px) {
	.idanny-utility-bar__nav {
		gap: 14px;
	}

	.idanny-utility-bar__contacts {
		gap: 8px;
		margin-left: 16px;
	}
}

@media only screen and (min-width: 1601px) {
	.idanny-utility-bar__inner {
		width: 1104px;
		max-width: calc(100% - 48px);
	}
}

.bottom_inner.idanny-footer-legal-host {
	position: relative !important;
	row-gap: 16px !important;
	padding-bottom: 16px !important;
}

.bottom_inner .idanny-footer-legal-wrap {
	display: block;
	position: relative;
	top: 32px;
	grid-column: 1 / -1 !important;
	grid-row: 2 !important;
	align-self: end;
	justify-self: stretch;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.idanny-footer-legal {
	display: block;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.30);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	text-align: center;
}

.idanny-footer-copyright-host {
	min-height: 0 !important;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
	box-sizing: border-box;
}

.idanny-footer-copyright {
	display: block !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	text-align: left !important;
}

.idanny-original-legal-text {
	display: none !important;
}

/* Safe server-rendered state. The row is printed after the parent theme footer
 * and is moved into .bottom_inner by JavaScript. If that move is delayed or a
 * template omits the widget footer, it must still remain a compact dark row —
 * never a full-size collage on a white background. */
[data-idanny-global-footer-brands] {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 20px;
	box-sizing: border-box;
	background: #222222;
	overflow: hidden;
}

[data-idanny-global-footer-brands] .idanny-home-brands__inner {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	align-items: center;
	width: min(100%, 1392px);
	height: 28px;
	margin: 0 auto;
	padding: 0;
}

[data-idanny-global-footer-brands] .idanny-home-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 28px;
}

[data-idanny-global-footer-brands] .idanny-home-brand img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 54px !important;
	max-height: 23px !important;
	margin: 0 !important;
	object-fit: contain;
	filter: grayscale(1) brightness(0) invert(1);
	opacity: 0.34;
}

.idanny-footer-fallback {
	width: 100%;
	margin: 0;
	background: #222222;
}

.idanny-footer-fallback-nav nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
}

.idanny-footer-fallback-nav a {
	color: rgba(255, 255, 255, 0.40);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.idanny-footer-fallback-nav a:hover,
.idanny-footer-fallback-nav a:focus-visible {
	color: #ffffff;
}

/* Homepage brands occupy the footer's existing empty band without changing
 * the footer height. The source row is moved here by idanny-site-chrome.js. */
.bottom_inner .idanny-footer-brands {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 38px !important;
	z-index: 1;
	width: 100% !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

.bottom_inner .idanny-footer-brands .idanny-home-brands__inner {
	display: grid !important;
	grid-template-columns: repeat(16, minmax(0, 1fr)) !important;
	align-items: center !important;
	width: 100% !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bottom_inner .idanny-footer-brands .idanny-home-brand {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 0 !important;
	height: 42px !important;
}

.bottom_inner .idanny-footer-brands .idanny-home-brand img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 62px !important;
	max-height: 27px !important;
	margin: 0 !important;
	object-fit: contain !important;
	filter: grayscale(1) brightness(0) invert(1) !important;
	opacity: 0.34 !important;
}

.bottom_inner .idanny-footer-brands .idanny-home-brand--apple img,
.bottom_inner .idanny-footer-brands .idanny-home-brand--xiaomi img,
.bottom_inner .idanny-footer-brands .idanny-home-brand--hp img,
.bottom_inner .idanny-footer-brands .idanny-home-brand--jbl img {
	max-width: 28px !important;
	max-height: 28px !important;
}

@media only screen and (max-width: 768px) {
	body.home #page .bottom_bg {
		margin-top: 12px !important;
	}

	.bottom_inner.idanny-footer-legal-host {
		row-gap: 22px !important;
		padding-bottom: 4px !important;
	}

	.bottom_inner .idanny-footer-legal-wrap {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		top: 10px;
		padding-right: 20px;
		padding-left: 20px;
	}

	.idanny-footer-legal {
		font-size: 10px;
		line-height: 1.5;
		text-align: center;
	}

	.idanny-footer-copyright-host {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
	}

	.bottom_inner .idanny-footer-brands {
		left: 0 !important;
		right: 0 !important;
		bottom: 50px !important;
		height: 24px !important;
	}

	.bottom_inner .idanny-footer-brands .idanny-home-brands__inner {
		grid-template-columns: repeat(16, minmax(0, 1fr)) !important;
		width: 100% !important;
		height: 24px !important;
	}

	.bottom_inner .idanny-footer-brands .idanny-home-brand {
		height: 24px !important;
	}

	.bottom_inner .idanny-footer-brands .idanny-home-brand img,
	.bottom_inner .idanny-footer-brands .idanny-home-brand--apple img,
	.bottom_inner .idanny-footer-brands .idanny-home-brand--xiaomi img,
	.bottom_inner .idanny-footer-brands .idanny-home-brand--hp img,
	.bottom_inner .idanny-footer-brands .idanny-home-brand--jbl img {
		max-width: 18px !important;
		max-height: 15px !important;
	}

	/* A no-JS/late-JS fallback uses the same restrained mobile dimensions. */
	[data-idanny-global-footer-brands] {
		padding: 6px 14px;
	}

	[data-idanny-global-footer-brands] .idanny-home-brands__inner,
	[data-idanny-global-footer-brands] .idanny-home-brand {
		height: 24px;
	}

	[data-idanny-global-footer-brands] .idanny-home-brand img {
		max-width: 18px !important;
		max-height: 15px !important;
	}
}

/* The mobile theme already suppresses this control. Hide it on desktop too. */
@media only screen and (min-width: 1025px) {
	#slide_top {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
}
