/* TF Popupy */
.tfp-lock, .tfp-lock body { overflow: hidden; }

.tfp {
	--tfp-bg: #111;
	--tfp-fg: #fff;
	--tfp-accent: #c9a86e;
	--tfp-on-accent: #111;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
	font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.tfp.is-open { opacity: 1; visibility: visible; }
.tfp *, .tfp *::before, .tfp *::after { box-sizing: border-box; }

.tfp__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 8, .62);
	backdrop-filter: blur(2px);
}

.tfp__box {
	position: relative;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: var(--tfp-bg);
	color: var(--tfp-fg);
	border-radius: 6px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
	transform: translateY(12px) scale(.98);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	display: grid;
}
.tfp.is-open .tfp__box { transform: none; }
.tfp__box:focus { outline: none; }

.tfp--sm { max-width: 440px; }
.tfp--md { max-width: 520px; }
.tfp--lg { max-width: 600px; }
.tfp--side.tfp--sm { max-width: 680px; }
.tfp--side.tfp--md { max-width: 800px; }
.tfp--side.tfp--lg { max-width: 920px; }

.tfp--side { grid-template-columns: 44% 1fr; }
.tfp--top, .tfp--none { grid-template-columns: 1fr; }

.tfp__media { position: relative; overflow: hidden; min-height: 200px; }
.tfp__bg {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background-image: var(--tfp-img);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: var(--tfp-pos, 50% 50%);
}
.tfp--top .tfp__media { height: 220px; }
.tfp__media--contain { background: #fff; }
.tfp__media--contain .tfp__bg { top: 12px; right: 12px; bottom: 12px; left: 12px; background-size: contain; background-position: center; }

.tfp__body {
	padding: 40px 36px 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: center;
}
.tfp--none .tfp__body { padding: 44px 36px 32px; text-align: left; }

.tfp__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--tfp-bg) 70%, transparent);
	color: var(--tfp-fg);
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
}
.tfp__close:hover, .tfp__close:focus-visible { background: color-mix(in srgb, var(--tfp-fg) 15%, var(--tfp-bg)); color: var(--tfp-fg); }
.tfp__close:focus-visible, .tfp__cta:focus-visible, .tfp__code-btn:focus-visible { outline: 2px solid var(--tfp-accent); outline-offset: 2px; }

.tfp__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tfp-accent);
}
.tfp__heading {
	margin: 0;
	font-family: Poppins, Lato, system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--tfp-fg);
	text-transform: none;
}
.tfp__content { font-size: 16px; line-height: 1.55; opacity: .88; }
.tfp__content p { margin: 0 0 .6em; color: inherit; }
.tfp__content p:last-child { margin-bottom: 0; }
.tfp__content a { color: var(--tfp-accent); }

.tfp__countdown {
	margin: 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--tfp-fg);
	opacity: .9;
}
.tfp__countdown-label { opacity: .7; }
.tfp__countdown-value { font-weight: 700; color: var(--tfp-accent); }

.tfp__code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0 2px;
	border-top: 1px solid color-mix(in srgb, var(--tfp-fg) 22%, transparent);
}
.tfp__code-label { font-size: 14px; opacity: .8; }
.tfp__code-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border: 1px dashed var(--tfp-accent);
	border-radius: 4px;
	background: transparent;
	color: var(--tfp-fg);
	font: 700 18px/1.2 Poppins, Lato, system-ui, sans-serif;
	letter-spacing: .12em;
	cursor: pointer;
	text-transform: uppercase;
	box-shadow: none;
}
.tfp__code-btn:hover { background: color-mix(in srgb, var(--tfp-accent) 14%, transparent); color: var(--tfp-fg); }
.tfp__code-btn.is-copied { border-style: solid; }
.tfp__code-icon { display: inline-flex; color: var(--tfp-accent); }

.tfp__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	margin-top: 4px;
	border: 0;
	border-radius: 4px;
	background: var(--tfp-accent);
	color: var(--tfp-on-accent) !important;
	font: 700 15px/1.2 Lato, system-ui, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s ease;
}
.tfp__cta:hover { filter: brightness(1.08); }

.tfp__note { margin: 0; font-size: 12px; line-height: 1.45; opacity: .6; }

/* Podgląd w panelu */
.tfp--inline {
	position: relative;
	inset: auto;
	z-index: auto;
	opacity: 1;
	visibility: visible;
	padding: 0;
	display: block;
}
.tfp--inline .tfp__box { transform: none; max-height: none; margin: 0 auto; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }

/* Telefon */
@media (max-width: 767px) {
	.tfp { align-items: flex-end; padding: 0; }
	.tfp__box { border-radius: 12px 12px 0 0; max-height: 92vh; transform: translateY(40px); }
	.tfp--side { grid-template-columns: 1fr; }
	.tfp--side .tfp__media, .tfp--top .tfp__media { height: 240px; min-height: 0; }
	.tfp__body, .tfp--none .tfp__body { padding: 28px 22px 24px; gap: 12px; }
	.tfp__heading { font-size: 26px; }
	.tfp__content { font-size: 15px; }
	.tfp__code { flex-wrap: wrap; }
	.tfp__cta { width: 100%; }
}

/* Wymuszony widok telefonu w podglądzie panelu */
.tfp-pv-mobile .tfp__box { max-width: 375px !important; grid-template-columns: 1fr; border-radius: 12px 12px 0 0; }
.tfp-pv-mobile .tfp__media { height: 240px !important; min-height: 0; }
.tfp-pv-mobile .tfp__body { padding: 28px 22px 24px; gap: 12px; }
.tfp-pv-mobile .tfp__heading { font-size: 26px; }
.tfp-pv-mobile .tfp__cta { width: 100%; }
.tfp-pv-mobile .tfp__code { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
	.tfp, .tfp__box { transition: none; }
}
