/* Ryka Réservation — Wizard Styles */

/* ── Layout ── */
.ryka-wizard {
	display: flex;
	max-width: 1060px;
	margin: 0 auto;
	background: #0d0d0d;
	color: #ffffff;
	font-family: inherit;
	border-radius: 14px;
	overflow: hidden;
	height: 580px;
}

/* ── Sidebar ── */
.ryka-wizard__sidebar {
	width: 240px;
	flex-shrink: 0;
	background: #2d5a27;
	padding: 32px 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow-y: auto;
}

.ryka-wizard__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.ryka-wizard__step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 24px;
	cursor: default;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.ryka-wizard__step.is-active,
.ryka-wizard__step.is-done {
	opacity: 1;
}

.ryka-wizard__step-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.ryka-wizard__step.is-active .ryka-wizard__step-num {
	background: #ffffff;
	color: #2d5a27;
}

.ryka-wizard__step-info {
	display: flex;
	flex-direction: column;
}

.ryka-wizard__step-label {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
}

.ryka-wizard__step-summary {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 2px;
}

.ryka-wizard__reduce {
	margin: 16px 24px 0;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #ffffff;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	border-radius: 20px;
	transition: background 0.2s;
}

.ryka-wizard__reduce:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* ── Panel ── */
.ryka-wizard__panel {
	flex: 1;
	background: #ffffff;
	color: #0d0d0d;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.ryka-wizard__panel-content {
	flex: 1;
	padding: 28px 32px;
	overflow-y: auto;
	min-height: 0;
}

/* Date info — sticky slot between scroll area and footer */
.ryka-date-info {
	border-top: 1px solid #e8e8e8;
	padding: 14px 32px;
	background: #fafafa;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ryka-date-info[hidden] {
	display: none;
}

.ryka-wizard__panel-footer {
	padding: 14px 32px;
	border-top: 1px solid #e5e5e5;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	background: #fff;
}

/* ── Steps ── */
.ryka-step {
	display: none;
}

.ryka-step__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #0d0d0d !important;
}

/* ── Buttons ── */
.ryka-btn {
	padding: 10px 28px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s, transform 0.1s;
}

.ryka-btn--continue,
.ryka-btn--submit {
	background: #2d5a27;
	color: #ffffff;
}

.ryka-btn--continue:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.ryka-btn--continue:not(:disabled):hover,
.ryka-btn--submit:hover {
	background: #3a7232;
	transform: translateY(-1px);
}

/* ── Pack grid ── */
.ryka-search {
	width: 100%;
	padding: 9px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 20px;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.ryka-search:focus {
	outline: none;
	border-color: #2d5a27;
}

.ryka-packs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

/* ── Modal ── */
.ryka-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

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

.ryka-modal {
	background: #ffffff;
	border-radius: 12px;
	max-width: 560px;
	width: 90%;
	padding: 28px;
	position: relative;
	max-height: 80vh;
	overflow-y: auto;
}

.ryka-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	color: #0d0d0d;
}

.ryka-modal__img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 16px;
}

/* ── Calendar ── */
.ryka-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ryka-cal-title {
	font-size: 16px;
	font-weight: 700;
	color: #0d0d0d;
}

.ryka-cal-prev,
.ryka-cal-next {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #2d5a27;
	border: none;
	color: #ffffff;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	line-height: 1;
}

.ryka-cal-prev:hover,
.ryka-cal-next:hover {
	background: #3a7232;
}

.ryka-cal-prev:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	background: #ccc;
}

.ryka-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.ryka-cal__day-name {
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	color: #999;
	padding: 4px 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ryka-cal__cell {
	height: 40px;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 5px 7px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
}

.ryka-cal__cell--empty {
	visibility: hidden;
}

.ryka-cal__cell.is-past,
.ryka-cal__cell.is-closed,
.ryka-cal__cell.is-full,
.ryka-cal__cell.is-blocked {
	color: #ccc;
	background: #f7f7f7;
	cursor: not-allowed;
}

.ryka-cal__cell.is-full {
	text-decoration: line-through;
}

.ryka-cal__cell.is-available {
	cursor: pointer;
	border: 1.5px solid rgba(45, 90, 39, 0.5);
	color: #1a1a1a;
	background: #fff;
}

.ryka-cal__cell.is-available:hover {
	background: rgba(45, 90, 39, 0.08);
	border-color: #2d5a27;
}

.ryka-cal__cell.is-selected {
	background: #2d5a27;
	color: #ffffff;
	border-color: #2d5a27;
}

/* ── Date info row (sticky below scroll area) ── */
.ryka-date-info__label {
	font-weight: 700;
	font-size: 14px;
	margin: 0;
	color: #0d0d0d;
}

.ryka-date-info__count {
	color: #2d5a27;
	font-size: 13px;
	margin: 0;
}

.ryka-btn--slot {
	background: #2d5a27;
	color: #ffffff;
	border: none;
	padding: 7px 18px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: default;
	margin-left: auto;
}

/* ── Form ── */
.ryka-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 24px;
}

.ryka-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ryka-field label {
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.ryka-required {
	color: #c0392b;
}

.ryka-field input {
	padding: 9px 13px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.ryka-field input:focus {
	outline: none;
	border-color: #2d5a27;
	box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

/* ── Summary / Legal ── */
.ryka-summary {
	border-radius: 8px;
	border: 1px solid #e8e8e8;
	padding: 4px 0;
	margin-bottom: 16px;
}

.ryka-legal {
	margin-bottom: 16px;
	font-size: 13px;
	color: #555;
}

/* ── Alert ── */
.ryka-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-top: 12px;
}

.ryka-alert[hidden] {
	display: none;
}

.ryka-alert--error {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}

/* ── intl-tel-input override ── */
.ryka-field .iti {
	width: 100%;
}

.ryka-field .iti input {
	width: 100%;
}

/* ── Pack cards ── */
.ryka-pack-card {
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #f9f9f9;
}

.ryka-pack-card.is-selected {
	border-color: #2d5a27;
	box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.12);
}

.ryka-pack-card:hover {
	border-color: rgba(45, 90, 39, 0.5);
}

.ryka-pack__img-wrap {
	padding: 16px 16px 0;
}

.ryka-pack__img {
	border-radius: 50%;
	width: 72px;
	height: 72px;
	object-fit: cover;
	display: block;
	margin: auto;
}

.ryka-pack__img--placeholder {
	background: #e0e0e0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: block;
	margin: auto;
}

.ryka-pack__body {
	padding: 12px;
	text-align: center;
}

.ryka-pack__name {
	font-size: 14px;
	font-weight: 700;
	color: #0d0d0d !important;
	margin: 8px 0 4px;
}

.ryka-pack__meta {
	font-size: 12px;
	color: #666;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ryka-pack__more {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: #2d5a27;
	text-decoration: underline;
}

/* ── Summary blocks (step 4) ── */
.ryka-summary__block {
	border-bottom: 1px solid #e5e5e5;
	padding: 14px 20px;
}

.ryka-summary__block:last-child {
	border-bottom: none;
}

.ryka-summary__block-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.ryka-summary__block-header span {
	font-weight: 600;
	font-size: 13px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ryka-summary__edit {
	font-size: 12px;
	color: #2d5a27;
	text-decoration: underline;
}

.ryka-summary__pack {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ryka-summary__pack-img {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
}

/* ── Field errors (step 3) ── */
.ryka-field--error input {
	border-color: #c0392b;
}

.ryka-field-error {
	font-size: 12px;
	color: #c0392b;
	margin-top: 2px;
}

/* ── Tooltip ── */
.ryka-tooltip {
	position: fixed;
	background: #1a1a1a;
	color: #ffffff;
	padding: 5px 11px;
	border-radius: 6px;
	font-size: 12px;
	pointer-events: none;
	white-space: nowrap;
	z-index: 9999;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Sidebar: done step state ── */
.ryka-wizard__step.is-done {
	cursor: pointer;
}

.ryka-wizard__step.is-done .ryka-wizard__step-num {
	background: #ffffff;
	color: #2d5a27;
}

/* ── Sidebar: reduced state ── */
.ryka-wizard__sidebar.is-reduced {
	width: 64px;
}

.ryka-wizard__sidebar.is-reduced .ryka-wizard__step-info {
	display: none;
}

.ryka-wizard__sidebar.is-reduced .ryka-wizard__reduce {
	font-size: 0;
	padding: 6px;
}

/* ── Success screen ── */
.ryka-success {
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
	animation: ryka-success-fade 0.45s ease both;
}

@keyframes ryka-success-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.ryka-success__left {
	width: 300px;
	flex-shrink: 0;
	background: #070707;
	border-right: 1px solid rgba(45, 90, 39, 0.22);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	position: relative;
}

.ryka-success__left::before,
.ryka-success__left::after {
	content: '';
	position: absolute;
	background: rgba(45, 90, 39, 0.1);
	pointer-events: none;
}
.ryka-success__left::before { width: 1px; height: 100%; left: 50%; }
.ryka-success__left::after  { height: 1px; width: 100%; top: 50%; }

.ryka-success__target-wrap {
	position: relative;
	z-index: 1;
	width: 150px;
	height: 150px;
}

.rts-svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.rts-ring {
	fill: none;
	stroke-dasharray: var(--c);
	stroke-dashoffset: var(--c);
	animation: rts-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.rts-ring--1 { --c: 327; stroke: rgba(45,90,39,0.25); stroke-width: 1.5; animation-delay: 0.05s; }
.rts-ring--2 { --c: 227; stroke: rgba(45,90,39,0.55); stroke-width: 1.5; animation-delay: 0.22s; }
.rts-ring--3 { --c: 126; stroke: rgba(45,90,39,0.88); stroke-width: 2;   animation-delay: 0.42s; }

.rts-check {
	fill: none;
	stroke: #4ade80;
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 60;
	stroke-dashoffset: 60;
	animation: rts-draw 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.72s forwards;
	filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.55));
}

@keyframes rts-draw {
	to { stroke-dashoffset: 0; }
}

.ryka-success__hit-label {
	position: relative;
	z-index: 1;
	font-family: 'Courier New', Courier, monospace;
	font-size: 9px;
	letter-spacing: 0.28em;
	color: rgba(45, 90, 39, 0.65);
	text-transform: uppercase;
}

.ryka-success__right {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 44px 48px;
	animation: ryka-success-right 0.55s ease 0.15s both;
}

@keyframes ryka-success-right {
	from { opacity: 0; transform: translateX(18px); }
	to   { opacity: 1; transform: translateX(0); }
}

.ryka-success__report-label {
	font-family: 'Courier New', Courier, monospace;
	font-size: 9px;
	letter-spacing: 0.32em;
	color: #2d5a27;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.ryka-success__title {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 36px;
	font-weight: 400;
	line-height: 1.12;
	color: #ffffff !important;
	margin: 0 0 22px;
}

.ryka-success__divider {
	width: 44px;
	height: 2px;
	background: linear-gradient(90deg, #2d5a27 0%, #4ade80 60%, transparent 100%);
	margin-bottom: 26px;
}

.ryka-success__ref-block {
	margin-bottom: 22px;
}

.ryka-success__ref-label {
	display: block;
	font-family: 'Courier New', Courier, monospace;
	font-size: 9px;
	letter-spacing: 0.28em;
	color: rgba(255,255,255,0.32);
	text-transform: uppercase;
	margin-bottom: 7px;
}

.ryka-success__ref-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ryka-success__ref-code {
	font-family: 'Courier New', Courier, monospace;
	font-size: 19px;
	font-weight: 700;
	color: #a3e635;
	letter-spacing: 0.04em;
	background: rgba(163, 230, 53, 0.07);
	border: 1px solid rgba(163, 230, 53, 0.22);
	border-radius: 4px;
	padding: 6px 14px;
	line-height: 1;
}

.ryka-success__copy-btn {
	background: none;
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 4px;
	color: rgba(255,255,255,0.38);
	font-size: 15px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
	flex-shrink: 0;
	padding: 0;
}

.ryka-success__copy-btn:hover {
	border-color: rgba(163, 230, 53, 0.45);
	color: #a3e635;
}

.ryka-success__copy-btn.is-copied {
	border-color: #4ade80;
	color: #4ade80;
}

.ryka-success__text {
	font-size: 13px;
	color: rgba(255,255,255,0.42);
	line-height: 1.65;
	margin: 0;
}

/* ── Responsive ── */
@media (max-width: 700px) {
	.ryka-wizard {
		flex-direction: column;
		height: auto;
		border-radius: 10px;
	}

	.ryka-wizard__sidebar {
		width: 100%;
		height: auto;
		padding: 20px 0;
	}

	.ryka-wizard__steps {
		display: flex;
		overflow-x: auto;
		padding: 0 16px;
		gap: 4px;
	}

	.ryka-wizard__step {
		flex-direction: column;
		align-items: center;
		padding: 8px 14px;
		gap: 4px;
		min-width: fit-content;
	}

	.ryka-wizard__step-summary {
		display: none;
	}

	.ryka-wizard__reduce {
		display: none;
	}

	.ryka-wizard__panel-content {
		max-height: none;
		padding: 20px;
	}

	.ryka-form {
		grid-template-columns: 1fr;
	}

	.ryka-date-info {
		padding: 12px 20px;
	}

	.ryka-wizard__panel-footer {
		padding: 12px 20px;
	}

	.ryka-success {
		flex-direction: column;
		height: auto;
	}

	.ryka-success__left {
		width: 100%;
		height: 200px;
		border-right: none;
		border-bottom: 1px solid rgba(45, 90, 39, 0.22);
	}

	.ryka-success__right {
		padding: 28px 24px;
	}

	.ryka-success__title {
		font-size: 28px;
	}

	.ryka-success__ref-code {
		font-size: 15px;
	}
}
