/* Promocja 2+1 / 3+2 gratis na gatlingi (inc/v-gratisy.php). Kolory promocji: fiolet #7b11db, limonka #c9f413. */

/* Plakietka: listing (dół zdjęcia, lewa strona — prawą zajmuje „Film”) i karta produktu (nad tytułem). */
.pf-gratis-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 2px;
	background: #7b11db;
	color: #c9f413;
	font: 700 12px/1.3 var(--pf-font);
	letter-spacing: .02em;
	white-space: nowrap;
}
.pf-gratis-badge--card { position: absolute; left: 10.5px; top: 215px; z-index: 2; }
.pf-gratis-badge--single { margin-top: 15px; font-size: 13px; }
.pf-pb__pick + .pf-gratis-badge--single { margin-top: 8px; }
@media (max-width: 1023px) {
	.pf-gratis-badge--card { left: 6.5px; top: 175px; padding: 3px 6px; font-size: 11px; }
}

/* Pozycja gratisu w koszyku / mini-koszyku / kasie. */
.pf-gratis-tag {
	display: inline-block;
	margin-right: 4px;
	padding: 1px 6px;
	border-radius: 2px;
	background: #c9f413;
	color: #17111f;
	font: 700 11px/1.5 var(--pf-font);
	vertical-align: middle;
	font-style: normal;
}
.pf-gratis-why { display: block; margin-top: 4px; font: 400 12px/1.4 var(--pf-font); color: #7b11db; text-transform: none; font-style: normal; }
.pf-mc .pf-gratis-why { color: #c9f413; }
.pf-gratis-qty { display: inline-block; padding: 6px 10px; border-radius: 3px; background: #c9f413; color: #17111f; font: 700 15px/1 var(--pf-font); white-space: nowrap; }
/* Mini-koszyk (szablon bez filtrów ilości): gratis bez +/−, „tani” bez „Usuń”. Serwer i tak odrzuca zmianę ilości. */
.pf-mc__item:has(.pf-gratis-tag) .pf-mc__qty { display: none; }
.pf-mc__item:has(.pf-gratis-tag[data-typ="tani"]) .pf-mc__remove { display: none; }

/* Blok „Wybierz gratis”. */
.pf-gratis {
	margin: 20px 0;
	padding: 16px;
	border-radius: 4px;
	background: #7b11db;
	color: #fff;
}
.pf-gratis__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 !important; font: 400 12px/1.4 var(--pf-font); }
.pf-gratis__head b { padding: 3px 8px; border-radius: 2px; background: #c9f413; color: #17111f; font-weight: 700; }
.pf-gratis__title { margin: 10px 0 12px !important; font: italic 700 24px/1.1 var(--pf-display); text-transform: uppercase; color: #fff; }
.pf-gratis__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-gratis__item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.pf-gratis__item.is-on { outline: 2px solid #c9f413; }
.pf-gratis__item.is-off { opacity: .55; }
.pf-gratis__thumb { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #fffdf7; border-radius: 2px; overflow: hidden; }
.pf-gratis__thumb img { width: 48px; height: 48px; object-fit: contain; }
.pf-gratis__thumb .pf-thumb-ph { font-size: 14px; color: #7b11db; }
.pf-gratis__name { font: 500 14px/1.3 var(--pf-font); color: #fff; }
.pf-gratis__name small { display: block; margin-top: 2px; font-size: 12px; color: #c9f413; }
.pf-gratis__name small a { color: #fff; text-decoration: underline; }
.pf-gratis__btn { padding: 9px 12px; border-radius: 3px; background: #c9f413; color: #17111f !important; font: 700 13px/1 var(--pf-font); text-decoration: none; white-space: nowrap; }
.pf-gratis__btn:hover, .pf-gratis__btn:focus-visible { background: #fff; }
@media (max-width: 767px) {
	.pf-gratis { padding: 12px; }
	.pf-gratis__item { grid-template-columns: 40px 1fr; }
	.pf-gratis__thumb, .pf-gratis__thumb img { width: 40px; height: 40px; }
	.pf-gratis__btn { grid-column: 2; justify-self: start; }
}

/* Kafelki GRATIS 1/2, 2/2 (test D3, 19.11) */
.pf-gratis__sloty { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.pf-gratis__slot { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 64px; padding: 8px; border: 2px dashed rgba(255, 255, 255, .5); border-radius: 4px; }
.pf-gratis__slot.is-on { border: 2px solid #c9f413; background: rgba(201, 244, 19, .12); }
.pf-gratis__nr { grid-column: 1 / -1; font: 700 12px/1.3 var(--pf-font); color: #c9f413; letter-spacing: .04em; }
.pf-gratis__slot .pf-gratis__thumb, .pf-gratis__slot .pf-gratis__thumb img { width: 40px; height: 40px; }
.pf-gratis__sname { font: 500 13px/1.25 var(--pf-font); color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-gratis__ok { grid-column: 2; font: 700 12px/1.3 var(--pf-font); color: #c9f413; }
.pf-gratis__pusty { grid-column: 1 / -1; font: 400 13px/1.3 var(--pf-font); color: rgba(255, 255, 255, .8); }
.pf-gratis__info { margin: 0 0 10px !important; font: 400 13px/1.4 var(--pf-font); color: #fff; }
