.pbfh-widget {
	--pbfh-background: #fff;
	--pbfh-options-background: #f8f8f8;
	--pbfh-border: #d2d2d2;
	--pbfh-divider: rgba(0, 0, 0, 0.1);
	--pbfh-text: #242a38;
	--pbfh-muted: #646872;
	--pbfh-accent: #242a38;
	--pbfh-error-button: #960367;
	--pbfh-error-button-hover: #6d044b;
	--pbfh-header-crop: 52px;
	--pbfh-calendar-spacing: 0px;

	box-sizing: border-box;
	color: var(--pbfh-text);
	width: 100%;
	border: 1px solid var(--pbfh-border);
	border-radius: 12px;
	background: var(--pbfh-background);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	letter-spacing: -0.01em;
	overflow: hidden;
}

.pbfh-widget *,
.pbfh-widget *::before,
.pbfh-widget *::after {
	box-sizing: border-box;
}

.pbfh-options {
	display: flex;
	flex-direction: column;
	gap: 25px;
	min-width: 0;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 0;
	background: var(--pbfh-options-background);
	overflow: hidden;
}

.pbfh-option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 4px 0;
	background: transparent;
	cursor: pointer;
}

.pbfh-option + .pbfh-option {
	border-top: 0;
}

.pbfh-option + .pbfh-option::before {
	content: "";
	position: absolute;
	top: -13px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--pbfh-divider);
}

.pbfh-option-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.pbfh-option-radio {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
	border: 0.8px solid rgba(36, 42, 56, 0.5);
	border-radius: 50%;
	background: transparent;
	flex: 0 0 auto;
}

.pbfh-option-radio::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11.2px;
	height: 11.2px;
	transform: translate(-50%, -50%);
	border-radius: inherit;
	background: transparent;
}

.pbfh-option-input:checked + .pbfh-option-radio {
	border: 1.2px solid var(--pbfh-accent);
}

.pbfh-option-input:checked + .pbfh-option-radio::after {
	background: var(--pbfh-accent);
}

.pbfh-option:hover .pbfh-option-radio {
	border-width: 1.2px;
	border-color: var(--pbfh-accent);
}

.pbfh-option-input:focus-visible + .pbfh-option-radio {
	outline: 2px solid var(--pbfh-accent);
	outline-offset: 3px;
}

.pbfh-option-copy {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
}

.pbfh-option.has-no-subtitle > .pbfh-option-radio,
.pbfh-option.has-no-subtitle > .pbfh-option-copy {
	align-self: center;
}

.pbfh-option-title,
.pbfh-option-subtitle,
.pbfh-option-pricing,
.pbfh-option-from,
.pbfh-option-price {
	display: block;
}

.pbfh-option-title {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--pbfh-text);
}

.pbfh-option-subtitle {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--pbfh-text);
	opacity: 0.7;
}

.pbfh-option-pricing {
	display: flex;
	align-self: center;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	margin-left: auto;
	white-space: nowrap;
}

.pbfh-option-from {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--pbfh-text);
	opacity: 0.5;
}

.pbfh-option-price {
	display: flex;
	align-items: baseline;
	gap: 2px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--pbfh-text);
}

.pbfh-option-unit {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--pbfh-text);
	opacity: 0.7;
}

.pbfh-panels {
	position: relative;
	margin-top: var(--pbfh-calendar-spacing);
}

.pbfh-widget.has-options .pbfh-panels {
	border-top: 1px solid var(--pbfh-border);
}

.pbfh-panel {
	position: relative;
	min-height: 420px;
}

.pbfh-panel.is-ready {
	min-height: 0;
}

.pbfh-panel.is-error {
	min-height: 0;
}

.pbfh-panel[hidden] {
	display: none !important;
}

/*
 * FareHarbor chooses its responsive layout from the host width at startup.
 * Keep background calendars measurable without painting them or contributing
 * to the widget height; display:none would make them initialize at zero width.
 */
.pbfh-panel.is-background-calendar {
	position: absolute;
	inset: 0 0 auto;
	width: 100%;
	visibility: hidden;
	pointer-events: none;
}

.pbfh-calendar-shell {
	position: relative;
	min-height: inherit;
}

.pbfh-embed {
	overflow: hidden;
	min-height: inherit;
}

.pbfh-embed iframe {
	display: block;
	width: 100%;
	border: 0;
}

.pbfh-script-host {
	min-height: 0;
	background: transparent;
}

.pbfh-embed .fareharbor-calendar-wrap iframe,
.pbfh-embed > iframe {
	margin-top: calc(-1 * var(--pbfh-header-crop)) !important;
}

.pbfh-loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	min-height: 320px;
	background: rgba(255, 255, 255, 0.92);
}

.pbfh-panel.is-loading .pbfh-loading,
.pbfh-panel.is-switching-calendar .pbfh-loading {
	display: flex;
}

.pbfh-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #d5deeb;
	border-top-color: var(--pbfh-accent);
	border-radius: 50%;
	animation: pbfh-spin 0.8s linear infinite;
}

.pbfh-loading-text {
	font-size: 14px;
	line-height: 1.4;
	color: var(--pbfh-muted);
}

.pbfh-error {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 16px 8px;
	background: var(--pbfh-background);
	text-align: center;
}

.pbfh-error[hidden] {
	display: none;
}

.pbfh-panel.is-error .pbfh-embed {
	display: none;
}

.pbfh-error-text {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 0.25em;
	margin: 0;
	color: var(--pbfh-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.pbfh-booking-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--pbfh-error-button);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.pbfh-booking-link:hover {
	background: var(--pbfh-error-button-hover);
	color: #fff;
	text-decoration: none;
}

.pbfh-error-text .pbfh-retry {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
	cursor: pointer;
}

.pbfh-error-text .pbfh-retry:hover {
	color: var(--pbfh-text);
	text-decoration: underline;
}

.pbfh-error-text .pbfh-retry:focus-visible,
.pbfh-booking-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.pbfh-noscript {
	margin: 12px 0 0;
}

.pbfh-editor-diagnostic {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-left: 4px solid #dba617;
	background: #fff8e5;
	color: #3c434a;
	font-size: 13px;
}

.pbfh-editor-diagnostic ul {
	margin: 6px 0 0 18px;
}

.pbfh-editor-skeleton {
	min-height: 420px;
	background: #fff;
	color: #6b7280;
}

.pbfh-editor-skeleton__toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 26px 22px 14px;
}

.pbfh-editor-skeleton__month,
.pbfh-editor-skeleton__year,
.pbfh-editor-skeleton__nav i {
	display: block;
	border-radius: 6px;
	background: #d1d5db;
}

.pbfh-editor-skeleton__month {
	width: 96px;
	height: 30px;
}

.pbfh-editor-skeleton__year {
	width: 80px;
	height: 30px;
}

.pbfh-editor-skeleton__nav {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.pbfh-editor-skeleton__nav i {
	width: 27px;
	height: 27px;
	border-radius: 50%;
}

.pbfh-editor-skeleton__weekdays,
.pbfh-editor-skeleton__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 7px;
	padding-inline: 22px;
}

.pbfh-editor-skeleton__weekdays {
	padding-block: 8px 12px;
}

.pbfh-editor-skeleton__weekdays span {
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.pbfh-editor-skeleton__grid span {
	height: 38px;
	border-radius: 6px;
	background: #159565;
}

.pbfh-editor-skeleton__grid .is-disabled {
	background: transparent;
}

.pbfh-editor-skeleton__footer {
	height: 58px;
	margin-top: 20px;
	border-top: 1px solid var(--pbfh-border);
}

@media (max-width: 767px) {
	.pbfh-widget {
		--pbfh-header-crop: 58px;
	}
}

@keyframes pbfh-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbfh-spinner {
		animation: none;
	}
}
