.pos-rez {
	--pos-accent: #b78348;
	--pos-on-accent: #111;
	--pos-ink: color-mix(in srgb, var(--pos-accent) 62%, #000);
	--pos-soft: color-mix(in srgb, var(--pos-accent) 12%, #fff);
	--pos-line: #e4e4e7;
	--pos-muted: #6b6b76;
	--pos-radius: 12px;
	max-width: 880px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}
.pos-rez *, .pos-rez *::before, .pos-rez *::after { box-sizing: border-box; }

.pos-rez-notice {
	padding: 12px 16px;
	border-radius: var(--pos-radius);
	background: var(--pos-soft);
	border-left: 4px solid var(--pos-accent);
}
.pos-rez-intro { margin-bottom: 16px; }

.pos-rez-app {
	background: #fff;
	color: #1e293b;
	border: 1px solid var(--pos-line);
	border-radius: calc(var(--pos-radius) + 4px);
	padding: 20px;
	box-shadow: 0 6px 24px rgba(20, 20, 40, .06);
	transition: opacity .2s;
}
.pos-rez-app.is-loading { opacity: .55; pointer-events: none; }
.pos-rez-app.is-loading:has(.pos-rez-skeleton) { opacity: 1; }
.pos-rez-loading, .pos-rez-placeholder, .pos-rez-hint { color: var(--pos-muted); font-size: 14px; margin: 12px 0 0; }

.pos-rez-layout { display: grid; gap: 24px; }
@media (min-width: 720px) {
	.pos-rez-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
	.pos-rez-side { border-left: 1px solid var(--pos-line); padding-left: 24px; }
}

/* Zarys podczas ładowania */
.pos-rez-skeleton { display: grid; gap: 24px; }
@media (min-width: 720px) {
	.pos-rez-skeleton { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
	.pos-rez-sk-side { border-left: 1px solid var(--pos-line); padding-left: 24px; }
}
.pos-rez-sk-head { display: flex; align-items: center; justify-content: space-between; height: 38px; margin-bottom: 12px; }
.pos-rez-sk-head span { width: 38px; height: 38px; border-radius: 50%; }
.pos-rez-sk-head .pos-rez-sk-title { width: 140px; height: 18px; border-radius: 6px; }
.pos-rez-sk-dow { height: 14px; margin: 5px 25%; border-radius: 4px; }
.pos-rez-sk-day { aspect-ratio: 1; min-height: 36px; border-radius: 50%; }
.pos-rez-sk-line { display: block; height: 14px; border-radius: 6px; margin-bottom: 10px; }
.pos-rez-sk-line.short { width: 60%; }
.pos-rez-skeleton span {
	background: linear-gradient(90deg, #f1efec 25%, #f8f6f3 50%, #f1efec 75%);
	background-size: 200% 100%;
	animation: pos-rez-shimmer 1.2s ease-in-out infinite;
}
@keyframes pos-rez-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pos-rez-skeleton span { animation: none; } }

/* Kalendarz */
.pos-rez-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pos-rez-month { font-weight: 700; font-size: 18px; }
.pos-rez .pos-rez-nav {
	width: 38px; height: 38px; padding: 0;
	border: 1px solid var(--pos-line); border-radius: 50%;
	background: #fff; color: #1f1f24; font-size: 22px; line-height: 1;
	cursor: pointer;
}
.pos-rez .pos-rez-nav:hover:not(:disabled) { border-color: var(--pos-ink); color: var(--pos-ink); }
.pos-rez .pos-rez-nav:disabled { opacity: .3; cursor: default; }

.pos-rez-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pos-rez-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--pos-muted); text-transform: uppercase; padding: 4px 0; }
.pos-rez .pos-rez-day {
	aspect-ratio: 1;
	min-height: 36px;
	padding: 0;
	border: 0; border-radius: 50%;
	background: transparent; color: #b4b4bc;
	font: inherit; font-size: 15px;
	cursor: default;
}
.pos-rez .pos-rez-day.is-free {
	background: var(--pos-soft);
	color: var(--pos-ink);
	font-weight: 700;
	cursor: pointer;
}
.pos-rez .pos-rez-day.is-free:hover { outline: 2px solid var(--pos-accent); }
.pos-rez .pos-rez-day.is-selected { background: var(--pos-accent); color: var(--pos-on-accent); }

/* Godziny */
.pos-rez-times h3, .pos-rez-done h3 { margin: 0 0 12px; font-size: 17px; text-transform: none; }
.pos-rez-times h3::first-letter { text-transform: uppercase; }
.pos-rez-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pos-rez .pos-rez-time {
	padding: 10px 8px;
	border: 1px solid var(--pos-accent); border-radius: 4px;
	background: #fff; color: var(--pos-ink);
	font: inherit; font-weight: 600; font-size: 15px;
	cursor: pointer;
}
.pos-rez .pos-rez-time:hover { background: var(--pos-soft); }
.pos-rez .pos-rez-time.is-selected { background: var(--pos-accent); color: var(--pos-on-accent); }

/* Formularz */
.pos-rez-form { margin-top: 20px; }
.pos-rez-times + .pos-rez-form { padding-top: 20px; border-top: 1px solid var(--pos-line); }
.pos-rez-summary {
	display: flex; flex-direction: column;
	padding: 12px 14px; margin-bottom: 16px;
	border-radius: 10px; background: var(--pos-soft);
}
.pos-rez-summary span { font-size: 13px; color: var(--pos-muted); }
.pos-rez-summary strong::first-letter { text-transform: uppercase; }
.pos-rez-field { margin: 0 0 12px; }
.pos-rez-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pos-rez-summary .pos-rez-topic-fixed { margin-top: 4px; color: var(--pos-ink); font-weight: 600; }
.pos-rez-app > .pos-rez-calc { margin: 0 0 18px; }
.pos-rez-field select { appearance: auto; }
.pos-rez-field input, .pos-rez-field textarea, .pos-rez-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfcfd6; border-radius: 8px;
	background: #fff; color: #1f1f24;
	font: inherit;
}
.pos-rez-field select:focus, .pos-rez-field input:focus, .pos-rez-field textarea:focus { outline: 2px solid var(--pos-accent); outline-offset: 0; border-color: var(--pos-ink); }
.pos-rez-consent { font-size: 13px; color: var(--pos-muted); margin: 4px 0 14px; }
.pos-rez-consent input { margin-right: 6px; accent-color: var(--pos-ink); }
.pos-rez-consent a { color: var(--pos-ink); }
.pos-rez-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pos-rez .pos-rez-submit {
	width: 100%;
	padding: 13px 18px;
	border: 0; border-radius: 4px;
	background: var(--pos-accent); color: var(--pos-on-accent);
	font: inherit; font-weight: 700;
	cursor: pointer;
}
.pos-rez .pos-rez-submit:hover:not(:disabled) { filter: brightness(1.08); }
.pos-rez .pos-rez-submit:disabled { opacity: .6; cursor: wait; }
.pos-rez-error { color: #b42318; background: #fef3f2; padding: 10px 12px; border-radius: 8px; font-size: 14px; }

/* Po wysłaniu */
.pos-rez-done { text-align: center; padding: 24px 8px; }
.pos-rez-done-icon {
	width: 56px; height: 56px; margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--pos-accent); color: var(--pos-on-accent);
	font-size: 28px; line-height: 56px;
}
