/**
 * Auto Team App — front-end styles.
 *
 * Deliberately low-specificity and self-contained so the theme keeps control
 * of everything else on the page.
 */

.ateam-banner {
	position: fixed;
	left: 50%;
	bottom: max(1rem, env(safe-area-inset-bottom));
	transform: translate(-50%, 150%);
	z-index: 99999;

	display: flex;
	align-items: center;
	gap: 0.9rem;

	width: calc(100% - 2rem);
	max-width: 30rem;
	padding: 0.9rem 1rem;
	box-sizing: border-box;

	background: #fff;
	color: #1c1e21;
	border-radius: 14px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.9rem;
	line-height: 1.4;

	opacity: 0;
	transition: transform 0.28s ease, opacity 0.28s ease;
}

.ateam-banner.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}

.ateam-banner__icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	flex: 0 0 auto;
	object-fit: contain;
}

.ateam-banner__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1 1 auto;
}

.ateam-banner__title {
	font-size: 0.92rem;
	font-weight: 600;
}

.ateam-banner__body {
	font-size: 0.82rem;
	color: #5a6069;
}

.ateam-banner__actions {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 0 0 auto;
}

.ateam-btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;

	background: var(--ateam-brand, #0b1f3a);
	color: #fff;
	transition: opacity 0.15s ease;
}

.ateam-btn:hover:not(:disabled) {
	opacity: 0.9;
}

.ateam-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.ateam-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ateam-btn--ghost {
	background: transparent;
	color: #6b7280;
	padding: 0.35rem 0.6rem;
	font-weight: 500;
}

.ateam-btn.is-on {
	background: #1f7a3d;
}

.ateam-btn.is-on::before {
	content: "✓ ";
}

.ateam-notify-widget,
.ateam-install-widget {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.ateam-notify-status {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #6b7280;
	max-width: 24rem;
}

@media (max-width: 380px) {
	.ateam-banner {
		flex-wrap: wrap;
	}

	.ateam-banner__actions {
		flex-direction: row;
		width: 100%;
		justify-content: flex-end;
	}
}

@media (prefers-color-scheme: dark) {
	.ateam-banner {
		background: #1e2226;
		color: #e8eaed;
		box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
	}

	.ateam-banner__body {
		color: #aeb4bd;
	}

	.ateam-btn--ghost {
		color: #aeb4bd;
	}

	.ateam-notify-status {
		color: #aeb4bd;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ateam-banner {
		transition: none;
	}
}
