/*
 * Foto Studio: dni nieczynne — okienko.
 * Kolory i zaokrąglenia biorą się z tokenów motywu (--brand, --accent, --on-accent, --radius), z wartościami zapasowymi.
 */

.fsc {
	--fsc-brand: var(--brand, #1479c4);
	--fsc-accent: var(--accent, #00b4f0);
	--fsc-accent-hover: var(--accent-hover, #00a5dd);
	--fsc-on-accent: var(--on-accent, #062230);
	--fsc-ink: var(--ink, #1c232c);
	--fsc-text: var(--ink-2, #434d59);
	--fsc-line: var(--line-strong, #c9d0d7);
	--fsc-surface: var(--surface, #fcfcfd);
	--fsc-radius: var(--radius, 10px);
	--fsc-radius-btn: var(--radius-btn, 4px);
	--fsc-ease: cubic-bezier(0.16, 1, 0.3, 1);

	width: min(460px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fsc-text);
	font-family: inherit;
	overflow: visible;
}

.fsc::backdrop {
	background: rgb(14 17 20 / 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.fsc__card {
	position: relative;
	display: grid;
	justify-items: start;
	gap: 12px;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 32px 32px 28px;
	background: var(--fsc-surface);
	border-radius: calc(var(--fsc-radius) + 4px);
	box-shadow: 0 30px 80px -24px rgb(10 30 50 / 0.45), 0 2px 6px rgb(10 30 50 / 0.08);
}

.fsc__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: #e6f1fa;
	color: var(--fsc-brand);
}

.fsc__icon svg {
	width: 28px;
	height: 28px;
}

.fsc__dates {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--fsc-brand);
}

.fsc__title {
	margin: 0;
	font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--fsc-ink);
}

.fsc__body {
	font-size: 15px;
	line-height: 1.6;
}

.fsc__body > * {
	margin: 0;
}

.fsc__body > * + * {
	margin-top: 0.6em;
}

.fsc__body a {
	color: var(--fsc-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fsc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin-top: 10px;
}

.fsc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 1.5px solid transparent;
	border-radius: var(--fsc-radius-btn);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s var(--fsc-ease);
}

.fsc__btn svg {
	width: 18px;
	height: 18px;
}

.fsc__btn:active {
	transform: scale(0.98);
}

.fsc__btn--primary {
	flex: 1 1 auto;
	background: var(--fsc-accent);
	color: var(--fsc-on-accent);
}

.fsc__btn--primary:hover {
	background: var(--fsc-accent-hover);
}

.fsc__btn--ghost {
	border-color: var(--fsc-line);
	color: var(--fsc-ink);
	background: transparent;
	letter-spacing: 0.02em;
}

.fsc__btn--ghost:hover {
	border-color: var(--fsc-brand);
	color: var(--fsc-brand);
}

.fsc__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--fsc-radius-btn);
	background: transparent;
	color: var(--fsc-text);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fsc__close svg {
	width: 20px;
	height: 20px;
}

.fsc__close:hover {
	background: rgb(20 40 60 / 0.06);
	color: var(--fsc-ink);
}

.fsc :focus-visible {
	outline: 2px solid var(--fsc-brand);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.fsc[open] .fsc__card {
		animation: fsc-in 0.35s var(--fsc-ease) both;
	}

	.fsc[open]::backdrop {
		animation: fsc-fade 0.3s ease both;
	}

	.fsc.is-closing .fsc__card {
		animation: fsc-out 0.18s ease both;
	}

	.fsc.is-closing::backdrop {
		animation: fsc-fade 0.18s ease reverse both;
	}
}

@keyframes fsc-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
}

@keyframes fsc-out {
	to {
		opacity: 0;
		transform: translateY(6px) scale(0.985);
	}
}

@keyframes fsc-fade {
	from {
		opacity: 0;
	}
}

@media (max-width: 479.98px) {
	.fsc__card {
		padding: 28px 22px 22px;
	}

	.fsc__btn {
		flex: 1 1 100%;
	}
}
