/* WWS Accommodation Booking — guest calendar and request form. Plain CSS scoped to .wws-public (ADR 0005). */

.wws-public {
	--wws-ink: #1d2327;
	--wws-muted: #646970;
	--wws-line: #8c8f94;
	--wws-free: #e7f4ea;
	--wws-ok: #1e6b2b;
	--wws-focus: #2271b1;
	--wws-error: #b32d2e;
	--wws-link: #1d5f96;
	--wws-link-dark: #174c78;
	color: var(--wws-ink);
}

.wws-public .wws-sr,
.wws-public .wws-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wws-public .wws-facts,
.wws-public .wws-legend {
	list-style: none;
	margin: 0 0 1.25em;
	padding: 0;
}

.wws-public .wws-facts li,
.wws-public .wws-legend li {
	margin: 0.3em 0;
}

.wws-public .wws-note {
	font-size: 0.95em;
}

/* Calendar */
.wws-public .wws-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
}

.wws-public .wws-cal__title {
	flex: 1;
	margin: 0;
	padding: 0;
	font-size: 1.2em;
	text-align: center;
}

.wws-public .wws-cal__prev,
.wws-public .wws-cal__next {
	flex: 0 0 9em;
}

.wws-public .wws-cal__next {
	text-align: right;
}

.wws-public .wws-cal__grid {
	width: 100%;
	margin: 0.5em 0 1em;
	border-collapse: collapse;
	table-layout: fixed;
}

.wws-public .wws-cal__grid th {
	padding: 0.25em 0;
	font-size: 0.85em;
	text-align: center;
}

.wws-public .wws-cal__grid td {
	height: 4.5em;
	padding: 0.3em;
	border: 1px solid var(--wws-line);
	font-size: 0.85em;
	line-height: 1.3;
	vertical-align: top;
}

.wws-public .wws-cal__grid td.wws-pad {
	border: 0;
}

.wws-public .wws-day__num,
.wws-public .wws-day__word {
	display: block;
}

.wws-public .wws-day__num {
	font-weight: 700;
}

.wws-public .wws-day__mark {
	font-weight: 700;
}

.wws-public .wws-day__out {
	display: block;
	font-style: italic;
}

.wws-public .wws-day__out .wws-day__word {
	display: inline;
}

/* Status: a symbol, a word and a pattern; colour is only a bonus (acceptance #1, #15). */
.wws-public .is-available {
	background: var(--wws-free);
}

.wws-public .is-booked {
	background: repeating-linear-gradient(135deg, #f0f0f1 0, #f0f0f1 6px, #d5d5d8 6px, #d5d5d8 12px);
}

.wws-public .is-closed {
	background-color: #f6f7f7;
	background-image: radial-gradient(#8c8f94 1px, transparent 1.5px);
	background-size: 8px 8px;
}

.wws-public .is-past,
.wws-public .is-not_open {
	color: var(--wws-muted);
	background: #fff;
}

.wws-public .wws-key {
	display: inline-block;
	width: 1.6em;
	height: 1.6em;
	border: 1px solid var(--wws-line);
	font-weight: 700;
	line-height: 1.6em;
	text-align: center;
	vertical-align: middle;
}

/* Pickable dates (added when the script is running). */
.wws-public .wws-day__pick {
	display: block;
	width: calc(100% + 0.6em);
	min-height: 4.5em;
	margin: -0.3em;
	padding: 0.3em;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.wws-public .wws-day__pick:hover {
	text-decoration: underline;
}

.wws-public .wws-day__pick:focus-visible,
.wws-public .wws-cal__title:focus-visible,
.wws-public .wws-errors:focus-visible {
	outline: 3px solid var(--wws-focus);
	outline-offset: -3px;
}

.wws-public .wws-day__pick[aria-pressed="true"] {
	outline: 3px solid var(--wws-ink);
	outline-offset: -3px;
	background: #fff;
}

.wws-public .wws-day.is-chosen {
	box-shadow: inset 0 0 0 3px var(--wws-focus);
}

/* Form */
.wws-public .wws-form fieldset {
	margin: 0 0 1em;
	padding: 1em;
	border: 1px solid var(--wws-line);
}

.wws-public .wws-form legend {
	padding: 0 0.3em;
	font-weight: 700;
}

.wws-public .wws-field label {
	display: block;
	margin-bottom: 0.25em;
	font-weight: 600;
}

.wws-public .wws-field input,
.wws-public .wws-field select,
.wws-public .wws-field textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 24em;
	padding: 0.5em;
	border: 1px solid var(--wws-line);
	font: inherit;
}

.wws-public [aria-invalid="true"] {
	border: 2px solid var(--wws-error);
}

.wws-public .wws-errors {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border: 2px solid var(--wws-error);
}

.wws-public .wws-errors a,
.wws-public .wws-quote__problems {
	color: var(--wws-error);
}

.wws-public .wws-price {
	margin: 0.5em 0;
	border-collapse: collapse;
}

.wws-public .wws-price caption {
	font-weight: 600;
	text-align: left;
}

.wws-public .wws-price th,
.wws-public .wws-price td {
	padding: 0.3em 1em 0.3em 0;
	font-weight: 400;
	text-align: left;
}

.wws-public .wws-price td {
	text-align: right;
}

.wws-public .wws-price__total th,
.wws-public .wws-price__total td {
	border-top: 2px solid var(--wws-ink);
	font-weight: 700;
}

/* Acknowledgement */
.wws-public .wws-sent {
	padding: 1em;
	border: 2px solid var(--wws-ok);
}

.wws-public .wws-summary {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.25em 1em;
}

.wws-public .wws-summary dt {
	font-weight: 600;
}

.wws-public .wws-summary dd {
	margin: 0;
}

/*
 * Theme-proofing. Page builders style lists, abbreviations, links and buttons with id selectors (Divi:
 * #left-area ul, #main-content), which beat any number of classes. These rules hang off the wrapper's id
 * (#wws-booking), so the booking widget looks the same in any theme without !important.
 */
#wws-booking .wws-facts,
#wws-booking .wws-legend {
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
}

#wws-booking .wws-facts li,
#wws-booking .wws-legend li {
	margin: 0.3em 0;
	padding: 0;
	list-style: none;
}

#wws-booking abbr[title] {
	border-bottom: 0;
	text-decoration: none;
	cursor: default;
}

/* The theme's link colour may be too light on white (Whispering Waves' orange is about 2.5:1). */
#wws-booking a {
	color: var(--wws-link);
	text-decoration: underline;
}

#wws-booking a:hover,
#wws-booking a:focus {
	color: var(--wws-link-dark);
}

#wws-booking .wws-errors a {
	color: var(--wws-error);
}

#wws-booking .wws-request,
#wws-booking .wws-sent {
	margin-top: 2em;
}

#wws-booking button[type="submit"] {
	display: inline-block;
	margin: 0;
	padding: 0.6em 1.4em;
	border: 2px solid var(--wws-link);
	border-radius: 4px;
	background: #fff;
	color: var(--wws-link);
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

#wws-booking button.wws-send {
	background: var(--wws-link);
	color: #fff;
	font-size: 1.1em;
}

#wws-booking button[type="submit"]:hover {
	border-color: var(--wws-link-dark);
	text-decoration: underline;
}

#wws-booking button.wws-send:hover {
	background: var(--wws-link-dark);
}

#wws-booking button[type="submit"]:focus-visible {
	outline: 3px solid var(--wws-focus);
	outline-offset: 2px;
}

/* Phones: symbols and patterns in the grid; the words stay for screen readers and in the legend. */
@media (max-width: 600px) {

	.wws-public .wws-cal__grid .wws-day__word {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.wws-public .wws-cal__grid td,
	.wws-public .wws-day__pick {
		height: 3.2em;
		min-height: 3.2em;
	}

	.wws-public .wws-cal__prev,
	.wws-public .wws-cal__next {
		flex-basis: 6em;
		font-size: 0.9em;
	}
}
