/* IDG Rankingi – tabele 1:1 w stylu WP Table Builder (IDG) */
.idg-rt, .idg-st {
	--idg-btn: #f3b34a; --idg-btn-text: #fff; --idg-btn-hover: #e5a033;
	--idg-head: #2356b6; --idg-head-text: #fff; --idg-accent: #d4ae3a;
	--idg-stripe: #eeeeee; --idg-border: #eeeeee;
	margin: 0 0 1.75em; color: #000;
}
.idg-rt table, .idg-st table { width: 100%; border-collapse: collapse; border-spacing: 0; margin: 0; border: 0; }
.idg-rt th, .idg-rt td, .idg-st th, .idg-st td { border: 0 !important; padding: 14px 16px; vertical-align: middle; }

/* przycisk */
.idg-btn, .idg-btn:visited {
	display: inline-block; white-space: nowrap; background: var(--idg-btn); color: var(--idg-btn-text) !important;
	font-weight: 700; text-decoration: none !important; text-transform: none; letter-spacing: 0;
	padding: 12px 26px; border-radius: 6px; line-height: 1.2; font-size: 17px; transition: background .15s;
}
.idg-btn:hover, .idg-btn:focus { background: var(--idg-btn-hover); }

/* zdjęcie w stałym kadrze – każde zdjęcie ma ten sam rozmiar */
.idg-img { display: flex; align-items: center; justify-content: center; overflow: hidden; background: transparent; }
.idg-img img, .idg-img__el { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; display: block; margin: 0 !important; }
.idg-img-link { display: block; }

/* gwiazdki */
.idg-stars { display: inline-block; position: relative; font-size: 26px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.idg-stars::before { content: "☆☆☆☆☆"; color: var(--idg-accent); }
.idg-stars::after { content: "★★★★★"; color: var(--idg-accent); position: absolute; left: 0; top: 0; width: var(--idg-r, 100%); overflow: hidden; }

.idg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =================== Tabela rankingowa =================== */
.idg-rt__title { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.idg-rt thead th { background: var(--idg-head); color: var(--idg-head-text); font-size: 22px; font-weight: 700; text-align: center; padding: 16px; text-transform: none; letter-spacing: 0; }
.idg-rt tbody td { background: #fff; font-size: 17px; line-height: 1.45; }
.idg-rt tbody tr:nth-child(even) td { background: var(--idg-stripe); }
.idg-rt td.idg-rt__img, .idg-rt th.idg-rt__img { width: 150px; padding: 10px 8px 10px 14px; }
.idg-rt .idg-img { width: 136px; height: 136px; }
.idg-rt td.idg-rt__cat { font-size: 19px; }
.idg-rt__cat a, .idg-rt__name a { color: #000 !important; text-decoration: none; }
.idg-rt__cat a:hover, .idg-rt__name a:hover { text-decoration: underline; }
.idg-rt__name strong { font-weight: 400; }
.idg-badge { display: table; background: var(--idg-btn); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.idg-rt td.idg-rt__rating { text-align: center; white-space: nowrap; }
.idg-rt td.idg-rt__cta { text-align: center; white-space: nowrap; }
.idg-rt__price { display: block; font-weight: 700; margin-bottom: 8px; }

/* =================== Tabela specyfikacji =================== */
.idg-st__head { background: var(--idg-head); color: var(--idg-head-text); font-weight: 700; font-size: 20px; text-align: center; padding: 14px 16px; }
.idg-st__body { display: flex; align-items: stretch; background: #fff; }
.idg-st__media { flex: 0 0 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.idg-st .idg-img { width: 240px; height: 200px; }
.idg-st__price { font-size: 20px; font-weight: 700; }
.idg-st__table { flex: 1 1 auto; }
.idg-st__table th { width: 42%; font-weight: 700; text-align: left; }
.idg-st__table td { text-align: left; }
.idg-st__table th, .idg-st__table td { font-size: 16px; padding: 12px 16px; }
.idg-st__table tr:nth-child(odd) th, .idg-st__table tr:nth-child(odd) td { background: var(--idg-stripe); }

/* =================== Mobile =================== */
@media (max-width: 700px) {
	.idg-rt thead { display: none; }
	.idg-rt table, .idg-rt tbody { display: block; }
	.idg-rt tr.idg-rt__row { display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "img cat" "img name" "img rating" "cta cta"; gap: 4px 12px; padding: 12px; background: #fff; }
	.idg-rt tbody tr:nth-child(even) { background: var(--idg-stripe); }
	.idg-rt tbody td { padding: 0; background: transparent !important; }
	.idg-rt td.idg-rt__img { grid-area: img; width: auto; padding: 0; }
	.idg-rt .idg-img { width: 96px; height: 96px; }
	.idg-rt td.idg-rt__cat { grid-area: cat; font-size: 16px; font-weight: 600; }
	.idg-rt td.idg-rt__name { grid-area: name; font-size: 15px; }
	.idg-rt td.idg-rt__rating { grid-area: rating; text-align: left; }
	.idg-stars { font-size: 20px; }
	.idg-rt td.idg-rt__cta { grid-area: cta; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
	.idg-rt__price { margin: 0; }
	.idg-st__body { flex-direction: column; }
	.idg-st__media { flex-basis: auto; }
	.idg-st .idg-img { width: 100%; max-width: 280px; height: 200px; }
	.idg-st__table th { width: 45%; }
	.idg-st__table th, .idg-st__table td { font-size: 15px; padding: 10px 12px; }
}
