.acx-booking {
	max-width: 480px;
	font-family: inherit;
}

.acx-booking-step {
	margin-bottom: 20px;
}

.acx-booking label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.acx-booking input[type="date"],
.acx-booking input[type="text"],
.acx-booking input[type="email"],
.acx-booking input[type="tel"],
.acx-booking textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

/* The custom calendar grid replacing the previous native
<input type="date"> - see booking-calendar.php's own comment on why a
native date input couldn't do this. */
.acx-calendar-picker {
	max-width: 300px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 12px;
}

.acx-calendar-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.acx-calendar-nav-prev,
.acx-calendar-nav-next {
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

/* Drawn purely with CSS (a small square with two borders forming an
"L", rotated to point the right way) rather than the previous
text/HTML-entity arrow character (&larr;/&rarr;) - the actual reported
bug: those silently failed to render, almost certainly because the
page's own inherited font (`.acx-booking { font-family: inherit; }`)
has no glyph for that Unicode character and simply shows nothing,
rather than falling back to a font that does. A CSS-drawn shape can't
have this problem at all, since it never depends on any font's glyph
set - confirmed by actually rendering this exact markup/CSS to an
image and inspecting it directly before shipping, rather than trusting
the rotation math by eye (rotate(135deg) and rotate(-135deg) look
similar in the CSS but point in unrelated directions - right vs. down -
easy to get backwards without checking). */
.acx-calendar-nav-prev::before,
.acx-calendar-nav-next::before {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	border-top: 2px solid #444;
	border-left: 2px solid #444;
}

.acx-calendar-nav-prev::before {
	transform: rotate( -45deg );
}

.acx-calendar-nav-next::before {
	transform: rotate( 135deg );
}

.acx-calendar-nav-prev:hover,
.acx-calendar-nav-next:hover {
	background: #f0f0f1;
}

.acx-calendar-nav-prev:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.acx-calendar-nav-prev:disabled:hover {
	background: none;
}

.acx-calendar-picker-month {
	font-weight: 600;
}

.acx-calendar-picker-weekdays,
.acx-calendar-picker-days {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 2px;
}

.acx-calendar-picker-weekdays {
	margin-bottom: 4px;
	text-align: center;
	font-size: 12px;
	color: #646970;
	font-weight: 600;
}

.acx-calendar-picker-day {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 4px;
	background: none;
	font-size: 13px;
	padding: 0;
}

.acx-calendar-picker-day-blank {
	visibility: hidden;
}

/* A date with at least one bookable slot - the "highlight available
dates" part of this feature. Not disabled, cursor: pointer, clickable. */
.acx-calendar-picker-day-available {
	background: #e6f0f7;
	color: #2271b1;
	font-weight: 600;
	cursor: pointer;
}

.acx-calendar-picker-day-available:hover {
	background: #2271b1;
	color: #fff;
}

/* Either in the past, or genuinely has no availability set by the
admin/instructor for that date - the "disable/non-selectable" part of
this feature. */
.acx-calendar-picker-day-unavailable {
	color: #c3c4c7;
	cursor: not-allowed;
}

.acx-calendar-picker-day-selected {
	background: #2271b1;
	color: #fff;
	font-weight: 700;
}

.acx-calendar-picker-status {
	margin: 8px 0 0;
	font-size: 12px;
	color: #646970;
	min-height: 14px;
}

.acx-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.acx-slot-button {
	padding: 8px 14px;
	border: 1px solid #999;
	border-radius: 4px;
	background: #fff;
	color: #1d2327; /* explicit - without this, host themes that set a global white button color make the text invisible until hover/selected accidentally creates contrast */
	font: inherit;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.acx-slot-button:hover {
	background: #f0f0f1;
	border-color: #333;
	color: #1d2327;
}

.acx-slot-button.is-selected {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.acx-slot-button-group {
	border-color: #2271b1;
	color: #2271b1;
}

.acx-slot-button-group:hover {
	border-color: #135e96;
	color: #135e96;
}

.acx-slot-button-group.is-selected {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.acx-slot-button-full {
	border-color: #ccc;
	color: #888;
	background: #f6f7f7;
	cursor: pointer;
}

.acx-slot-button-full:hover {
	border-color: #999;
	color: #555;
}

.acx-waitlist-form {
	display: block;
	width: 100%;
	background: #fcf9e8;
	border: 1px solid #e0d28a;
	border-radius: 4px;
	padding: 12px;
	margin: 8px 0;
}

.acx-waitlist-form label {
	display: block;
	margin: 8px 0;
	font-size: 13px;
}

.acx-waitlist-form input {
	display: block;
	width: 100%;
	max-width: 300px;
	padding: 6px 8px;
	margin-top: 2px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.acx-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.acx-submit-button {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.15s ease;
}

.acx-submit-button:hover:not(:disabled) {
	background: #135e96;
}

.acx-submit-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.acx-spinner {
	display: none;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: acx-spin 0.6s linear infinite;
}

.acx-submit-button.is-loading .acx-spinner {
	display: inline-block;
}

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

.acx-form-message {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 14px;
	margin: 10px 0;
}

.acx-form-message:not(:empty) {
	display: flex;
}

.acx-form-message::before {
	font-weight: 700;
	flex-shrink: 0;
}

.acx-form-message-success {
	background: #e6f4ea;
	border-left: 4px solid #1e7e34;
	color: #0a5c1f;
}

.acx-form-message-success::before {
	content: "\2713"; /* checkmark */
}

.acx-form-message-error {
	background: #fbe9e7;
	border-left: 4px solid #b32d2e;
	color: #8a1f1f;
}

.acx-form-message-error::before {
	content: "\26A0"; /* warning triangle */
}

.acx-my-bookings-list {
	overflow-x: auto;
}

.acx-my-bookings-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.acx-my-bookings-table th,
.acx-my-bookings-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #e0e0e0;
}

.acx-cancel-button {
	display: inline-block;
	box-sizing: border-box;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #b32d2e;
	color: #b32d2e;
	border-radius: 4px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	vertical-align: middle;
}

.acx-cancel-button:hover {
	background: #fbe9e7;
}

.acx-cancel-button:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Same size as .acx-cancel-button, but neutral - for small actions
that aren't destructive (e.g. toggling open a "Leave a Review" or
"Reschedule" form). Fixes a real mislabeling: those toggles previously
reused .acx-cancel-button for its size, which also meant reusing its
red/destructive coloring for actions that aren't destructive at all. */
.acx-neutral-button {
	display: inline-block;
	box-sizing: border-box;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #999;
	color: #1d2327;
	border-radius: 4px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	vertical-align: middle;
}

.acx-neutral-button:hover {
	background: #f0f0f1;
	border-color: #333;
}

.acx-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

.acx-status-confirmed {
	background: #d7f5dc;
	color: #0a5c1f;
}

.acx-status-pending {
	background: #fdf0d5;
	color: #8a5a00;
}

.acx-status-pending_payment {
	background: #ede7f6;
	color: #4a148c;
}

.acx-pay-button {
	padding: 6px 14px;
	font-size: 13px;
}

.acx-reschedule-details {
	display: inline-block;
	vertical-align: middle;
}

.acx-reschedule-details summary {
	display: inline-block;
	box-sizing: border-box;
	cursor: pointer;
	list-style: none;
}

.acx-reschedule-details summary::marker {
	display: none;
}

.acx-reschedule-details summary::-webkit-details-marker {
	display: none;
}

.acx-reschedule-form {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px;
	margin-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
}

.acx-reschedule-form label {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	gap: 2px;
	font-weight: 400;
}

.acx-status-cancelled,
.acx-status-rejected {
	background: #fbe1e1;
	color: #8a1f1f;
}

.acx-status-completed {
	background: #e1e8fb;
	color: #1f338a;
}

.acx-price-display {
	font-size: 18px;
	font-weight: 700;
	margin: 8px 0;
}

.acx-credit-row {
	background: #f0f6fc;
	border: 1px solid #c3dcf1;
	border-radius: 4px;
	padding: 10px 12px;
	margin: 8px 0;
}

.acx-credit-row label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	margin: 0;
}

.acx-course-gate-message {
	background: #fcf9e8;
	border: 1px solid #e0d28a;
	border-radius: 4px;
	padding: 14px 16px;
}

.acx-course-gate-message p {
	margin: 0;
}

.acx-recurring-row {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px 12px;
}

.acx-recurring-options {
	display: block;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #dcdcde;
}

.acx-recurring-options label {
	font-weight: 600;
	margin-right: 6px;
}

.acx-recurring-options .description {
	display: block;
	margin-top: 6px;
	font-weight: 400;
	font-size: 12px;
	color: #646970;
}

.acx-coupon-input-group {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.acx-coupon-input-group input {
	flex: 1;
}

.acx-coupon-apply-button {
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #1d2327;
	color: #1d2327;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	white-space: nowrap;
}

.acx-coupon-apply-button:hover {
	background: #f0f0f1;
}

.acx-coupon-apply-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.acx-coupon-message {
	display: block;
	margin-top: 4px;
	font-size: 13px;
}

.acx-coupon-message-success {
	color: #0a5c1f;
}

.acx-coupon-message-error {
	color: #b32d2e;
}

.acx-muted-text {
	font-size: 12px;
	color: #646970;
}

/* My Bookings: the resource (room/equipment) a booking reserved, under its time. */
.acx-my-bookings-table .acx-booking-resource { display: block; margin-top: 2px; font-size: 13px; color: #50575e; }
