/* HBC Événements : page de réservation. */

.hbc-book-head {
	margin-bottom: 1.25rem;
}

.hbc-book-when {
	display: inline-block;
	margin: 0 0 0.4rem;
	border-radius: 999px;
	background: var(--hbc-navy, #161D4F);
	padding: 0.35rem 0.9rem;
	color: #fff;
	font-weight: 800;
}

.hbc-book {
	display: grid;
	gap: 1.25rem;
}

.hbc-entry-content .hbc-book > * + * {
	margin-top: 0;
}

.hbc-book-hp {
	position: absolute !important;
	left: -9999px;
}

.hbc-book-error,
.hbc-book-closed {
	margin: 0;
	border: 1px solid rgb(178 76 98 / 40%);
	border-left: 4px solid var(--hbc-loss, #B24C62);
	border-radius: 0 0.8rem 0.8rem 0;
	background: rgb(178 76 98 / 8%);
	padding: 0.8rem 1rem;
	font-weight: 700;
}

.hbc-book-closed {
	border-color: var(--hbc-border, #C9CFDD);
	border-left-color: var(--hbc-silver, #9AA1B2);
	background: var(--hbc-bg, #E4E7EF);
}

.hbc-book-closed p {
	margin: 0;
}

.hbc-book-info {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	color: var(--hbc-muted, #4A5068);
}

.hbc-book-info:empty {
	display: none;
}

.hbc-book-section {
	margin: 0;
	border: 1px solid var(--hbc-border, #C9CFDD);
	border-radius: 1rem;
	background: #fff;
	padding: 1rem 1.25rem 1.1rem;
}

.hbc-book-section legend {
	padding: 0 0.4rem;
	color: var(--hbc-navy, #161D4F);
	font-size: 1.1rem;
	font-weight: 900;
}

.hbc-book-formula + .hbc-book-formula {
	margin-top: 0.9rem;
	border-top: 1px solid var(--hbc-border, #C9CFDD);
	padding-top: 0.9rem;
}

.hbc-book-formula__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	color: var(--hbc-navy, #161D4F);
	font-size: 1.05rem;
}

.hbc-book-price {
	color: var(--hbc-blue, #2B3BB0);
	font-weight: 900;
	white-space: nowrap;
}

.hbc-book-desc {
	margin: 0.2rem 0 0.4rem;
	color: var(--hbc-muted, #4A5068);
	font-size: 0.92rem;
}

.hbc-book-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
}

.hbc-book-row label {
	font-weight: 600;
}

.hbc-book-qty {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	overflow: hidden;
	border: 1px solid var(--hbc-border, #C9CFDD);
	border-radius: 999px;
}

.hbc-book-qty button {
	width: 2.4rem;
	height: 2.4rem;
	border: 0;
	border-radius: 0;
	background: var(--hbc-surface, #F3F4F8);
	padding: 0;
	color: var(--hbc-navy, #161D4F);
	font-size: 1.2rem;
	font-weight: 800;
	cursor: pointer;
}

.hbc-book-qty button:hover {
	background: var(--hbc-bg, #E4E7EF);
	color: var(--hbc-blue, #2B3BB0);
	box-shadow: none;
	transform: none;
}

.hbc-book-qty input {
	width: 3rem;
	height: 2.4rem;
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: 800;
	text-align: center;
	-moz-appearance: textfield;
}

.hbc-book-qty input::-webkit-inner-spin-button,
.hbc-book-qty input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.hbc-book-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 1rem;
}

.hbc-book-fields p {
	margin: 0;
}

.hbc-book-wide {
	grid-column: 1 / -1;
}

.hbc-book-fields label {
	display: block;
	color: var(--hbc-navy, #161D4F);
	font-size: 0.9rem;
	font-weight: 700;
}

.hbc-book-fields input,
.hbc-book-fields textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin-top: 0.3rem;
	border: 1px solid var(--hbc-border, #C9CFDD);
	border-radius: 0.6rem;
	background: #fff;
	padding: 0.6rem 0.75rem;
	font: inherit;
	font-weight: 400;
}

.hbc-book-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-radius: 1rem;
	background: var(--hbc-navy, #161D4F);
	padding: 0.9rem 1.25rem;
	color: #fff;
	font-size: 1.1rem;
}

.hbc-book-total strong {
	font-size: 1.5rem;
}

.hbc-book-note,
.hbc-book-privacy {
	margin: 0;
	color: var(--hbc-muted, #4A5068);
	font-size: 0.88rem;
}

.hbc-book-done {
	border: 1px solid rgb(47 138 116 / 40%);
	border-left: 4px solid var(--hbc-win, #2F8A74);
	border-radius: 0 1rem 1rem 0;
	background: #fff;
	padding: 1.1rem 1.4rem;
}

.hbc-book-done h2 {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
}

.hbc-book-done__total {
	font-size: 1.1rem;
}

@media (max-width: 620px) {
	.hbc-book-fields {
		grid-template-columns: 1fr;
	}
}

/* Menus présentés comme des cartes : nom, prix, contenu compris dans le prix */
.hbc-book-menus {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 0.9rem;
}

.hbc-book-menu {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hbc-border, #C9CFDD);
	border-top: 4px solid var(--hbc-blue, #2B3BB0);
	border-radius: 0 0 1rem 1rem;
	background: var(--hbc-surface, #F3F4F8);
	padding: 0.9rem 1rem 0.6rem;
}

.hbc-book-menu__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.hbc-entry-content .hbc-book-menu h3 {
	margin: 0;
	color: var(--hbc-navy, #161D4F);
	font-size: 1.1rem;
	line-height: 1.25;
}

.hbc-book-menu .hbc-book-price {
	font-size: 1.15rem;
}

.hbc-entry-content .hbc-book-menu__contents {
	display: grid;
	gap: 0.25rem;
	margin: 0.6rem 0 0.4rem;
	padding: 0;
	list-style: none;
}

.hbc-book-menu__contents li {
	position: relative;
	padding-left: 1.4rem;
	color: var(--hbc-ink, #1B2147);
	font-size: 0.95rem;
}

.hbc-book-menu__contents li::before {
	position: absolute;
	top: 0.05rem;
	left: 0;
	color: var(--hbc-win, #2F8A74);
	font-weight: 900;
	content: "✓";
}

.hbc-book-menu .hbc-book-row {
	margin-top: auto;
	border-top: 1px dashed var(--hbc-border, #C9CFDD);
	padding-top: 0.5rem;
}

.hbc-book-menu .hbc-book-row label {
	color: var(--hbc-muted, #4A5068);
	font-size: 0.9rem;
}
