/*
 * K-4253c04e: the look of the "Tap ⋮ → Open in browser" / "Tap ⋯ → Open in browser" prompt on the brand apps. The
 * prompt is drawn by the creator sites' own script (open-in-browser.js, a byte-identical copy: shared/in-app-browser),
 * whose class names are the sites' (Tailwind); here the same look in the brand's colours, by the prompt's data
 * attributes only: a card at the top right over the page (under the More sheet, the side menu and the windows), the
 * words in the look's text colour, a round close X. `!important` only where Bootstrap's own classes of the same names
 * (border, shadow-lg, gap-3, text-muted) would win otherwise. Loaded in the head with the scripts
 * (server/lib/openInBrowser.ts), so the prompt has its look before the app's own stylesheet is in.
 */
[data-open-in-browser] {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	right: 0.5rem;
	z-index: 1040;
	display: flex;
	justify-content: flex-end;
	pointer-events: none !important;
}

[data-open-in-browser] > div {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 0.75rem !important;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.375rem 0.375rem 0.375rem 1rem;
	border-radius: 16px;
	background: var(--sidebar-clr, #ffffff);
	border: 1px solid color-mix(in srgb, var(--ink-clr, #161616) 22%, transparent) !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.18), 0 4px 6px -4px rgba(0, 0, 0, 0.18) !important;
}

[data-open-in-browser] [data-open-in-browser-words] {
	margin: 0;
	color: var(--ink-clr, #161616);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
}

[data-open-in-browser] [data-open-in-browser-close] {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--ink-clr, #161616) !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

[data-open-in-browser] [data-open-in-browser-close]:hover,
[data-open-in-browser] [data-open-in-browser-close]:focus-visible {
	background: color-mix(in srgb, var(--ink-clr, #161616) 10%, transparent);
}

[data-open-in-browser] [data-open-in-browser-close] svg {
	width: 1.25rem;
	height: 1.25rem;
}
