/* Cats Boutique App — στοιχεία που εμφανίζονται σε όλο το site (μπάρα εφαρμογής, εγκατάσταση). */
:root {
	--cba-ink: #201a2e;
	--cba-tissue: #f7e9e6;
	--cba-paper: #ffffff;
	--cba-thread: #b4344d;
	--cba-muted: #6e6577;
	--cba-line: #e7d5d1;
	--cba-safe: env(safe-area-inset-bottom, 0px);
	--cba-ui: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Μπάρα εφαρμογής (μόνο όταν ανοίγει από την αρχική οθόνη) ---------- */
.cba-tabbar,
.cba-back {
	display: none;
}

html.cba-standalone body {
	padding-bottom: calc(64px + var(--cba-safe)) !important;
}

html.cba-standalone .cba-tabbar {
	position: fixed;
	z-index: 99990;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	padding: 0 4px var(--cba-safe);
	background: var(--cba-paper);
	border-top: 1px solid var(--cba-line);
	font-family: var(--cba-ui);
}

.cba-tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 60px;
	padding: 6px 2px 4px;
	color: var(--cba-muted) !important;
	font-size: 11px;
	line-height: 1.2;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}

.cba-tab span {
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cba-tab.is-active {
	color: var(--cba-ink) !important;
	font-weight: 600;
}

.cba-tab.is-active::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 30%;
	right: 30%;
	height: 2px;
	background: var(--cba-thread);
}

.cba-dot {
	position: absolute;
	top: 9px;
	left: calc(50% + 7px);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--cba-thread);
	border: 2px solid var(--cba-paper);
}

.cba-dot[hidden] {
	display: none;
}

html.cba-standalone .cba-back:not([hidden]) {
	position: fixed;
	z-index: 99989;
	left: 12px;
	bottom: calc(76px + var(--cba-safe));
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--cba-line);
	border-radius: 50%;
	background: var(--cba-paper);
	color: var(--cba-ink);
	box-shadow: 0 6px 18px rgba(32, 26, 46, 0.14);
	cursor: pointer;
}

/* ---------- Μπάνερ εγκατάστασης ---------- */
.cba-install {
	position: fixed;
	z-index: 99991;
	left: 12px;
	right: 12px;
	bottom: calc(12px + var(--cba-safe));
	display: grid;
	grid-template-columns: 44px 1fr auto 32px;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto;
	padding: 12px 10px 12px 12px;
	border: 1px solid var(--cba-line);
	border-radius: 16px;
	background: var(--cba-paper);
	color: var(--cba-ink);
	font-family: var(--cba-ui);
	box-shadow: 0 12px 32px rgba(32, 26, 46, 0.18);
	animation: cba-rise 0.35s ease-out;
}

.cba-install[hidden],
.cba-sheet[hidden] {
	display: none;
}

.cba-install img {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
}

.cba-install-text strong {
	display: block;
	font-size: 14px;
	line-height: 1.3;
}

.cba-install-text span {
	display: block;
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--cba-muted);
}

.cba-install-go,
.cba-install-trigger {
	padding: 10px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--cba-ink);
	color: #fff;
	font: 600 13px/1 var(--cba-ui);
	cursor: pointer;
}

.cba-install-x,
.cba-sheet-x {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cba-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

@keyframes cba-rise {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

/* ---------- Οδηγίες «Προσθήκη στην οθόνη Αφετηρίας» ---------- */
.cba-sheet {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(32, 26, 46, 0.45);
	font-family: var(--cba-ui);
}

.cba-sheet-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	padding: 24px 22px calc(28px + var(--cba-safe));
	border-radius: 20px 20px 0 0;
	background: var(--cba-paper);
	color: var(--cba-ink);
	animation: cba-rise 0.3s ease-out;
}

.cba-sheet-x {
	position: absolute;
	top: 12px;
	right: 12px;
}

.cba-sheet-title {
	margin: 0 40px 14px 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.cba-sheet ol {
	margin: 0;
	padding-left: 22px;
	font-size: 15px;
	line-height: 1.55;
}

.cba-sheet li {
	margin-bottom: 10px;
}

.cba-sheet li svg {
	width: 20px;
	height: 20px;
	vertical-align: -4px;
	color: var(--cba-thread);
}

.cba-sheet ol[hidden] {
	display: none;
}

.cba-tabbar a:focus-visible,
.cba-back:focus-visible,
.cba-install button:focus-visible,
.cba-sheet button:focus-visible {
	outline: 2px solid var(--cba-thread);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.cba-install,
	.cba-sheet-card {
		animation: none;
	}
}
