/* Perfect Blue Modules — kalendarz premier (0.5.0). Kolory motywu sklepu. */

.pb-cal {
	max-width: 860px;
	margin: 0 auto;
}
.pb-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.pb-cal__title {
	flex: 1 1 auto;
	text-align: center;
	margin: 0 10px;
	color: #334862;
}
.pb-cal__arrow {
	font-size: 22px;
	line-height: 1;
	padding: 8px 14px;
	border-radius: 6px;
	background: #f2f5f8;
	color: #334862;
	text-decoration: none;
}
.pb-cal__arrow:hover {
	background: #28c4e3;
	color: #fff;
}
.pb-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}
.pb-cal__dow {
	text-align: center;
	font-weight: 700;
	color: #334862;
	padding: 4px 0;
}
.pb-cal__day {
	position: relative;
	min-height: 58px;
	padding: 6px;
	border-radius: 8px;
	background: #f7f9fb;
	color: #334862;
	display: block;
	text-decoration: none;
}
.pb-cal__day--empty {
	background: transparent;
}
.pb-cal-day--premiere {
	background: #28c4e3;
	color: #fff;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(40, 196, 227, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	border: 0;
	width: 100%;
	font: inherit;
	cursor: pointer;
}
.pb-cal-day--premiere:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(40, 196, 227, 0.5);
	color: #fff;
}
.pb-cal__count {
	position: absolute;
	right: 6px;
	bottom: 6px;
	min-width: 22px;
	height: 22px;
	border-radius: 11px;
	background: #d26e4b;
	color: #fff;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
	padding: 0 4px;
}
.pb-cal__list {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}
.pb-cal__list-day {
	padding: 10px 0;
	border-top: 1px solid #e8edf2;
}
.pb-cal__list-date {
	font-weight: 700;
	color: #334862;
	display: block;
	margin-bottom: 4px;
}
.pb-cal__list-day ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pb-cal__list-day ul li a {
	color: #446084;
}
@media (max-width: 549px) {
	.pb-cal__day {
		min-height: 44px;
		padding: 4px;
		font-size: 13px;
	}
	.pb-cal__count {
		min-width: 18px;
		height: 18px;
		line-height: 18px;
		font-size: 11px;
	}
}
.pb-cal__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
}
.pb-cal__thumb {
	width: 48px;
	height: 48px;
	/* contain, nie cover — pionowe okladki (np. Switch) bez przycinania */
	object-fit: contain;
	border-radius: 6px;
	flex: 0 0 auto;
}
.pb-cal--loading {
	opacity: 0.5;
	pointer-events: none;
}
.pb-cal__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.pb-cal__price {
	font-size: 13px;
	font-weight: 700;
	color: #d26e4b;
}

/* Wariant kompaktowy (strona glowna): dwie kolumny, lista przycieta do wysokosci kalendarza. */
.pb-cal--compact .pb-cal__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}
.pb-cal__right {
	display: flex;
	gap: 10px;
	align-items: center;
	max-height: none;
	overflow: visible;
}
/* Bez touch-action/cursor grab — przeciaganie listy usuniete (dotyk blokowal scroll strony);
   lista jedzie strzalkami vnav i klikiem w dzien. */
.pb-cal__list-viewport {
	flex: 1;
	overflow: hidden;
}
.pb-cal__list-viewport .pb-cal__upcoming {
	transition: transform 0.35s ease;
	will-change: transform;
}
.pb-cal__vnav {
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}
.pb-cal__vnav button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	font-size: 14px !important;
	border: 0;
	border-radius: 50%;
	background: #f2f5f8;
	color: #334862;
	cursor: pointer;
}
.pb-cal__vnav button:hover {
	background: #28c4e3;
	color: #fff;
}
.pb-cal__gdate {
	font-weight: 700;
	color: #334862;
	display: block;
	margin: 10px 0 6px;
}
.pb-cal__upcoming {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pb-cal__upcoming ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
/* Flatsome dodaje .col-inner ul li { margin-left: 1.3em } (0,1,2) — wypycha liste premier
   poza layout; selektory musza bic to specyficznoscia (0,2,1) */
.pb-cal .pb-cal__upcoming li,
.pb-cal .pb-cal__list li,
.pb-cal .pb-cal__list-day ul li {
	margin-left: 0;
}
.pb-cal__upcoming a {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 4px 0;
	color: #446084;
	text-decoration: none;
}
/* display:flex (nie block) — centrowanie tekstu wzgledem ikony przejmuje baza .pb-sec__btn w tweaks.css */
.pb-cal--compact .pb-sec__btn {
	display: flex;
	margin: 20px auto 0;
	max-width: 380px;
	text-align: center;
}
.pb-cal--compact .pb-sec__btn {
	white-space: nowrap;
}
.pb-cal--compact .pb-cal__left .pb-sec__btn {
	display: flex;
	width: 100%;
	margin: 16px 0 0;
}

/* Kompakt na pelna szerokosc; kolumny rownej wysokosci — prawa dziedziczy wysokosc lewej
   trickiem height:0+min-height; viewport listy wypelnia kolumne, strzalki centruja sie
   wzgledem pelnej wysokosci */
.pb-cal--compact {
	max-width: none;
}
.pb-cal--compact .pb-cal__cols {
	align-items: stretch;
}
.pb-cal--compact .pb-cal__right {
	height: 0;
	min-height: 100%;
	max-height: none;
}
.pb-cal--compact .pb-cal__list-viewport {
	height: 100%;
	max-height: 100%;
}
@media (max-width: 749px) {
	/* minmax(0,1fr): 1fr ma domyslne minimum = min-content, a przycisk z nowrap (380px)
	   rozpychal kolumne poza viewport telefonu */
	.pb-cal--compact .pb-cal__cols {
		grid-template-columns: minmax(0, 1fr);
	}
	.pb-cal--compact .pb-cal__right {
		height: auto;
		min-height: 0;
	}
	.pb-cal--compact .pb-cal__list-viewport {
		height: 360px;
		max-height: 360px;
	}
	.pb-cal--compact .pb-sec__btn,
	.pb-cal--compact .pb-cal__left .pb-sec__btn {
		white-space: normal;
		max-width: 100%;
	}
}
