/*
 * Bottom tab bar on phones (includes/mobile-tabbar.php).
 */

.gg-tabbar {
	display: none;
}

@media (max-width: 760px) {
	body.gg-has-tabbar {
		padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	}

	body:not(#gg) .gg-tabbar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 990;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		align-items: stretch;
		margin: 0;
		padding: 0 0 env(safe-area-inset-bottom, 0px);
		background: #fbf9f5;
		box-shadow: 0 -1px 0 #eae4dc, 0 -8px 24px rgba(18, 18, 18, 0.05);
		font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

		& .gg-tabbar__item {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			gap: 6px;
			min-height: 68px;
			padding: 10px 4px 12px;
			color: #6e6a64;
			text-decoration: none;
			-webkit-tap-highlight-color: transparent;
			transition: color 0.15s ease;

			&:hover,
			&:focus-visible {
				color: #121212;
			}

			&:focus-visible {
				outline: 2px solid #d4af37;
				outline-offset: -4px;
			}

			&.is-current {
				color: #121212;
			}
		}

		& .gg-tabbar__icon {
			position: relative;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 28px;
			height: 28px;

			& svg {
				stroke-width: 1.7;
			}
		}

		& .gg-tabbar__item.is-current svg {
			stroke-width: 2;
		}

		& .gg-tabbar__label {
			font-size: 13px;
			font-weight: 600;
			line-height: 16px;
			letter-spacing: 0.8px;
			text-transform: uppercase;
		}

		& .gg-tabbar__badge,
		& .gg-tabbar__count {
			position: absolute;
			top: -4px;
			right: -8px;
			display: flex;
			align-items: center;
			justify-content: center;
			min-width: 17px;
			height: 17px;
			padding: 0 4px;
			border-radius: 999px;
			background: #d4af37;
			color: #121212;
			font-size: 10px;
			font-weight: 700;
			line-height: 1;
			letter-spacing: 0;

			&[hidden] {
				display: none;
			}
		}
	}
}

@media (max-width: 400px) {
	body:not(#gg) .gg-tabbar .gg-tabbar__label {
		font-size: 11px;
		letter-spacing: 0.4px;
	}
}

@media print {
	.gg-tabbar {
		display: none !important;
	}
}
