/* Vetspire Scheduler widget — brandable via --vsps-primary on .vsps-widget.
 * Every rule is double-scoped (.vsps-widget / .vsps-overlay prefix) so theme
 * and Elementor-kit button/input styles (e.g. `.elementor-kit-X button`,
 * specificity 0-1-1) never override the widget (ours are 0-2-0+). */

.vsps-widget {
	--vsps-primary: #2f6f4f;
	--vsps-border: #e0e0e0;
	--vsps-text: #222;
	border: 1px solid var(--vsps-border);
	border-radius: 12px;
	padding: 20px;
	max-width: 640px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--vsps-text);
	background: #fff;
	box-sizing: border-box;
	min-width: 0;
}

.vsps-widget *,
.vsps-widget *::before,
.vsps-widget *::after,
.vsps-overlay *,
.vsps-overlay *::before,
.vsps-overlay *::after {
	box-sizing: border-box;
}

/* A visible keyboard-focus indicator on every interactive element, in every
 * step (buttons, links, selects, inputs) -- :focus-visible so it only shows
 * for keyboard navigation, not a stray mouse click. `!important` because
 * many themes reset `outline` globally (Astra's `*{outline:0}` is the one
 * already documented elsewhere in this fleet), and without a replacement
 * that leaves keyboard users with literally no way to see where they are. */
.vsps-widget button:focus-visible,
.vsps-widget a:focus-visible,
.vsps-widget select:focus-visible,
.vsps-widget input:focus-visible,
.vsps-widget textarea:focus-visible,
.vsps-overlay button:focus-visible,
.vsps-overlay a:focus-visible,
.vsps-overlay select:focus-visible,
.vsps-overlay input:focus-visible,
.vsps-overlay textarea:focus-visible {
	outline: 3px solid var(--vsps-primary, #2f6f4f) !important;
	outline-offset: 2px !important;
}

/* Neutralize common theme button decoration inside the widget & modal. */
.vsps-widget button,
.vsps-overlay button {
	background-image: none;
	text-shadow: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	line-height: 1.4;
	margin: 0;
}

.vsps-widget .vsps-title {
	margin: 0 0 12px;
	font-size: 1.25em;
	color: var(--vsps-text);
}

.vsps-widget .vsps-loading,
.vsps-widget .vsps-message,
.vsps-overlay .vsps-message {
	color: #666;
	margin: 8px 0;
}

.vsps-widget .vsps-label {
	display: block;
	/* Same size as the red "Please select an appointment type first." prompt. */
	font-size: 1em;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--vsps-primary);
}

.vsps-widget .vsps-type-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--vsps-border);
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 1em;
	background: #fff;
	color: var(--vsps-text);
}

/* "Select One" placeholder showing: gray until a type is chosen. */
.vsps-widget .vsps-type-select.vsps-type-empty {
	color: #6b6b6b;
}

.vsps-widget .vsps-type-select option {
	color: var(--vsps-text);
}

.vsps-widget .vsps-type-required {
	margin: 14px 0 4px;
	color: #b3261e;
	font-weight: 600;
}

.vsps-widget .vsps-single-type {
	font-weight: 600;
	margin: 0 0 10px;
	color: var(--vsps-text);
}

/* Date carousel */
.vsps-widget .vsps-dates-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.vsps-widget .vsps-dates {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	/* Room for the 3px focus outline + 2px offset: a scrolling box clips
	   anything drawn outside it, so a tight padding cut the ring in half. */
	padding: 6px;
	scroll-padding-inline: 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.vsps-widget .vsps-dates::-webkit-scrollbar {
	display: none;
}

.vsps-widget .vsps-dates-arrow,
.vsps-widget .vsps-dates-arrow:hover,
.vsps-widget .vsps-dates-arrow:focus {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--vsps-border);
	background: #fff;
	color: var(--vsps-primary);
	font: inherit;
	font-size: 1.4em;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 3px;
}

.vsps-widget .vsps-dates-arrow:hover {
	background: #f4f6f5;
}

.vsps-widget .vsps-dates-fit .vsps-dates-arrow {
	display: none;
}

.vsps-widget .vsps-date-more {
	border-style: dashed;
	color: var(--vsps-primary);
}

.vsps-widget .vsps-date-more .vsps-date-label {
	font-size: 1.3em;
	line-height: 1;
}

.vsps-widget .vsps-notice {
	margin: 0 0 12px;
	padding: 9px 12px;
	border-radius: 8px;
	background: #fdecec;
	color: #b3261e;
	font-size: 0.92em;
}

.vsps-widget .vsps-date-btn {
	flex: 0 0 auto;
	min-width: 92px;
	padding: 8px 10px;
	border: 1px solid var(--vsps-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	font: inherit;
	color: var(--vsps-text);
}

.vsps-widget .vsps-date-btn:hover,
.vsps-widget .vsps-date-btn:focus {
	background: #f4f6f5;
	color: var(--vsps-text);
}

.vsps-widget .vsps-date-btn:disabled {
	opacity: 0.45;
	cursor: default;
	background: #fff;
	color: var(--vsps-text);
}

.vsps-widget .vsps-date-btn.is-active,
.vsps-widget .vsps-date-btn.is-active:hover,
.vsps-widget .vsps-date-btn.is-active:focus {
	border-color: var(--vsps-primary);
	background: var(--vsps-primary);
	color: #fff;
}

.vsps-widget .vsps-date-label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	color: inherit;
}

.vsps-widget .vsps-date-count {
	display: block;
	font-size: 0.75em;
	opacity: 0.8;
	color: inherit;
}

/* Time chips */
.vsps-widget .vsps-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 8px;
}

.vsps-widget .vsps-slot-btn {
	padding: 10px 6px;
	border: 1px solid var(--vsps-primary);
	border-radius: 8px;
	background: #fff;
	color: var(--vsps-primary);
	font-weight: 600;
	font-size: 0.9em;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s, color 0.15s;
}

.vsps-widget .vsps-slot-btn:hover,
.vsps-widget .vsps-slot-btn:focus-visible {
	background: var(--vsps-primary);
	color: #fff;
}

/* Modal */
.vsps-overlay {
	font-size: 15px;
	line-height: 1.45;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	/* Must clear the z-index scheduler.js forces onto an external #vsps-book
	   trigger link (999999) so the modal always paints on top of it once open. */
	z-index: 100000000;
	padding: 16px;
	/* Scrolling inside the popup never chains to the page behind it
	   (scheduler.js also pins the page while a popup is open). */
	overscroll-behavior: contain;
}

.vsps-overlay .vsps-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: #222;
}

.vsps-overlay .vsps-modal-title {
	margin: 0 0 4px;
	font-size: 1.15em;
	color: #222;
}

.vsps-overlay .vsps-modal-sub {
	margin: 0 0 16px;
	color: #555;
}

.vsps-overlay .vsps-form .vsps-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.vsps-overlay .vsps-form input,
.vsps-overlay .vsps-form select,
.vsps-overlay .vsps-form textarea {
	width: 100%;
	padding: 9px 10px;
	/* #767676: 4.5:1 on white, so the field outline is visible (WCAG 1.4.11 needs 3:1). */
	border: 1px solid #767676;
	border-radius: 8px;
	font: inherit;
	color: #222;
	background: #fff;
	margin: 0;
}

.vsps-overlay .vsps-form textarea {
	margin-bottom: 10px;
	resize: vertical;
}

/* Every field has a visible label above it, wired with for/id (WCAG 1.3.1 /
   3.3.2); required ones carry a red asterisk, explained by the
   "* Indicates a required field" note. */
.vsps-overlay .vsps-form .vsps-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.vsps-overlay .vsps-form .vsps-field-label {
	display: block;
	font-size: 0.85em;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.vsps-overlay .vsps-req {
	color: #b3261e;
	font-weight: 700;
}

.vsps-overlay .vsps-req-note {
	font-size: 0.85em;
	color: #444;
	margin: 0 0 10px;
}

.vsps-overlay .vsps-form .vsps-field textarea {
	margin-bottom: 0;
}

/* Field errors (WCAG 3.3.1 / 1.4.1): red border AND an icon + "Error:" text
   under the field, linked with aria-describedby. */
.vsps-overlay .vsps-form [aria-invalid="true"] {
	border-color: #b3261e;
	box-shadow: inset 0 0 0 1px #b3261e;
}

.vsps-overlay .vsps-field-error {
	display: flex;
	gap: 4px;
	align-items: flex-start;
	margin: 4px 0 0;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.35;
	color: #b3261e;
}

.vsps-overlay .vsps-err-icon {
	flex-shrink: 0;
}

/* Weight: number + lb/kg side by side, together taking one half of a row. */
.vsps-overlay .vsps-form .vsps-weight {
	display: flex;
	gap: 6px;
	width: 100%;
}

.vsps-overlay .vsps-form .vsps-weight select {
	width: 72px;
	flex-shrink: 0;
}

.vsps-overlay .vsps-error {
	color: #b00020;
	margin: 4px 0 8px;
	font-size: 0.9em;
}

.vsps-overlay .vsps-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 6px;
}

.vsps-overlay .vsps-btn-primary,
.vsps-overlay .vsps-btn-secondary {
	padding: 10px 18px;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.vsps-overlay .vsps-btn-primary,
.vsps-overlay .vsps-btn-primary:hover,
.vsps-overlay .vsps-btn-primary:focus {
	background: var(--vsps-primary, #2f6f4f);
	border: 1px solid var(--vsps-primary, #2f6f4f);
	color: #fff;
}

.vsps-overlay .vsps-btn-primary:disabled {
	opacity: 0.6;
	cursor: default;
}

.vsps-overlay .vsps-btn-secondary,
.vsps-overlay .vsps-btn-secondary:hover,
.vsps-overlay .vsps-btn-secondary:focus {
	background: #fff;
	border: 1px solid #ccc;
	color: #444;
}

@media (max-width: 480px) {
	.vsps-overlay .vsps-form .vsps-row {
		flex-direction: column;
	}

	.vsps-overlay .vsps-form .vsps-field {
		flex: 1 1 auto;
	}
}

/* ---------- layout: bar (horizontal strip) ---------- */

.vsps-widget.vsps-layout-bar {
	max-width: none;
	padding: 14px 20px;
}

.vsps-widget.vsps-layout-bar .vsps-title {
	display: none;
}

.vsps-widget .vsps-bar {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.vsps-widget .vsps-bar-label {
	display: flex;
	flex-direction: column;
	min-width: 150px;
}

/* "Next Available Appointment · Sept 15" (bar + drawer) */
.vsps-widget .vsps-next-title,
.vsps-overlay .vsps-next-title {
	display: block;
	font-size: 0.75em;
	font-weight: 600;
	color: #666;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.vsps-widget .vsps-next-date,
.vsps-overlay .vsps-next-date {
	display: block;
	font-weight: 700;
	font-size: 1.1em;
	color: var(--vsps-text);
}

.vsps-widget .vsps-bar-next {
	margin-bottom: 2px;
}

.vsps-overlay .vsps-drawer-next {
	margin: 4px 0 14px;
}

.vsps-widget .vsps-bar-chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1;
}

.vsps-widget.vsps-layout-bar .vsps-bar-chip {
	white-space: nowrap;
	padding: 8px 14px;
	border: 1px solid var(--vsps-primary);
	border-radius: 999px;
	background: var(--vsps-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.9em;
	cursor: pointer;
	font-family: inherit;
}

.vsps-widget.vsps-layout-bar .vsps-bar-chip:hover,
.vsps-widget.vsps-layout-bar .vsps-bar-chip:focus {
	background: #fff;
	color: var(--vsps-primary);
}

.vsps-widget .vsps-bar-viewall {
	background: none;
	border: none;
	color: var(--vsps-primary);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95em;
	padding: 6px;
}

.vsps-widget.vsps-layout-bar .vsps-bar-cta,
.vsps-widget.vsps-layout-bar .vsps-bar-cta:hover,
.vsps-widget.vsps-layout-bar .vsps-bar-cta:focus {
	padding: 12px 22px;
	border-radius: 8px;
	background: var(--vsps-primary);
	border: 1px solid var(--vsps-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

/* ---------- layout: calendar (month picker) ---------- */

.vsps-widget.vsps-layout-calendar {
	max-width: 420px;
}

.vsps-widget .vsps-cal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.vsps-widget .vsps-cal-month {
	font-weight: 700;
	font-size: 1.05em;
	color: var(--vsps-text);
}

.vsps-widget .vsps-cal-arrow {
	background: none;
	border: none;
	color: var(--vsps-primary);
	font-size: 1.3em;
	cursor: pointer;
	padding: 2px 8px;
	font-family: inherit;
}

.vsps-widget .vsps-cal-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.vsps-widget .vsps-cal-grid {
	display: grid;
	/* minmax(0, 1fr), not bare 1fr: a plain 1fr track can't shrink below its
	   content's intrinsic width, so on a host page that places the widget
	   inside a flex/grid container (Elementor shortcodes commonly do) the 7
	   columns keep their natural width and overflow the card instead of
	   sharing it evenly. */
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
	margin-bottom: 10px;
	width: 100%;
	box-sizing: border-box;
}

.vsps-widget .vsps-cal-dow {
	text-align: center;
	font-size: 0.75em;
	color: #999;
	padding: 4px 0;
}

.vsps-widget .vsps-cal-day {
	aspect-ratio: 1;
	border: none;
	background: none;
	border-radius: 50%;
	font: inherit;
	font-size: 0.95em;
	color: var(--vsps-text);
	cursor: pointer;
}

.vsps-widget .vsps-cal-day:disabled {
	color: #ccc;
	text-decoration: line-through;
	cursor: default;
}

.vsps-widget .vsps-cal-day:not(:disabled):hover,
.vsps-widget .vsps-cal-day:not(:disabled):focus {
	background: #eef3f0;
	color: var(--vsps-text);
}

.vsps-widget .vsps-cal-day.is-active,
.vsps-widget .vsps-cal-day.is-active:hover,
.vsps-widget .vsps-cal-day.is-active:focus {
	background: var(--vsps-primary);
	color: #fff;
	font-weight: 700;
}

.vsps-widget .vsps-cal-caption {
	color: #666;
	font-size: 0.9em;
	margin: 4px 0 10px;
}

.vsps-widget .vsps-cal-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vsps-widget .vsps-cal-chip {
	padding: 9px 16px;
	border: 1px solid var(--vsps-border);
	border-radius: 999px;
	background: #fff;
	color: var(--vsps-text);
	font-weight: 600;
	font-size: 0.9em;
	cursor: pointer;
	font-family: inherit;
}

.vsps-widget .vsps-cal-chip:hover,
.vsps-widget .vsps-cal-chip:focus {
	border-color: var(--vsps-primary);
	background: var(--vsps-primary);
	color: #fff;
}

/* ---------- layout: float (compact card) ---------- */

.vsps-widget.vsps-layout-float {
	max-width: 460px;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	border: none;
}

.vsps-widget.vsps-layout-float .vsps-title {
	display: none;
}

.vsps-widget .vsps-float-title {
	margin: 0 0 14px;
	font-size: 1.1em;
	color: var(--vsps-text);
}

.vsps-widget .vsps-float-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.vsps-widget.vsps-layout-float .vsps-float-slot {
	flex: 1 1 100px;
	padding: 12px 8px;
	border: 1px solid var(--vsps-primary);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	font-family: inherit;
	color: var(--vsps-primary);
}

.vsps-widget.vsps-layout-float .vsps-float-slot:hover,
.vsps-widget.vsps-layout-float .vsps-float-slot:focus {
	border-color: var(--vsps-primary);
	background: var(--vsps-primary);
	color: #fff;
}

.vsps-widget .vsps-float-time {
	display: block;
	font-weight: 700;
	color: inherit;
}

.vsps-widget .vsps-float-date {
	display: block;
	font-size: 0.85em;
	color: inherit;
	opacity: 0.85;
}

.vsps-widget .vsps-float-more {
	background: none;
	border: none;
	color: var(--vsps-text);
	text-decoration: underline;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95em;
	padding: 4px 0;
}

/* Full-picker lightbox (opened from bar/float "View All" / "Book Online") */
.vsps-overlay .vsps-modal-wide {
	max-width: 680px;
	position: relative;
	padding-top: 34px;
}

.vsps-overlay .vsps-modal-close,
.vsps-overlay .vsps-modal-close:hover,
.vsps-overlay .vsps-modal-close:focus {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #555;
	cursor: pointer;
	padding: 4px 8px;
	min-width: 32px;
	min-height: 32px;
}

.vsps-overlay .vsps-widget.vsps-embedded {
	border: none;
	border-radius: 0;
	padding: 0;
	max-width: none;
	background: transparent;
}

/* Location strip (clinic name → details drawer) */

.vsps-widget .vsps-locline {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: -4px 0 12px;
}

.vsps-widget .vsps-locline-name,
.vsps-widget .vsps-bar-name {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	font-weight: 700;
	color: var(--vsps-primary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.vsps-widget .vsps-locline-name:hover span:first-child,
.vsps-widget .vsps-bar-name:hover span:first-child {
	text-decoration: underline;
}

.vsps-widget .vsps-locline-arrow {
	font-size: 1.2em;
	line-height: 1;
}

.vsps-widget .vsps-bar-name {
	font-size: 0.9em;
}

/* Slide-in clinic drawer */
.vsps-drawer-overlay {
	justify-content: flex-start;
	align-items: stretch;
	padding: 0;
}

.vsps-overlay .vsps-drawer {
	/* Branded tint of the primary color; solid fallback first. */
	background: #f4f8f6;
	background: color-mix(in srgb, var(--vsps-primary, #2f6f4f) 7%, #ffffff);
	width: 400px;
	max-width: 90vw;
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	/* Extra room at the bottom so site overlays (accessibility buttons,
	   chat bubbles) don't cover the last links. */
	padding: 24px 22px 110px;
	position: relative;
	animation: vsps-slide-in 0.22s ease-out;
	box-sizing: border-box;
	color: #222;
}

@keyframes vsps-slide-in {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.vsps-overlay .vsps-drawer { animation: none; }
}

.vsps-overlay .vsps-drawer-map {
	width: 100%;
	height: 200px;
	border: 0;
	border-radius: 10px;
	margin: 16px 0 18px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
	background: #fff;
}

.vsps-overlay .vsps-drawer-name {
	margin: 0 0 8px;
	font-size: 1.35em;
	font-weight: 700;
	color: #222;
}

.vsps-overlay .vsps-drawer-address {
	margin: 0 0 12px;
	color: #50575e;
	white-space: pre-line;
	line-height: 1.5;
}

.vsps-overlay .vsps-drawer-phone {
	margin: 0 0 8px;
}

.vsps-overlay .vsps-drawer-phone a {
	color: var(--vsps-primary);
}

.vsps-overlay .vsps-drawer-hours-title {
	margin: 18px 0 8px;
	font-size: 1em;
	font-weight: 700;
	color: #222;
}

.vsps-overlay .vsps-drawer-hours {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
	margin-bottom: 16px;
}

.vsps-overlay .vsps-drawer-hours td {
	padding: 4px 0;
	color: #555;
	border: none;
}

.vsps-overlay .vsps-drawer-hours td:last-child {
	text-align: right;
}

.vsps-overlay .vsps-drawer-hours tr.is-today td {
	font-weight: 700;
	color: #222;
}

.vsps-overlay .vsps-drawer-book {
	width: 100%;
	padding: 13px 18px;
	font-size: 1.02em;
	border-radius: 10px;
	margin-bottom: 10px;
}

.vsps-overlay .vsps-drawer-call,
.vsps-overlay .vsps-drawer-call:hover,
.vsps-overlay .vsps-drawer-call:focus {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 18px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--vsps-primary, #2f6f4f);
	color: var(--vsps-primary, #2f6f4f);
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
	margin-bottom: 16px;
}

.vsps-overlay .vsps-drawer-links {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding-top: 4px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vsps-overlay .vsps-drawer-links a {
	padding-top: 5px;
	font-weight: 600;
}

.vsps-overlay .vsps-drawer-links a {
	color: var(--vsps-primary);
	text-decoration: underline;
	font-size: 0.92em;
}


/* ---------- mobile (SOW 0.9) ---------- */

@media (max-width: 640px) {
	.vsps-widget {
		padding: 14px;
	}

	/* Bar: compact strip (title line, a few time pills + View All). */
	.vsps-widget .vsps-bar {
		gap: 8px;
	}

	.vsps-widget .vsps-bar-label {
		width: 100%;
		min-width: 0;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		column-gap: 8px;
	}

	.vsps-widget .vsps-bar-next {
		display: flex;
		align-items: baseline;
		gap: 6px;
		margin: 0;
	}

	.vsps-widget .vsps-bar-next .vsps-next-date {
		font-size: 1em;
		/* The type name makes the title wrap; keep "Sept 25" on one line. */
		white-space: nowrap;
	}

	.vsps-widget .vsps-bar-name {
		font-size: 0.85em;
	}

	.vsps-widget .vsps-bar-chips {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.vsps-widget .vsps-bar-chips::-webkit-scrollbar {
		display: none;
	}

	.vsps-widget .vsps-bar-chip {
		white-space: nowrap;
		padding: 8px 12px;
		font-size: 0.85em;
	}

	/* Two pills on phones: a third one pushes "View All" past a 390px
	   viewport (nth-of-type counts every <button>, View All has no chip class). */
	.vsps-widget .vsps-bar-chip:nth-of-type(n+3) {
		display: none;
	}

	.vsps-widget .vsps-bar-viewall {
		white-space: nowrap;
		padding: 6px 2px;
	}

	.vsps-widget .vsps-bar-cta {
		display: none;
	}

	.vsps-widget.vsps-layout-calendar {
		max-width: 100%;
	}

	.vsps-widget .vsps-cal-grid {
		gap: 1px;
	}

	.vsps-widget .vsps-cal-day {
		font-size: 0.85em;
	}

	.vsps-widget .vsps-cal-chip,
	.vsps-widget .vsps-slot-btn {
		padding: 9px 10px;
		font-size: 0.85em;
	}

	.vsps-widget .vsps-slot-grid {
		grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	}

	.vsps-widget .vsps-float-row {
		flex-direction: column;
	}

	.vsps-widget .vsps-locline {
		gap: 6px;
	}

	.vsps-overlay .vsps-modal-wide {
		max-height: 92vh;
	}
}

/* ---------- booking modal steps (new vs existing client) ---------- */

.vsps-overlay .vsps-step-q {
	font-weight: 600;
	margin: 4px 0 12px;
	color: #222;
}

.vsps-overlay .vsps-btn-block {
	display: block;
	width: 100%;
	margin-bottom: 10px;
	padding: 12px 18px;
	border-radius: 10px;
}

.vsps-overlay .vsps-back {
	background: none;
	border: none;
	color: #555;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
	font-size: 0.9em;
	padding: 6px 0 0;
	/* WCAG 2.5.8: at least 24×24 px to tap. */
	min-height: 24px;
	min-width: 24px;
}

.vsps-overlay .vsps-pet-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.vsps-overlay .vsps-pet-chip {
	padding: 10px 16px;
	border: 1px solid var(--vsps-primary, #2f6f4f);
	border-radius: 999px;
	background: #fff;
	color: var(--vsps-primary, #2f6f4f);
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.vsps-overlay .vsps-pet-chip:hover,
.vsps-overlay .vsps-pet-chip:focus {
	background: var(--vsps-primary, #2f6f4f);
	color: #fff;
}

.vsps-overlay .vsps-pet-new {
	border-style: dashed;
}
