/*!
 * BSG Zamówienia — UI (śledzenie, strona zamówienia, bramka panelu)
 * Paleta zgodna z motywem: granat · miedź (amber) · mint. Fonty: Outfit + Plus Jakarta Sans.
 * Wszystko w przestrzeni .bsgz — nie wpływa na resztę strony.
 */

/* ============================== Tokeny ============================== */
.bsgz {
	--z-bg: #061018;
	--z-bg-2: #0a1828;
	--z-navy: #0c2340;
	--z-surface: rgba(255, 255, 255, 0.04);
	--z-surface-2: rgba(255, 255, 255, 0.07);
	--z-card: linear-gradient(165deg, rgba(255, 255, 255, 0.068) 0%, rgba(255, 255, 255, 0.022) 100%);
	--z-line: rgba(255, 255, 255, 0.09);
	--z-line-2: rgba(255, 255, 255, 0.16);
	--z-text: #eef3f9;
	--z-muted: #9db0c6;
	--z-faint: #6a7e96;
	--z-amber: #d4892a;
	--z-amber-2: #e8a04a;
	--z-mint: #7dd3c0;
	--z-blue: #4aa8ff;
	--z-red: #f0616d;
	--z-green: #3ecf8e;
	--z-r: 20px;
	--z-r-sm: 13px;
	--z-r-xs: 9px;
	--z-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--z-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
	--z-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
	--z-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--z-shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	--z-focus: 0 0 0 3px rgba(232, 160, 74, 0.45);

	font-family: var(--z-font);
	color: var(--z-text);
	line-height: 1.55;
	/* Motyw ustawia globalne odstępy liter/słów — zerujemy je w obrębie systemu. */
	letter-spacing: normal;
	word-spacing: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.bsgz *,
.bsgz *::before,
.bsgz *::after {
	box-sizing: border-box;
}

.bsgz :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure) {
	margin: 0;
	padding: 0;
}

.bsgz :where(ol, ul) {
	list-style: none;
}

.bsgz a {
	color: var(--z-amber-2);
	text-decoration: none;
	transition: color 0.2s var(--z-ease);
}

.bsgz a:hover {
	color: #fff;
}

.bsgz .bsgz-i {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

.bsgz :focus-visible {
	outline: none;
	box-shadow: var(--z-focus);
}

.bsgz ::selection {
	background: rgba(212, 137, 42, 0.45);
	color: #fff;
}

/* Strony z systemem zamówień: granatowa kanwa także wtedy, gdy motyw nie ładuje swoich stylów. */
body.bsgz-page {
	background-color: #061018 !important;
}

body.bsgz-page .bsgz-canvas-area,
body.bsgz-page .bsgz-canvas-main {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
}

/* Pływający WhatsApp z motywu zasłaniał przycisk „Dalej” kreatora — na stronach systemu zamówień tylko ikona
   (ten sam wariant co .floating-whatsapp.icon-only w motywie). */
body.bsgz-page .floating-whatsapp .whatsapp-button {
	width: 58px;
	height: 58px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
}

body.bsgz-page .floating-whatsapp .whatsapp-text,
body.bsgz-page .floating-whatsapp .whatsapp-tooltip {
	display: none !important;
}

/* ============================== Typografia ============================== */
.bsgz .bsgz-display {
	font-family: var(--z-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: #fff;
	text-wrap: balance;
}

.bsgz .bsgz-display em {
	font-style: normal;
	background: linear-gradient(100deg, var(--z-amber-2) 0%, #f3c68a 45%, var(--z-mint) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bsgz .bsgz-lead {
	color: var(--z-muted);
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	max-width: 56ch;
}

.bsgz .bsgz-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--z-mint);
}

.bsgz .bsgz-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--z-amber-2);
	box-shadow: 0 0 0 4px rgba(232, 160, 74, 0.18), 0 0 18px rgba(232, 160, 74, 0.7);
}

.bsgz .bsgz-mono {
	font-family: var(--z-mono);
	letter-spacing: 0.06em;
}

.bsgz .bsgz-h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--z-display);
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
	margin-bottom: 18px;
}

.bsgz .bsgz-h2 .bsgz-i {
	color: var(--z-amber-2);
}

.bsgz .bsgz-count {
	margin-left: auto;
	min-width: 26px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--z-surface-2);
	border: 1px solid var(--z-line);
	font-family: var(--z-font);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--z-muted);
	text-align: center;
}

/* ============================== Tło (poświaty + siatka) ============================== */
.bsgz .bsgz-track__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(14, 95, 163, 0.28), transparent 60%),
		linear-gradient(180deg, #061018 0%, #081626 55%, #061018 100%);
}

.bsgz .bsgz-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	animation: bsgz-float 18s var(--z-ease) infinite alternate;
}

.bsgz .bsgz-glow--a {
	width: 520px;
	height: 520px;
	top: -160px;
	left: -120px;
	background: radial-gradient(circle, rgba(212, 137, 42, 0.55), transparent 65%);
}

.bsgz .bsgz-glow--b {
	width: 600px;
	height: 600px;
	bottom: -260px;
	right: -160px;
	background: radial-gradient(circle, rgba(125, 211, 192, 0.32), transparent 65%);
	animation-delay: -9s;
}

.bsgz .bsgz-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

@keyframes bsgz-float {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* ============================== Karty ============================== */
.bsgz .bsgz-card {
	position: relative;
	background: var(--z-card);
	border: 1px solid var(--z-line);
	border-radius: var(--z-r);
	box-shadow: var(--z-shadow);
}

.bsgz .bsgz-card--glass {
	background: linear-gradient(160deg, rgba(18, 40, 66, 0.78) 0%, rgba(8, 20, 34, 0.82) 100%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border-color: rgba(255, 255, 255, 0.11);
}

.bsgz .bsgz-card--glass::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(140deg, rgba(232, 160, 74, 0.55), rgba(255, 255, 255, 0.04) 35%, rgba(125, 211, 192, 0.35));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.bsgz .bsgz-section {
	padding: clamp(20px, 2.4vw, 28px);
}

/* ============================== Przyciski ============================== */
.bsgz .bsgz-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--z-r-sm);
	background: var(--z-surface-2);
	color: var(--z-text);
	font: 600 0.93rem/1 var(--z-font);
	letter-spacing: 0.01em;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.2s var(--z-ease), background-color 0.2s var(--z-ease), border-color 0.2s var(--z-ease), box-shadow 0.25s var(--z-ease), color 0.2s;
}

.bsgz .bsgz-btn:hover {
	transform: translateY(-1px);
	color: #fff;
}

.bsgz .bsgz-btn:active {
	transform: translateY(0);
}

.bsgz .bsgz-btn[disabled],
.bsgz .bsgz-btn.is-busy {
	opacity: 0.6;
	cursor: progress;
	transform: none;
}

.bsgz .bsgz-btn--primary {
	background: linear-gradient(135deg, #e8a04a 0%, #d4892a 55%, #bb7420 100%);
	color: #1a1006;
	border-color: rgba(255, 220, 170, 0.35);
	box-shadow: 0 14px 34px -14px rgba(212, 137, 42, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bsgz .bsgz-btn--primary:hover {
	color: #1a1006;
	box-shadow: 0 18px 40px -14px rgba(232, 160, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4);
	filter: brightness(1.05);
}

.bsgz .bsgz-btn--ghost {
	background: rgba(255, 255, 255, 0.035);
	border-color: var(--z-line);
	color: var(--z-text);
}

.bsgz .bsgz-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: var(--z-line-2);
}

.bsgz .bsgz-btn--lg {
	min-height: 56px;
	padding: 0 24px;
	font-size: 1rem;
}

.bsgz .bsgz-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-right-color: transparent;
	animation: bsgz-spin 0.7s linear infinite;
}

.bsgz .is-busy .bsgz-btn__spinner {
	display: inline-block;
}

.bsgz .is-busy .bsgz-btn__spinner ~ .bsgz-i {
	display: none;
}

@keyframes bsgz-spin {
	to { transform: rotate(360deg); }
}

/* ============================== Status pill ============================== */
.bsgz .bsgz-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px 6px 11px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.bsgz .bsgz-pill--status {
	color: var(--bsgz-status, var(--z-amber-2));
	background: color-mix(in srgb, var(--bsgz-status, #e8a04a) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--bsgz-status, #e8a04a) 38%, transparent);
}

.bsgz .bsgz-pill__pulse {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.bsgz .bsgz-pill__pulse::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: 0;
	animation: bsgz-ping 2.2s var(--z-ease) infinite;
}

.bsgz .bsgz-pill--status.is-completed .bsgz-pill__pulse::after,
.bsgz .bsgz-pill--status.is-cancelled .bsgz-pill__pulse::after {
	animation: none;
}

@keyframes bsgz-ping {
	0% { transform: scale(0.6); opacity: 0.9; }
	80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ============================== Alert / toast ============================== */
.bsgz .bsgz-alert {
	display: none;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: var(--z-r-sm);
	background: rgba(240, 97, 109, 0.1);
	border: 1px solid rgba(240, 97, 109, 0.35);
	color: #ffc9ce;
	font-size: 0.92rem;
	text-align: left;
}

.bsgz .bsgz-alert.is-visible {
	display: flex;
	animation: bsgz-in 0.35s var(--z-ease);
}

.bsgz .bsgz-alert .bsgz-i {
	color: var(--z-red);
	margin-top: 1px;
}

.bsgz .bsgz-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 100000;
	transform: translate(-50%, 20px);
	padding: 12px 18px;
	border-radius: 999px;
	background: #0f2338;
	border: 1px solid var(--z-line-2);
	box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s var(--z-ease), transform 0.35s var(--z-ease);
}

.bsgz .bsgz-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@keyframes bsgz-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* ============================== ŚLEDZENIE — formularz ============================== */
.bsgz-track {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	place-items: center;
	min-height: min(88vh, 860px);
	padding: clamp(56px, 9vw, 120px) 16px clamp(56px, 8vw, 96px);
}

.bsgz-track.is-compact {
	min-height: 0;
	padding: 8px 0;
	overflow: visible;
}

.bsgz .bsgz-track__inner {
	width: 100%;
	max-width: 760px;
	text-align: center;
	animation: bsgz-in 0.7s var(--z-ease) both;
}

.bsgz .bsgz-track__head {
	display: grid;
	justify-items: center;
	gap: 18px;
	margin-bottom: clamp(28px, 4vw, 42px);
}

.bsgz-track.is-compact .bsgz-display {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.bsgz .bsgz-track__form {
	text-align: left;
}

.bsgz .bsgz-label {
	display: block;
	margin: 0 0 10px 4px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--z-muted);
}

.bsgz .bsgz-codefield {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 18px;
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(18, 40, 66, 0.85), rgba(8, 20, 34, 0.9));
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: border-color 0.25s var(--z-ease), box-shadow 0.25s var(--z-ease);
}

.bsgz .bsgz-codefield:focus-within {
	border-color: rgba(232, 160, 74, 0.6);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(232, 160, 74, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bsgz .bsgz-codefield__icon {
	color: var(--z-amber-2);
	display: inline-flex;
}

.bsgz .bsgz-codefield input {
	flex: 1 1 auto;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font: 700 clamp(1.15rem, 2.4vw, 1.5rem) / 1 var(--z-mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bsgz .bsgz-codefield input::placeholder {
	color: rgba(255, 255, 255, 0.22);
	letter-spacing: 0.16em;
}

.bsgz .bsgz-codefield input:focus {
	box-shadow: none !important;
}

.bsgz .bsgz-codefield.is-shake {
	animation: bsgz-shake 0.45s var(--z-ease);
	border-color: rgba(240, 97, 109, 0.6);
}

@keyframes bsgz-shake {
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

.bsgz .bsgz-hint {
	margin: 12px 4px 0;
	font-size: 0.84rem;
	color: var(--z-faint);
}

.bsgz .bsgz-hint b {
	color: var(--z-muted);
	font-family: var(--z-mono);
	font-weight: 500;
	letter-spacing: 0.04em;
}

.bsgz .bsgz-track__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: clamp(32px, 5vw, 48px) 0 0;
	text-align: left;
}

.bsgz .bsgz-track__features li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--z-r-sm);
	background: var(--z-surface);
	border: 1px solid var(--z-line);
	font-size: 0.85rem;
	color: var(--z-faint);
	line-height: 1.35;
}

.bsgz .bsgz-track__features b {
	display: block;
	color: var(--z-text);
	font-weight: 700;
	font-size: 0.9rem;
}

.bsgz .bsgz-feature__icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(232, 160, 74, 0.12);
	color: var(--z-amber-2);
}

.bsgz .bsgz-track__help {
	margin-top: 28px;
	font-size: 0.9rem;
	color: var(--z-faint);
}

/* ============================== STRONA ZAMÓWIENIA ============================== */
.bsgz-order {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(32px, 6vw, 72px) 16px clamp(48px, 7vw, 90px);
}

.bsgz .bsgz-order__inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	gap: 18px;
}

.bsgz .bsgz-order__inner > * {
	animation: bsgz-in 0.6s var(--z-ease) both;
}

.bsgz .bsgz-order__inner > *:nth-child(2) { animation-delay: 0.06s; }
.bsgz .bsgz-order__inner > *:nth-child(3) { animation-delay: 0.12s; }
.bsgz .bsgz-order__inner > *:nth-child(4) { animation-delay: 0.18s; }
.bsgz .bsgz-order__inner > *:nth-child(5) { animation-delay: 0.24s; }

/* Hero */
.bsgz .bsgz-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(20px, 4vw, 48px);
	padding: clamp(24px, 4vw, 40px);
	overflow: hidden;
}

.bsgz .bsgz-hero::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 60%;
	height: 180%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--bsgz-status, #e8a04a) 22%, transparent), transparent);
	pointer-events: none;
}

.bsgz .bsgz-hero__main {
	display: grid;
	gap: 14px;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.bsgz .bsgz-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.bsgz .bsgz-code-chip {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px dashed rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font: 700 0.9rem/1 var(--z-mono);
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.bsgz .bsgz-code-chip:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(232, 160, 74, 0.6);
}

.bsgz .bsgz-code-chip .bsgz-i {
	color: var(--z-muted);
}

.bsgz .bsgz-hero__title {
	font-size: clamp(1.7rem, 3.4vw, 2.7rem);
	overflow-wrap: anywhere;
}

.bsgz .bsgz-hero__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.bsgz .bsgz-hero__since {
	font-size: 0.86rem;
	color: var(--z-faint);
}

.bsgz .bsgz-hero__desc {
	color: var(--z-muted);
	max-width: 60ch;
}

/* Pierścień postępu */
.bsgz .bsgz-ring {
	position: relative;
	z-index: 1;
	width: 148px;
	height: 148px;
	flex: none;
}

.bsgz .bsgz-ring svg {
	transform: rotate(-90deg);
	overflow: visible;
}

.bsgz .bsgz-ring circle {
	fill: none;
	stroke-width: 9;
}

.bsgz .bsgz-ring__track {
	stroke: rgba(255, 255, 255, 0.08);
}

.bsgz .bsgz-ring__bar {
	stroke: url(#bsgzRingGrad);
	stroke-linecap: round;
	filter: drop-shadow(0 0 10px rgba(232, 160, 74, 0.45));
	transition: stroke-dashoffset 1.4s var(--z-ease);
}

.bsgz .bsgz-ring__value {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
}

.bsgz .bsgz-ring__value b {
	font-family: var(--z-display);
	font-size: 2.3rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.bsgz .bsgz-ring__value small {
	font-size: 1rem;
	color: var(--z-muted);
	margin-left: 2px;
}

.bsgz .bsgz-ring__value span {
	margin-top: 4px;
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--z-faint);
}

/* Baner wstrzymane / anulowane */
.bsgz .bsgz-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-radius: var(--z-r-sm);
	font-weight: 600;
}

.bsgz .bsgz-banner.is-on-hold {
	background: rgba(154, 167, 184, 0.12);
	border: 1px solid rgba(154, 167, 184, 0.35);
	color: #d7dee8;
}

.bsgz .bsgz-banner.is-cancelled {
	background: rgba(240, 97, 109, 0.1);
	border: 1px solid rgba(240, 97, 109, 0.35);
	color: #ffc9ce;
}

/* Etapy */
.bsgz .bsgz-steps {
	position: relative;
	padding: 26px clamp(18px, 3vw, 34px) 22px;
}

.bsgz .bsgz-steps ol {
	position: relative;
	z-index: 1;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 8px;
}

.bsgz .bsgz-steps__bar {
	position: absolute;
	z-index: 0;
	left: calc(clamp(18px, 3vw, 34px) + 10%);
	right: calc(clamp(18px, 3vw, 34px) + 10%);
	top: 44px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.08);
}

.bsgz .bsgz-steps__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--z-mint), var(--z-amber-2));
	box-shadow: 0 0 14px rgba(232, 160, 74, 0.5);
	transition: width 1.2s var(--z-ease);
}

.bsgz .bsgz-step {
	display: grid;
	justify-items: center;
	gap: 10px;
	text-align: center;
}

.bsgz .bsgz-step__dot {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #0b1b2d;
	border: 2px solid rgba(255, 255, 255, 0.14);
	color: var(--z-faint);
	font-weight: 800;
	font-size: 0.85rem;
	transition: all 0.4s var(--z-ease);
}

.bsgz .bsgz-step__label {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--z-faint);
}

.bsgz .bsgz-step.is-done .bsgz-step__dot {
	background: var(--z-mint);
	border-color: var(--z-mint);
	color: #062019;
}

.bsgz .bsgz-step.is-done .bsgz-step__label {
	color: var(--z-muted);
}

.bsgz .bsgz-step.is-current .bsgz-step__dot {
	background: linear-gradient(135deg, var(--z-amber-2), var(--z-amber));
	border-color: rgba(255, 220, 170, 0.6);
	color: #1a1006;
	box-shadow: 0 0 0 6px rgba(232, 160, 74, 0.16), 0 0 26px rgba(232, 160, 74, 0.6);
	animation: bsgz-breathe 2.6s var(--z-ease) infinite;
}

.bsgz .bsgz-step.is-current .bsgz-step__label {
	color: #fff;
}

.bsgz .bsgz-step.is-stopped .bsgz-step__dot {
	border-color: var(--z-red);
	color: var(--z-red);
}

@keyframes bsgz-breathe {
	50% { box-shadow: 0 0 0 10px rgba(232, 160, 74, 0.08), 0 0 34px rgba(232, 160, 74, 0.75); }
}

/* Fakty */
.bsgz .bsgz-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.bsgz .bsgz-fact {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icon label" "icon value" "icon note";
	column-gap: 14px;
	row-gap: 2px;
	align-items: center;
	padding: 18px 20px;
}

.bsgz .bsgz-fact__icon {
	grid-area: icon;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--z-line);
	color: var(--z-amber-2);
	align-self: start;
}

.bsgz .bsgz-fact__label {
	grid-area: label;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--z-faint);
}

.bsgz .bsgz-fact__value {
	grid-area: value;
	font-family: var(--z-display);
	font-size: 1.32rem;
	font-weight: 700;
	color: #fff;
	overflow-wrap: anywhere;
}

.bsgz .bsgz-fact__note {
	grid-area: note;
	font-size: 0.84rem;
	color: var(--z-muted);
}

.bsgz .bsgz-fact.is-late .bsgz-fact__icon,
.bsgz .bsgz-fact.is-warn .bsgz-fact__icon {
	background: rgba(232, 160, 74, 0.12);
	border-color: rgba(232, 160, 74, 0.3);
}

.bsgz .bsgz-fact.is-ok .bsgz-fact__icon {
	background: rgba(62, 207, 142, 0.12);
	border-color: rgba(62, 207, 142, 0.3);
	color: var(--z-green);
}

/* Siatka treści */
.bsgz .bsgz-order__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 18px;
	align-items: start;
}

.bsgz .bsgz-order__col,
.bsgz .bsgz-order__side {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.bsgz .bsgz-order__side {
	position: sticky;
	top: 24px;
}

.bsgz .bsgz-prose {
	color: #d6e0ec;
	font-size: 0.98rem;
}

.bsgz .bsgz-prose p + p {
	margin-top: 0.8em;
}

/* Tabela pozycji */
.bsgz .bsgz-table-wrap {
	overflow-x: auto;
	margin: 0 -6px;
}

.bsgz .bsgz-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.93rem;
	margin: 0;
	border: 0;
}

.bsgz .bsgz-table th {
	padding: 0 10px 10px;
	text-align: left;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--z-faint);
	border: 0;
	border-bottom: 1px solid var(--z-line);
	background: transparent;
}

.bsgz .bsgz-table td {
	padding: 14px 10px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	color: #dbe4ef;
	vertical-align: top;
	background: transparent;
}

.bsgz .bsgz-table tbody tr:last-child td {
	border-bottom: 0;
}

.bsgz .bsgz-table td b {
	color: #fff;
	font-weight: 600;
}

.bsgz .bsgz-table td small {
	display: block;
	margin-top: 3px;
	font-size: 0.8rem;
	color: var(--z-faint);
}

.bsgz .bsgz-table .is-num {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.bsgz .bsgz-totals {
	display: grid;
	gap: 6px;
	margin: 16px 0 0 auto;
	padding-top: 16px;
	border-top: 1px solid var(--z-line);
	max-width: 340px;
	font-variant-numeric: tabular-nums;
}

.bsgz .bsgz-totals div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	color: var(--z-muted);
	font-size: 0.92rem;
}

.bsgz .bsgz-totals dd {
	color: #e6edf5;
}

.bsgz .bsgz-totals .is-grand {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px dashed var(--z-line-2);
	font-weight: 700;
	color: #fff;
}

.bsgz .bsgz-totals .is-grand dd {
	font-family: var(--z-display);
	font-size: 1.35rem;
	color: var(--z-amber-2);
}

/* Galeria */
.bsgz .bsgz-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.bsgz .bsgz-gallery__item {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 1px solid var(--z-line);
	border-radius: var(--z-r-sm);
	overflow: hidden;
	background: #0b1b2d;
	cursor: zoom-in;
}

.bsgz .bsgz-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--z-ease), filter 0.4s;
}

.bsgz .bsgz-gallery__item:hover img {
	transform: scale(1.06);
	filter: brightness(1.08);
}

.bsgz .bsgz-gallery__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

/* Lightbox */
.bsgz .bsgz-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 24px;
	background: rgba(3, 8, 14, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	animation: bsgz-in 0.25s var(--z-ease);
}

.bsgz .bsgz-lightbox[hidden] {
	display: none;
}

.bsgz .bsgz-lightbox img {
	justify-self: center;
	max-width: 100%;
	max-height: 86vh;
	border-radius: 12px;
	box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
}

.bsgz .bsgz-lightbox button {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--z-line-2);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	cursor: pointer;
}

.bsgz .bsgz-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
}

.bsgz .bsgz-lightbox__nav.is-prev .bsgz-i {
	transform: rotate(180deg);
}

/* Wycena */
.bsgz .bsgz-quote {
	display: grid;
	gap: 18px;
	padding: clamp(22px, 3.4vw, 34px);
	scroll-margin-top: 110px;
}

.bsgz .bsgz-quote.is-sent {
	box-shadow: var(--z-shadow), 0 0 0 1px rgba(185, 166, 255, 0.35), 0 30px 80px -40px rgba(185, 166, 255, 0.55);
}

.bsgz .bsgz-quote__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.bsgz .bsgz-quote__title {
	margin-top: 8px;
	font-family: var(--z-display);
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	font-weight: 800;
	color: #fff;
}

.bsgz .bsgz-quote__meta {
	margin-top: 4px;
	font-size: 0.88rem;
	color: var(--z-muted);
}

.bsgz .bsgz-quote__meta b {
	color: #fff;
}

.bsgz .bsgz-quote__total {
	display: grid;
	justify-items: end;
	gap: 2px;
	text-align: right;
}

.bsgz .bsgz-quote__total span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--z-faint);
}

.bsgz .bsgz-quote__total b {
	font-family: var(--z-display);
	font-size: clamp(1.8rem, 3.4vw, 2.4rem);
	font-weight: 800;
	color: var(--z-amber-2);
	line-height: 1.05;
}

.bsgz .bsgz-quote__total small {
	font-size: 0.82rem;
	color: var(--z-muted);
}

.bsgz .bsgz-quote__msg {
	padding: 14px 16px;
	border-radius: var(--z-r-sm);
	border-left: 3px solid var(--z-amber-2);
	background: rgba(232, 160, 74, 0.07);
	color: #dbe4ef;
}

.bsgz .bsgz-quote__actions {
	display: grid;
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid var(--z-line);
}

.bsgz .bsgz-quote__cta {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
}

.bsgz .bsgz-quote__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bsgz .bsgz-quote__changes {
	display: grid;
	gap: 10px;
	max-width: 620px;
}

.bsgz .bsgz-quote__changes[hidden] {
	display: none;
}

.bsgz .bsgz-quote__changes textarea {
	width: 100%;
	min-height: 90px;
	padding: 12px 14px;
	border-radius: var(--z-r-sm);
	border: 1px solid var(--z-line-2);
	background: rgba(2, 9, 17, 0.55);
	color: #fff;
	font: 500 0.95rem/1.5 var(--z-font);
	resize: vertical;
}

.bsgz .bsgz-quote__changes .bsgz-btn {
	justify-self: start;
}

.bsgz .bsgz-quote__done {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border-radius: var(--z-r-sm);
	background: rgba(62, 207, 142, 0.1);
	border: 1px solid rgba(62, 207, 142, 0.35);
	color: #c9f5df;
	font-weight: 600;
}

.bsgz .bsgz-quote__done .bsgz-i {
	flex: none;
	margin-top: 2px;
	color: var(--z-green);
}

.bsgz .bsgz-quote__done.is-info {
	background: rgba(185, 166, 255, 0.08);
	border-color: rgba(185, 166, 255, 0.35);
	color: #e2dbff;
}

.bsgz .bsgz-quote__done.is-info .bsgz-i {
	color: #b9a6ff;
}

/* Pliki projektu */
.bsgz .bsgz-filelist {
	display: grid;
	gap: 8px;
}

.bsgz .bsgz-filelist a {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--z-r-sm);
	border: 1px solid var(--z-line);
	background: rgba(255, 255, 255, 0.03);
	color: #dbe4ef;
}

.bsgz .bsgz-filelist a:hover {
	border-color: rgba(232, 160, 74, 0.45);
	color: #fff;
}

.bsgz .bsgz-filelist__ext {
	padding: 4px 8px;
	border-radius: 7px;
	background: rgba(125, 211, 192, 0.12);
	color: var(--z-mint);
	font: 700 0.7rem var(--z-mono);
}

.bsgz .bsgz-filelist__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bsgz .bsgz-filelist small {
	color: var(--z-faint);
}

/* Historia */
.bsgz .bsgz-timeline {
	position: relative;
	display: grid;
	gap: 18px;
}

.bsgz .bsgz-timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 14px;
	width: 1px;
	background: linear-gradient(180deg, var(--z-line-2), transparent);
}

.bsgz .bsgz-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 29px 1fr;
	gap: 12px;
}

.bsgz .bsgz-timeline__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	border-radius: 50%;
	background: #0d2034;
	border: 1px solid var(--z-line-2);
	color: var(--z-muted);
}

.bsgz .bsgz-timeline__item.is-latest .bsgz-timeline__icon {
	background: rgba(232, 160, 74, 0.16);
	border-color: rgba(232, 160, 74, 0.55);
	color: var(--z-amber-2);
	box-shadow: 0 0 18px rgba(232, 160, 74, 0.35);
}

.bsgz .bsgz-timeline__item p {
	font-size: 0.92rem;
	color: #dbe4ef;
}

.bsgz .bsgz-timeline__item time {
	display: block;
	margin-top: 2px;
	font-size: 0.78rem;
	color: var(--z-faint);
}

/* Kontakt */
.bsgz .bsgz-person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.bsgz .bsgz-person b {
	display: block;
	color: #fff;
}

.bsgz .bsgz-person span {
	font-size: 0.82rem;
	color: var(--z-faint);
}

.bsgz .bsgz-avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--z-navy), #1a4a7a);
	border: 1px solid rgba(125, 211, 192, 0.35);
	color: var(--z-mint);
	font-family: var(--z-display);
	font-weight: 800;
	font-size: 1.1rem;
}

.bsgz .bsgz-contact__actions {
	display: grid;
	gap: 8px;
}

.bsgz .bsgz-contact__actions .bsgz-btn {
	justify-content: flex-start;
}

.bsgz .bsgz-contact__actions .bsgz-i {
	color: var(--z-amber-2);
}

.bsgz .bsgz-contact__client {
	margin-top: 14px;
	font-size: 0.82rem;
	color: var(--z-faint);
}

.bsgz .bsgz-contact__client b {
	color: var(--z-muted);
	font-weight: 600;
}

.bsgz .bsgz-order__tools {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.bsgz .bsgz-private-note {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.78rem;
	color: var(--z-faint);
	line-height: 1.45;
}

/* ============================== Bramka panelu (logowanie / brak dostępu) ============================== */
.bsgz-gate {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 40px 16px;
}

.bsgz .bsgz-gate__card {
	width: 100%;
	max-width: 440px;
	display: grid;
	gap: 14px;
	padding: clamp(28px, 5vw, 42px);
	animation: bsgz-in 0.6s var(--z-ease) both;
}

.bsgz .bsgz-gate__card .bsgz-display {
	font-size: 2.2rem;
}

.bsgz .bsgz-gate__card form {
	display: grid;
	gap: 14px;
	margin-top: 6px;
}

.bsgz .bsgz-gate__card form p {
	margin: 0;
}

.bsgz .bsgz-gate__card label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--z-muted);
}

.bsgz .bsgz-gate__card input[type="text"],
.bsgz .bsgz-gate__card input[type="password"] {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border-radius: var(--z-r-sm);
	border: 1px solid var(--z-line-2);
	background: rgba(3, 10, 18, 0.55);
	color: #fff;
	font: 500 1rem var(--z-font);
	box-shadow: none;
}

.bsgz .bsgz-gate__card input[type="text"]:focus,
.bsgz .bsgz-gate__card input[type="password"]:focus {
	border-color: rgba(232, 160, 74, 0.6);
	box-shadow: var(--z-focus);
	outline: none;
}

.bsgz .bsgz-gate__card .login-remember label {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin: 0;
}

.bsgz .bsgz-gate__card input[type="submit"] {
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: var(--z-r-sm);
	background: linear-gradient(135deg, #e8a04a 0%, #d4892a 60%, #bb7420 100%);
	color: #1a1006;
	font: 700 1rem var(--z-font);
	cursor: pointer;
	box-shadow: 0 14px 34px -14px rgba(212, 137, 42, 0.85);
}

.bsgz .bsgz-gate__links {
	font-size: 0.86rem;
	color: var(--z-faint);
}

.bsgz .bsgz-boot__logo {
	font-family: var(--z-display);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: 0.08em;
	color: #fff;
}

.bsgz .bsgz-boot__logo i {
	font-style: normal;
	color: var(--z-amber);
}

/* ============================== Responsywność ============================== */
@media (max-width: 1024px) {
	.bsgz .bsgz-order__grid {
		grid-template-columns: 1fr;
	}

	.bsgz .bsgz-order__side {
		position: static;
	}
}

@media (max-width: 720px) {
	.bsgz .bsgz-codefield {
		flex-wrap: wrap;
		padding: 10px;
	}

	.bsgz .bsgz-codefield__icon {
		display: none;
	}

	.bsgz .bsgz-codefield input {
		flex-basis: 100%;
		height: 52px;
		padding: 0 8px;
		text-align: center;
	}

	.bsgz .bsgz-codefield .bsgz-btn {
		flex: 1 1 100%;
	}

	.bsgz .bsgz-track__features {
		grid-template-columns: 1fr;
	}

	.bsgz .bsgz-hero {
		grid-template-columns: 1fr;
	}

	.bsgz .bsgz-ring {
		justify-self: start;
		width: 116px;
		height: 116px;
	}

	.bsgz .bsgz-ring svg {
		width: 116px;
		height: 116px;
	}

	.bsgz .bsgz-ring__value b {
		font-size: 1.8rem;
	}

	/* Etapy pionowo */
	.bsgz .bsgz-steps ol {
		grid-auto-flow: row;
		gap: 14px;
	}

	.bsgz .bsgz-step {
		grid-template-columns: 38px 1fr;
		justify-items: start;
		align-items: center;
		text-align: left;
	}

	.bsgz .bsgz-steps__bar {
		display: none;
	}

	/* Tabela jako karty */
	.bsgz .bsgz-table thead {
		display: none;
	}

	.bsgz .bsgz-table,
	.bsgz .bsgz-table tbody,
	.bsgz .bsgz-table tr,
	.bsgz .bsgz-table td {
		display: block;
		width: 100%;
	}

	.bsgz .bsgz-table tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--z-line);
	}

	.bsgz .bsgz-table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 4px 6px;
		border: 0;
	}

	.bsgz .bsgz-table td:first-child {
		display: block;
		padding-bottom: 8px;
	}

	.bsgz .bsgz-table td.is-num::before {
		content: attr(data-label);
		color: var(--z-faint);
		font-size: 0.82rem;
	}

	.bsgz .bsgz-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.bsgz .bsgz-lightbox {
		grid-template-columns: 1fr;
		padding: 64px 12px 24px;
	}

	.bsgz .bsgz-lightbox__nav {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bsgz *,
	.bsgz *::before,
	.bsgz *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ============================== Druk („Zapisz PDF”) ============================== */
@media print {
	body.bsgz-page {
		background: #fff !important;
	}

	body.bsgz-page header.site-header,
	body.bsgz-page #masthead,
	body.bsgz-page footer,
	body.bsgz-page .site-footer,
	body.bsgz-page #colophon,
	body.bsgz-page .floating-whatsapp,
	body.bsgz-page #wpadminbar,
	.bsgz .bsgz-track__bg,
	.bsgz .bsgz-order__tools,
	.bsgz .bsgz-lightbox,
	.bsgz .bsgz-toast,
	.bsgz .bsgz-contact__actions,
	.bsgz .bsgz-private-note {
		display: none !important;
	}

	.bsgz,
	.bsgz * {
		color: #111 !important;
		background: transparent !important;
		box-shadow: none !important;
		text-shadow: none !important;
		filter: none !important;
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
		animation: none !important;
	}

	.bsgz .bsgz-card {
		border: 1px solid #ccc !important;
		break-inside: avoid;
	}

	.bsgz .bsgz-card--glass::before,
	.bsgz .bsgz-hero::after {
		display: none !important;
	}

	.bsgz .bsgz-order {
		padding: 0;
	}

	.bsgz .bsgz-order__grid {
		grid-template-columns: 1fr;
	}

	.bsgz .bsgz-ring__bar {
		stroke: #d4892a !important;
	}

	.bsgz .bsgz-step.is-done .bsgz-step__dot,
	.bsgz .bsgz-step.is-current .bsgz-step__dot {
		border-color: #111 !important;
	}

	.bsgz .bsgz-gallery__item:first-child {
		grid-column: auto;
		grid-row: auto;
	}
}

/* ============================== Wiadomości z firmą (strona zamówienia, 1.10.0) ============================== */
.bsgz .bsgz-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bsgz .bsgz-count.is-new {
	border-color: transparent;
	background: var(--z-amber-2);
	color: #1a1006;
}

.bsgz .bsgz-msgs__intro {
	margin: 0 0 14px;
	color: var(--z-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.bsgz .bsgz-msgs__thread {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 460px;
	overflow-y: auto;
	margin-bottom: 14px;
	padding: 4px 2px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.bsgz .bsgz-msgs__empty {
	margin: 0;
	padding: 14px;
	border: 1px dashed var(--z-line-2);
	border-radius: var(--z-r-sm);
	color: var(--z-faint);
	font-size: 0.9rem;
	text-align: center;
}

.bsgz .bsgz-msg {
	max-width: 85%;
	padding: 10px 14px 12px;
	border: 1px solid var(--z-line);
	border-radius: 16px 16px 16px 6px;
	background: var(--z-surface-2);
	align-self: flex-start;
}

.bsgz .bsgz-msg.is-mine {
	align-self: flex-end;
	border-color: rgba(232, 160, 74, 0.28);
	border-radius: 16px 16px 6px 16px;
	background: rgba(232, 160, 74, 0.1);
}

.bsgz .bsgz-msg header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
}

.bsgz .bsgz-msg header b {
	color: #fff;
	font-size: 0.84rem;
}

.bsgz .bsgz-msg time {
	color: var(--z-faint);
	font: 500 0.74rem var(--z-mono);
}

.bsgz .bsgz-msg p {
	margin: 6px 0 0;
	color: var(--z-text);
	font-size: 0.95rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.bsgz .bsgz-msg__files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.bsgz .bsgz-msg__files a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--z-line-2);
	border-radius: 10px;
	background: rgba(2, 9, 17, 0.4);
	color: #dbe4ef;
	font-size: 0.84rem;
	text-decoration: none;
}

.bsgz .bsgz-msg__files a:hover {
	border-color: rgba(232, 160, 74, 0.55);
	color: #fff;
}

.bsgz .bsgz-msg__files span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bsgz .bsgz-msg__files small {
	flex: none;
	color: var(--z-faint);
	font: 500 0.72rem var(--z-mono);
}

.bsgz .bsgz-msgs__form {
	display: grid;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--z-line);
}

.bsgz .bsgz-msgs__form textarea {
	width: 100%;
	min-height: 90px;
	padding: 12px 14px;
	border: 1px solid var(--z-line-2);
	border-radius: var(--z-r-sm);
	background: rgba(2, 9, 17, 0.55);
	color: #fff;
	font: 500 0.95rem/1.5 var(--z-font);
	resize: vertical;
}

.bsgz .bsgz-msgs__form textarea:focus {
	outline: none;
	border-color: rgba(232, 160, 74, 0.65);
	box-shadow: 0 0 0 3px rgba(232, 160, 74, 0.16);
}

.bsgz .bsgz-msgs__chosen {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bsgz .bsgz-msgs__chosen[hidden] {
	display: none;
}

.bsgz .bsgz-msgs__chosen li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 4px 4px 4px 10px;
	border: 1px solid var(--z-line-2);
	border-radius: 999px;
	background: var(--z-surface);
	font-size: 0.82rem;
}

.bsgz .bsgz-msgs__chosen li span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bsgz .bsgz-msgs__chosen button {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--z-surface-2);
	color: var(--z-muted);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.bsgz .bsgz-msgs__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
}

.bsgz .bsgz-msgs__attach {
	position: relative;
	cursor: pointer;
}

.bsgz .bsgz-msgs__attach input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.bsgz .bsgz-msgs__attach:focus-within {
	outline: 2px solid var(--z-amber-2);
	outline-offset: 2px;
}

.bsgz .bsgz-msgs__hint {
	color: var(--z-faint);
	font-size: 0.78rem;
}

.bsgz .bsgz-msgs .bsgz-alert {
	margin-top: 0;
}

@media (max-width: 560px) {
	.bsgz .bsgz-msg {
		max-width: 94%;
	}

	.bsgz .bsgz-msgs__actions .bsgz-btn {
		flex: 1 1 auto;
	}

	.bsgz .bsgz-msgs__thread {
		max-height: 380px;
	}
}

.bsgz .bsgz-contact__actions .bsgz-btn--primary .bsgz-i {
	color: #1a1006;
}
