/* RK Rezerwacje — proces rezerwacji (Podsumowanie pobytu, Dane gościa, Potwierdzenie, formularz pokoju).
   Kolory i kroje z motywu: Marcellus (nagłówki), Jost (tekst), złoto #b99d75, zieleń #53624e. */

:root {
	--rkr-green: #53624e;
	--rkr-green-dark: #424f3e;
	--rkr-gold: #b99d75;
	--rkr-gold-soft: #efe7da;
	--rkr-ink: #1f231e;
	--rkr-text: #3a3f38;
	--rkr-muted: #5c6258;
	--rkr-line: #e4dfd4;
	--rkr-cream: #faf8f3;
	--rkr-sand: #f5f3ee;
	--rkr-danger: #9d3b2b;
	--rkr-radius: 6px;
	--rkr-shadow: 0 1px 2px rgba(31, 35, 30, .04), 0 8px 24px rgba(31, 35, 30, .06);
	--rkr-serif: Marcellus, Georgia, "Times New Roman", serif;
}

/* ---------- Podtytuł w nagłówku strony ---------- */
.rkr-page-sub {
	margin: 14px auto 0;
	max-width: 640px;
	font-size: 18px;
	line-height: 1.5;
	color: inherit;
	opacity: .92;
}

/* ---------- Wskaźnik postępu ---------- */
.rkr-steps { margin: 0 auto 40px; max-width: 760px; }
.rkr-steps ol {
	display: flex;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.rkr-steps__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 4px;
	color: var(--rkr-muted);
	font-size: 15px;
	letter-spacing: .02em;
	white-space: nowrap;
}
.rkr-steps__item + .rkr-steps__item::before {
	content: "";
	display: block;
	width: 48px;
	height: 1px;
	margin-right: 10px;
	background: var(--rkr-line);
}
.rkr-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border: 1px solid var(--rkr-line);
	border-radius: 50%;
	font-family: var(--rkr-serif);
	font-size: 14px;
	background: #fff;
}
.rkr-steps__item.is-current { color: var(--rkr-ink); }
.rkr-steps__item.is-current .rkr-steps__num { border-color: var(--rkr-green); background: var(--rkr-green); color: #fff; }
.rkr-steps__item.is-done { color: var(--rkr-green); }
.rkr-steps__item.is-done .rkr-steps__num { border-color: var(--rkr-green); color: var(--rkr-green); }
.rkr-steps__item.is-done + .rkr-steps__item::before { background: var(--rkr-green); opacity: .5; }

/* ---------- Wspólne: przyciski, linki, panele ---------- */
.rkr-flow { color: var(--rkr-text); font-size: 16px; line-height: 1.6; }
.rkr-flow h2, .rkr-flow h3 { font-family: var(--rkr-serif); font-weight: 400; color: var(--rkr-ink); }

.rkr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.rkr-btn--primary { background: var(--rkr-green); border-color: var(--rkr-green); color: #fff !important; }
.rkr-btn--primary:hover, .rkr-btn--primary:focus-visible { background: var(--rkr-green-dark); border-color: var(--rkr-green-dark); }
.rkr-btn--ghost { background: transparent; border-color: var(--rkr-gold); color: var(--rkr-ink) !important; }
.rkr-btn--ghost:hover, .rkr-btn--ghost:focus-visible { background: var(--rkr-gold-soft); }
.rkr-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.rkr-btn:focus-visible, .rkr-link:focus-visible { outline: 2px solid var(--rkr-gold); outline-offset: 3px; }

.rkr-link { color: var(--rkr-green) !important; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.rkr-link--muted { color: var(--rkr-muted) !important; }
.rkr-link:hover { color: var(--rkr-ink) !important; }

.rkr-alert {
	margin: 10px 0 14px;
	padding: 12px 14px;
	border-left: 3px solid var(--rkr-danger);
	background: #fbf1ee;
	color: #5e2419;
	font-size: 15px;
}

.rkr-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 16px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--rkr-text);
}
.rkr-note .rkr-icon { flex: 0 0 auto; margin-top: 3px; color: var(--rkr-gold); }

/* ---------- Etap 1: układ ---------- */
.rkr-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: 40px;
	align-items: start;
}
.rkr-section-title, .rkr-panel__title { margin: 0 0 18px; font-size: 26px; line-height: 1.25; }

.rkr-card {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	margin: 0 0 20px;
	background: #fff;
	border: 1px solid var(--rkr-line);
	border-radius: var(--rkr-radius);
	overflow: hidden;
}
.rkr-card.is-expired { border-color: #e2c3ba; }
.rkr-card__media { background: var(--rkr-sand); min-height: 100%; }
.rkr-card__media img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; aspect-ratio: 4 / 3; }
.rkr-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 220px; color: var(--rkr-gold); }
.rkr-card__body { padding: 24px 26px 22px; }
.rkr-card__title { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
.rkr-card__title a { color: inherit; text-decoration: none; }
.rkr-card__title a:hover { color: var(--rkr-green); }

.rkr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0 0 18px; }
.rkr-facts__item { margin: 0; }
.rkr-facts dt { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 14px; color: var(--rkr-muted); font-weight: 400; }
.rkr-facts dt .rkr-icon { color: var(--rkr-gold); }
.rkr-facts dd { margin: 0 0 0 26px; font-size: 16px; color: var(--rkr-ink); }

.rkr-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 20px;
	padding-top: 16px;
	border-top: 1px solid var(--rkr-line);
}
.rkr-card__price { margin: 0; font-family: var(--rkr-serif); font-size: 24px; color: var(--rkr-ink); }
.rkr-card__price span { font-family: inherit; font-size: 14px; color: var(--rkr-muted); }
.rkr-flow .rkr-card__price span { font-family: Jost, sans-serif; }
.rkr-card__actions { display: flex; gap: 20px; margin: 0; }

/* Panel kosztów (etap 1) */
.rkr-layout__side { position: sticky; top: 120px; }
.rkr-panel {
	padding: 28px 26px;
	background: var(--rkr-cream);
	border: 1px solid var(--rkr-line);
	border-radius: var(--rkr-radius);
	box-shadow: var(--rkr-shadow);
}
.rkr-costs { margin: 0 0 18px; }
.rkr-costs__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rkr-line); }
.rkr-costs__row dt { margin: 0; font-weight: 400; color: var(--rkr-text); }
.rkr-costs__row dd { margin: 0; color: var(--rkr-ink); text-align: right; }
.rkr-costs__row--total { border-bottom: 0; padding-top: 14px; }
.rkr-costs__row--total dt { font-size: 18px; color: var(--rkr-ink); }
.rkr-costs__row--total dd { font-family: var(--rkr-serif); font-size: 26px; }
.rkr-panel .rkr-btn { width: 100%; margin-top: 6px; }

/* Zadatek — wspólny dla etapu 1 i 2 */
.rkr-deposit {
	margin: 4px 0 18px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--rkr-line);
	border-left: 3px solid var(--rkr-gold);
	border-radius: 4px;
}
.rkr-deposit__label { margin: 0; font-size: 15px; color: var(--rkr-text); }
.rkr-deposit__value { margin: 2px 0 10px; font-family: var(--rkr-serif); font-size: 30px; line-height: 1.2; color: var(--rkr-ink); }
.rkr-deposit__rest { display: flex; justify-content: space-between; margin: 0; padding-top: 10px; border-top: 1px solid var(--rkr-line); font-size: 15px; color: var(--rkr-text); }
.rkr-deposit__rest span:last-child { color: var(--rkr-ink); }

/* Pusty widok */
.rkr-empty {
	max-width: 560px;
	margin: 10px auto 30px;
	padding: 48px 32px;
	text-align: center;
	background: var(--rkr-cream);
	border: 1px solid var(--rkr-line);
	border-radius: var(--rkr-radius);
}
.rkr-empty .rkr-icon { color: var(--rkr-gold); }
.rkr-empty__title { margin: 14px 0 10px; font-size: 30px; }
.rkr-empty__text { margin: 0 0 24px; font-size: 17px; }
.rkr-notices { margin: 0 0 24px; }

/* ---------- Etap 2: formularz WooCommerce ---------- */
.wp-block-woocommerce-checkout .rkr-steps { margin-bottom: 36px; }
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-title.wc-block-components-checkout-step__title {
	font-family: var(--rkr-serif) !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	color: var(--rkr-ink) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.wc-block-checkout .wc-block-components-checkout-step__description {
	font-size: 15px !important;
	line-height: 1.55;
	color: var(--rkr-text) !important;
}
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-checkout .wc-blocks-components-select select,
.wc-block-checkout .wc-block-components-textarea {
	min-height: 54px;
	font-size: 16px !important; /* 16 px: telefon nie powiększa strony przy wpisywaniu */
	color: var(--rkr-ink) !important;
	border-color: #cfc8ba !important;
	border-radius: 3px !important;
}
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select label { color: var(--rkr-muted) !important; }
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-textarea:focus { border-color: var(--rkr-green) !important; box-shadow: 0 0 0 1px var(--rkr-green) !important; }
.wc-block-checkout .wc-block-components-validation-error p { font-size: 14px !important; }

/* „Jak potwierdzamy rezerwację?” — jedyna metoda (przelew) jest wybrana automatycznie, pokazujemy procedurę */
.wc-block-checkout__payment-method .wc-block-components-radio-control,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option { display: none !important; }
.wc-block-checkout__payment-method .wc-block-checkout__no-payment-methods-notice { display: none !important; }

.rkr-howto { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: none; }
.rkr-howto li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--rkr-line);
	font-size: 16px;
	line-height: 1.5;
	color: var(--rkr-text);
}
.rkr-howto li:last-child { border-bottom: 0; }
.rkr-howto__n {
	flex: 0 0 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--rkr-gold);
	border-radius: 50%;
	font-family: var(--rkr-serif);
	font-size: 14px;
	color: var(--rkr-ink);
}
.rkr-howto li.is-done .rkr-howto__n { background: var(--rkr-green); border-color: var(--rkr-green); color: #fff; }
.rkr-howto-free { margin: 14px 0 0; padding: 12px 14px; background: var(--rkr-cream); border-radius: 4px; font-size: 15px; color: var(--rkr-ink); }

/* Podsumowanie w prawej kolumnie */
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-text,
.wc-block-checkout__sidebar .wc-block-components-title {
	font-family: var(--rkr-serif) !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	text-transform: none !important;
}
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--rkr-cream);
	border: 1px solid var(--rkr-line) !important;
	border-radius: var(--rkr-radius);
	box-shadow: var(--rkr-shadow);
}
.wc-block-components-order-summary-item__quantity { display: none !important; }
.wc-block-components-order-summary-item__image img { border-radius: 4px; object-fit: cover; }
.wc-block-components-order-summary-item .wc-block-components-product-name { font-family: var(--rkr-serif); font-size: 18px !important; color: var(--rkr-ink) !important; }
.wc-block-components-order-summary-item .cs-room-order-date strong,
.wc-block-components-order-summary-item .cs-room-order-details strong { font-weight: 400; color: var(--rkr-muted); }
.wc-block-components-order-summary-item .wc-block-components-product-metadata { font-size: 14px !important; color: var(--rkr-text) !important; }
.wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--rkr-serif); font-size: 26px !important; }
.wc-block-checkout__sidebar .rkr-deposit { margin: 0 16px 16px; }
.wc-block-checkout__sidebar .rkr-side-note { margin: 0 16px 18px; }

/* Przycisk i informacja pod nim */
.wc-block-checkout .wc-block-components-checkout-place-order-button {
	min-height: 56px;
	border-radius: 3px !important;
	background: var(--rkr-green) !important;
	border-color: var(--rkr-green) !important;
	color: #fff !important;
	font-size: 17px !important;
	letter-spacing: .02em;
}
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover { background: var(--rkr-green-dark) !important; }
.rkr-submit-note { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--rkr-text); }
.wc-block-checkout__terms, .wc-block-checkout__terms span { font-size: 15px !important; color: var(--rkr-text) !important; }

/* Stara ramka z wersji 0.1.x (zastąpiona panelem zadatku) */
.rkr-checkout-info { display: none !important; }

/* ---------- Etap 3: potwierdzenie ---------- */
.rkr-ty {
	max-width: 760px;
	margin: 0 auto 40px;
	padding: 44px 44px 36px;
	background: #fff;
	border: 1px solid var(--rkr-line);
	border-radius: var(--rkr-radius);
	box-shadow: var(--rkr-shadow);
	text-align: center;
}
.rkr-ty__icon { color: var(--rkr-green); }
.rkr-ty__title { margin: 12px 0 8px; font-size: 34px; line-height: 1.2; }
.rkr-ty__lead { margin: 0 0 24px; font-size: 18px; }
.rkr-ty__status {
	margin: 0 0 28px;
	padding: 18px 20px;
	background: var(--rkr-cream);
	border: 1px solid var(--rkr-line);
	border-left: 3px solid var(--rkr-gold);
	border-radius: 4px;
	text-align: left;
}
.rkr-ty__status p { margin: 0; font-size: 16px; }
.rkr-ty__status .rkr-ty__status-title { margin-bottom: 6px; font-weight: 500; color: var(--rkr-ink); }
.rkr-ty__details { margin: 0 0 28px; text-align: left; border-top: 1px solid var(--rkr-line); }
.rkr-ty__row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rkr-line); }
.rkr-ty__row dt { margin: 0; font-weight: 400; color: var(--rkr-muted); }
.rkr-ty__row dd { margin: 0; color: var(--rkr-ink); text-align: right; overflow-wrap: anywhere; }
.rkr-ty__subtitle { margin: 0 0 6px; font-size: 22px; text-align: left; }
.rkr-ty .rkr-howto { text-align: left; margin-bottom: 30px; }
.rkr-ty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }

/* ---------- Formularz pokoju ---------- */
.rkr-room-note { margin: 10px 0 14px; font-size: 14px; line-height: 1.5; color: var(--rkr-text); }

/* ---------- 0.2.1: rozmiary nagłówków ponad stylami motywu, czytelność drobnych tekstów ---------- */
.rkr-flow h2.rkr-section-title, .rkr-flow h2.rkr-panel__title { font-size: 26px !important; line-height: 1.25 !important; margin: 0 0 18px !important; }
.rkr-flow h3.rkr-card__title { font-size: 24px !important; line-height: 1.25 !important; margin: 0 0 16px !important; }
.rkr-flow .rkr-card__title a { color: var(--rkr-ink) !important; }
.rkr-flow .rkr-card__title a:hover { color: var(--rkr-green) !important; }
.rkr-flow h2.rkr-empty__title { font-size: 30px !important; line-height: 1.2 !important; margin: 14px 0 10px !important; }
.rkr-flow h2.rkr-ty__title { font-size: 34px !important; line-height: 1.2 !important; margin: 12px 0 8px !important; }
.rkr-flow h3.rkr-ty__subtitle { font-size: 22px !important; margin: 0 0 6px !important; }

.woocommerce-cart .page-title-section .entry-title,
.woocommerce-checkout .page-title-section .entry-title { word-break: normal; overflow-wrap: normal; hyphens: manual; }

.wc-block-checkout .wc-block-components-checkbox__label { font-size: 15px !important; color: var(--rkr-text) !important; }
.wp-block-woocommerce-checkout-terms-block,
.wp-block-woocommerce-checkout-terms-block * { font-size: 15px !important; line-height: 1.55; color: var(--rkr-text); }
.wc-block-components-checkout-return-to-cart-button { font-size: 15px !important; color: var(--rkr-green) !important; }
.wc-block-checkout__sidebar.is-sticky { top: 110px !important; }

/* ---------- Telefony i tablety ---------- */
@media (max-width: 1024px) {
	.rkr-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.rkr-layout__side { position: static; }
}
@media (max-width: 680px) {
	.rkr-steps { margin-bottom: 28px; }
	.rkr-steps__item { gap: 6px; font-size: 13px; }
	.rkr-steps__item + .rkr-steps__item::before { width: 16px; margin-right: 6px; }
	.rkr-steps__num { min-width: 28px; height: 28px; font-size: 12px; }
	.rkr-card { grid-template-columns: minmax(0, 1fr); }
	.rkr-card__media img { min-height: 0; aspect-ratio: 16 / 10; }
	.rkr-card__body { padding: 20px 18px; }
	.rkr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
	.rkr-facts dd { margin-left: 0; }
	.rkr-flow h3.rkr-card__title { font-size: 22px !important; }
	.woocommerce-cart .page-title-section .entry-title,
	.woocommerce-checkout .page-title-section .entry-title { font-size: 40px !important; line-height: 1.15 !important; }
	.rkr-panel { padding: 22px 18px; }
	.rkr-ty { padding: 30px 18px 26px; }
	.rkr-ty__title { font-size: 28px; }
	.rkr-ty__row { flex-direction: column; gap: 2px; }
	.rkr-ty__row dd { text-align: left; }
	.rkr-ty__actions .rkr-btn { width: 100%; }
	.rkr-page-sub { font-size: 16px; }
}
@media (max-width: 480px) {
	/* Na wąskim ekranie nazwę ma tylko bieżący etap — pozostałe numer (czytnik ekranu dostaje pełne nazwy). */
	.rkr-steps__item:not(.is-current) .rkr-steps__label {
		position: absolute !important;
		width: 1px; height: 1px; padding: 0; margin: -1px;
		overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
	}
	.rkr-steps__item + .rkr-steps__item::before { width: 28px; }
	.rkr-steps__item.is-current .rkr-steps__label { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.rkr-btn { transition: none; }
}

/* 0.3.0: dzieci i łóżeczko, pozostała kwota gotówką */
.rkr-deposit__note { margin: 6px 0 0; font-size: 13px; color: var(--rkr-text); text-align: right; }
.rkr-kids-note { margin: 4px 0 14px !important; }