/*
 * wsk-ui.css – rama „Wielki Szlem Komandosa”.
 * Bazowy layout i komponenty – shadowbox-ui-restore.css.
 */

body.wsk-ui .is-hidden {
	display: none !important;
}

/* Podgląd: zdjęcie produktu albo logo WSK */
body.wsk-ui .wsk-preview-wrap {
	aspect-ratio: 1006 / 1410;
	height: min(80vh, 860px);
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 1024px) {
	body.wsk-ui .wsk-preview-wrap {
		height: auto;
		width: min(100%, 520px);
	}
}

body.wsk-ui .wsk-preview-wrap.is-logo {
	aspect-ratio: 1 / 1;
	height: 40vh;
}

/* Lista biegów */
.wsk-runs {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.wsk-run {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.85rem;
	border: 1px solid rgba(205, 165, 87, 0.2);
	border-radius: 10px;
	cursor: pointer;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.85rem;
	color: rgba(239, 231, 214, 0.8);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wsk-run:hover {
	border-color: rgba(205, 165, 87, 0.5);
	color: #f5f2eb;
}

.wsk-run input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.wsk-run__box {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(205, 165, 87, 0.55);
	border-radius: 4px;
	position: relative;
}

.wsk-run input:checked + .wsk-run__box {
	background: linear-gradient(135deg, #d4b96e 0%, #c9aa6a 60%, #b8965a 100%);
	border-color: #c9aa6a;
}

.wsk-run input:checked + .wsk-run__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #0b0d13;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.wsk-run input:focus-visible + .wsk-run__box {
	outline: 2px solid #c9aa6a;
	outline-offset: 2px;
}

.wsk-run:has(input:checked) {
	border-color: rgba(205, 165, 87, 0.6);
	background: rgba(201, 170, 106, 0.08);
	color: #f5f2eb;
}

.wsk-count {
	margin: 0.6rem 0 0;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.78rem;
	color: #c9aa6a;
}

/* Opis biegu: nazwa + miejsce/data */
.wsk-run__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.wsk-run__label {
	font-weight: 600;
}

.wsk-run__meta {
	font-size: 0.74rem;
	color: rgba(239, 231, 214, 0.55);
}

/* Komplet + lista */
.wsk-run--komplet {
	border-color: rgba(205, 165, 87, 0.45);
	background: rgba(201, 170, 106, 0.06);
}

.wsk-runs-subtitle {
	margin: 1rem 0 0.5rem;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(239, 231, 214, 0.75);
}

.wsk-runs.is-locked .wsk-run {
	opacity: 0.55;
	cursor: default;
}

/* Podgląd bez cienia – ciemna poświata wyglądała jak czarny margines */
body.wsk-ui .wsk-preview-wrap img.shadowbox-frame-img {
	filter: none;
}

/* Pytanie o napis */
body.wsk-ui .wsk-question {
	text-transform: none;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

body.wsk-ui .wsk-yesno {
	gap: 1rem;
	margin-top: 0.5rem;
}

body.wsk-ui .wsk-yesno .shadowbox-ui-option {
	min-width: 5.5rem;
}

/* Pole napisu */
.wsk-name-fields {
	margin-top: 1rem;
}

.wsk-name-fields input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(205, 165, 87, 0.25);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: #f5f2eb;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.95rem;
}

.wsk-name-fields input::placeholder {
	color: rgba(239, 231, 214, 0.35);
}

.wsk-name-fields input:focus {
	outline: none;
	border-color: #c9aa6a;
}

body.wsk-ui .quantity {
	display: none !important;
}

/* Telefon: pola min. 16 px – inaczej iPhone powiększa stronę przy wpisywaniu */
@media (max-width: 768px) {
	body.wsk-ui .wsk-name-fields input,
	body.wsk-ui .shadowbox-ui-textarea {
		font-size: 16px !important;
	}
}
