/**
 * Front-end color rail — always-visible column of theme swatches.
 */

.litwoo-color-rail {
	position: fixed;
	top: 50%;
	right: 16px;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 10px;
	border: 1px solid rgba(23, 19, 43, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 18px 40px rgba(23, 19, 43, 0.14);
	backdrop-filter: blur(12px);
	transform: translateY(-50%);
	font-family: var(--litwoo-sans, "Plus Jakarta Sans", system-ui, sans-serif);
}

.litwoo-color-rail-label {
	margin: 0;
	color: #6e6984;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	writing-mode: horizontal-tb;
}

.litwoo-color-rail-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.litwoo-color-dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.litwoo-color-dot:hover,
.litwoo-color-dot:focus-visible {
	transform: scale(1.08);
	outline: none;
}

.litwoo-color-dot.is-active {
	border-color: #17132b;
	box-shadow: 0 0 0 3px rgba(23, 19, 43, 0.08);
}

.litwoo-color-dot-face {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(23, 19, 43, 0.1);
}

.litwoo-color-dot-tip {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	display: none;
	min-width: 96px;
	padding: 8px 10px;
	border-radius: 12px;
	background: #17132b;
	color: #fff;
	box-shadow: 0 12px 28px rgba(23, 19, 43, 0.22);
	transform: translateY(-50%);
	pointer-events: none;
	text-align: left;
}

.litwoo-color-dot-tip::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	border: 6px solid transparent;
	border-left-color: #17132b;
	transform: translateY(-50%);
}

.litwoo-color-dot:hover .litwoo-color-dot-tip,
.litwoo-color-dot:focus-visible .litwoo-color-dot-tip {
	display: grid;
	gap: 2px;
}

.litwoo-color-dot-tip strong {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

.litwoo-color-dot-tip em {
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	font-style: normal;
}

.litwoo-color-reset {
	margin: 2px 0 0;
	padding: 6px 0 0;
	border: 0;
	border-top: 1px solid #ece7f6;
	background: transparent;
	color: #6e6984;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.litwoo-color-reset:hover {
	color: var(--litwoo-accent-ink, #6d4dff);
}

@media (max-width: 640px) {
	.litwoo-color-rail {
		right: 10px;
		padding: 10px 8px;
		gap: 8px;
	}

	.litwoo-color-dot {
		width: 32px;
		height: 32px;
	}

	.litwoo-color-dot-face {
		width: 24px;
		height: 24px;
	}

	.litwoo-color-rail-label {
		font-size: 9px;
	}
}
