/* Mobile PWA tab bar. Hidden from the desktop header breakpoint upward. */
:root {
	--clecod-tabbar-rise: 16px;
	--clecod-tabbar-offset: calc(78px + env(safe-area-inset-bottom, 0px));
	--clecod-tabbar-ink: #0c0e12;
	--clecod-tabbar-line: #e2e2e2;
	--clecod-tabbar-red: var(--qode-main-color, #e20100);
}

.clecod-tabbar {
	display: none;
}

.clecod-install,
.clecod-install__hint[hidden] {
	display: none;
}

@media (min-width: 1201px) {
	.clecod-tabbar,
	.clecod-install {
		display: none !important;
	}
}

.clecod-tabbar__badge[hidden] {
	display: none !important;
}

@media (max-width: 1200px) {
	body {
		padding-bottom: var(--clecod-tabbar-offset);
	}

	body:has(.clecod-install.is-visible) {
		padding-bottom: calc(var(--clecod-tabbar-offset) + 56px);
	}

	.clecod-tabbar {
		position: fixed !important;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 120;
		display: grid !important;
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: end;
		box-sizing: border-box;
		min-height: 58px;
		padding: 7px 2px calc(7px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--clecod-tabbar-line);
		color: var(--clecod-tabbar-ink);
		font-family: var(--clecod-font-display, "Aloevera Display", "Archivo", sans-serif);
	}

	.clecod-tabbar__item {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		gap: 3px;
		min-width: 0;
		min-height: 44px;
		padding: 0 2px;
		color: inherit;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}

	.clecod-tabbar__item:focus-visible {
		outline: 2px solid var(--clecod-tabbar-red);
		outline-offset: -2px;
	}

	.clecod-tabbar__icon {
		position: relative;
		display: flex;
		flex: 0 0 24px;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		min-width: 24px;
		min-height: 24px;
		overflow: visible;
	}

	.clecod-tabbar__icon svg {
		display: block;
		flex: 0 0 22px;
		width: 22px !important;
		height: 22px !important;
		min-width: 22px;
		min-height: 22px;
		max-width: 22px;
		max-height: 22px;
	}

	.clecod-tabbar__svg--stroke {
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-miterlimit: 10;
	}

	.clecod-tabbar__svg--phone {
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.clecod-tabbar__svg--fill {
		fill: currentColor;
		stroke: none;
	}

	.clecod-tabbar__label {
		display: block;
		max-width: 100%;
		overflow: hidden;
		font-size: 10px;
		font-weight: 500;
		line-height: 1.15;
		letter-spacing: 0.01em;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.clecod-tabbar__item[aria-current="page"] {
		color: var(--clecod-tabbar-red);
	}

	.clecod-tabbar__item--center {
		justify-content: flex-end;
	}

	.clecod-tabbar__plus {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin-top: calc(var(--clecod-tabbar-rise) * -1);
		background: var(--clecod-tabbar-red);
		color: #fff;
		box-shadow: 0 0 0 4px #fff;
	}

	.clecod-tabbar__item--center[aria-current="page"] .clecod-tabbar__plus {
		background: var(--clecod-tabbar-ink);
	}

	.clecod-tabbar__badge {
		position: absolute;
		top: -8px;
		right: -14px;
		left: auto;
		z-index: 1;
		min-width: 18px;
		padding: 1px 3px;
		background: var(--clecod-tabbar-red);
		color: #fff;
		font-family: var(--clecod-font-body, "Archivo", sans-serif);
		font-size: 9px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: 0;
		text-align: center;
		text-transform: none;
		white-space: nowrap;
		pointer-events: none;
	}

	.clecod-install__hint[hidden] {
		display: none !important;
	}

	body .clecod-install {
		display: none !important;
	}

	body .clecod-install.is-visible {
		position: fixed !important;
		left: 50%;
		right: auto;
		bottom: calc(var(--clecod-tabbar-offset) + 8px);
		z-index: 121;
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		flex-direction: column-reverse;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		box-sizing: border-box;
		width: max-content;
		max-width: calc(100vw - 24px);
		margin: 0;
		padding: 0;
		transform: translateX(-50%) !important;
		pointer-events: none;
	}

	.clecod-install__button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		margin: 0;
		padding: 0 18px;
		border: 0;
		background: var(--clecod-tabbar-red);
		color: #fff;
		box-shadow: 0 0 0 4px #fff;
		pointer-events: auto;
		font-family: var(--clecod-font-display, "Archivo", sans-serif);
		font-size: 14px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: 0.01em;
		text-transform: none;
		cursor: pointer;
	}

	.clecod-install__button:focus-visible {
		outline: 2px solid var(--clecod-tabbar-red);
		outline-offset: 3px;
	}

	.clecod-install__hint {
		max-width: 28rem;
		margin: 0;
		padding: 8px 10px;
		background: #fff;
		color: var(--clecod-tabbar-ink);
		pointer-events: auto;
		font-family: var(--clecod-font-body, "Archivo", sans-serif);
		font-size: 13px;
		font-weight: 500;
		line-height: 1.45;
		text-align: center;
	}

	#qodef-back-to-top {
		bottom: calc(var(--clecod-tabbar-offset) + 120px);
	}

	body .joinchat,
	body .joinchat.joinchat--footer-bar {
		--bottom: calc(var(--clecod-tabbar-offset) + 64px) !important;
	}
}

@media print {
	.clecod-tabbar,
	.clecod-install {
		display: none !important;
	}

	body {
		padding-bottom: 0 !important;
	}
}
