/* AdQuickly site-wide touches (2026-12 redesign): country pill in the header and the app-style bottom bar on phones. */

/* Country pill next to the logo ("[flag] India v"), as in the reference design */
.aq-country-pill {
	display: inline-flex !important; align-items: center; gap: 6px; padding: 5px 10px !important; margin-left: 10px;
	border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(31, 36, 51, .06);
	color: #1f2433 !important; font-size: 13px; font-weight: 600; line-height: 1;
}
.aq-country-pill img { width: 22px; height: auto; border-radius: 3px; }
.aq-country-pill .bi { font-size: 10px; margin: 0 !important; }

/* Bottom app bar: hidden on tablets and desktops */
.aq-app-bar { display: none; }

@media (max-width: 767.98px) {
	/* Compact sticky header, like an app's top bar */
	.header-area.public-header-area {
		position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .94);
		-webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
		box-shadow: 0 1px 0 rgba(31, 36, 51, .06);
	}

	/* Never let the page scroll sideways on phones */
	html, body { overflow-x: hidden; }

	.aq-app-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
		display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
		height: calc(62px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, .97); border-top: 1px solid #e8ebf2;
		-webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
		box-shadow: 0 -6px 20px rgba(31, 36, 51, .06);
	}
	.aq-app-item, .aq-app-sell {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		height: 62px; color: #6b7285 !important; text-decoration: none !important; -webkit-tap-highlight-color: transparent;
	}
	.aq-app-item i { font-size: 21px; line-height: 1; }
	.aq-app-label { font-size: 10.5px; font-weight: 500; line-height: 1; }
	.aq-app-item.is-active { color: var(--theme-color, #e3262c) !important; }
	.aq-app-item.is-active .aq-app-label { font-weight: 600; }
	.aq-app-item:active, .aq-app-sell:active { transform: scale(.94); }

	.aq-app-sell { justify-content: flex-end; padding-bottom: 8px; color: #1f2433 !important; }
	.aq-app-sell-btn {
		display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-top: -22px; margin-bottom: 2px;
		border-radius: 50%; border: 4px solid #fff; color: #fff; font-size: 22px;
		background: linear-gradient(180deg, var(--theme-color, #e3262c) 0%, #c81d23 100%);
		box-shadow: 0 6px 16px rgba(227, 38, 44, .35);
	}
	.aq-app-sell .aq-app-label { font-weight: 600; }

	/* Keep page content and floating widgets clear of the bar */
	body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	.cookie-consent, .cookie-consent__message, #cookie-consent { bottom: calc(66px + env(safe-area-inset-bottom)) !important; }
}

@media print { .aq-app-bar { display: none !important; } }

@media (max-width: 991.98px) {
	.aq-country-name { display: none; }
	.aq-country-pill { margin-left: 4px; }
}
