.appt-booking-widget {
	--appt-primary: #2c7be5;
	--appt-primary-dark: #1c5fc0;
	--appt-bg: #ffffff;
	--appt-muted: #6b7280;
	--appt-border: #e5e7eb;
	--appt-radius: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 900px;
	margin: 0 auto;
	color: #1f2937;
	box-sizing: border-box;
}
.appt-booking-widget * { box-sizing: border-box; }

.appt-banner img { width: 100%; display: block; border-radius: var(--appt-radius) var(--appt-radius) 0 0; }
.appt-orientation-horizontal .appt-banner { margin-bottom: 16px; }
.appt-orientation-horizontal .appt-banner img { max-height: 220px; object-fit: cover; }

.appt-orientation-vertical .appt-booking-body { display: flex; gap: 20px; }
.appt-orientation-vertical .appt-banner { flex: 0 0 180px; }
.appt-orientation-vertical .appt-banner img { border-radius: var(--appt-radius); max-height: none; }

.appt-booking-body {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	background: var(--appt-bg);
	border: 1px solid var(--appt-border);
	border-radius: var(--appt-radius);
	padding: 20px;
}

.appt-calendar-pane { flex: 1 1 320px; min-width: 280px; }
.appt-details-pane { flex: 1 1 320px; min-width: 280px; }

.appt-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.appt-calendar-header button {
	background: none;
	border: 1px solid var(--appt-border);
	border-radius: 6px;
	width: 32px;
	height: 32px;
	font-size: 18px;
	cursor: pointer;
	color: var(--appt-primary);
}
.appt-calendar-header button:hover { background: #f3f4f6; }
.appt-cal-title { font-weight: 600; font-size: 15px; }

.appt-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 12px;
	color: var(--appt-muted);
	margin-bottom: 6px;
}

.appt-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.appt-cal-day {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 13px;
	cursor: default;
	color: #d1d5db;
}
.appt-cal-day.appt-day-available {
	cursor: pointer;
	color: #1f2937;
	background: #eef4fe;
}
.appt-cal-day.appt-day-available:hover { background: #dbe9fd; }
.appt-cal-day.appt-day-selected {
	background: var(--appt-primary) !important;
	color: #fff !important;
	font-weight: 600;
}
.appt-cal-day.appt-day-today { border: 1px solid var(--appt-primary); }
.appt-cal-day.appt-day-empty { visibility: hidden; }

.appt-slots-section h4, .appt-booking-form h4 { margin: 0 0 10px; font-size: 15px; }
.appt-slots-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.appt-slot-btn {
	border: 1px solid var(--appt-border);
	background: #fff;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
}
.appt-slot-btn:hover { border-color: var(--appt-primary); }
.appt-slot-btn.appt-slot-selected {
	background: var(--appt-primary);
	color: #fff;
	border-color: var(--appt-primary);
}
.appt-hint { color: var(--appt-muted); font-size: 13px; }

.appt-booking-form label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #374151; }
.appt-booking-form input[type="text"],
.appt-booking-form input[type="email"],
.appt-booking-form input[type="tel"],
.appt-booking-form input[type="date"],
.appt-booking-form input[type="time"],
.appt-booking-form input[type="number"],
.appt-booking-form select,
.appt-booking-form textarea {
	width: 100%;
	margin-top: 4px;
	padding: 9px 10px;
	border: 1px solid var(--appt-border);
	border-radius: 6px;
	font-size: 14px;
	font-weight: normal;
	font-family: inherit;
}
.appt-custom-field { margin-bottom: 6px; }
.appt-custom-field-checkbox .appt-checkbox-field {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}
.appt-custom-field-checkbox .appt-checkbox-field input { width: auto; margin: 0; }
.appt-service-type-label { margin-bottom: 4px; }
.appt-service-type { display: flex; gap: 16px; margin-bottom: 12px; }
.appt-service-type label { font-weight: normal; display: flex; align-items: center; gap: 6px; }

.appt-selected-summary {
	background: #f3f6ff;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 13px;
	margin-bottom: 14px;
	color: #1f2937;
}

.appt-submit-btn, .appt-manage-widget button[type="submit"], .appt-form-actions button {
	background: var(--appt-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}
.appt-submit-btn:hover, .appt-manage-widget button[type="submit"]:hover { background: var(--appt-primary-dark); }
.appt-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.appt-form-message { font-size: 13px; margin-top: 8px; min-height: 18px; }
.appt-form-message.appt-error { color: #b91c1c; }
.appt-form-message.appt-success { color: #15803d; }

.appt-confirmation {
	background: #ecfdf3;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	padding: 16px;
	font-size: 14px;
}
.appt-confirmation-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}
.appt-confirmation-actions button {
	flex: 1;
	padding: 9px 14px;
	border-radius: 6px;
	border: 1px solid #a7f3d0;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
}
.appt-confirmation-actions .appt-btn-change { color: var(--appt-primary); border-color: var(--appt-primary); }
.appt-confirmation-actions .appt-btn-cancel { color: #b91c1c; border-color: #fca5a5; }
.appt-inline-manage-content:not(:empty) { margin-top: 14px; }

.appt-existing-appt-toggle { margin-top: 16px; text-align: center; }
.appt-link-btn {
	background: none;
	border: none;
	color: var(--appt-primary, #2c7be5);
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	padding: 4px;
}
.appt-inline-manage {
	margin-top: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
}
.appt-inline-manage .appt-lookup-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.appt-inline-manage .appt-lookup-form input {
	width: 100%;
	margin-top: 4px;
	padding: 9px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-weight: normal;
}
.appt-inline-manage .appt-lookup-form button[type="submit"] {
	background: var(--appt-primary, #2c7be5);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 9px 16px;
	font-weight: 600;
	cursor: pointer;
}

.appt-cancel-confirm-banner {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 10px 0;
	font-size: 13px;
}
.appt-cancel-confirm-banner .appt-manage-actions button { font-size: 13px; padding: 8px; }
.appt-current-summary { color: var(--appt-muted, #6b7280); font-size: 13px; }

/* Manage widget */
.appt-manage-widget { max-width: 500px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.appt-manage-widget label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.appt-manage-widget input,
.appt-manage-widget select,
.appt-manage-widget textarea {
	width: 100%;
	margin-top: 4px;
	padding: 9px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-weight: normal;
	font-family: inherit;
	font-size: 14px;
}
.appt-manage-widget .appt-checkbox-field {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}
.appt-manage-widget .appt-checkbox-field input { width: auto; margin: 0; }
.appt-manage-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	margin-top: 16px;
}
.appt-manage-card h4 { margin-top: 0; }
.appt-manage-actions { display: flex; gap: 10px; margin-top: 12px; }
.appt-manage-actions button {
	flex: 1;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
}
.appt-manage-actions .appt-btn-danger { color: #b91c1c; border-color: #fca5a5; }
.appt-manage-actions .appt-btn-primary { background: #2c7be5; color: #fff; border-color: #2c7be5; }

@media (max-width: 640px) {
	.appt-orientation-vertical .appt-booking-body { flex-direction: column; }
	.appt-orientation-vertical .appt-banner { flex: none; }
}
