/* =============================================================
   WC Swatches Elementor Widget – Styly
   Verze: 1.0.2
   ============================================================= */

/* ── Obal widgetu ─────────────────────────────────────────── */
.wcse-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* ── Seznam vzorků ───────────────────────────────────────── */
.wcse-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcse-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ── Jednotlivý vzorek (kruh) ────────────────────────────── */
.wcse-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.18);
	padding: 0;
	margin: 0;
	cursor: pointer;
	position: relative;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: border-color 0.15s ease, outline-color 0.15s ease, transform 0.1s ease;
	background-color: #cccccc; /* fallback */
	-webkit-appearance: none;
	appearance: none;
	line-height: 1;
}

.wcse-swatch:hover {
	transform: scale(1.08);
}

.wcse-swatch:focus-visible {
	outline: 3px solid #0073aa;
	outline-offset: 3px;
}

/* ── Vybraný vzorek ──────────────────────────────────────── */
.wcse-swatch.wcse-selected {
	outline: 2px solid #1a1a5e;
	outline-style: solid;
	outline-offset: 2px;
}

/* ── Zatrhnutí uvnitř vzorku ─────────────────────────────── */
.wcse-check {
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
	pointer-events: none;
	user-select: none;
	display: block;
}

/* Pro světlé barvy – tmavší zatrhnutí
   (CSS nelze detekovat přímo, ale lze přepsat inline nebo přes JS třídu) */
.wcse-swatch.wcse-light .wcse-check {
	color: #333333;
	text-shadow: none;
}

/* Bílý / velmi světlý vzorek – jemný rámeček aby byl viditelný */
.wcse-swatch.wcse-needs-border {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* ── Štítek vybrané barvy ────────────────────────────────── */
.wcse-label {
	margin: 10px 0 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: baseline;
}

.wcse-label-prefix {
	color: #333333;
	font-weight: 400;
}

.wcse-label-value {
	color: #333333;
	font-weight: 700;
}

/* ── Editor poznámka (pouze v Elementor editoru) ─────────── */
.wcse-editor-note {
	font-size: 12px;
	color: #888888;
	margin: 0 0 8px 0;
	padding: 6px 10px;
	background: #f0f0f0;
	border-left: 3px solid #0073aa;
	border-radius: 2px;
}

.wcse-editor-note code {
	background: #e0e0e0;
	padding: 1px 4px;
	border-radius: 2px;
	font-size: 11px;
}

/* ── Chybová hláška ──────────────────────────────────────── */
.wcse-notice {
	color: #d63638;
	font-size: 13px;
	margin: 0;
	padding: 8px 12px;
	background: #fcf0f1;
	border: 1px solid #d63638;
	border-radius: 3px;
}
