/*
 * The visitor page and the guest's own page.
 *
 * The one piece of styling doing real work is the REFUSED list. It is not
 * hidden, not collapsed and not greyed into invisibility, because "the
 * Garden Room is free but there is a two-night minimum that weekend" is a
 * sentence that turns into a booking - and a blank page is a visitor going
 * to a channel, where the house pays for them.
 */

.tbb {
	--tbb-accent: #6a5acd;
	max-width: 46rem;
	margin: 0 auto;
	line-height: 1.55;
}

.tbb h2 {
	margin: 0 0 .5rem;
}

.tbb-strapline {
	font-size: 1.1rem;
	color: #444;
	margin: .2rem 0;
}

.tbb-none {
	color: #666;
	font-style: italic;
}

.tbb-note,
.tbb-terms {
	color: #555;
	font-size: .95rem;
	border-left: 3px solid #ddd;
	padding-left: .9rem;
}

.tbb-flash {
	padding: .75rem 1rem;
	border-radius: 4px;
	border-left: 4px solid var(--tbb-accent);
	background: #f4f3fb;
	margin: 1rem 0;
}

.tbb-flash-error {
	border-left-color: #b32d2e;
	background: #fcf0f1;
}

.tbb-flash-success {
	border-left-color: #007017;
	background: #f0f7f1;
}

/* ── the search ──────────────────────────────────────────────────────── */

.tbb-searchform {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	margin: 1rem 0;
	padding: 1rem;
	background: #f7f7fa;
	border-radius: 6px;
}

.tbb-room-offer {
	border: 1px solid #ddd;
	border-left: 5px solid var(--tbb-accent);
	border-radius: 6px;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
	background: #fff;
}

.tbb-room-offer h5 {
	margin: 0 0 .3rem;
	font-size: 1.15rem;
}

.tbb-roomline {
	color: #555;
	font-size: .95rem;
	margin: .2rem 0;
}

.tbb-price {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--tbb-accent);
	margin: .5rem 0 0;
}

.tbb-price .tbb-per {
	font-size: .95rem;
	font-weight: 400;
	color: #444;
	display: block;
}

/*
 * The refusals. Deliberately legible: the reason a room could not be taken
 * is worth more to a visitor than the absence of the room.
 */
.tbb-refused {
	margin: 1.5rem 0;
	padding: 1rem 1.1rem;
	background: #f7f7fa;
	border-radius: 6px;
}

.tbb-refused ul {
	margin: .5rem 0;
	padding-left: 1.2rem;
}

.tbb-refused li {
	margin: .35rem 0;
}

/* ── the rooms ───────────────────────────────────────────────────────── */

.tbb-room {
	border-bottom: 1px solid #eee;
	padding: .9rem 0;
}

.tbb-room-photo {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: .4rem 0 .6rem;
}

.tbb-room h4 {
	margin: 0 0 .2rem;
}

.tbb-amenities,
.tbb-from {
	color: #555;
	font-size: .95rem;
}

.tbb-practical ul {
	margin: .5rem 0;
	padding-left: 1.2rem;
}

/* ── forms ───────────────────────────────────────────────────────────── */

.tbb-button {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	background: var(--tbb-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	margin: .75rem 0;
}

.tbb-button:hover,
.tbb-button:focus {
	filter: brightness(1.1);
}

.tbb-button-quiet {
	background: #6b6b6b;
}

.tbb-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.tbb-field {
	display: block;
	margin: .75rem 0;
	flex: 1 1 12rem;
}

.tbb-field span {
	display: block;
	font-weight: 600;
	margin-bottom: .2rem;
}

.tbb-field input,
.tbb-field select,
.tbb-field textarea {
	width: 100%;
	padding: .6rem .7rem;
	font-size: 1rem;
	border: 1px solid #bbb;
	border-radius: 4px;
	box-sizing: border-box;
}

.tbb-diet {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: .8rem 1rem;
	margin: 1rem 0;
}

.tbb-diet legend {
	font-weight: 600;
	padding: 0 .4rem;
}

.tbb-check {
	display: inline-block;
	margin: .2rem 1rem .2rem 0;
}

/* The honeypot: hidden from people, left in the DOM for the machines. A
   CAPTCHA in front of somebody trying to book a room is a lost booking. */
.tbb-hp {
	position: absolute;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

/* ── the guest's own page ────────────────────────────────────────────── */

.tbb-when {
	font-size: 1.2rem;
	font-weight: 600;
}

.tbb-ref {
	color: #666;
	font-size: .9rem;
}

.tbb-list {
	list-style: none;
	margin: .5rem 0 1rem;
	padding: 0;
}

.tbb-list li {
	padding: .45rem 0;
	border-bottom: 1px solid #eee;
}

.tbb-lines {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.tbb-lines td {
	padding: .5rem .4rem;
	border-bottom: 1px solid #eee;
}

.tbb-amount {
	text-align: right;
	white-space: nowrap;
}

.tbb-total td {
	font-weight: 700;
	border-top: 2px solid #333;
	border-bottom: 0;
	font-size: 1.05rem;
}

.tbb-cancelled {
	color: #8a2424;
	font-weight: 600;
}

@media screen and (max-width: 600px) {
	.tbb {
		padding: 0 .75rem;
	}

	.tbb-searchform,
	.tbb-fields {
		flex-direction: column;
		align-items: stretch;
	}
}
