/* ==========================================================================
   KRZYŻ — REZERWACJE SALI
   Wygląd publicznego kalendarza (shortcode [rezerwacje_sali]).
   Paleta spójna ze stroną: granat #12365f, złoto #c8a45e, krem #fbf9f4.
   ========================================================================== */

.ck-app {
	--ck-navy: #12365f;
	--ck-navy-2: #1d5289;
	--ck-gold: #c8a45e;
	--ck-gold-dark: #b08a3e;
	--ck-cream: #fbf9f4;
	--ck-text: #334155;
	--ck-muted: #6b7a8c;
	--ck-line: #e6ebf2;

	box-sizing: border-box;
	max-width: 100%;
	margin: 0 auto;
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ck-text);
}

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

/* ---------- 1. PASEK NAD KALENDARZEM ---------- */

.ck-user {
	margin: 0 0 12px;
	font-size: 12.5px;
	color: var(--ck-muted);
	text-align: right;
}

.ck-user strong {
	color: var(--ck-navy);
	font-weight: 600;
}

.ck-user a {
	color: var(--ck-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ck-user a:hover {
	color: var(--ck-gold-dark);
}

.ck-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 18px;
}

.ck-legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.ck-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 4px 7px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: #5b6b7c;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.ck-legend-item:hover {
	background: #ffffff;
	border-color: var(--ck-line);
	color: var(--ck-navy);
}

.ck-legend-item:focus-visible {
	outline: 2px solid var(--ck-gold);
	outline-offset: 2px;
}

.ck-legend-item:not(.is-active) {
	opacity: .35;
}

.ck-legend-item:not(.is-active):hover {
	opacity: 1;
}

.ck-legend-item:not(.is-active) .ck-dot {
	filter: grayscale(1);
}

.ck-legend-reset {
	margin: 0;
	padding: 4px 2px;
	border: 0;
	background: transparent;
	color: var(--ck-gold-dark);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	white-space: nowrap;
}

.ck-legend-reset:hover {
	color: var(--ck-navy);
}

.ck-legend-reset[hidden] {
	display: none;
}

.ck-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 10px;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.ck-actions {
	display: flex;
	gap: 10px;
}

/* ---------- 2. PRZYCISKI ---------- */

.ck-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 18px;
	border: 1px solid var(--ck-navy);
	border-radius: 9px;
	background: var(--ck-navy);
	color: #ffffff !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ck-btn:hover {
	background: var(--ck-gold-dark);
	border-color: var(--ck-gold-dark);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.ck-btn:focus-visible {
	outline: 2px solid var(--ck-gold);
	outline-offset: 2px;
}

.ck-btn[disabled] {
	opacity: .6;
	cursor: wait;
	transform: none;
}

.ck-btn-ghost {
	background: #ffffff;
	border-color: #d8e0ea;
	color: var(--ck-navy) !important;
}

.ck-btn-ghost:hover {
	background: var(--ck-cream);
	border-color: var(--ck-gold);
	color: var(--ck-navy) !important;
}

.ck-btn-danger {
	background: #ffffff;
	border-color: #f0c9c5;
	color: #b42318 !important;
}

.ck-btn-danger:hover {
	background: #b42318;
	border-color: #b42318;
	color: #ffffff !important;
}

.ck-btn-small {
	padding: 6px 12px;
	font-size: 12.5px;
	border-radius: 7px;
}

/* ---------- 3. KOMUNIKAT DLA GOŚCI ---------- */

.ck-note {
	margin: 0 0 18px;
	padding: 12px 16px;
	background: var(--ck-cream);
	border-left: 3px solid var(--ck-gold);
	border-radius: 8px;
	font-size: 13.5px;
	color: #5b6b7c;
}

.ck-note a {
	color: var(--ck-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ck-note a:hover {
	color: var(--ck-gold-dark);
}

/* ---------- 4. KALENDARZ ---------- */

.ck-calendar {
	background: #ffffff;
	border: 1px solid rgba(30, 41, 59, .10);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(30, 41, 59, .08);
	padding: 18px 18px 12px;
	overflow: hidden;
}

.ck-app .fc {
	--fc-border-color: #e6ebf2;
	--fc-page-bg-color: #ffffff;
	--fc-neutral-bg-color: #f7f9fc;
	--fc-today-bg-color: rgba(200, 164, 94, .10);
	--fc-now-indicator-color: var(--ck-gold-dark);

	font-family: inherit;
	font-size: 14px;
	color: var(--ck-text);
}

/* nagłówek */

.ck-app .fc .fc-toolbar {
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.ck-app .fc .fc-toolbar-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--ck-navy);
	line-height: 1.2;
	text-transform: capitalize;
}

.ck-app .fc .fc-button {
	padding: 7px 12px;
	border: 1px solid #dfe6ee !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	color: var(--ck-navy) !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ck-app .fc .fc-button:hover {
	background: var(--ck-cream) !important;
	border-color: var(--ck-gold) !important;
	color: var(--ck-navy) !important;
}

.ck-app .fc .fc-button:focus {
	box-shadow: 0 0 0 3px rgba(200, 164, 94, .25) !important;
	outline: none;
}

.ck-app .fc .fc-button-primary:not(:disabled).fc-button-active,
.ck-app .fc .fc-button-primary:not(:disabled):active {
	background: var(--ck-navy) !important;
	border-color: var(--ck-navy) !important;
	color: #ffffff !important;
}

.ck-app .fc .fc-button-primary:disabled {
	opacity: .45;
}

.ck-app .fc .fc-button-group > .fc-button {
	border-radius: 0 !important;
	margin-left: -1px;
}

.ck-app .fc .fc-button-group > .fc-button:first-child {
	border-radius: 8px 0 0 8px !important;
	margin-left: 0;
}

.ck-app .fc .fc-button-group > .fc-button:last-child {
	border-radius: 0 8px 8px 0 !important;
}

/* siatka */

.ck-app .fc .fc-scrollgrid {
	border-radius: 10px;
	overflow: hidden;
	border-color: var(--ck-line);
}

.ck-app .fc .fc-scrollgrid-section > td {
	border-color: var(--ck-line);
}

.ck-app .fc .fc-col-header-cell {
	background: #f7f9fc;
	padding: 9px 0;
	border-color: var(--ck-line);
}

.ck-app .fc .fc-col-header-cell-cushion {
	padding: 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--ck-muted);
	text-decoration: none;
}

.ck-app .fc .fc-daygrid-day-number {
	padding: 6px 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ck-muted);
	text-decoration: none;
}

.ck-app .fc .fc-day-today .fc-daygrid-day-number {
	color: var(--ck-gold-dark);
}

.ck-app .fc .fc-daygrid-day.fc-day-today {
	background: var(--fc-today-bg-color);
}

.ck-app .fc .fc-daygrid-day-top {
	flex-direction: row;
}

/* wydarzenia */

.ck-app .fc .fc-event {
	border: 0 !important;
	border-radius: 6px;
	padding: 2px 5px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
	transition: filter .15s ease, transform .15s ease;
}

.ck-app .fc .fc-event:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
}

.ck-app .fc .fc-event-title {
	font-weight: 600;
}

/* kolor tekstu wydarzenia — Astra nadpisuje kolor linków */
.ck-app .fc .fc-daygrid-event,
.ck-app .fc .fc-timegrid-event,
.ck-app .fc .fc-daygrid-event .fc-event-main,
.ck-app .fc .fc-daygrid-event .fc-event-title,
.ck-app .fc .fc-daygrid-event .fc-event-time,
.ck-app .fc .fc-timegrid-event .fc-event-main,
.ck-app .fc .fc-timegrid-event .fc-event-title,
.ck-app .fc .fc-timegrid-event .fc-event-time {
	color: #ffffff !important;
	text-decoration: none !important;
}

.ck-app .fc .fc-event-time {
	font-size: 10.5px;
	opacity: .92;
}

.ck-app .fc .fc-daygrid-event-dot {
	display: none;
}

.ck-app .fc .fc-daygrid-block-event .fc-event-time {
	font-weight: 700;
}

.ck-app .fc .fc-more-link {
	font-size: 11px;
	font-weight: 700;
	color: var(--ck-gold-dark);
}

/* widok tygodnia / dnia */

.ck-app .fc .fc-timegrid-slot {
	height: 30px;
	border-color: var(--ck-line);
}

.ck-app .fc .fc-timegrid-slot-label-cushion {
	font-size: 11px;
	color: var(--ck-muted);
}

.ck-app .fc .fc-timegrid-axis-cushion {
	font-size: 11px;
	color: var(--ck-muted);
}

.ck-app .fc .fc-timegrid-now-indicator-line {
	border-color: var(--ck-gold-dark);
}

.ck-app .fc .fc-timegrid-now-indicator-arrow {
	border-color: var(--ck-gold-dark);
	background: var(--ck-gold-dark);
}

/* widok listy */

.ck-app .fc .fc-list {
	border-color: var(--ck-line);
	border-radius: 10px;
	overflow: hidden;
}

.ck-app .fc .fc-list-day-cushion {
	background: #f7f9fc;
	padding: 8px 12px;
}

.ck-app .fc .fc-list-day-text,
.ck-app .fc .fc-list-day-side-text {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--ck-navy);
	text-decoration: none;
}

.ck-app .fc .fc-list-event:hover td {
	background: var(--ck-cream);
}

.ck-app .fc .fc-list-event-title a {
	color: var(--ck-text);
	font-weight: 600;
	text-decoration: none;
}

.ck-app .fc .fc-list-event-time {
	font-size: 12.5px;
	color: var(--ck-muted);
	white-space: nowrap;
}

.ck-app .fc .fc-list-empty {
	background: #ffffff;
	color: var(--ck-muted);
	font-size: 13.5px;
	padding: 24px;
}

/* popover „więcej” */

.ck-app .fc .fc-popover {
	border: 1px solid var(--ck-line);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(30, 41, 59, .16);
	overflow: hidden;
}

.ck-app .fc .fc-popover-header {
	background: #f7f9fc;
	color: var(--ck-navy);
	font-size: 12px;
	font-weight: 700;
	padding: 8px 10px;
}

/* ---------- 5. MOJE REZERWACJE ---------- */

.ck-mine {
	margin-top: 28px;
}

.ck-h2 {
	margin: 0 0 14px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--ck-navy);
	line-height: 1.25;
}

.ck-mine-list {
	display: grid;
	gap: 10px;
}

.ck-mine-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 16px;
	background: #ffffff;
	border: 1px solid var(--ck-line);
	border-left: 4px solid var(--ck-sala, var(--ck-navy));
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(30, 41, 59, .04);
}

.ck-mine-when {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--ck-muted);
}

.ck-mine-title {
	margin-top: 2px;
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
}

.ck-mine-room {
	font-size: 12.5px;
	color: var(--ck-muted);
}

.ck-mine-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.ck-empty {
	margin: 0;
	padding: 16px;
	background: #ffffff;
	border: 1px dashed #d8e0ea;
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--ck-muted);
}

/* ---------- 6. MODALE ---------- */

body.ck-modal-open {
	overflow: hidden;
}

.ck-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ck-modal[hidden] {
	display: none;
}

.ck-modal-bg {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	backdrop-filter: blur(2px);
}

.ck-modal-box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .30);
	animation: ck-in .18s ease-out;
}

@keyframes ck-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(.99);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.ck-modal-x {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8a94a6;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
}

.ck-modal-x:hover {
	background: #f2f5f9;
	color: var(--ck-navy);
}

.ck-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.ck-field {
	display: block;
	margin: 0;
}

.ck-field-full {
	grid-column: 1 / -1;
}

.ck-field > span {
	display: block;
	margin-bottom: 5px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--ck-muted);
}

.ck-field input,
.ck-field select,
.ck-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #dbe3ec;
	border-radius: 8px;
	background: #ffffff;
	color: #1e293b;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
}

.ck-field input:focus,
.ck-field select:focus,
.ck-field textarea:focus {
	border-color: var(--ck-gold);
	box-shadow: 0 0 0 3px rgba(200, 164, 94, .18);
	outline: none;
}

.ck-field textarea {
	resize: vertical;
	min-height: 76px;
}

/* checkbox „Powtarzaj co tydzień” */

.ck-check {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 2px 0;
	cursor: pointer;
}

.ck-check input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--ck-navy);
	cursor: pointer;
}

.ck-check span {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #1e293b;
}

.ck-hint {
	display: block;
	margin-top: 5px;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--ck-muted);
	font-weight: 400;
}

.ck-seria-info {
	grid-column: 1 / -1;
	margin: 0;
	padding: 10px 14px;
	background: var(--ck-cream);
	border-left: 3px solid var(--ck-gold);
	border-radius: 8px;
	font-size: 12.5px;
	color: #5b6b7c;
}

.ck-seria-box {
	margin-top: 16px;
	padding: 14px 16px;
	background: var(--ck-cream);
	border: 1px solid rgba(200, 164, 94, .35);
	border-radius: 10px;
}

.ck-seria-box p {
	margin: 0 0 10px;
	font-size: 13px;
	color: #5b6b7c;
}

.ck-seria-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* atrybut hidden musi wygrać z display: flex/block */
.ck-app .ck-field[hidden],
.ck-app .ck-check[hidden],
.ck-app .ck-seria-info[hidden],
.ck-app .ck-seria-box[hidden],
.ck-app .ck-detail[hidden],
.ck-app .ck-btn[hidden] {
	display: none !important;
}

.ck-error {
	margin: 14px 0 0;
	padding: 10px 12px;
	background: #fef3f2;
	border: 1px solid #fecdca;
	border-radius: 8px;
	color: #b42318;
	font-size: 13px;
	line-height: 1.5;
}

.ck-form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

/* ---------- 7. SZCZEGÓŁY ---------- */

.ck-details {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--ck-line);
}

.ck-detail {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--ck-line);
}

.ck-detail > span {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--ck-muted);
}

.ck-detail > strong {
	font-size: 14.5px;
	font-weight: 600;
	color: #1e293b;
	text-align: right;
}

/* ---------- 8. TOAST ---------- */

.ck-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 100000;
	transform: translateX(-50%);
	max-width: min(92vw, 520px);
	padding: 12px 20px;
	background: var(--ck-navy);
	color: #ffffff;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .28);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
}

.ck-toast[hidden] {
	display: none;
}

.ck-toast-error {
	background: #b42318;
}

/* ---------- 9. TELEFON ---------- */

@media (max-width: 700px) {
	.ck-head {
		align-items: stretch;
	}

	.ck-actions {
		width: 100%;
	}

	.ck-actions .ck-btn {
		width: 100%;
	}

	.ck-legend {
		gap: 4px 8px;
	}

	.ck-legend-item {
		padding: 4px 5px;
		font-size: 12px;
	}

	.ck-legend-reset {
		font-size: 11.5px;
	}

	.ck-calendar {
		padding: 12px 10px 8px;
		border-radius: 14px;
	}

	.ck-app .fc .fc-toolbar.fc-header-toolbar {
		flex-wrap: wrap;
		gap: 8px;
	}

	.ck-app .fc .fc-toolbar-chunk:nth-child(2) {
		order: -1;
		width: 100%;
		text-align: center;
	}

	.ck-app .fc .fc-toolbar-chunk:first-child,
	.ck-app .fc .fc-toolbar-chunk:last-child {
		display: flex;
		justify-content: center;
		flex: 1 1 auto;
	}

	.ck-app .fc .fc-toolbar-title {
		font-size: 19px;
	}

	.ck-app .fc .fc-button {
		padding: 6px 9px;
		font-size: 12px;
	}

	.ck-app .fc .fc-col-header-cell-cushion {
		font-size: 10px;
		letter-spacing: .4px;
	}

	.ck-app .fc .fc-daygrid-day-number {
		font-size: 11.5px;
		padding: 4px 5px;
	}

	.ck-app .fc .fc-event {
		font-size: 10.5px;
		padding: 1px 4px;
	}

	.ck-mine-item {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.ck-mine-actions {
		justify-content: flex-end;
	}

	.ck-modal {
		padding: 12px;
	}

	.ck-modal-box {
		padding: 22px 18px;
		border-radius: 14px;
		max-height: 92vh;
	}

	.ck-grid {
		grid-template-columns: 1fr;
	}

	.ck-form-actions .ck-btn {
		flex: 1 1 auto;
	}

	.ck-detail {
		flex-direction: column;
		gap: 2px;
	}

	.ck-detail > strong {
		text-align: left;
	}
}
