/**
 * Чек-листы — стили витрины.
 * Подключаются только при выводе шорткода [ptchk_checklists].
 * Все селекторы — внутри .ptchk-*, без приоритетных переопределений.
 */

.ptchk-list {
	--ptchk-main: #0b385a;
	--ptchk-hover: #115487;
	--ptchk-line: #e3e8ec;
	--ptchk-muted: #8c8f94;
	--ptchk-text: #1d2327;

	max-width: 100%;
	margin: 0 0 1.5em;
	color: var(--ptchk-text);
	font-size: 16px;
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}

.ptchk-list * {
	box-sizing: border-box;
}

.ptchk-group {
	margin: 1.6em 0 0.25em;
	padding: 0;
	color: var(--ptchk-main);
	font-size: 1.05em;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.ptchk-group:first-child {
	margin-top: 0;
}

.ptchk-row {
	display: grid;
	grid-template-columns: 3em minmax(0, 1fr) auto;
	column-gap: 1rem;
	row-gap: 0.15rem;
	align-items: center;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--ptchk-line);
}

.ptchk-num {
	grid-column: 1;
	grid-row: 1;
	color: var(--ptchk-muted);
	font-size: 0.92em;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.03em;
}

.ptchk-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	color: var(--ptchk-main);
	font-size: 1.06em;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: break-word;
}

.ptchk-sub {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	color: var(--ptchk-muted);
	font-size: 0.85em;
	font-weight: 400;
	line-height: 1.4;
}

.ptchk-btn {
	grid-column: 3;
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-width: 12em;
	padding: 0.6em 1.15em;
	border: 0;
	border-radius: 4px;
	background-color: var(--ptchk-main);
	color: #fff;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.ptchk-btn:hover,
.ptchk-btn:focus {
	background-color: var(--ptchk-hover);
	color: #fff;
	text-decoration: none;
}

.ptchk-btn:focus-visible {
	outline: 2px solid var(--ptchk-hover);
	outline-offset: 2px;
}

.ptchk-btn svg {
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ptchk-btn--soon {
	background-color: #eef1f4;
	color: var(--ptchk-muted);
	cursor: default;
	pointer-events: none;
}

.ptchk-list--nonum .ptchk-row {
	grid-template-columns: minmax(0, 1fr) auto;
}

.ptchk-list--nonum .ptchk-title,
.ptchk-list--nonum .ptchk-sub {
	grid-column: 1;
}

.ptchk-list--nonum .ptchk-btn {
	grid-column: 2;
}

.ptchk-empty {
	margin: 0 0 1.5em;
	color: #8c8f94;
	font-size: 0.95em;
}

@media (max-width: 600px) {
	.ptchk-row,
	.ptchk-list--nonum .ptchk-row {
		grid-template-columns: 2.4em minmax(0, 1fr);
	}

	.ptchk-num {
		grid-column: 1;
	}

	.ptchk-title,
	.ptchk-list--nonum .ptchk-title {
		grid-column: 2;
	}

	.ptchk-sub,
	.ptchk-list--nonum .ptchk-sub {
		grid-column: 2;
		grid-row: 2;
	}

	.ptchk-btn,
	.ptchk-list--nonum .ptchk-btn {
		grid-column: 1 / -1;
		grid-row: 3;
		width: 100%;
		min-width: 0;
		margin-top: 0.45rem;
	}

	.ptchk-list--nonum .ptchk-title {
		grid-column: 1 / -1;
	}
}
