/*
 * Skybee Booking for Calendly: inline frame sizing, the "Basic" button, the floating
 * button and the "Load booking page" placeholder.
 */

/* Inline: the frame Calendly draws the booking page into. */
.wpefc-booking--inline {
	box-sizing: border-box;
	width: 100%;
}

.wpefc-booking--align-center {
	margin-left: auto;
	margin-right: auto;
}

.wpefc-booking--align-right {
	margin-left: auto;
}

/* The frame is its own stacking context, so Calendly's loading spinner
   (position: absolute; z-index: -1, added by Calendly's script) stays under
   the iframe and shows only until the booking page paints over it. */
.wpefc-booking__frame {
	position: relative;
	z-index: 0;
	width: 100%;
	min-width: 280px;
	overflow: hidden;
}

.wpefc-booking__frame iframe {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/*
 * The "Basic" button: a fixed look that should not change with the theme.
 * Some themes style every link or button with very specific selectors, so
 * these rules repeat a class to rank higher without resorting to !important.
 */
.wpefc-booking .wpefc-button.wpefc-button--basic.wpefc-button--basic {
	display: inline-block;
	margin: 0;
	padding: 0.65em 1.4em;
	border: 0;
	border-radius: 6px;
	background: #1a1a1a;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.wpefc-booking .wpefc-button.wpefc-button--basic.wpefc-button--basic:hover,
.wpefc-booking .wpefc-button.wpefc-button--basic.wpefc-button--basic:focus,
.wpefc-booking .wpefc-button.wpefc-button--basic.wpefc-button--basic:active {
	background: #1a1a1a;
	color: #fff;
	opacity: 0.85;
}

.wpefc-booking .wpefc-button.wpefc-button--basic.wpefc-button--basic:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

/* A floating button that only opens by itself stays out of sight. */
.wpefc-booking.wpefc-booking--hidden-button .wpefc-floating.wpefc-floating {
	display: none;
}

/* The floating button: same place and shape as Calendly's badge. */
.wpefc-booking--badge {
	margin: 0;
}

.wpefc-booking .wpefc-floating.wpefc-floating {
	position: fixed;
	right: 20px;
	bottom: 15px;
	z-index: 9998;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 45px;
	margin: 0;
	padding: 8px 30px;
	border: 0;
	border-radius: 25px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
	font-family: sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.wpefc-booking .wpefc-floating.wpefc-floating:hover,
.wpefc-booking .wpefc-floating.wpefc-floating:focus {
	text-decoration: none;
	opacity: 0.92;
}

.wpefc-booking .wpefc-floating.wpefc-floating:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wpefc-floating__branding {
	display: block;
	font-size: 12px;
	font-weight: 400;
}

/* The "Load booking page" placeholder shown before an inline embed loads. */
.wpefc-consent {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 100%;
	padding: 32px 24px;
	border: 1px solid rgba(128, 128, 128, 0.35);
	border-radius: 8px;
	text-align: center;
}

.wpefc-consent__text {
	max-width: 46ch;
	margin: 0;
}
