/** Third party css first
 *  ------------------------------------------------------------------------------------------------
**/
/*!
 * Pikaday
 * Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/
 */
.pika-single {
		z-index: 9999;
		display: block;
		position: relative;
		color: #333;
		background: #fff;
		border: 1px solid #ccc;
		border-bottom-color: #bbb;
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/*
clear child float (pika-lendar), using the famous micro clearfix hack
http://nicolasgallagher.com/micro-clearfix-hack/
*/
.pika-single:before,
.pika-single:after {
		content: " ";
		display: table;
}
.pika-single:after { clear: both }

.pika-single.is-hidden {
		display: none;
}

.pika-single.is-bound {
		position: absolute;
		box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
}

.pika-lendar {
		float: left;
		width: 240px;
		margin: 8px;
}

.pika-title {
		position: relative;
		text-align: center;
}

.pika-label {
		display: inline-block;
		position: relative;
		z-index: 9999;
		overflow: hidden;
		margin: 0;
		padding: 5px 3px;
		font-size: 14px;
		line-height: 20px;
		font-weight: bold;
		background-color: #fff;
}
.pika-title select {
		cursor: pointer;
		position: absolute;
		z-index: 9998;
		margin: 0;
		left: 0;
		top: 5px;
		opacity: 0;
}

.pika-prev,
.pika-next {
		display: block;
		cursor: pointer;
		position: relative;
		outline: none;
		border: 0;
		padding: 0;
		width: 20px;
		height: 30px;
		/* hide text using text-indent trick, using width value (it's enough) */
		text-indent: 20px;
		white-space: nowrap;
		overflow: hidden;
		background-color: transparent;
		background-position: center center;
		background-repeat: no-repeat;
		background-size: 75% 75%;
		opacity: .5;
}

.pika-prev:hover,
.pika-next:hover {
		opacity: 1;
}

.pika-prev,
.is-rtl .pika-next {
		float: left;
		background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
}

.pika-next,
.is-rtl .pika-prev {
		float: right;
		background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
}

.pika-prev.is-disabled,
.pika-next.is-disabled {
		cursor: default;
		opacity: .2;
}

.pika-select {
		display: inline-block;
}

.pika-table {
		width: 100%;
		border-collapse: collapse;
		border-spacing: 0;
		border: 0;
}

.pika-table th,
.pika-table td {
		width: 14.285714285714286%;
		padding: 0;
}

.pika-table th {
		color: #999;
		font-size: 12px;
		line-height: 25px;
		font-weight: bold;
		text-align: center;
}

.pika-button {
		cursor: pointer;
		display: block;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		outline: none;
		border: 0;
		margin: 0;
		width: 100%;
		padding: 5px;
		color: #666;
		font-size: 12px;
		line-height: 15px;
		text-align: right;
		background: #f5f5f5;
		height: initial;
}

.pika-week {
		font-size: 11px;
		color: #999;
}

.is-today .pika-button {
		color: #33aaff;
		font-weight: bold;
}

.is-selected .pika-button,
.has-event .pika-button {
		color: #fff;
		font-weight: bold;
		background: #33aaff;
		box-shadow: inset 0 1px 3px #178fe5;
		border-radius: 3px;
}

.has-event .pika-button {
		background: #005da9;
		box-shadow: inset 0 1px 3px #0076c9;
}

.is-disabled .pika-button,
.is-inrange .pika-button {
		background: #D5E9F7;
}

.is-startrange .pika-button {
		color: #fff;
		background: #6CB31D;
		box-shadow: none;
		border-radius: 3px;
}

.is-endrange .pika-button {
		color: #fff;
		background: #33aaff;
		box-shadow: none;
		border-radius: 3px;
}

.is-disabled .pika-button {
		pointer-events: none;
		cursor: default;
		color: #999;
		opacity: .3;
}

.is-outside-current-month .pika-button {
		color: #999;
		opacity: .3;
}

.is-selection-disabled {
		pointer-events: none;
		cursor: default;
}

.pika-button:hover,
.pika-row.pick-whole-week:hover .pika-button {
		color: #fff;
		background: #ff8000;
		box-shadow: none;
		border-radius: 3px;
}

/* styling for abbr */
.pika-table abbr {
		border-bottom: none;
		cursor: help;
}
/**
 * END - Pikaday
**/



/** Styling for the public facing side of this plugin
 *  ------------------------------------------------------------------------------------------------
 *  variables are designed to be overwritten by theme author
 *  mobile breakpoints cannot easily be written to a variable within css scope
 *  but we could instead write this css to a file when an option is updated in WP?
 *  (https://stackoverflow.com/questions/59498110/save-additional-css-in-separate-file-dynamically-wordpress)
 *  Or alternatively render it inline, which feels worse...
**/
:root {
	/* fonts */
	--pbs-font-family: inherit;
	--pbs-font-size: 1rem;
	--pbs-line-height: 1.2;

	--pbs-icons-in-dropdowns-width: 1.3rem;

	--pbs-font-size-calendar-dates: 0.95rem;
	--pbs-font-size-calendar-days: 0.75rem;
	--pbs-font-size-calendar-months: 1.1rem;

	--pbs-font-size-operand-buttons: 1.1rem;

	--pbs-font-size-selectable-titles: var(--pbs-font-size);

	/* colours */
	--pbs-colour-primary: #282259;
	--pbs-colour-highlight: #f39207;
	--pbs-colour-light: #ffffff;
	--pbs-colour-disabled: #aaaaaa;
	--pbs-colour-background-light: #ffffff;
	--pbs-colour-background-subtle: #f9f9f9;
	--pbs-colour-background-error: #ffe1e1;
	--pbs-colour-error-text: #696969;
	--pbs-colour-background-dark: #282259;
	--pbs-colour-calendar-outlines: #e8e8e8;
	--pbs-colour-calendar-date-range: #fff0e0;

	/* styling and spacing */
	--pbs-gap: 1rem;
	--pbs-gap-xxs: 0.25rem;
	--pbs-gap-xs: 0.35rem;
	--pbs-gap-s: 0.5rem;
	--pbs-gap-m: 0.75rem;
	--pbs-gap-l: 1.5rem;

	--pbs-pad: var(--pbs-gap);
	--pbs-pad-xxs: var(--pbs-gap-xxs);
	--pbs-pad-xs: var(--pbs-gap-xs);
	--pbs-pad-s: var(--pbs-gap-s);
	--pbs-pad-m: var(--pbs-gap-m);
	--pbs-pad-l: var(--pbs-gap-l);

	--pbs-radius: 4px;
	--pbs-radius-large: 0.5rem;

	/* timing */
	--pbs-time-transition: 600ms;
	--pbs-time-transition-quick: 200ms;

	/* some specifics */
	--pbs-mobile-input-max-width: 40rem;
	--pbs-desktop-input-max-width: 13rem;

	/* this one is the desktop max width for selectable buttons, i.e. the where/what items */
	--pbs-selectable-max-width: 300px;

	--pbs-calendar-max-width: 300px;

	/* this is the thickness of the (+) and  (-) symbols in selects with operation buttons */
	--pbs-operand-buttons-thickness: 3px;

	/* tiny images in shortcode drops */
	--pbs-shortcode-image-width: 3rem;

	/* how narrow can the container for inputs get before they stack on shortcode widgets */
	--pbs-shortcode-container-stacks: 35rem;
}


/* ----------------------------------------------------------------------------------------------- *
	Components and highly generic elements
* ----------------------------------------------------------------------------------------------- */

.key-pbs-visuallyhidden{
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
}

/** Generic missing content messages
 *  ------------------------------------------------------------------------------------------------
**/
.pbs_What--no-highlight .key-pbs-widget__missing-details,
.pbs_Where--no-highlight .key-pbs-widget__missing-details,
.pbs_When--no-highlight .key-pbs-widget__missing-details,
.pbs_Who--no-highlight .key-pbs-widget__missing-details,
.key-pbs-widget__missing-details--inactive {
	position: absolute;
	max-width: 1px;
	max-height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
	opacity: 0;
	transform: translateY(-1rem);
}

.key-pbs-widget__missing-details {
	padding: var(--pbs-pad);
	background: var(--pbs-colour-background-error);
	border-radius: var(--pbs-radius);
	margin-bottom: var(--pbs-pad);
	transition: all ease var(--pbs-time-transition);
	transition-property: opacity, transform;
}

.key-pbs-widget__instructions {
	margin-bottom: var(--pbs-pad-s);
}

.key-pbs-widget__missing-details h5 {
	display: flex;
	gap: var(--pbs-gap);
	text-align: center;
	align-items: center;
	justify-content: center;
	font-size: var(--pbs-font-size);
	color: var(--pbs-colour-primary);
	margin: 0;
}

.key-pbs-widget__instructions h5 {
	text-align: center;
	font-size: var(--pbs-font-size);
	color: var(--pbs-colour-primary);
	margin: 0 auto;
}

.key-pbs-widget__missing-details .pbs_Icon {
	width: var(--pbs-icons-in-dropdowns-width);
}

.key-pbs-widget__missing-details p {
	text-align: center;
	font-size: var(--pbs-font-size);
	margin-top: var(--pbs-gap-xs);
	color: var(--pbs-colour-primary);
}

/** pbs_Icon component generic
 *  ------------------------------------------------------------------------------------------------
**/
.pbs_Icon {
	position: relative;
	/* default to 1rem and override where required */
	width: var(--pbs-font-size);
}

.pbs_Icon path,
.pbs_Icon svg {
	fill: currentcolor;
}

.pbs_Icon--square .pbs_Icon__wrap {
	width: 100%;
	padding-bottom: 100%;
}

.pbs_Icon__wrap svg,
.pbs_Icon__wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/* ----------------------------------------------------------------------------------------------- *
	Top level and input layouts
* ----------------------------------------------------------------------------------------------- */

/** General layout, skeleton rendering and top level inputs
 *  ------------------------------------------------------------------------------------------------
**/
.key-pbs-widget {
	position: relative;
	font-family: var(--pbs-font-family);
}

.key-pbs-widget__skeleton,
.key-pbs-widget__js {
	width: 100%;
	pointer-events: none;
}

.key-pbs-widget__input.key-pbs-widget__input--hidden {
	display: none;
}

.key-pbs-widget__js {
	position: relative;
	z-index: 3;
	opacity: 0;
	transition: all ease var(--pbs-time-transition);
	transition-property: opacity, transform;
}

.key-pbs-widget__skeleton {
	position: relative;
	z-index: 2;
	transition: all ease var(--pbs-time-transition-quick) var(--pbs-time-transition);
	transition-property: opacity, transform;
}

.key-pbs-widget--loaded .key-pbs-widget__skeleton {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0 !important;
}

.key-pbs-widget--loaded .key-pbs-widget__no-js-failure {
	display: none;
}

.key-pbs-widget--loaded .key-pbs-widget__js {
	opacity: 1;
	pointer-events: auto;
}

.pbs_input-and-dropdown-wrap {
	margin: var(--pbs-pad-l) auto 0;
}

/* the select style input boxes */
.key-pbs-widget__input {
	position: relative;
	font-size: var(--pbs-font-size);
	line-height: var(--pbs-line-height);
	padding: var(--pbs-pad-m);
	width: 100%;
	max-width: var(--pbs-mobile-input-max-width);
	border-radius: var(--pbs-radius);
	background: var(--pbs-colour-background-light);
	margin: var(--pbs-pad-l) auto 0;
	display: flex;
	align-items: center;
	cursor: pointer;
	text-align: left;
	color: var(--pbs-colour-primary);
	transition: color ease var(--pbs-time-transition);
}

.key-pbs-widget__input:first-child:not(.key-pbs-widget__submit .key-pbs-widget__input) {
	margin-top: 0;
}

/* disabled inputs - greyed out */
.key-pbs-widget__input--disabled {
	color: var(--pbs-colour-disabled);
	cursor: not-allowed;
}

/* title fills available space */
.key-pbs-widget__input__title {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: var(--pbs-font-size);
	line-height: var(--pbs-line-height);
	margin: 0;
	padding: 0 var(--pbs-pad-s);
	flex: 1;
}

.key-pbs-widget__input--submit {
	background: var(--pbs-colour-highlight);
	color: var(--pbs-colour-light);
	text-align: center;
	justify-content: center;
	font-weight: bold;
	margin-bottom: 0;
	text-decoration: none;
}

/* dropdown icons keep default size but first icons are adjustable */
.key-pbs-widget__input .pbs_Icon:first-child {
	width: var(--pbs-icons-in-dropdowns-width);
}

.key-pbs-widget__input .pbs_Icon path,
.key-pbs-widget__input .pbs_Icon svg {
	fill: var(--pbs-colour-primary);
	transition: fill ease var(--pbs-time-transition);
}

.key-pbs-widget__input .pbs_Icon {
	transition: opacity ease var(--pbs-time-transition);
}

/*
	The last child Icons in the input boxes are dropdowns
	we give them the highlight colour for enabled dropdowns
	and the disabled colour for disabled dropdowns
*/
.key-pbs-widget__input--disabled .pbs_Icon:last-child path,
.key-pbs-widget__input--disabled .pbs_Icon:last-child svg {
	fill: var(--pbs-colour-disabled);
}

.key-pbs-widget__input--enabled .pbs_Icon:last-child path,
.key-pbs-widget__input--enabled .pbs_Icon:last-child svg {
	fill: var(--pbs-colour-highlight);
}

/* locked inputs - dropdown arrows are removed */
.key-pbs-widget__input--locked .pbs_Icon:last-child {
	display: none;
}

.key-pbs-widget__input::after {
	content: '';
	position: absolute;
	top: 100%;
	width: 100%;
	/* height: calc(var(--pbs-gap) + (var(--pbs-radius) * 3)); */
	height: calc(var(--pbs-radius) * 3);
	margin-top: calc(var(--pbs-radius) * -1.5);
	background: var(--pbs-colour-background-light);
	border-radius: 0 0 var(--pbs-radius) var(--pbs-radius);
	left: 0;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-100%);
	transition: transform ease var(--pbs-time-transition-quick), opacity ease 0ms var(--pbs-time-transition-quick);
	z-index: -1;
}

/* on desktop we have these connectors visible for active drops */
/* on mobile they're visible for active & with-content (because we don't close those on mobile) */
.key-pbs-widget__input--active::after,
.key-pbs-widget__input--with-selection::after {
	opacity: 1;
	transform: translateY(0);
	transition: all ease var(--pbs-time-transition-quick);
	transition-property: transform;
}


.key-pbs-widget__input--with-selection .pbs_Icon:last-child {
	opacity: 0;
}

/*
this is a bit of a hack but helps avoid the widgets closing when content is deselected on mobile
because we keep widgets with content open by default on this screen size...
*/
.key-pbs-widget__input--with-selection {
	pointer-events: none;
}

/** mobile/desktop - layout shift for top level
 *  ------------------------------------------------------------------------------------------------
**/
@media screen and (min-width: 64em) {
	.key-pbs-widget__skeleton,
	.key-pbs-widget__js,
	.key-pbs-widget__inputs {
		display: flex;
		gap: var(--pbs-gap);
	}

	.key-pbs-widget__inputs {
		/*
			inputs container grows to fill space, pushing button right
			but can also shrink if there's not enough space for all the full sized inputs
			next to a full sized submit cta (which doesn't shrink)
		*/
		flex: 1;
		min-width: 0;
	}

	.pbs_input-and-dropdown-wrap {
		margin: 0;
		min-width: 0;
		max-width: var(--pbs-desktop-input-max-width);
	}

	.key-pbs-widget__input {
		max-width: 100%;
		width: var(--pbs-desktop-input-max-width);
		margin: 0;
	}

	.key-pbs-widget__submit {
		/* submit button mantains width - the individual inputs grow/shrink to accomodate */
		flex: 0;
	}

	.key-pbs-widget__input--submit {
		margin-left: auto;
	}

	.key-pbs-widget__input::after,
	.home-sales-widget-wrapper .custom-select .selected-option::after {
		height: calc(var(--pbs-gap) + (var(--pbs-radius) * 3));
		transition: transform ease var(--pbs-time-transition), opacity ease 0ms var(--pbs-time-transition);
	}

	.key-pbs-widget__input--active::after,
	.key-pbs-widget__input--with-selection::after,
	.home-sales-widget-wrapper .custom-select.selected-option--open .selected-option::after {
		transition: all ease var(--pbs-time-transition);
		transition-property: transform;
	}

	.key-pbs-widget__input--with-selection:not(.key-pbs-widget__input--active)::after {
		opacity: 0;
		transform: translateY(-100%);
		transition: transform ease var(--pbs-time-transition), opacity ease 0ms var(--pbs-time-transition);
	}

	.key-pbs-widget__input--active .pbs_Icon:last-child,
	.key-pbs-widget__input--with-selection .pbs_Icon:last-child {
		opacity: 1;
	}

	.key-pbs-widget__input--with-selection {
		pointer-events: auto;
	}
}

/** CSS only no-js fallback and error message for skeleton rendering
 *  ------------------------------------------------------------------------------------------------
**/
/*
	skeleton waits for 15 seconds for JS to load and then collapses itself.
	this is a CSS only workaround for critical JS issues that prevent the skeleton from being replaced
	but on a page where we think JS has loaded fine (i.e. we have the .pbs-js class on body)
*/
.key-pbs-widget__skeleton {
	overflow: hidden;
	width: 100%;
	animation-duration: 1500ms;
	animation-name: pbs-skeleton-pulse, pbs-fade-out;
	animation-iteration-count: 10, 1;
	animation-delay: 0ms, 15000ms;
	animation-fill-mode: forwards;
}
.key-pbs-widget__no-js-failure::after {
	content: 'There was a problem loading the holiday search. If this problem persists, please contact us to check availability!';
}
.key-pbs-widget__no-js-failure {
	opacity: 0;
	pointer-events: none;
	width: 100%;
	height: 100%;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	color: var(--pbs-colour-light);
	background-color: var(--pbs-colour-background-dark);
	border-radius: var(--pbs-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	animation-duration: 1500ms;
	animation-name: pbs-fade-in;
	animation-iteration-count: 1;
	animation-delay: 15000ms;
	animation-fill-mode: forwards;
}

@keyframes pbs-skeleton-pulse {
	0% {
		opacity: 0.9;
	}

	70% {
		opacity: 0.8;
	}

	100% {
		opacity: 0.9;
	}
}

@keyframes pbs-fade-out {
	0% {
		opacity: 0.9;
		/* max-height: 16rem; */
	}

	100% {
		opacity: 0;
		/* max-height: 0rem; */
	}
}

@keyframes pbs-fade-in {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 0.6;
	}
}


/* ----------------------------------------------------------------------------------------------- *
	Base level styling for Select boxes with increment/decrement operand buttons
* ----------------------------------------------------------------------------------------------- */
.key-pbs-widget__select-with-operators {
	display: flex;
	margin: 0 auto;
	align-items: center;
	justify-content: center;
}

.key-pbs-widget__select-with-operators > label {
	position: relative;
	padding: var(--pbs-pad-m) var(--pbs-pad);
	display: block;
	overflow: hidden;
	color: var(--pbs-colour-primary);
	transition: all ease var(--pbs-time-transition);
	transition-property: color, opacity;
}

.key-pbs-widget__select-with-operators > label h4 {
	font-size: var(--pbs-font-size-selectable-titles);
	margin: 0;
	padding: var(--pbs-pad-xxs) var(--pbs-pad-m) var(--pbs-pad-xxs);
	border-bottom: 2px solid var(--pbs-colour-primary);
	color: inherit;
	border-radius: var(--pbs-radius) var(--pbs-radius) 0 0;
	transition: all ease var(--pbs-time-transition);
	background: transparent;
	transition-property: border-color, background-color;
}

.key-pbs-widget__select-with-operators > label select {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	opacity: 0;
	cursor: pointer;
}

.key-pbs-widget__select-with-operators > button {
	max-width: none;
	min-width: 0;
	background: transparent;
	width: var(--pbs-pad-l);
	height: var(--pbs-pad-l);
	padding: 0;
	border-radius: 500px;
	border: var(--pbs-operand-buttons-thickness) solid;
	position: relative;
	color: var(--pbs-colour-primary);
	transition: all ease var(--pbs-time-transition);
	transition-property: color, opacity;
}

.key-pbs-widget__select-with-operators > button:disabled,
.key-pbs-widget__select-with-operators > .key-pbs-widget__select-with-operators__operator:disabled
 {
	opacity: 0.6;
	background: transparent;
	color: var(--pbs-colour-disabled);
}

.key-pbs-widget__select-with-operators > button::after,
.key-pbs-widget__select-with-operators > button::before {
	content: '';
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: currentcolor;
}

.key-pbs-widget__select-with-operators > button::after {
	width: 50%;
	height: var(--pbs-operand-buttons-thickness);
}

.key-pbs-widget__select-with-operators > button::before {
	height: 50%;
	width: var(--pbs-operand-buttons-thickness);
}

.key-pbs-widget__select-with-operators > button:first-child::before {
	content: none;
}


/* ----------------------------------------------------------------------------------------------- *
	Dropdowns and their contents
* ----------------------------------------------------------------------------------------------- */

/** Dropdowns container
 *  ------------------------------------------------------------------------------------------------
**/
.pbs_Dropdowns,
.pbs_dropdown-wrap {
	width: 100%;
}

.pbs_dropdown-wrap {
	margin: 0 auto;
	max-width: var(--pbs-mobile-input-max-width);
}

.pbs_Dropdown {
	background-color: var(--pbs-colour-background-light);
	border-radius: var(--pbs-radius);
	position: absolute;
	width: 100%;
	max-width: 1px;
	max-height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	/* white-space: nowrap; */
	clip-path: inset(100%);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(calc(var(--pbs-gap-s) * -1));
	transition:
		opacity ease var(--pbs-time-transition),
		transform ease var(--pbs-time-transition),
		max-width 0ms var(--pbs-time-transition),
		max-height 0ms var(--pbs-time-transition),
		margin 0ms var(--pbs-time-transition),
		padding 0ms var(--pbs-time-transition),
		clip-path 0ms var(--pbs-time-transition);
	z-index: 1;
}

.pbs_Dropdown--active,
.pbs_Dropdown--with-selection {
	max-width: var(--pbs-mobile-input-max-width);
	max-height: 10000px;
	margin: 0 0 var(--pbs-gap) 0;
	position: relative;
	padding: var(--pbs-pad);
	clip-path: inset(0);
	z-index: 10;
	opacity: 1;
	transform: translateY(0);
	transition: transform ease var(--pbs-time-transition), opacity ease-out var(--pbs-time-transition);
	/* transition-property: opacity, transform; */
	pointer-events: auto;
}

.pbs_Dropdown--hidden {
	display: none;
}

.pbs_Dropdown.pbs_Dropdown--locked {
	pointer-events: none !important;
}

/** SelectableItems in the dropdowns
 *  ------------------------------------------------------------------------------------------------
**/
.pbs_What > ul,
.pbs_Where > ul,
.pbs_When__duration > ul {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
}

.pbs_What > ul > li,
.pbs_Where > ul > li {
	display: block;
	padding: var(--pbs-gap);
	width: 100%;
	min-width: 0;
	max-width: var(--pbs-selectable-max-width);
	margin: 0 auto;
	position: relative;
}

/* one off at roughly 480px */
@media screen and (min-width: 30em) {
	.pbs_What > ul > li,
	.pbs_Where > ul > li {
		margin: 0;
		display: block;
		padding: var(--pbs-gap);
		flex: 1;
		width: 50%;
		min-width: 50%;
		max-width: 50%;
		position: relative;
	}
}

/* the duration buttons are treated differently */
.pbs_When__duration > ul {
	align-items: center;
	justify-content: center;
}

.pbs_When__duration > ul > li {
	display: block;
	padding: var(--pbs-gap);
	flex-shrink: 0;
	position: relative;
}

.pbs_SelectableItem {
	padding: 0;
	background-color: var(--pbs-colour-background-subtle);
	border: 2px solid var(--pbs-colour-background-light);
	border-radius: var(--pbs-radius-large);
	overflow: hidden;
	min-width: 0;
	max-width: none;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	transition: all ease var(--pbs-time-transition);
	transition-property: border-color, transform;
}

.pbs_SelectableItem--selected {
	border-color: var(--pbs-colour-highlight);
	transform: scale(0.97);
}

.pbs_SelectableItem--inactive {
	cursor: not-allowed;
	opacity: 0.8;
	filter: grayscale(1);
}
.pbs_SelectableItem--inactive h4 {
	color: var(--pbs-colour-disabled);
}

/* in locked dropdowns nothing can be selected */
.pbs_Dropdown--locked .pbs_SelectableItem {
	cursor: auto;
}

/* in locked dropdowns we gray out everything that's not already selected */
.pbs_Dropdown--locked .pbs_SelectableItem:not(.pbs_SelectableItem--selected) {
	opacity: 0.8;
	filter: grayscale(1);
}

.pbs_Dropdown--locked .pbs_SelectableItem:not(.pbs_SelectableItem--selected) h4 {
	color: var(--pbs-colour-disabled);
}

.pbs_SelectableItem__image {
	width: 100%;
	position: relative;
	padding-bottom: 50%;
	background-color: var(--pbs-colour-background-subtle);
}

.pbs_SelectableItem__image img {
	width: 100%;
	height: 100%;
	position: absolute;
	object-fit: cover;
}

.pbs_SelectableItem__title {
	padding: var(--pbs-pad-s);
	width: 100%;
	/* titles fill available height */
	flex: 1;
	/* and centralise the h4 tags in available space */
	display: flex;
	align-items: center;
	justify-content: center;
}

.pbs_SelectableItem__title h4 {
	font-size: var(--pbs-font-size-selectable-titles);
	text-align: center;
	/*
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	*/
}

/** Simple selectable items (simple buttons no image!)
 *  ------------------------------------------------------------------------------------------------
**/
.pbs_SelectableItem--simple .pbs_SelectableItem__image {
	display: none;
}


/** Prev/Next buttons in dropdowns
 *  ------------------------------------------------------------------------------------------------
 *  Default behaviour is only to show these in shortcode/inline widgets
 *  The primary header widget never gets them
**/
.pbs_Dropdown__ctas {
	display: none;
}

.pbs_Dropdown__ctas button {
	background: var(--pbs-colour-primary);
	color: var(--pbs-colour-light);
	text-align: center;
	justify-content: center;
	font-weight: bold;
	text-decoration: none;
	max-width: var(--pbs-desktop-input-max-width);
	width: var(--pbs-desktop-input-max-width);
	display: flex;
	gap: var(--pbs-gap-s);
	align-items: center;
	justify-content: center;
	margin: 0 auto 0 0;
	padding: var(--pbs-pad);
}

.pbs_Dropdown__ctas .key-pbs-widget__input--submit {
	background: var(--pbs-colour-highlight);
}

.pbs_Dropdown__ctas button .pbs_Icon {
	width: var(--pbs-font-size);
	/*
	text is centralised in these CTAs unless there's an icon
	the following rule pushes icon right
	and text left
	*/
	margin-left: auto;
}

.pbs_Dropdown__ctas .pbs_Dropdown__ctas__mid {
	margin: 0 auto;
}

.pbs_Dropdown__ctas button:last-child {
	margin: 0 0 0 auto;
}

/** Submenus in the What menu
 *  ------------------------------------------------------------------------------------------------
**/
.pbs_What__submenu:not(.pbs_What__submenu--open) {
	position: absolute;
	max-width: 1px;
	max-height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
	pointer-events: none;
	transform: translateY(var(--pbs-gap-s));
	opacity: 0;
}


.pbs_What__submenu--open {
	transform: translateY(0);
	opacity: 1;
	transition: all ease var(--pbs-time-transition);
	transition-property: opacity, transform;
}

/** Small customisations for the When section
 *  ------------------------------------------------------------------------------------------------
**/
/*
// REVIEW - these are to give a little more styling flexibility to themes
but need to ensure they don't break old layouts...
*/
.pbs_When__content-wrapper {
	display: contents;
}

.pbs_When__duration {
	padding: 0 0 var(--pbs-pad-l) 0;
	position: relative;
}

.pbs_When__checkout {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: var(--pbs-font-size-calendar-days);
	padding: 0 0 var(--pbs-pad-s) 0;
}

.pbs_When--duration-empty .key-pbs-widget__select-with-operators > label {
	color: var(--pbs-colour-disabled);
}

.pbs_When--duration-empty .key-pbs-widget__select-with-operators > label {
	color: var(--pbs-colour-disabled);
}

.pbs_When--highlight-missing.pbs_When--duration-empty .key-pbs-widget__select-with-operators > label {
	color: var(--pbs-colour-error-text);
}

.pbs_When--highlight-missing.pbs_When--duration-empty .key-pbs-widget__select-with-operators > label h4 {
	background-color: var(--pbs-colour-background-error);
}

/** pikaday customisations for the search widgets
 *  ------------------------------------------------------------------------------------------------
**/
.pbs_When__pika-wrap {
	position: relative;
	margin: 0 auto;
	max-width: var(--pbs-calendar-max-width);
}

/* hide second or third calendars on mobile... */
.pbs_When__pika-wrap .pika-lendar:nth-child(1n+2) {
	display: none;
}

.pbs_When--max-cals-2 .pbs_When__pika-wrap {
	max-width: calc(var(--pbs-calendar-max-width) * 2);
}

.pbs_When--max-cals-1 .pbs_When__pika-wrap {
	max-width: var(--pbs-calendar-max-width);
}

.key-pbs-widget .pika-single {
	font-family: inherit;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	border: 0;
}

.key-pbs-widget .pika-lendar {
	margin: 0;
	padding: var(--pbs-pad-s) var(--pbs-pad-m);
	flex: 1;
	width: 100%;
	max-width: var(--pbs-calendar-max-width);
	float: none;
}

/* other buttons on the site have some irrelevant defaults for these */
.key-pbs-widget .pika-single button {
	font-family: inherit;
	min-width: 0;
	border-radius: 0;
	text-align: center;
}

/* month/year selects headings */
.key-pbs-widget .pika-title {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--pbs-gap);
}

.key-pbs-widget .pika-title select {
	padding: 0;
	top: 0;
	height: 100%;
}

.key-pbs-widget .pika-label {
	color: var(--pbs-colour-primary);
	font-weight: bold;
	font-size: var(--pbs-font-size-calendar-months);
	line-height: var(--pbs-line-height);
	padding: var(--pbs-pad-xs) var(--pbs-pad-xxs);
	display: block;
}

/* column headings */
.key-pbs-widget .pika-table th,
.key-pbs-widget .pika-table th abbr {
	color: var(--pbs-colour-primary);
	font-weight: bold;
	font-size: var(--pbs-font-size-calendar-days);
	line-height: var(--pbs-line-height);
	text-decoration: none;
}
.key-pbs-widget .pika-table th {
	padding-bottom: var(--pbs-gap-s);
}

/* hiding the default prev/next buttons */
.key-pbs-widget .pika-single .pika-next,
.key-pbs-widget .pika-single .pika-prev {
	display: none;
}

/* positioning our own prev/next buttons */
.pbs_When__pika-cal-button {
	position: absolute;
	top: var(--pbs-pad-s);
	left: var(--pbs-pad-s);
	min-width: 0;
	padding: var(--pbs-pad-xs);
	/* pad icon equivalent to having the same line height as titles if possible... */
	padding: calc(var(--pbs-pad-xs) + (((var(--pbs-font-size-calendar-months) * var(--pbs-line-height)) - var(--pbs-font-size-calendar-months)) * 0.5));
	background-color: var(--pbs-colour-background-dark);
	border-radius: 9999px;
	z-index: 10000; /* gross but these need to be above the calendars which use 9999 */
}

/* makes the icon the same size as the text */
.pbs_When__pika-cal-button .pbs_Icon {
	width: var(--pbs-font-size-calendar-months);
}

.pbs_When__pika-cal-button--next {
	right: var(--pbs-pad-s);
	left: auto;
}


/* the actual date buttons */
.key-pbs-widget .pika-single .pika-button {
	border-radius: var(--pbs-radius);
	background-color: transparent;
	color: var(--pbs-colour-primary);
	border: 1px solid var(--pbs-colour-calendar-outlines);
	position: absolute;
	top: 1px;
	left: 1px;
	width: calc(100% - 2px);
	height: calc(100% - 2px);
	font-size: var(--pbs-font-size-calendar-dates);
	transition: all ease var(--pbs-time-transition);
	transition-property: background-color, color, border-color;
}

.key-pbs-widget .pika-single td:not(.is-disabled) .pika-button {
	font-weight: bold;
}

.key-pbs-widget .pika-single .is-disabled .pika-button {
	border: 0;
}

.key-pbs-widget .pika-single .is-selected .pika-button {
	box-shadow: none;
	background-color: var(--pbs-colour-highlight);
	border-color: var(--pbs-colour-highlight);
	color: var(--pbs-colour-light);
	/* border-radius: 9999px; */
	z-index: 10;
}

.key-pbs-widget .pika-single .has-event .pika-button {
	box-shadow: none;
	background-color: var(--pbs-colour-calendar-date-range);
	color: var(--pbs-colour-primary);
	border: 1px solid var(--pbs-colour-calendar-date-range);;
}

.key-pbs-widget .pika-single .has-event::before {
	content: ' ';
	position: absolute;
	top: 1px;
	left: -50%;
	height: calc(100% - 2px);
	width: 100%;
	background-color: var(--pbs-colour-calendar-date-range);;
	z-index: -1;
}

.key-pbs-widget .pika-single .has-event:first-child::before,
.key-pbs-widget .pika-single .is-empty + .has-event::before {
	content: none;
}

.key-pbs-widget .pika-single .is-disabled.has-event .pika-button {
	opacity: 1;
	/* // REVIEW - this colour matches a translucent bit of text so is hardcoded. it's messy */
	color: #bebccd;
	border: 1px solid var(--pbs-colour-calendar-date-range);;
}

.key-pbs-widget .pika-single .is-today:not(.is-selected) .pika-button {
	border-color: var(--pbs-colour-background-dark);
}

.key-pbs-widget .pika-single .pika-button:hover,
.key-pbs-widget .pika-single .pika-button:focus,
.key-pbs-widget .pika-single .is-today .pika-button:hover,
.key-pbs-widget .pika-single .is-today .pika-button:focus {
	border-color: var(--pbs-colour-highlight);
}

/* the next two rules are used to force the table cells into squares. */
.key-pbs-widget .pika-table td {
	position: relative;
}

.key-pbs-widget .pika-table td::after {
	content: '';
	display: block;
	width: 100%;
	padding-bottom: 100%;
}

/** And the reset button for the When section
 *  ------------------------------------------------------------------------------------------------
 *  This is hidden by default for back compat reasons - can be displayed by theme authors
**/
.pbs_When__reset {
	padding-top: var(--pbs-pad-xs);
	display: none;
	font-size: 0.75em;
}

.pbs_When__reset-button {
	background: var(--pbs-colour-light);
	color: var(--pbs-colour-primary);
	border-radius: var(--pbs-radius);
	border: 2px solid var(--pbs-colour-calendar-outlines);
	text-align: center;
	justify-content: center;
	font-weight: bold;
	text-decoration: none;
	max-width: var(--pbs-desktop-input-max-width);
	width: fit-content;
	display: flex;
	gap: var(--pbs-gap-s);
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	padding: var(--pbs-pad-s);
}


/** Tweaks for the Who section
 *  ------------------------------------------------------------------------------------------------
**/

/* style invalid counts */
.pbs_Who__guest--invalid label {
	color: var(--pbs-colour-disabled);
}

.pbs_Who--highlight-missing .pbs_Who__guest--invalid label {
	color: var(--pbs-colour-error-text);
}

.pbs_Who--highlight-missing .pbs_Who__guest--invalid label h4 {
	background-color: var(--pbs-colour-background-error);
}

/* guest titles and icons */
.pbs_Who__guest-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pbs_Who__guest-wrap .pbs_Who__guest-details,
.pbs_Who__guest-wrap .pbs_Who__guest {
	flex: 1;
	padding: 0 var(--pbs-pad-m);
}

.pbs_Who__guest-wrap .pbs_Who__guest-details {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.pbs_Who__guest-wrap .pbs_Who__guest {
	justify-content: flex-start;
}

.pbs_Who__guest-wrap .pbs_Who__guest-details .pbs_Icon {
	margin-right: var(--pbs-pad-s);
	width: var(--pbs-icons-in-dropdowns-width);
}

.pbs_Who__guest-wrap .pbs_Who__guest-details h4 {
	font-size: var(--pbs-font-size);
	line-height: var(--pbs-line-height);
}

/** Widget checkboxes (mostly for dogs!)
 *  ------------------------------------------------------------------------------------------------
**/
.key-pbs-widget__checkbox-and-label {
	display: inline-flex;
	max-width: 380px; /* this is a bit much */
	background: transparent;
	color: var(--pbs-colour-primary);
}

.key-pbs-widget__checkbox-and-label__state {
	display: block;
	flex: 0;
	width: 1.5rem;
	height: 1.5rem;
	min-width: 1.5rem;
	min-height: 1.5rem;
	border-radius: 400px;
	background-color: var(--pbs-colour-calendar-outlines);
	border: 4px solid var(--pbs-colour-calendar-outlines);
	transition: background-color ease var(--pbs-time-transition);
	margin-right: var(--pbs-gap);
}

.key-pbs-widget__checkbox-and-label:hover .key-pbs-widget__checkbox-and-label__state,
.key-pbs-widget__checkbox-and-label:focus .key-pbs-widget__checkbox-and-label__state {
	background-color: var(--pbs-colour-background-light);
}

.key-pbs-widget__checkbox-and-label--checked .key-pbs-widget__checkbox-and-label__state,
.key-pbs-widget__checkbox-and-label--checked:hover .key-pbs-widget__checkbox-and-label__state,
.key-pbs-widget__checkbox-and-label--checked:focus .key-pbs-widget__checkbox-and-label__state {
	background-color: var(--pbs-colour-highlight);
}

.pbs_Who__doggo {
	text-align: center;
	padding-top: var(--pbs-pad);
	margin-top: var(--pbs-pad);
	border-top: 1px solid var(--pbs-colour-background-subtle);
	padding-left: 1.5rem;
}

.key-pbs-widget__checkbox-and-label > div p {
	color: var(--pbs-colour-primary);
	text-align: left;
	font-size: 0.9rem;
	line-height: 1.5rem;
}

.key-pbs-widget__checkbox-and-label  > div p + p {
	font-size: 0.7rem;
	color: var(--pbs-colour-primary);
	opacity: 0.7;
	line-height: 1.3;
}

/** mobile/desktop - layout shift for dropdowns and their items
 *  ------------------------------------------------------------------------------------------------
**/
@media screen and (min-width: 64em) {
	/* everything on one line for desktop */
	.pbs_What > ul,
	.pbs_Where > ul {
		flex-wrap: nowrap;
		justify-content: center;
	}

	.pbs_What > ul > li,
	.pbs_Where > ul > li {
		padding: var(--pbs-gap-s);
		min-width: 0;
		max-width: var(--pbs-selectable-max-width);
		width: auto;
	}

	.pbs_What > ul > li:first-child,
	.pbs_Where > ul > li:first-child {
		padding-left: 0;
	}
	.pbs_What > ul > li:last-child,
	.pbs_Where > ul > li:last-child {
		padding-right: 0;
	}

	/*
		select all gets a little divider on desktop!
		we add extra padding around it
	*/
	.pbs_Where--with-select-all > ul > li:first-child {
		padding-right: calc(var(--pbs-gap-s) * 2);
	}
	.pbs_Where--with-select-all > ul > li:nth-child(2) {
		padding-left: calc(var(--pbs-gap-s) * 2);
	}
	.pbs_Where--with-select-all > ul > li:first-child::after {
		content: '';
		height: 100%;
		width: 1px;
		background-color: var(--pbs-colour-disabled);
		position: absolute;
		right: 0;
		top: 0;
	}

	/* squarer images */
	.pbs_SelectableItem__image {
		padding-bottom: 75%;
	}


	/* Calendar tweaks for desktop */
	.pbs_When--max-cals-3 .pbs_When__pika-wrap {
		max-width: calc(var(--pbs-calendar-max-width) * 3);
	}

	.pbs_When--max-cals-2 .pbs_When__pika-wrap {
		max-width: calc(var(--pbs-calendar-max-width) * 2);
	}

	.pbs_When--max-cals-1 .pbs_When__pika-wrap {
		max-width: calc(var(--pbs-calendar-max-width) * 1);
	}

	.pbs_When__pika-wrap .pika-lendar:nth-child(1n+2) {
		display: block;
	}

	/** Desktop Dropdown styling
	 *  ----------------------------------------------------------------------------------------------
	**/
	.pbs_Dropdowns,
	.pbs_dropdown-wrap {
		position: absolute;
		top: 100%;
		margin-top: var(--pbs-gap);
		left: 0;
		width: 100%;
		max-width: none;
	}

	.pbs_Dropdown,
	.pbs_Dropdown--with-selection {
		position: absolute;
		width: 100%;
		max-width: 1px;
		max-height: 1px;
		margin: -1px;
		border: 0;
		padding: 0;
		/* white-space: nowrap; */
		clip-path: inset(100%);
		overflow: hidden;
		opacity: 0;
		pointer-events: none;
		transform: translateY(var(--pbs-gap-s));
		transition:
			opacity ease var(--pbs-time-transition),
			transform ease var(--pbs-time-transition),
			max-width 0ms var(--pbs-time-transition),
			max-height 0ms var(--pbs-time-transition),
			margin 0ms var(--pbs-time-transition),
			padding 0ms var(--pbs-time-transition),
			border 0ms var(--pbs-time-transition),
			clip-path 0ms var(--pbs-time-transition);
		z-index: 1;
	}

	.pbs_Dropdown--active,
	.pbs_Dropdown--with-selection.pbs_Dropdown--active {
		max-width: 100vw;
		max-height: 10000px;
		margin: var(--pbs-gap) 0;
		position: relative;
		padding: var(--pbs-pad);
		clip-path: inset(0);
		z-index: 10;
		opacity: 1;
		transform: translateY(0);
		transition: all ease var(--pbs-time-transition);
		transition-property: opacity, transform;
		pointer-events: auto;
		margin: 0;
	}
}

/** Display overwrites for shortcode/block widgets
 *  ------------------------------------------------------------------------------------------------
 *  These are much closer to the desktop styles but with a few tweaks
 *  the inputs use a holy albatross style layout to break when their container
 *  is less than around 35-40rem in width
**/
.key-pbs-widget--shortcode .key-pbs-widget__inputs {
	display: flex;
	gap: var(--pbs-gap);
}

.key-pbs-widget--shortcode .pbs_input-and-dropdown-wrap {
	margin: 0;
	position: relative;
}

/* rather than flex like on the header widget - shortcode widgets have the CTA underneath */
.key-pbs-widget--shortcode .key-pbs-widget__js,
.key-pbs-widget--shortcode .key-pbs-widget__skeleton {
	display: block;
}

/* If the area available for the inputs is smaller than about 35-40rem they drop to one line */
.key-pbs-widget--shortcode .key-pbs-widget__inputs {
	flex-wrap: wrap;
	--modifier: calc(var(--pbs-shortcode-container-stacks) - 100%);
	align-items: center;
}

.key-pbs-widget--shortcode .key-pbs-widget__inputs > * {
	flex-grow: 1;
	flex-basis: calc(var(--modifier) * 999);
	max-width: none;
	min-width: 0;
}

/* shortcode widget buttons should always fill the parent width */
.key-pbs-widget--shortcode .key-pbs-widget__inputs .key-pbs-widget__input {
	width: 100%;
	max-width: none;
}

/* the connectors are medium sized for shortcode widgets */
.key-pbs-widget--shortcode .key-pbs-widget__input::after {
	height: calc(var(--pbs-gap-s) + (var(--pbs-radius) * 3));
	transition: transform ease var(--pbs-time-transition), opacity ease 0ms var(--pbs-time-transition);
}

.key-pbs-widget--shortcode .key-pbs-widget__input--active::after,
.key-pbs-widget--shortcode .key-pbs-widget__input--with-selection::after {
	transition: all ease var(--pbs-time-transition);
	transition-property: transform;
}

/* on the primary mobile layouts we keep these open, not for the shortcode widgets */
.key-pbs-widget--shortcode .key-pbs-widget__input--with-selection:not(.key-pbs-widget__input--active)::after {
	opacity: 0;
	transform: translateY(-100%);
	transition: transform ease var(--pbs-time-transition), opacity ease 0ms var(--pbs-time-transition);
}
.key-pbs-widget--shortcode .key-pbs-widget__input--with-selection {
	pointer-events: auto;
}


/* these icons are hidden on items with selection in the primary mobile layouts */
.key-pbs-widget--shortcode .key-pbs-widget__input--active .pbs_Icon:last-child,
.key-pbs-widget--shortcode .key-pbs-widget__input--with-selection .pbs_Icon:last-child {
	opacity: 1;
}

.key-pbs-widget--shortcode .key-pbs-widget__input {
	margin: 0;
}

.key-pbs-widget--shortcode .key-pbs-widget__submit {
	margin-top: var(--pbs-gap);
}

.key-pbs-widget--shortcode .key-pbs-widget__submit > .key-pbs-widget__input {
	width: 100%;
	max-width: none;
}

/** shortcode widgets - dropdown styling
	*  ----------------------------------------------------------------------------------------------
**/
/*
dropdowns have a minimum of about 320px width
and are positionsed left/right/center depending on their siblings
*/
.key-pbs-widget--shortcode .pbs_dropdown-wrap {
	position: absolute;
	top: 100%;
	margin-top: 0;
	left: 50%;
	width: 100%;
	max-width: none;
	min-width: 320px;
	/* if this is the same size as the input this lines up on the left, otherwise centrally */
	transform: translateX(-50%);
	z-index: 2;
}

/* first child left, last child right  - to avoid overflows */
.key-pbs-widget--shortcode .pbs_input-and-dropdown-wrap:first-child .pbs_dropdown-wrap {
	left: 0;
	transform: translateX(0);
}
.key-pbs-widget--shortcode .pbs_input-and-dropdown-wrap:last-child .pbs_dropdown-wrap {
	left: auto;
	right: 0;
	transform: translateX(0);
}
.key-pbs-widget--shortcode .pbs_input-and-dropdown-wrap:last-child:first-child .pbs_dropdown-wrap {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

/* on very small screens they just always fill most of the screen... */
@media screen and (max-width: 25em){
	.key-pbs-widget--shortcode .pbs_dropdown-wrap,
	.key-pbs-widget--shortcode .pbs_input-and-dropdown-wrap:first-child .pbs_dropdown-wrap,
	.key-pbs-widget--shortcode .pbs_input-and-dropdown-wrap:last-child .pbs_dropdown-wrap,
	.key-pbs-widget--shortcode .pbs_input-and-dropdown-wrap:last-child:first-child .pbs_dropdown-wrap {
		left: 50%;
		width: 95vw;
		width: 95dvw;
		max-width: none;
		min-width: 0;
		transform: translateX(-50%);
	}
}


.key-pbs-widget--shortcode .pbs_Dropdown,
.key-pbs-widget--shortcode .pbs_Dropdown--with-selection {
	position: absolute;
	width: 100%;
	max-width: 1px;
	max-height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	/* white-space: nowrap; */
	clip-path: inset(100%);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(var(--pbs-gap-s));
	transition:
		opacity ease var(--pbs-time-transition),
		transform ease var(--pbs-time-transition),
		max-width 0ms var(--pbs-time-transition),
		max-height 0ms var(--pbs-time-transition),
		margin 0ms var(--pbs-time-transition),
		padding 0ms var(--pbs-time-transition),
		border 0ms var(--pbs-time-transition),
		clip-path 0ms var(--pbs-time-transition);
	z-index: 1;
}

.key-pbs-widget--shortcode .pbs_Dropdown--active,
.key-pbs-widget--shortcode .pbs_Dropdown--with-selection.pbs_Dropdown--active {
	max-width: 100vw;
	max-height: 10000px;
	margin: var(--pbs-gap-s) 0;
	/* position: relative; */
	padding: var(--pbs-pad);
	clip-path: inset(0);
	z-index: 10;
	opacity: 1;
	transform: translateY(0);
	transition: transform ease var(--pbs-time-transition), opacity ease var(--pbs-time-transition);
	/* transition-property: opacity, transform; */
	pointer-events: auto;
}


/* Dropdown content tweaks */
/* smaller pill shaped boxes with tiny images */
.key-pbs-widget--shortcode .pbs_What > ul,
.key-pbs-widget--shortcode .pbs_Where > ul {
	display: block;
}

/* sub menus */
.key-pbs-widget--shortcode .pbs_What > ul + ul {
	margin-top: var(--pbs-gap);
}

.key-pbs-widget--shortcode .pbs_What > ul > li,
.key-pbs-widget--shortcode .pbs_Where > ul > li {
	padding: 0;
	min-width: 0;
	max-width: none;
	width: 100%;
	margin-top: var(--pbs-gap);
}

.key-pbs-widget--shortcode .pbs_What > ul > li:first-child,
.key-pbs-widget--shortcode .pbs_Where > ul > li:first-child {
	margin-top: 0;
}

.key-pbs-widget--shortcode .pbs_SelectableItem {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	position: relative;
	padding-left: var(--pbs-shortcode-image-width);
	min-height: var(--pbs-shortcode-image-width);
}

/* tiny images */
.key-pbs-widget--shortcode .pbs_SelectableItem__image {
	position: absolute;
	left: 0;
	top: 0;
	padding: 0;
	width: var(--pbs-shortcode-image-width);
	min-width: var(--pbs-shortcode-image-width);
	height: var(--pbs-shortcode-image-width);
	min-height: 100%;
	flex: 0;
}

/*
	select all gets an underline
*/
.key-pbs-widget--shortcode .pbs_Where--with-select-all > ul > li:first-child {
	padding-bottom: calc(var(--pbs-gap-s) * 2);
}
.key-pbs-widget--shortcode .pbs_Where--with-select-all > ul > li:first-child::after {
	content: '';
	height: 1px;
	width: 100%;
	background-color: var(--pbs-colour-disabled);
	position: absolute;
	left: 0;
	right: auto;
	top: 100%;
}

/* Next CTAs at the bottom of shortcode widgets */
.key-pbs-widget--shortcode .pbs_Dropdown__ctas {
	display: flex;
	gap: var(--pbs-gap);
	margin-top: var(--pbs-gap);
	justify-content: space-between;
}

.pbs_Dropdown__ctas button:last-child,
.pbs_Dropdown__ctas .key-pbs-widget__input {
	width: 100%;
	max-width: none;
	background-color: var(--pbs-colour-highlight);
}

/* only one calendar for the shortcode widgets */
.key-pbs-widget--shortcode .pbs_When__pika-wrap .pika-lendar:nth-child(1n+2) {
	display: none;
}
