/*
 * "Call to collect" tab (inc/collect.php): a slim strip fixed to the right edge, half-way down.
 * Closed: gold phone + spaced caps label running up the edge. Hover / keyboard focus slides the
 * offer out to the left. Shared by the child theme (it inherits this file), so only palette slugs
 * both themes define. Sits under the header (50/100) and the cosy phone menu sheet (40).
 */
.cr-collect {
	--cr-collect-bg: color-mix(in srgb, var(--wp--preset--color--teal) 45%, #0c1311);
	--cr-collect-line: color-mix(in srgb, var(--wp--preset--color--gold) 55%, transparent);
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 39;
	display: flex;
	flex-direction: row-reverse; /* the strip hugs the edge, the offer opens to its left */
	align-items: stretch;
	transform: translateY(-50%);
	border: 1px solid var(--cr-collect-line);
	border-right: 0;
	border-radius: 3px 0 0 3px;
	background: var(--cr-collect-bg);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
	color: var(--wp--preset--color--cream);
	font-family: var(--cr-font-sans, sans-serif);
	text-decoration: none;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.cr-collect:hover,
.cr-collect:focus-visible {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

.cr-collect:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

.cr-collect__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 38px;
	padding: 14px 0 16px;
}

.cr-collect__tab svg {
	width: 14px;
	height: 14px;
	fill: var(--wp--preset--color--gold);
}

.cr-collect__label {
	writing-mode: vertical-rl;
	transform: rotate(180deg); /* reads bottom to top, like a book spine */
	font-size: 10.5px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cr-collect__label b {
	color: var(--wp--preset--color--gold);
	font-weight: 600;
}

.cr-collect__more {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	max-width: 0;
	padding: 0;
	opacity: 0;
	white-space: nowrap;
	transition: max-width 0.4s ease, padding 0.4s ease, opacity 0.25s ease;
}

.cr-collect__more strong {
	font-family: var(--cr-font-serif, serif);
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
}

.cr-collect__phone {
	color: var(--wp--preset--color--gold);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.cr-collect:hover .cr-collect__more,
.cr-collect:focus-visible .cr-collect__more {
	max-width: 280px;
	padding: 0 22px 0 24px;
	opacity: 1;
}

/* Divider between the offer and the strip, only while open. */
.cr-collect:hover .cr-collect__tab,
.cr-collect:focus-visible .cr-collect__tab {
	box-shadow: inset 1px 0 0 var(--cr-collect-line);
}

@media (max-width: 600px) {
	.cr-collect__tab {
		width: 34px;
		gap: 10px;
		padding: 12px 0 14px;
	}

	.cr-collect__label {
		font-size: 10px;
		letter-spacing: 0.18em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cr-collect,
	.cr-collect__more {
		transition: none;
	}
}

@media print {
	.cr-collect {
		display: none;
	}
}
