/* Product reservation form — card layout */

.pr-reservation {
	margin: 1.5rem 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.pr-reservation__card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.75rem 1.5rem 1.5rem;
	box-sizing: border-box;
}

.pr-reservation__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.pr-reservation__intro {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #5c5c5c;
}

.pr-reservation__form {
	margin: 0;
}

.pr-reservation__panel[hidden] {
	display: none !important;
}

.pr-reservation__panel {
	margin-top: 1.5rem;
}

.pr-reservation__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0.5rem 0 0;
	padding: 0.6rem 0;
	cursor: pointer;
	background: transparent;
	border: 0;
}

.pr-reservation__toggle-icon {
	display: block;
	width: 14px;
	height: 14px;
	border-right: 2px solid #1a1a1a;
	border-bottom: 2px solid #1a1a1a;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.pr-reservation--open .pr-reservation__toggle-icon {
	transform: rotate(225deg);
}

.pr-reservation__toggle:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 3px;
}

.pr-reservation__field {
	margin-bottom: 1rem;
}

.pr-reservation__field--full {
	width: 100%;
}

.pr-reservation__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
	margin-bottom: 0;
}

@media (max-width: 520px) {
	.pr-reservation__row {
		grid-template-columns: 1fr;
	}
}

.pr-reservation__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #3a3a3a;
}

.pr-reservation__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	font-size: 1rem;
	line-height: 1.4;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #d4d4d4;
	border-radius: 4px;
	transition: border-color 0.15s ease;
}

.pr-reservation__input:focus {
	outline: none;
	border-color: #9a9a9a;
}

.pr-reservation__actions {
	margin-top: 1.25rem;
	display: flex;
	justify-content: flex-start;
}

.pr-reservation__submit {
	appearance: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a1a1a;
	background: #e8e8e8;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	padding: 0.65rem 1.35rem;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.pr-reservation__submit:hover:not(:disabled) {
	background: #dedede;
	border-color: #c4c4c4;
}

.pr-reservation__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* [hidden] must win over display:flex — otherwise loader shows on page load */
.pr-reservation__loader[hidden],
.pr-reservation__result[hidden] {
	display: none !important;
}

.pr-reservation__loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 140px;
	padding: 1rem;
	text-align: center;
}

.pr-reservation__loader-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e8e8e8;
	border-top-color: #5c5c5c;
	border-radius: 50%;
	animation: pr-spin 0.75s linear infinite;
}

.pr-reservation__loader-text {
	font-size: 0.9375rem;
	color: #5c5c5c;
}

@keyframes pr-spin {
	to {
		transform: rotate(360deg);
	}
}

.pr-reservation__result {
	margin: 0;
	padding: 1rem 0 0.25rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #1a1a1a;
}

.pr-reservation__result--success {
	font-weight: 500;
}

.pr-reservation__result--error {
	color: #b32d2e;
	font-weight: 500;
}

.pr-reservation-count {
	margin: 1rem 0;
	font-size: 1rem;
	line-height: 1.55;
	color: #1a1a1a;
}

.pr-reservation-count__number {
	font-weight: 700;
}

.pr-reservation-error {
	color: #b32d2e;
	font-size: 0.9375rem;
}
