/* Допълнителни стилове за описанията на продуктите (таблици за сравнение и др.) */
.dc-table-wrap { overflow-x: auto; margin: 16px 0 28px; -webkit-overflow-scrolling: touch; }
.dc-table-wrap + .dc-note { margin-top: -16px; }
.wd-entry-content table.dc-table,
table.dc-table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.dc-table th,
.dc-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .08); text-align: center; vertical-align: middle; }
.dc-table th:first-child,
.dc-table td:first-child { text-align: left; font-weight: 600; color: var(--wd-title-color, #242424); }
.dc-table thead th,
.dc-table thead td { background: #f3f6fd; color: var(--wd-title-color, #242424); font-family: var(--wd-title-font); font-weight: 600; }
.dc-table thead th:first-child,
.dc-table thead td:first-child { border-top-left-radius: var(--wd-brd-radius, 10px); }
.dc-table thead th:last-child,
.dc-table thead td:last-child { border-top-right-radius: var(--wd-brd-radius, 10px); }
.dc-table tbody tr:hover td { background: rgba(0, 0, 0, .015); }
.dc-tabs__pane > ul { max-width: 760px; margin: 16px auto 0; }
/* Предпазна мрежа: ако в група табове няма активен панел (грешка в описанието или JS не е тръгнал), се вижда първият */
.dc-tabs__panes:not(:has(> .dc-tabs__pane.is-active)) > .dc-tabs__pane:first-child { display: block; }
/* Обвивка на видео/снимка в табове (пази HTML-а валиден) */
.dc-fig { margin: 0; }
.dc-tabs__pane > figure { margin: 0 0 8px; }
/* YouTube видео: до кликване се показва само снимка (js/dc-product.js зарежда плейъра) */
.dc-yt { position: relative; margin: 16px 0 28px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--wd-brd-radius, 10px); background: #0b0b0b; cursor: pointer; }
.dc-yt p:empty { display: none; }
.dc-yt img,
.dc-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; object-fit: cover; }
.wd-entry-content .dc-yt__play,
.dc-yt__play {
	position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 54px; min-height: 0; margin: -27px 0 0 -38px; padding: 0;
	border: 0; border-radius: 14px; background: rgba(0, 0, 0, .65); box-shadow: none; cursor: pointer; transition: background-color .2s ease;
}
.dc-yt__play::after { content: ""; position: absolute; left: 30px; top: 15px; border-style: solid; border-width: 12px 0 12px 21px; border-color: transparent transparent transparent #fff; }
.wd-entry-content .dc-yt:hover .dc-yt__play,
.wd-entry-content .dc-yt__play:focus-visible { background: #f00; }
@media (max-width: 767px) {
	.dc-table { font-size: 13px; }
	.dc-table th, .dc-table td { padding: 8px; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
	/* Таблици с 2–3 колони се събират в екрана (с min-width: 520px стойностите оставаха извън него).
	   При 2 колони стойностите са подравнени вляво, до етикета. */
	.wd-entry-content table.dc-table:not(:has(tr > :nth-child(4))),
	table.dc-table:not(:has(tr > :nth-child(4))) { min-width: 0; }
	.dc-table:not(:has(tr > :nth-child(3))) td:first-child,
	.dc-table:not(:has(tr > :nth-child(3))) th:first-child { width: 42%; }
	.dc-table:not(:has(tr > :nth-child(3))) td:last-child,
	.dc-table:not(:has(tr > :nth-child(3))) th:last-child { text-align: left; }
	/* 3 колони (сравнение на две версии): етикетът е на целия ред, двете стойности – под него една до друга */
	.wd-entry-content table.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))),
	table.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))),
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) :is(thead, tbody, tfoot) { display: block; }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(0, 0, 0, .08); }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) :is(th, td) { border-bottom: 0; }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) :is(th, td):first-child { grid-column: 1 / -1; padding-bottom: 0; text-align: left; }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) :is(th, td)[colspan] { grid-column: 1 / -1; }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) thead tr { border-bottom: 0; border-radius: var(--wd-brd-radius, 10px) var(--wd-brd-radius, 10px) 0 0; background: #f3f6fd; }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) thead :is(th, td) { border-radius: 0; }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) thead :is(th, td):first-child:empty { display: none; }
	.dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) thead :is(th, td):not(:first-child) { padding-top: 10px; }
	/* Заглавният ред остава горе, затова над всяка стойност стои името на колоната (версията) –
	   иначе в дългите таблици не се знае коя стойност на коя версия е. Етикетите слага js/dc-product.js;
	   без JS таблицата е както преди (имената са само в първия ред). */
	.dc-table--labels:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) tbody [data-dc-label]::before {
		content: attr(data-dc-label);
		display: block;
		margin: 0 0 2px;
		font-family: var(--wd-text-font, "Open Sans", sans-serif);
		font-size: 11px;
		font-weight: 700;
		line-height: 1.35;
		color: #4A5B6E;
		-webkit-hyphens: none;
		hyphens: none;
	}
	/* По-широките се превъртат настрани: първата колона стои на място, а сянката вдясно показва,
	   че има още колони (изчезва, когато стигнете до края). */
	.dc-table-wrap {
		background:
			linear-gradient(to left, #fff 40%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
			radial-gradient(farthest-side at 100% 50%, rgba(18, 38, 58, .2), rgba(18, 38, 58, 0)) right center / 14px 100% no-repeat scroll;
	}
	.dc-table:has(tr > :nth-child(4)) th:first-child,
	.dc-table:has(tr > :nth-child(4)) td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .08); }
	.dc-table:has(tr > :nth-child(4)) thead th:first-child,
	.dc-table:has(tr > :nth-child(4)) thead td:first-child { background: #f3f6fd; }
	.wd-entry-content .dc-yt__play, .dc-yt__play { width: 64px; height: 46px; margin: -23px 0 0 -32px; }
	.dc-yt__play::after { left: 25px; top: 12px; border-width: 11px 0 11px 19px; }
}

/* Кръг 29 (19.11.2026), таблиците в описанията. Правилата са с html body, за да са по-силни от горните, без да се
   пипат те. Заглавията са без главните букви на темата („mAh“ ставаше „MAH“), думите не се делят (overflow-wrap:
   anywhere и hyphens: auto горе даваха „КОНФИГУРАЦИ/Я“), а таблиците с 2 и 3 колони винаги се събират
   (min-width: 520px ги правеше по-широки от колоната на таблет). */
html body .dc-table th {
	text-transform: none;
}
html body .dc-table :is(th, td) {
	overflow-wrap: break-word;
	-webkit-hyphens: manual;
	hyphens: manual;
}
html body .wd-entry-content table.dc-table:not(:has(tr > :nth-child(4))) {
	min-width: 0;
}
html body .wd-entry-content table.dc-table:has(tr > :nth-child(4)) {
	min-width: 500px;
}
/* Сянка вдясно, само когато таблицата е по-широка от колоната; в края на превъртането изчезва. */
html body .dc-table-wrap {
	background:
		linear-gradient(to left, #fff 16px, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
		linear-gradient(to left, rgba(18, 38, 58, .25), rgba(18, 38, 58, 0)) right center / 16px 100% no-repeat scroll,
		#fff;
}
@media (max-width: 1024.98px) {
	/* 4+ колони се превъртат и на таблет: първата колона стои на място. */
	html body .dc-table:has(tr > :nth-child(4)) :is(th, td):first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: #fff;
		box-shadow: inset -1px 0 0 rgba(0, 0, 0, .08);
	}
	html body .dc-table:has(tr > :nth-child(4)) thead :is(th, td):first-child {
		background: #f3f6fd;
	}
	html body .dc-table :is(th, td) {
		padding-right: 8px;
		padding-left: 8px;
	}
}
@media (max-width: 768.98px) {
	html body .dc-table thead th {
		font-size: 14px;
	}
	html body .dc-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) tr {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 569.98px) {
	/* Под 570 px таблица с 4+ колони (поне 500 px) винаги е по-широка от колоната: първата колона е широка
	   колкото най-дългата си дума, за да се виждат повече стойности, а над таблицата има подсказка. */
	html body .dc-table:has(tr > :nth-child(4)) :is(th, td):first-child {
		width: 1%;
	}
	html body .dc-table-wrap:has(> .dc-table tr > :nth-child(4))::before {
		content: "Плъзнете таблицата настрани, за да видите всички колони.";
		display: block;
		margin: 0 0 8px;
		color: #4A5B6E;
		font-size: 13px;
		line-height: 1.4;
	}
}
@media (max-width: 359.98px) {
	html body .wd-entry-content table.dc-table {
		font-size: 13px;
	}
}
